jufubao-base 1.0.254-beta2 → 1.0.254
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/package.json +1 -1
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +6 -13
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +5 -4
- package/src/components/JfbBaseNoticeDialog/Attr.js +19 -19
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +21 -6
package/package.json
CHANGED
|
@@ -195,8 +195,7 @@
|
|
|
195
195
|
jwxSDK: null,
|
|
196
196
|
refresh: true, //onshow是否刷新数据
|
|
197
197
|
showLocationDialog: false,
|
|
198
|
-
cityPath: ''
|
|
199
|
-
resource_shop_id: ''
|
|
198
|
+
cityPath: ''
|
|
200
199
|
}
|
|
201
200
|
},
|
|
202
201
|
watch: {
|
|
@@ -253,7 +252,7 @@
|
|
|
253
252
|
// #endif
|
|
254
253
|
},
|
|
255
254
|
methods: {
|
|
256
|
-
async onJfbLoad(options) {
|
|
255
|
+
async onJfbLoad(options) {
|
|
257
256
|
this.xnamespace = this.projectAttr.business_code
|
|
258
257
|
this.getUserInfo()
|
|
259
258
|
this.options = options
|
|
@@ -282,7 +281,6 @@
|
|
|
282
281
|
}).then(res => {
|
|
283
282
|
if (res && res.list.length > 0) {
|
|
284
283
|
this.shop_id = res.list[0].shop_id;
|
|
285
|
-
this.resource_shop_id = res.list[0].resource_shop_id;
|
|
286
284
|
this.shopName = res.list[0].resource_shop_name;
|
|
287
285
|
this.showMask = true;
|
|
288
286
|
this.showDialog = true;
|
|
@@ -293,7 +291,6 @@
|
|
|
293
291
|
})
|
|
294
292
|
} else {
|
|
295
293
|
this.shop_id = this.options.shop_id;
|
|
296
|
-
this.resource_shop_id = this.options.resource_shop_id;
|
|
297
294
|
this.p_getAsyncStep();
|
|
298
295
|
}
|
|
299
296
|
},
|
|
@@ -375,16 +372,12 @@
|
|
|
375
372
|
p_getQuickPayQRCode() {
|
|
376
373
|
return new Promise((resolve, reject) => {
|
|
377
374
|
this.$xdShowLoading({});
|
|
378
|
-
let data = {
|
|
379
|
-
shop_id: this.shop_id,
|
|
380
|
-
temp_order_id: this.temp_order_id,
|
|
381
|
-
// business_code: this.xnamespace,
|
|
382
|
-
// resource_shop_id: this.resource_shop_id
|
|
383
|
-
}
|
|
384
|
-
if(data.resource_shop_id) delete data.shop_id
|
|
385
375
|
jfbRootExec("getConsumpCode", {
|
|
386
376
|
vm: this,
|
|
387
|
-
data:
|
|
377
|
+
data: {
|
|
378
|
+
shop_id: this.shop_id,
|
|
379
|
+
temp_order_id: this.temp_order_id,
|
|
380
|
+
}
|
|
388
381
|
}).then(res => {
|
|
389
382
|
this.$xdHideLoading();
|
|
390
383
|
this.plusDiscount = res.plus_discount
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
<iframe frameborder="0" v-if="iframe" :src="iframe" class="jfb-base-map-overlay__body-iframe"></iframe>
|
|
21
21
|
<xd-baidu-overlay v-else :defaultOverlays="overlays" :level="11"></xd-baidu-overlay>
|
|
22
22
|
</template>
|
|
23
|
-
|
|
24
23
|
<!-- #endif -->
|
|
25
24
|
<!-- #ifdef MP -->
|
|
26
25
|
<xd-map-overlay :defaultOverlays="overlays" :level="11"></xd-map-overlay>
|
|
@@ -114,25 +113,27 @@
|
|
|
114
113
|
if(res['is_ifream'] === 'Y') {
|
|
115
114
|
// #ifdef MP
|
|
116
115
|
if(!res.url){
|
|
117
|
-
|
|
116
|
+
this.$xdAlert({
|
|
118
117
|
content: 'URL不存在',
|
|
119
118
|
time: 2500,
|
|
120
119
|
isClose: false,
|
|
121
120
|
zIndex: 5000
|
|
122
121
|
});
|
|
122
|
+
return;
|
|
123
123
|
}
|
|
124
124
|
this.$xdUniHelper.redirectTo({
|
|
125
|
-
url: url,
|
|
125
|
+
url: res.url,
|
|
126
126
|
})
|
|
127
127
|
// #endif
|
|
128
128
|
// #ifdef H5
|
|
129
129
|
this.iframe = res.url
|
|
130
130
|
// #endif
|
|
131
131
|
}
|
|
132
|
+
//本页面打开
|
|
132
133
|
else{
|
|
133
134
|
this.overlays = res.data;
|
|
135
|
+
this.loaded = true;
|
|
134
136
|
}
|
|
135
|
-
this.loaded = true;
|
|
136
137
|
})
|
|
137
138
|
},
|
|
138
139
|
gcj02tobd09(lng, lat) {
|
|
@@ -187,19 +187,6 @@ export default {
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
//获取展示方式
|
|
191
|
-
if (action === 'adShowGroupType') {
|
|
192
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: "cms_setting"})
|
|
193
|
-
.then(res => {
|
|
194
|
-
loading.close();
|
|
195
|
-
data.cb(res['ad_show_group'])
|
|
196
|
-
})
|
|
197
|
-
.catch(error => {
|
|
198
|
-
loading.close();
|
|
199
|
-
console.error(error);
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
|
|
203
190
|
//发布
|
|
204
191
|
if (action === 'publish') {
|
|
205
192
|
console.log('publish', data.params)
|
|
@@ -261,16 +248,29 @@ export default {
|
|
|
261
248
|
]
|
|
262
249
|
},
|
|
263
250
|
{
|
|
264
|
-
label: '
|
|
251
|
+
label: '展示位置:',
|
|
265
252
|
ele: 'xd-radio',
|
|
266
|
-
valueKey: '
|
|
253
|
+
valueKey: 'systemType',
|
|
267
254
|
groupKey:'content',
|
|
268
|
-
value: data['
|
|
269
|
-
placeholder: '
|
|
255
|
+
value: data['systemType'] || 'fuli',
|
|
256
|
+
placeholder: '请选择展示位置',
|
|
270
257
|
className: 'input60',
|
|
271
258
|
list: [
|
|
272
|
-
{ label: '
|
|
273
|
-
{ label: '
|
|
259
|
+
{ label: '福利系统', value: 'fuli' },
|
|
260
|
+
{ label: 'plus系统', value: 'plus' },
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
data['systemType']==='plus'&&{
|
|
264
|
+
label: '展示方式:',
|
|
265
|
+
ele: 'xd-radio',
|
|
266
|
+
valueKey: 'showGroup',
|
|
267
|
+
groupKey:'content',
|
|
268
|
+
value: data['showGroup'] || 'all',
|
|
269
|
+
placeholder: '请选择展示方式',
|
|
270
|
+
className: 'input60',
|
|
271
|
+
list: [
|
|
272
|
+
{ label: '全部用户', value: 'all' },
|
|
273
|
+
{ label: '仅会员', value: 'vip' },
|
|
274
274
|
]
|
|
275
275
|
},
|
|
276
276
|
{
|
|
@@ -85,7 +85,8 @@ export default {
|
|
|
85
85
|
currentIndex: 0,
|
|
86
86
|
contentList: [],
|
|
87
87
|
number: '',
|
|
88
|
-
|
|
88
|
+
systemType: '',
|
|
89
|
+
showGroup: ''
|
|
89
90
|
};
|
|
90
91
|
},
|
|
91
92
|
watch: {
|
|
@@ -128,7 +129,6 @@ export default {
|
|
|
128
129
|
page_id: this.pageAttr["page_id"], //页面ID
|
|
129
130
|
container_id: this.containerId, //组件ID
|
|
130
131
|
page_size: this.number, //数量
|
|
131
|
-
is_order_by_show_group: this.is_order_by_show_group
|
|
132
132
|
},
|
|
133
133
|
})
|
|
134
134
|
.then((res) => {
|
|
@@ -147,7 +147,17 @@ export default {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
this.currentIndex = 0;
|
|
150
|
-
this.
|
|
150
|
+
if(this.systemType === 'fuli'){
|
|
151
|
+
this.handlePop();
|
|
152
|
+
} else {
|
|
153
|
+
if(this.showGroup==='all') {
|
|
154
|
+
this.handlePop();
|
|
155
|
+
}else {
|
|
156
|
+
if(this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP') {
|
|
157
|
+
this.handlePop();
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
151
161
|
}
|
|
152
162
|
})
|
|
153
163
|
.catch((error) => {
|
|
@@ -176,10 +186,15 @@ export default {
|
|
|
176
186
|
);
|
|
177
187
|
this.type = getContainerPropsValue(container, "content.type", "pop");
|
|
178
188
|
this.number = getContainerPropsValue(container, "content.number", 1);
|
|
179
|
-
this.
|
|
189
|
+
this.systemType = getContainerPropsValue(
|
|
180
190
|
container,
|
|
181
|
-
"content.
|
|
182
|
-
"
|
|
191
|
+
"content.systemType",
|
|
192
|
+
"fuli"
|
|
193
|
+
);
|
|
194
|
+
this.showGroup = getContainerPropsValue(
|
|
195
|
+
container,
|
|
196
|
+
"content.showGroup",
|
|
197
|
+
"all"
|
|
183
198
|
);
|
|
184
199
|
},
|
|
185
200
|
handlePop() {
|