jufubao-takeorder 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/commands.js +84 -0
- package/commands.update.change.js +176 -0
- package/file.config.js +16 -0
- package/get.package.path.js +22 -0
- package/get.package.path.js.tpl +22 -0
- package/package.json +122 -0
- package/src/CreateClientID.js +16 -0
- package/src/ICONS.js +1148 -0
- package/src/appParams.js +1 -0
- package/src/common/authorize.js +261 -0
- package/src/common/getBusinessImageUrl.js +39 -0
- package/src/common/getServiceUrl.js +38 -0
- package/src/common/paysdk/jweixin.js +98 -0
- package/src/components/CusCouponChose/CusCouponChose.vue +1024 -0
- package/src/components/CusCouponItem/CusCouponItem.vue +298 -0
- package/src/components/CusEnter/CusEnter.vue +368 -0
- package/src/components/CusListItem/CusListItem.vue +141 -0
- package/src/components/CusPoster/CusPoster.vue +167 -0
- package/src/components/CusPoster/CusSwiperDot.vue +234 -0
- package/src/components/CusPrice/CusPrice.vue +383 -0
- package/src/components/CusProduct/CusProduct.vue +763 -0
- package/src/components/CusShops/CusShops.vue +717 -0
- package/src/components/CusSwiperDot/CusSwiperDot.vue +234 -0
- package/src/components/CusTab/CusTab.vue +544 -0
- package/src/components/CusVideo/CusVideo.vue +170 -0
- package/src/components/CusVipList/CusVipList.vue +169 -0
- package/src/config.app.plus.js +6 -0
- package/src/config.h5.js +13 -0
- package/src/config.mp.weixin.js +13 -0
- package/src/config.project.js +15 -0
- package/src/get.package.path.js +22 -0
- package/src/mixins/cardListMixins.js +187 -0
- package/src/mixins/colorCardMixins.js +122 -0
- package/src/mixins/componentsMixins.js +900 -0
- package/src/mixins/extsMixins.js +3 -0
- package/src/mixins/locationMixins.js +119 -0
- package/src/mixins/newLocaltionMixins.js +754 -0
- package/src/mixins/openDebuggerMixins.js +74 -0
- package/src/mixins/pageEditx.js +347 -0
- package/src/mixins/pageEvent.js +311 -0
- package/src/mixins/pageMain.js +120 -0
- package/src/mixins/pageUitls.js +738 -0
- package/src/mixins/posterMixins.js +122 -0
- package/src/mixins/scrollListFixedHeigthMixins.js +174 -0
- package/src/mocks.js +4 -0
- package/src/oss.config.js +17 -0
- package/src/settings.js +244 -0
- package/src/staticVersion.js +3 -0
- package/src/xd.less +196 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
methods:{
|
|
5
|
+
/**
|
|
6
|
+
* @description 过滤不可以用
|
|
7
|
+
* 当前项目未H5时,过滤所有小程序应用
|
|
8
|
+
* 当前项目未小程序时,过滤所有非当前小程序应用
|
|
9
|
+
* 站外地址直接返回
|
|
10
|
+
* 站内地址未选值直接返回
|
|
11
|
+
* 预览模式全过
|
|
12
|
+
*/
|
|
13
|
+
posterFilterNoUseData(list = []){
|
|
14
|
+
let content = this.$xdUniHelper.cloneDeep(list).filter(item=>{
|
|
15
|
+
//预览模式
|
|
16
|
+
if( this.$configProject.isPreview) return true;
|
|
17
|
+
|
|
18
|
+
//非内部应用
|
|
19
|
+
if(item.redirect_type !== 'INN') return true
|
|
20
|
+
|
|
21
|
+
//没有配置链接
|
|
22
|
+
if(!item.redirect_data) return true;
|
|
23
|
+
|
|
24
|
+
//内部应用
|
|
25
|
+
else {
|
|
26
|
+
let redirect_data;
|
|
27
|
+
try {
|
|
28
|
+
redirect_data = JSON.parse(item.redirect_data);
|
|
29
|
+
if(!item['app_type']) item['app_type']= 'h5';
|
|
30
|
+
|
|
31
|
+
//#ifdef H5
|
|
32
|
+
return item['app_type'] !== 'wxmp';
|
|
33
|
+
//#endif
|
|
34
|
+
|
|
35
|
+
//#ifdef MP-WEIXIN
|
|
36
|
+
let actDir = this.$parent['projectAttr']['deploy_dir'];
|
|
37
|
+
let dir = this.getPosterPathDir(redirect_data.page);
|
|
38
|
+
if(item['app_type'] === 'wxmp'){
|
|
39
|
+
return actDir === dir;
|
|
40
|
+
}
|
|
41
|
+
else if(item['app_type'] === 'h5') return true;
|
|
42
|
+
else return true
|
|
43
|
+
//#endif
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
return true
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
console.warn(`PostersList:${JSON.stringify(content.map(item=>`${item.app_type}:${item.content_name}:${item.redirect_data}`), null,2)}`)
|
|
51
|
+
return content;
|
|
52
|
+
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
getPosterPathDir(pathDir){
|
|
56
|
+
if(pathDir.indexOf('@site_domain@/') === 0) {
|
|
57
|
+
return pathDir.replace('@site_domain@/','').split('/')[0]
|
|
58
|
+
}
|
|
59
|
+
return ''
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
handlePosterClick(item) {
|
|
63
|
+
if(!item.redirect_data) {
|
|
64
|
+
console.warn(`未配置链接地址: ${item.redirect_data}`);
|
|
65
|
+
console.error(`未配置链接地址: ${item.redirect_data}`);
|
|
66
|
+
return
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
//内部链接跳转地址
|
|
70
|
+
if (item.redirect_type === 'INN') {
|
|
71
|
+
try {
|
|
72
|
+
let url = JSON.parse(item.redirect_data);
|
|
73
|
+
let params = '';
|
|
74
|
+
if(url.page) {
|
|
75
|
+
if (item['redirect_params']) params = `?${item['redirect_params']}`;
|
|
76
|
+
this.$xdUniHelper.navigateTo({url: url.page + params})
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
console.error(`应用链接配置错误: ${url.page}`)
|
|
80
|
+
}
|
|
81
|
+
} catch (e) {
|
|
82
|
+
console.error(`应用链接配置错误: ${item.redirect_data}`)
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
//外部链接
|
|
87
|
+
if (item.redirect_type === 'URL') {
|
|
88
|
+
let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
|
|
89
|
+
let spReg = /(-apiuri\/v)/;
|
|
90
|
+
//#ifdef MP-WEIXIN
|
|
91
|
+
try {
|
|
92
|
+
let url = JSON.parse(item.redirect_data);
|
|
93
|
+
if (reg.test(url.url) || spReg.test(url.url)) {
|
|
94
|
+
console.warn(`广告跳转外站: ${url.url}`)
|
|
95
|
+
this.$xdUniHelper.navigateTo(url);
|
|
96
|
+
} else {
|
|
97
|
+
console.error(`广告跳转外站配置错误: ${url.url}`)
|
|
98
|
+
}
|
|
99
|
+
} catch (e) {
|
|
100
|
+
console.error(`广告跳转外站配置错误: ${item.redirect_data}`)
|
|
101
|
+
}
|
|
102
|
+
//#endif
|
|
103
|
+
//#ifdef H5
|
|
104
|
+
try {
|
|
105
|
+
let url = JSON.parse(item.redirect_data);
|
|
106
|
+
console.warn(`广告跳转外站: ${url.url}`);
|
|
107
|
+
this.$xdUniHelper.redirectTo(url, false)
|
|
108
|
+
} catch (e) {
|
|
109
|
+
console.error(`广告跳转外站配置错误: ${item.redirect_data}`)
|
|
110
|
+
}
|
|
111
|
+
//#endif
|
|
112
|
+
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
//无跳转地址
|
|
116
|
+
if(item.redirect_type === 'EMP') {
|
|
117
|
+
console.warn(`无跳转地址`);
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
data() {
|
|
6
|
+
return {
|
|
7
|
+
//base
|
|
8
|
+
jfbListScrollElx: null, //计算滚动区域顶部元素top值(必须设置)建议使用ID选择器
|
|
9
|
+
jfbScrollList: null, //计算后的卡列表 (null|Array)
|
|
10
|
+
jfbScrollIndex:0,//记录当前数组的索引值
|
|
11
|
+
jfbScrollNextTop: 0, //计算元素初始化父节点元素距离顶部Top值
|
|
12
|
+
|
|
13
|
+
//list
|
|
14
|
+
jfbScrollRowShowNum: 1, //每行显示个数
|
|
15
|
+
jfbScrollItemPadding: 0, //行间距 rpx
|
|
16
|
+
jfbScrollItemHeight: 200, //块高度 rpx
|
|
17
|
+
jfbScrollLimit: 20, //每页个数
|
|
18
|
+
jfbScrollStart: 0, //可视区域的顶部边界值
|
|
19
|
+
jfbScrollEnd: 0, //可视区域的底部边界值
|
|
20
|
+
jfbShowPageStatus: false,//页面是否转为后台允许状态
|
|
21
|
+
jfbScrollFixed: 50, //调节阀值 rpx
|
|
22
|
+
|
|
23
|
+
//转换
|
|
24
|
+
jfbPxNum: 0, //px to rpx (1px * $pxNum)rpx
|
|
25
|
+
jfbRpxNum: 0, //rpx to px (1rpx * $rpxNum)px
|
|
26
|
+
maxAutoWindowWidth: 1280,
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
watch:{
|
|
32
|
+
jfbScrollStart() {
|
|
33
|
+
// console.log(this.jfbScrollStart, this.jfbScrollEnd);
|
|
34
|
+
// debugger
|
|
35
|
+
},
|
|
36
|
+
jfbScrollNextTop(val){
|
|
37
|
+
// console.log(val);
|
|
38
|
+
// debugger
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
created(){
|
|
43
|
+
this.jfbScrollEnd = uni.getSystemInfoSync().safeArea.height;
|
|
44
|
+
this.jfbPxNum = 750 / uni.getSystemInfoSync().windowWidth;
|
|
45
|
+
this.jfbRpxNum = uni.getSystemInfoSync().windowWidth / 750;
|
|
46
|
+
if(uni.getSystemInfoSync().windowWidth > 1280) {
|
|
47
|
+
this.jfbRpxNum = 375 / 750;
|
|
48
|
+
this.jfbPxNum = 750 / 375;
|
|
49
|
+
}
|
|
50
|
+
this.jfbShowPageStatus = true;
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
methods: {
|
|
54
|
+
checkListItemShow({height , top},index){
|
|
55
|
+
|
|
56
|
+
if(this.$configProject.isPreview) {
|
|
57
|
+
return this.jfbScrollLimit > index;
|
|
58
|
+
}
|
|
59
|
+
let boxTop = top + height + this.jfbScrollFixed * this.jfbRpxNum;
|
|
60
|
+
let boxBottom = top - (this.jfbScrollFixed * this.jfbRpxNum);
|
|
61
|
+
let {jfbScrollStart, jfbScrollEnd} = this;
|
|
62
|
+
return boxTop > jfbScrollStart && boxBottom < jfbScrollEnd;
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
getScrollContentTop(){
|
|
66
|
+
return new Promise((resolve, reject)=>{
|
|
67
|
+
this.$nextTick(()=>{
|
|
68
|
+
this.$xdUniHelper.getEleInfo(this.jfbListScrollElx, this, (data)=>{
|
|
69
|
+
this.jfbScrollNextTop = data.top;
|
|
70
|
+
console.warn('content-box:top='+this.jfbScrollNextTop)
|
|
71
|
+
resolve();
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
async onJfbLoad(options){
|
|
78
|
+
this.jfbListOptions = options;
|
|
79
|
+
if(this.jfbListScrollElx === null) throw new Error('滚动区域顶部元素,进行距离顶部设置');
|
|
80
|
+
else {
|
|
81
|
+
|
|
82
|
+
await this.getScrollContentTop();
|
|
83
|
+
if(typeof this['onJfbPackageLoad'] === 'function') {
|
|
84
|
+
this['onJfbPackageLoad'](options);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @description 设置属性 注意在created里面进行设置
|
|
91
|
+
* @param key
|
|
92
|
+
* @param value
|
|
93
|
+
*/
|
|
94
|
+
setJfbScrollAttr(key, value){
|
|
95
|
+
let allow = [
|
|
96
|
+
'jfbScrollRowShowNum',
|
|
97
|
+
'jfbScrollItemPadding',
|
|
98
|
+
'jfbScrollItemHeight',
|
|
99
|
+
'maxAutoWindowWidth',
|
|
100
|
+
'jfbListScrollElx',
|
|
101
|
+
'jfbScrollLimit'
|
|
102
|
+
];
|
|
103
|
+
if(allow.indexOf(key) === -1) console.warn(`键值:${key}不存在`);
|
|
104
|
+
else {
|
|
105
|
+
this[key]= value;
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
computeJfbScrollList(data = []){
|
|
110
|
+
return new Promise((resolve)=>{
|
|
111
|
+
const handle = ()=>{
|
|
112
|
+
if(this.jfbScrollNextTop === null) {
|
|
113
|
+
setTimeout(()=>{
|
|
114
|
+
handle();
|
|
115
|
+
}, 50)
|
|
116
|
+
return
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
//处理
|
|
120
|
+
let newData = this.$xdUniHelper.cloneDeep(data);
|
|
121
|
+
newData = newData.map(item=>{
|
|
122
|
+
let row = Math.floor(this.jfbScrollIndex/this.jfbScrollRowShowNum);
|
|
123
|
+
let height = this.jfbScrollItemHeight * this.jfbRpxNum;
|
|
124
|
+
let padding = this.jfbScrollItemPadding * this.jfbRpxNum;
|
|
125
|
+
item['height'] = height;
|
|
126
|
+
item['top'] = this.jfbScrollNextTop;
|
|
127
|
+
item['scrollIndex'] = this.jfbScrollIndex;
|
|
128
|
+
|
|
129
|
+
if(this.jfbScrollIndex%this.jfbScrollRowShowNum === (this.jfbScrollRowShowNum -1)) {
|
|
130
|
+
this.jfbScrollNextTop = this.jfbScrollNextTop + height + padding;
|
|
131
|
+
}
|
|
132
|
+
this.jfbScrollIndex++;
|
|
133
|
+
return item;
|
|
134
|
+
});
|
|
135
|
+
this.jfbScrollList = (this.jfbScrollList||[]).concat(newData);
|
|
136
|
+
resolve(this.jfbScrollList)
|
|
137
|
+
}
|
|
138
|
+
handle();
|
|
139
|
+
})
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
onJfbScroll(params){
|
|
143
|
+
|
|
144
|
+
if(this.jfbShowPageStatus) {
|
|
145
|
+
this.jfbScrollStart = params.e.scrollTop;
|
|
146
|
+
this.jfbScrollEnd = params.e.scrollTop + uni.getSystemInfoSync().safeArea.height
|
|
147
|
+
}
|
|
148
|
+
if(typeof this['onJfbPackageScroll'] === 'function') {
|
|
149
|
+
this['onJfbPackageScroll'](params);
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
onJfbHide(options){
|
|
154
|
+
this.jfbShowPageStatus = false;
|
|
155
|
+
if(typeof this['onJfbPackageHide'] === 'function') {
|
|
156
|
+
this['onJfbPackageHide'](options);
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
onJfbShow(options){
|
|
161
|
+
this.jfbShowPageStatus = true;
|
|
162
|
+
if(typeof this['onJfbPackageShow'] === 'function') {
|
|
163
|
+
this['onJfbPackageShow'](options);
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
clearDefault(){
|
|
168
|
+
this.jfbScrollList = null;
|
|
169
|
+
this.jfbScrollNextTop = 0;
|
|
170
|
+
this.jfbScrollIndex = 0
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
}
|
package/src/mocks.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
project:'gonghui',
|
|
5
|
+
bucket:'jfbcommontest',
|
|
6
|
+
region:'oss-cn-beijing',
|
|
7
|
+
doMain: '//sandbox-image.jufubao.cn/',
|
|
8
|
+
src: '/static',
|
|
9
|
+
aliYunOSSConfig: '/Users/shiyonggao/Desktop/code/oss.dev/', //密钥存储路径
|
|
10
|
+
|
|
11
|
+
//业务组件静态资源访问
|
|
12
|
+
businessDoMain: '//sandbox-img@index@.jufubao.cn/',
|
|
13
|
+
businessMaxServerNumber: 6,
|
|
14
|
+
businessBucket: 'sandbox-img-jufubao-cn',
|
|
15
|
+
businessRegion: 'oss-cn-qingdao',
|
|
16
|
+
}
|
|
17
|
+
|
package/src/settings.js
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const appParams = require('./appParams');
|
|
3
|
+
|
|
4
|
+
const settings = {
|
|
5
|
+
...appParams,
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @type {Number}
|
|
9
|
+
* @description Api请求超时
|
|
10
|
+
*/
|
|
11
|
+
apiDelay: 10000,
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @type {Object}
|
|
15
|
+
* @description Api请求超时
|
|
16
|
+
*/
|
|
17
|
+
projectJson: {
|
|
18
|
+
xsiteid: 'a3e8b499a07507a2',
|
|
19
|
+
template_id: 'tpX6OCiR8QvcU_bEVGgYs',
|
|
20
|
+
page_id: 'pg_cn4THNcGvif-SDvN9A'
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @description 项目Code
|
|
26
|
+
*/
|
|
27
|
+
baseCode: 'mall',
|
|
28
|
+
/**
|
|
29
|
+
* @type {String}
|
|
30
|
+
* @description 获取页面插件信息
|
|
31
|
+
*/
|
|
32
|
+
pageFnName: 'getByIdPageFnName',
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @description 需要调试的组件ID
|
|
36
|
+
* @type {Array}
|
|
37
|
+
*/
|
|
38
|
+
devComponentIds: [
|
|
39
|
+
'jfbbaseblock-3ef90fc5',
|
|
40
|
+
'jfbbasetesttop-3937189b',
|
|
41
|
+
'jfbbasetestbottom-882bbc98',
|
|
42
|
+
'jfbbasefooter-788e7c6a',
|
|
43
|
+
],
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @description 项目名称
|
|
48
|
+
*/
|
|
49
|
+
title: '商城项目业务组件库',
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @description 百度AK
|
|
54
|
+
* @type {String}
|
|
55
|
+
*/
|
|
56
|
+
baiduAk: 'btKt57MWjMx2P1ds2OjZIttLOOjR2Ndf',
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @description 是否开启全局定位
|
|
60
|
+
* @type {Boolean}
|
|
61
|
+
*/
|
|
62
|
+
isOpenGlobalLocation: false,
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @description 系统版本
|
|
68
|
+
*/
|
|
69
|
+
version: 'v1.1.2',
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @type {Array}
|
|
74
|
+
* @description 微信api能力
|
|
75
|
+
*/
|
|
76
|
+
jsApiList: [
|
|
77
|
+
'scanQRCode'
|
|
78
|
+
],
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @type {Array}
|
|
82
|
+
* @description 网站白名单(H5)
|
|
83
|
+
*/
|
|
84
|
+
pageWhiteList:[
|
|
85
|
+
|
|
86
|
+
],
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @description 配置本地访问token值
|
|
90
|
+
* @type {Object|null}
|
|
91
|
+
*/
|
|
92
|
+
customTokenValue: null,
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @description 配置访问token键值
|
|
96
|
+
* @type {Object}
|
|
97
|
+
*/
|
|
98
|
+
token: {
|
|
99
|
+
card: 'JFB-CARD-TOKEN-{siteID}',
|
|
100
|
+
user: 'JFB-CSRF-TOKEN-{siteID}',
|
|
101
|
+
refresh: 'JFB-REFRESH-TOKEN-{siteID}',
|
|
102
|
+
access: 'JFB-ACCESS-TOKEN',
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @type {Array}
|
|
107
|
+
* @description API白名单(不需要token,上报日志)
|
|
108
|
+
*/
|
|
109
|
+
apiWhiteList: [
|
|
110
|
+
'/api/pb/host/get-brand',
|
|
111
|
+
'/api/pb/host/merchant/setting',
|
|
112
|
+
'/api/pb/host/minfo',
|
|
113
|
+
'/api/pb/host/malert',
|
|
114
|
+
],
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @type {Array}
|
|
119
|
+
* @description API地址占位符
|
|
120
|
+
*/
|
|
121
|
+
apiPlaceholder: [
|
|
122
|
+
'system'
|
|
123
|
+
],
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @type {Array}
|
|
127
|
+
* @description 主域名,设置前端cookie
|
|
128
|
+
*/
|
|
129
|
+
domain: [],
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @description 项目类型(cake,film,shop,book)
|
|
135
|
+
*/
|
|
136
|
+
system: 'love',
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @description 用户登录信息key值
|
|
141
|
+
*/
|
|
142
|
+
tokenKey: 'token',
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @type {Array}
|
|
146
|
+
* @description 检查卡登录关键字
|
|
147
|
+
*/
|
|
148
|
+
needLoginKey: ['need_login'],
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @type {boolean}
|
|
152
|
+
* @description 无返回页面是否开启跳转到入口页面
|
|
153
|
+
*/
|
|
154
|
+
noPrevPageToIndex: true,
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @description 设置小程序默认入口
|
|
159
|
+
*/
|
|
160
|
+
index: '/pages/preview/index/index',
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @description 获取Brand BaseUrl地址
|
|
165
|
+
*/
|
|
166
|
+
getBrandBaseUrl: 'https://c.jufubao.cn', //(h5测试登录)
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @type {string}
|
|
170
|
+
* @description 开发环境api baseurl地址 (开发环境生效)
|
|
171
|
+
*/
|
|
172
|
+
devBaseHost: 'store.jufubao.cn',
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @description APP-PLUS使用的
|
|
177
|
+
*/
|
|
178
|
+
apiHost: 'http://tuanpiao.jufubao.cn',
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @type {Object}
|
|
183
|
+
* @description 默认选择城市
|
|
184
|
+
*/
|
|
185
|
+
defaultCity: {
|
|
186
|
+
"city_id": "110100",
|
|
187
|
+
"city_name": "北京市",
|
|
188
|
+
"province_name": "北京市",
|
|
189
|
+
"city_pinyin": "",
|
|
190
|
+
"py": "",
|
|
191
|
+
"letter": "B"
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @type {boolean}
|
|
196
|
+
* @description 是否为蛋糕项目
|
|
197
|
+
*/
|
|
198
|
+
IS_CAKE: false,
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @type {boolean}
|
|
202
|
+
* @description 是否关闭eslint语法检测
|
|
203
|
+
*/
|
|
204
|
+
isCloseEslint: false,
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @type {boolean} true | false
|
|
208
|
+
* @description 是否为业务插件开发环境(影响插件api请求地址)
|
|
209
|
+
*/
|
|
210
|
+
isBussDev: true,
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @type {boolean} true | false
|
|
214
|
+
* @description 开发环境与生产环境
|
|
215
|
+
*/
|
|
216
|
+
isDebug: false,
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @type {boolean} true | false
|
|
220
|
+
* @description 是否加载模拟数据
|
|
221
|
+
*/
|
|
222
|
+
isTestData: false,
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @type {boolean} true | false
|
|
226
|
+
* @description 是否开启方法执行逻辑定位位置显示
|
|
227
|
+
*/
|
|
228
|
+
isTimeLog: false,
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @type {boolean} true | false
|
|
232
|
+
* @description 是否显示console内容
|
|
233
|
+
*/
|
|
234
|
+
isLogs: false,
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @type {number}
|
|
238
|
+
* @description 开发环境端口号
|
|
239
|
+
*/
|
|
240
|
+
port: 8080,
|
|
241
|
+
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
module.exports = settings;
|