jufubao-base 1.0.253 → 1.0.254-beta2
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
CHANGED
|
@@ -195,7 +195,8 @@
|
|
|
195
195
|
jwxSDK: null,
|
|
196
196
|
refresh: true, //onshow是否刷新数据
|
|
197
197
|
showLocationDialog: false,
|
|
198
|
-
cityPath: ''
|
|
198
|
+
cityPath: '',
|
|
199
|
+
resource_shop_id: ''
|
|
199
200
|
}
|
|
200
201
|
},
|
|
201
202
|
watch: {
|
|
@@ -252,7 +253,7 @@
|
|
|
252
253
|
// #endif
|
|
253
254
|
},
|
|
254
255
|
methods: {
|
|
255
|
-
async onJfbLoad(options) {
|
|
256
|
+
async onJfbLoad(options) {
|
|
256
257
|
this.xnamespace = this.projectAttr.business_code
|
|
257
258
|
this.getUserInfo()
|
|
258
259
|
this.options = options
|
|
@@ -281,6 +282,7 @@
|
|
|
281
282
|
}).then(res => {
|
|
282
283
|
if (res && res.list.length > 0) {
|
|
283
284
|
this.shop_id = res.list[0].shop_id;
|
|
285
|
+
this.resource_shop_id = res.list[0].resource_shop_id;
|
|
284
286
|
this.shopName = res.list[0].resource_shop_name;
|
|
285
287
|
this.showMask = true;
|
|
286
288
|
this.showDialog = true;
|
|
@@ -291,6 +293,7 @@
|
|
|
291
293
|
})
|
|
292
294
|
} else {
|
|
293
295
|
this.shop_id = this.options.shop_id;
|
|
296
|
+
this.resource_shop_id = this.options.resource_shop_id;
|
|
294
297
|
this.p_getAsyncStep();
|
|
295
298
|
}
|
|
296
299
|
},
|
|
@@ -372,12 +375,16 @@
|
|
|
372
375
|
p_getQuickPayQRCode() {
|
|
373
376
|
return new Promise((resolve, reject) => {
|
|
374
377
|
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
|
|
375
385
|
jfbRootExec("getConsumpCode", {
|
|
376
386
|
vm: this,
|
|
377
|
-
data:
|
|
378
|
-
shop_id: this.shop_id,
|
|
379
|
-
temp_order_id: this.temp_order_id,
|
|
380
|
-
}
|
|
387
|
+
data: data
|
|
381
388
|
}).then(res => {
|
|
382
389
|
this.$xdHideLoading();
|
|
383
390
|
this.plusDiscount = res.plus_discount
|
|
@@ -187,6 +187,19 @@ 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
|
+
|
|
190
203
|
//发布
|
|
191
204
|
if (action === 'publish') {
|
|
192
205
|
console.log('publish', data.params)
|
|
@@ -248,29 +261,16 @@ export default {
|
|
|
248
261
|
]
|
|
249
262
|
},
|
|
250
263
|
{
|
|
251
|
-
label: '
|
|
264
|
+
label: '是否开启展示方式过滤:',
|
|
252
265
|
ele: 'xd-radio',
|
|
253
|
-
valueKey: '
|
|
266
|
+
valueKey: 'is_order_by_show_group',
|
|
254
267
|
groupKey:'content',
|
|
255
|
-
value: data['
|
|
256
|
-
placeholder: '
|
|
268
|
+
value: data['is_order_by_show_group'] || 'N',
|
|
269
|
+
placeholder: '请选择是否开启展示方式过滤',
|
|
257
270
|
className: 'input60',
|
|
258
271
|
list: [
|
|
259
|
-
{ label: '
|
|
260
|
-
{ label: '
|
|
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' },
|
|
272
|
+
{ label: '是', value: 'Y' },
|
|
273
|
+
{ label: '否', value: 'N' },
|
|
274
274
|
]
|
|
275
275
|
},
|
|
276
276
|
{
|
|
@@ -85,8 +85,7 @@ export default {
|
|
|
85
85
|
currentIndex: 0,
|
|
86
86
|
contentList: [],
|
|
87
87
|
number: '',
|
|
88
|
-
|
|
89
|
-
showGroup: ''
|
|
88
|
+
is_order_by_show_group: '',
|
|
90
89
|
};
|
|
91
90
|
},
|
|
92
91
|
watch: {
|
|
@@ -129,6 +128,7 @@ export default {
|
|
|
129
128
|
page_id: this.pageAttr["page_id"], //页面ID
|
|
130
129
|
container_id: this.containerId, //组件ID
|
|
131
130
|
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,17 +147,7 @@ export default {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
this.currentIndex = 0;
|
|
150
|
-
|
|
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
|
-
}
|
|
150
|
+
this.handlePop();
|
|
161
151
|
}
|
|
162
152
|
})
|
|
163
153
|
.catch((error) => {
|
|
@@ -186,15 +176,10 @@ export default {
|
|
|
186
176
|
);
|
|
187
177
|
this.type = getContainerPropsValue(container, "content.type", "pop");
|
|
188
178
|
this.number = getContainerPropsValue(container, "content.number", 1);
|
|
189
|
-
this.
|
|
190
|
-
container,
|
|
191
|
-
"content.systemType",
|
|
192
|
-
"fuli"
|
|
193
|
-
);
|
|
194
|
-
this.showGroup = getContainerPropsValue(
|
|
179
|
+
this.is_order_by_show_group = getContainerPropsValue(
|
|
195
180
|
container,
|
|
196
|
-
"content.
|
|
197
|
-
"
|
|
181
|
+
"content.is_order_by_show_group",
|
|
182
|
+
"N"
|
|
198
183
|
);
|
|
199
184
|
},
|
|
200
185
|
handlePop() {
|