Authored by 李奇

项目目录优化

Showing 69 changed files with 102 additions and 102 deletions
//app.js
import promisify from './libs/promisify';
import promisify from './common/promisify';
import objectAssign from './vendors/object-assign';
import {WeToast} from './vendors/toast/wetoast';
import { API_HOST, SERVICE_HOST, MINI_APP_TYPE} from './libs/config';
import {GET, POST} from './libs/request';
import {Encrypt,Decrypt} from './libs/aes.js';
let crypto = require('./libs/cryptojs/cryptojs.js').Crypto
import { API_HOST, SERVICE_HOST, MINI_APP_TYPE} from './common/config';
import {GET, POST} from './common/request';
import {Encrypt,Decrypt} from './common/aes.js';
let crypto = require('./common/cryptojs/cryptojs.js').Crypto
import md5 from './vendors/md5';
var mta = require('./vendors/mta_analysis.js')
import { wechatLoginAction } from './utils/login';
... ... @@ -18,9 +18,9 @@ import { logEvent,
YB_ENTER_BACKGROUND,
YB_PAGE_OPEN_L,
YB_AWAKE_MP
} from './libs/analytics.js';
} from './common/analytics.js';
import { appReport } from './libs/appReport.js';
import { appReport } from './common/appReport.js';
App({
onLaunch: function (options) {
... ...
... ... @@ -47,20 +47,20 @@
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "images/nav_home_n@2x.png",
"selectedIconPath": "images/nav_home_h@2x.png"
"iconPath": "static/nav_home_n@2x.png",
"selectedIconPath": "static/nav_home_h@2x.png"
},
{
"pagePath": "pages/classify/category",
"text": "分类",
"iconPath": "images/X_pl_ic_n@3x.png",
"selectedIconPath": "images/X_pl_ic_h@3x.png"
"iconPath": "static/X_pl_ic_n@3x.png",
"selectedIconPath": "static/X_pl_ic_h@3x.png"
},
{
"pagePath": "pages/userCenter/userCenter",
"text": "我的",
"iconPath": "images/nav_mine_n@2x.png",
"selectedIconPath": "images/nav_mine_h@2x.png"
"iconPath": "static/nav_mine_n@2x.png",
"selectedIconPath": "static/nav_mine_h@2x.png"
}
]
}
... ...
'use strict'
import {LOG_EVENT_HOST, API_HOST, SERVICE_HOST } from '../libs/config';
import { UPLOAD_LOG } from '../libs/request';
import {LOG_EVENT_HOST, API_HOST, SERVICE_HOST } from './/config';
import { UPLOAD_LOG } from './/request';
const YB_ENTER_FOREGROUND = 'YB_ENTER_FOREGROUND'; //程序切换置前台
const YB_ENTER_BACKGROUND = 'YB_ENTER_BACKGROUND'; //系统-程序切换置后台
... ...
'use strict'
import { APP_REPORT_HOST, APP_VERSION, APP_BUILD} from '../libs/config';
import { APP_REPORT } from '../libs/request';
import { APP_REPORT_HOST, APP_VERSION, APP_BUILD} from './/config';
import { APP_REPORT } from './/request';
import md5 from '../vendors/md5';
let getDeviceInfo = function (app) {
... ...
... ... @@ -3,7 +3,7 @@ import objectAssign from '../vendors/object-assign';
import trimObject from '../utils/trimObject';
import queryString from '../vendors/query-string';
import md5 from '../vendors/md5';
import {APP_VERSION, CLIENT_TYPE, PRIVATE_KEY} from '../libs/config';
import {APP_VERSION, CLIENT_TYPE, PRIVATE_KEY} from './/config';
let crypto = require('./cryptojs/cryptojs.js').Crypto
let p1SecretKey = "yoho9646yoho9646"
let ClientInitConfigMehtod = "resources.simple.pice"
... ...
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { formatImgUrl, getBrandID, getGoodDetailParam} from '../../utils/util'
const WEAPP_ACTIVITY_GET = "app.resources.miniAppResourceActivity";
... ...
import {API_HOST, SERVICE_HOST} from '../../libs/config';
import {GET, POST} from '../../libs/request';
import {API_HOST, SERVICE_HOST} from '../../common/config';
import {GET, POST} from '../../common/request';
import objectAssign from '../../vendors/object-assign';
import {
logEvent,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
var modeEdit = "modeEdit";
var modeSelect = "modeSelect";
... ...
// pages/choosecountry/choosecountry.js
'use strict';
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { getVerifyKey, bindAction, decodePhoneNumber, getUnionID} from '../../utils/login';
... ...
// pages/choosecountry/choosecountry.js
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
let CACH_KEY = 'country_cach';
let CHOOSED_COUNTRY_ID = 'CHOOSED_COUNTRY_ID'
... ...
// category.js
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import objectAssign from '../../vendors/object-assign';
import { shouldDiscardTap } from '../../utils/util';
import {
... ... @@ -8,7 +8,7 @@ import {
YB_CATEGORY_FL,
YB_MAIN_TAB_C,
YB_PAGE_OPEN_L
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
//获取应用实例
let app = getApp();
... ...
// coupon.js
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import objectAssign from '../../vendors/object-assign';
import { shouldDiscardTap } from '../../utils/util';
... ...
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { getChannelCode, getGenderCode, getRecPosCode, getRecommandContentCode, getResourceCode, getHomeContentCode } from '../../utils/home';
import { shouldDiscardTap, getGoodDetailParam, getImageUrl } from '../../utils/util';
import { jumpByUrl } from '../../libs/urlRoute';
import { jumpByUrl } from '../../common/urlRoute';
import { parseBrandListData } from '../../utils/productList';
import { wechatLoginAction } from '../../utils/login';
... ... @@ -31,7 +31,7 @@ let scrollViewHeigth = windowHeight - 52 + 48;
import {
logEvent,
YB_MAIN_EVENT,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
Page({
... ...
//goodsCollect.js
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { getChannelCode, getGenderCode } from '../../utils/home';
... ...
import {API_HOST, SERVICE_HOST} from '../../libs/config';
import {GET, POST} from '../../libs/request';
import {API_HOST, SERVICE_HOST} from '../../common/config';
import {GET, POST} from '../../common/request';
import {getGoodInfo,getGoodSize,getGoodImages} from '../../utils/productDetail';
import {
logEvent,
... ... @@ -7,7 +7,7 @@ import {
YB_PAGE_OPEN_L,
YB_GDS_ADD_TO_CART_C,
YB_SHARE_RESULT_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
import { formateTimestamp } from '../../utils/util';
import { decodePhoneNumberk, getUnionID} from '../../utils/login';
... ...
// PromotionList.js
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { parseBrandListData, cancelFilterSelectState } from '../../utils/productList';
import objectAssign from '../../vendors/object-assign';
import { shouldDiscardTap } from '../../utils/util';
... ... @@ -8,7 +8,7 @@ import {
logEvent,
YB_PAGE_OPEN_L,
YB_GDS_ADD_TO_CART_C,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
var Picker = require('../goodsDetail/picker/picker.js')
... ...
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { parseBrandListData, cancelFilterSelectState } from '../../utils/productList';
import objectAssign from '../../vendors/object-assign';
import { shouldDiscardTap } from '../../utils/util';
import {
logEvent,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
//获取应用实例
let app = getApp();
... ...
//brand.js
import {API_HOST, SERVICE_HOST} from '../../libs/config';
import {GET, POST} from '../../libs/request';
import {API_HOST, SERVICE_HOST} from '../../common/config';
import {GET, POST} from '../../common/request';
import {parseBrandListData, cancelFilterSelectState} from '../../utils/productList';
import objectAssign from '../../vendors/object-assign';
import {shouldDiscardTap} from '../../utils/util';
import {
logEvent,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
import { getChannelCode, getGenderCode} from '../../utils/home';
//获取应用实例
let app = getApp();
... ...
// pages/goodsList/brandshop.js
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { parseBrandListData, cancelFilterSelectState } from '../../utils/productList';
import objectAssign from '../../vendors/object-assign';
import { shouldDiscardTap } from '../../utils/util';
import {
logEvent,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
import { getChannelCode, getGenderCode } from '../../utils/home';
const { Actionsheet, extend } = require('../../vendors/zanui/index');
... ...
import {API_HOST, SERVICE_HOST} from '../../libs/config';
import {GET, POST} from '../../libs/request';
import {API_HOST, SERVICE_HOST} from '../../common/config';
import {GET, POST} from '../../common/request';
import {parseBrandListData, cancelFilterSelectState} from '../../utils/productList';
import objectAssign from '../../vendors/object-assign';
import {shouldDiscardTap} from '../../utils/util';
import {
logEvent,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
//获取应用实例
let app = getApp();
... ...
import {API_HOST, SERVICE_HOST} from '../../libs/config';
import {GET, POST} from '../../libs/request';
import {API_HOST, SERVICE_HOST} from '../../common/config';
import {GET, POST} from '../../common/request';
import {parseBrandListData, cancelFilterSelectState} from '../../utils/productList';
import {getChannelCode} from '../../utils/home';
import objectAssign from '../../vendors/object-assign';
... ... @@ -7,7 +7,7 @@ import {shouldDiscardTap} from '../../utils/util';
import {
logEvent,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
//获取应用实例
let app = getApp();
... ...
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { parseBrandListData, cancelFilterSelectState } from '../../utils/productList';
import objectAssign from '../../vendors/object-assign';
import { shouldDiscardTap } from '../../utils/util';
import {
logEvent,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
//获取应用实例
let app = getApp();
... ...
//index.js
import { API_HOST, SERVICE_HOST, JUMP_BRAND, JUMP_DETAIL, JUMP_PRODUCTPOOL} from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST, JUMP_BRAND, JUMP_DETAIL, JUMP_PRODUCTPOOL} from '../../common/config';
import { GET, POST } from '../../common/request';
import { parseBrandListData } from '../../utils/productList';
import { parseActivityListData } from '../../utils/activityList';
import { parseHomeList } from '../../utils/newHome';
import { getChannelCode, getGenderCode, getRecPosCode, getRecommandContentCode, getResourceCode,getHomeContentCode} from '../../utils/home';
import objectAssign from '../../vendors/object-assign';
import { shouldDiscardTap, getGoodDetailParam, getImageUrl} from '../../utils/util';
import { jumpByUrl } from '../../libs/urlRoute';
import { jumpByUrl } from '../../common/urlRoute';
var mta = require('../../vendors/mta_analysis.js')
var touchStartLocationY=0;
// 1、小程序男首 305e0a7a4aba32b08c6dd6dc5da47fa9
... ... @@ -20,7 +20,7 @@ import {
YB_PAGE_OPEN_L,
YB_MAIN_TAB_C,
YB_SHARE_RESULT_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
let CHANNEL = "gender_channel"
//获取应用实例
... ...
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
let app = getApp();
const windowHeights = app.globalData.systemInfo.windowHeight;
... ...
import {API_HOST, SERVICE_HOST} from '../../../libs/config';
import {GET, POST} from '../../../libs/request';
import {API_HOST, SERVICE_HOST} from '../../../common/config';
import {GET, POST} from '../../../common/request';
import {wexinPay} from '../../../utils/wxpay';
import {
logEvent,
YB_PAGE_OPEN_L,
YB_SHARE_RESULT_L,
} from '../../../libs/analytics.js'
} from '../../../common/analytics.js'
import {listen } from '../../../utils/login';
const APP_SPACEORDERS_DETAIL = "app.SpaceOrders.detail";
... ...
import {API_HOST, SERVICE_HOST} from '../../libs/config';
import {GET, POST} from '../../libs/request';
import {API_HOST, SERVICE_HOST} from '../../common/config';
import {GET, POST} from '../../common/request';
import {wexinPay} from '../../utils/wxpay';
import {
logEvent,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
import { listen } from '../../utils/login';
const APP_SPACEORDERS_GET = "app.SpaceOrders.get";
... ...
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { jumpByUrl } from '../../libs/urlRoute';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { jumpByUrl } from '../../common/urlRoute';
import {
logEvent,
YB_SHARE_RESULT_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
Page({
data: {
... ...
import {API_HOST, SERVICE_HOST} from '../../libs/config';
import {GET, POST} from '../../libs/request';
import {API_HOST, SERVICE_HOST} from '../../common/config';
import {GET, POST} from '../../common/request';
import {parseBrandListData, cancelFilterSelectState} from '../../utils/productList';
import {getChannelCode, getGenderCode, getRecPosCode, getRecommandContentCode} from '../../utils/home';
import objectAssign from '../../vendors/object-assign';
... ... @@ -7,7 +7,7 @@ import objectAssign from '../../vendors/object-assign';
import {
logEvent,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
//获取应用实例
let app = getApp()
... ...
// giftPage.js
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import objectAssign from '../../vendors/object-assign';
import { shouldDiscardTap, getImageUrlWithWH } from '../../utils/util';
import {
... ...
// shopCart.js
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import objectAssign from '../../vendors/object-assign';
import { shouldDiscardTap, getImageUrlWithWH } from '../../utils/util';
import { curShoppingCartDataAddExpandedFlag, editInfoDicFromGoodsList, hasLackStorageGoodsInList, curPageDataAllSelectWhenEditing,
... ... @@ -11,7 +11,7 @@ import {
logEvent,
YB_MAIN_TAB_C,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
//获取应用实例
let app = getApp();
... ...
// pages/snapshootShare/snapshootShare.js
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { API_HOST, SERVICE_HOST } from '../../common/config';
let app = getApp();
const windowWidth = app.globalData.systemInfo.windowWidth;
const windowHeight = app.globalData.systemInfo.windowHeight;
... ...
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
import { wexinPay } from '../../utils/wxpay';
import {
logEvent,
YB_SC_ORD,
YB_PAGE_OPEN_L,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
let PV_ID = new Date().getTime() + '';
import md5 from '../../vendors/md5';
... ...
import { API_HOST, SERVICE_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { API_HOST, SERVICE_HOST } from '../../common/config';
import { GET, POST } from '../../common/request';
//获取应用实例
let app = getApp();
... ...
import {API_HOST, SERVICE_HOST} from '../../libs/config';
import {GET, POST} from '../../libs/request';
import {API_HOST, SERVICE_HOST} from '../../common/config';
import {GET, POST} from '../../common/request';
import { getChannelCode, getGenderCode, getRecPosCode, getRecommandContentCode } from '../../utils/home';
import { parseBrandListData } from '../../utils/productList';
import { shouldDiscardTap, getGoodDetailParam } from '../../utils/util';
... ... @@ -10,7 +10,7 @@ import {
logEvent,
YB_PAGE_OPEN_L,
YB_MAIN_TAB_C,
} from '../../libs/analytics.js'
} from '../../common/analytics.js'
//userCenter.js
//获取应用实例
... ...
//login.js
import {GET, POST} from '../libs/request';
import {API_HOST, SERVICE_HOST} from '../libs/config';
import {Encrypt} from '../libs/aes'
import {GET, POST} from '../common/request';
import {API_HOST, SERVICE_HOST} from '../common/config';
import {Encrypt} from '../common/aes'
import {isStringEmpty} from './util'
import { logEvent,
YB_MY_LOGIN,
YB_PAGE_OPEN_L,
YB_REGISTER_SUCCESS,
} from '../libs/analytics.js'
} from '../common/analytics.js'
//获取应用实例
var app = getApp()
... ...
'use strict'
import { API_HOST, SERVICE_HOST, PAYMENT_CODE} from '../libs/config';
import {GET, POST} from '../libs/request';
import { API_HOST, SERVICE_HOST, PAYMENT_CODE} from '../common/config';
import {GET, POST} from '../common/request';
import {
logEvent,
YB_SC_PAY_RES,
} from '../libs/analytics.js'
} from '../common/analytics.js'
let app = getApp();
let orderCode;
... ...