jufubao-base 1.0.243-beta202 → 1.0.243-beta203

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.243-beta202",
3
+ "version": "1.0.243-beta203",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -19,7 +19,7 @@
19
19
  </view>
20
20
  </view>
21
21
  <view v-if="showRadio" style="margin-left: 10rpx;">
22
- <xd-radio :value="item.checked" @change="handleChangeRadio(item)"></xd-radio>
22
+ <xd-radio :value="item.checked" @change="checked => handleChangeRadio(item, checked)"></xd-radio>
23
23
  </view>
24
24
  </view>
25
25
  </view>
@@ -81,11 +81,11 @@
81
81
  let params = this.getReturnParams();
82
82
  this.$emit("change", params);
83
83
  },
84
- handleChangeRadio(prod){
84
+ handleChangeRadio(prod, checked){
85
85
  //单选逻辑,选中一个取消其他所有勾选状态
86
86
  this.uiList = this.uiList.map(item => {
87
87
  if(prod.product_id === item.product_id && prod.sku_id === item.sku_id){
88
- return {...item, checked: true};
88
+ return {...item, checked: checked};
89
89
  }
90
90
  return {...item, checked: false};
91
91
  })
@@ -94,7 +94,7 @@
94
94
  <view class="sec_tag _refund">退/换商品</view>
95
95
  </view>
96
96
  <view v-if="refundProductList.length" class="sec_title">
97
- <SecProd v-for="(item, i) in refundProductList" :key="i" :item="item"></SecProd>
97
+ <SecProd class="sec_prod" v-for="(item, i) in refundProductList" :key="i" :item="item"></SecProd>
98
98
  </view>
99
99
  <view class="sec_body">
100
100
  <view class="sec_item" v-for="(item, i) in orderInfoList" :key="i">
@@ -115,7 +115,7 @@
115
115
  </view>
116
116
  </view>
117
117
  <view v-if="baseInfo.is_show_cancel_btn==='Y' || baseInfo.is_show_delete_btn==='Y'" class="bottom_fixed" :style="prod_bottom">
118
- <view v-if="baseInfo.is_show_cancel_btn==='Y'" class="opt_btn primary" @click="handleCancel">撤销</view>
118
+ <view v-if="baseInfo.is_show_cancel_btn==='Y'" class="opt_btn default" @click="handleCancel">取消申请</view>
119
119
  <view v-if="baseInfo.is_show_delete_btn==='Y'" class="opt_btn" @click="handleDel">删除</view>
120
120
  </view>
121
121
  </view>
@@ -452,6 +452,10 @@
452
452
  color: #333333;
453
453
  font-weight: 500;
454
454
  margin-bottom: 24rpx;
455
+
456
+ .sec_prod + .sec_prod{
457
+ margin-top: 24rpx;
458
+ }
455
459
  }
456
460
  .sec_body{
457
461
  font-size: 24rpx;
@@ -535,6 +539,12 @@
535
539
  & + .opt_btn{
536
540
  margin-left: 20rpx;
537
541
  }
542
+ &.default{
543
+ background: #EFEFEF;
544
+ border-color: #EFEFEF;
545
+ color: #999999;
546
+ width: 140rpx;
547
+ }
538
548
  &.primary{
539
549
  background: var(--main-color);
540
550
  border-color: var(--main-color);
@@ -58,7 +58,10 @@
58
58
  :size="28"
59
59
  ></xd-font-icon>
60
60
  {{item.business_name}}</view>
61
- <view class="service_type" :style="getMethodTypeStyle(item.after_sale_method)">{{ item.after_sale_method_name }}</view>
61
+ <view class="service_type" :style="getMethodTypeStyle(item.after_sale_method)">
62
+ <xd-font-icon :icon="getMethodTypeIcon(item.after_sale_method)" size="32"></xd-font-icon>
63
+ <view style="margin-left: 8rpx;">{{ item.after_sale_method_name }}</view>
64
+ </view>
62
65
  </view>
63
66
  <view class="service_body">
64
67
  <view class="service_number">服务单号:{{ item.service_order_id }}</view>
@@ -74,7 +77,7 @@
74
77
  </view>
75
78
  <view class="service_foot">
76
79
  <view v-if="item.is_show_cancel_btn === 'Y'" class="opt_btn default" @click.stop="handleCancel(item)">取消申请</view>
77
- <view v-if="item.is_show_delete_btn === 'Y'" class="opt_btn" @click.stop="handleDel(item)">删除</view>
80
+ <view v-if="item.is_show_delete_btn === 'Y'" class="opt_btn default" @click.stop="handleDel(item)">删除</view>
78
81
  </view>
79
82
  </view>
80
83
  </view>
@@ -205,10 +208,23 @@
205
208
  return { color: "#43CF7C" };
206
209
  case "good":
207
210
  return { color: "#FF8D1A" };
211
+ case "zero":
212
+ return { color: "#FF8D1A" };
208
213
  default:
209
214
  return {};
210
215
  }
211
216
  },
217
+ getMethodTypeIcon(method){
218
+ let method_icon = {
219
+ 'refund_and_good': "icontuikuan",
220
+ 'refund': "icontuihuo",
221
+ 'exchange': "iconhuanhuo",
222
+ 'again': "iconbufa",
223
+ 'zero': 'iconhuanhuo'
224
+ }
225
+ return method_icon[method] || "";
226
+
227
+ },
212
228
  handleSearch(e){
213
229
  console.log("handleSearch",e)
214
230
  this.page_token = 1;
@@ -411,6 +427,10 @@
411
427
  margin-right: 16rpx;
412
428
  }
413
429
  }
430
+ .service_type{
431
+ display: flex;
432
+ align-items: center;
433
+ }
414
434
  }
415
435
  .service_body{
416
436
  .service_number{
@@ -26,6 +26,17 @@ export default {
26
26
  });
27
27
  },
28
28
  },
29
+ {
30
+ label: "是否展示主业务线",
31
+ ele: "xd-radio",
32
+ valueKey: "isShowBuss",
33
+ groupKey:'content',
34
+ value: 'N',
35
+ list: [
36
+ {label: "展示", value: "Y"},
37
+ {label: "隐藏", value: "N"},
38
+ ]
39
+ },
29
40
  {
30
41
  label: '票券解绑成功回跳地址:',
31
42
  ele: 'xd-select-pages-path',
@@ -51,14 +51,12 @@
51
51
  <view class="card_sec">券号:{{ info.card_number }}</view>
52
52
  <view class="card_sec">有效期:{{ info.end_time }}</view>
53
53
  <view class="card_sec">
54
- 余额:{{ info.card_point }}{{ info.unit }}
55
- <text v-if="info.other_card_point && info.card_point_type === 2"
54
+ <text>{{isShowBuss==='Y'?info.main_business_code_name:''}}余额:{{ info.card_point }}{{ info.unit }}</text>
55
+ <text
56
+ v-if="info.other_card_point && info.card_point_type === 2"
56
57
  style="font-size: 24rpx;margin-left: 20rpx;"
57
58
  >(购买其他物品可抵:{{info.other_card_point}} {{ info.unit }})</text>
58
59
  </view>
59
- <!-- <view class="card_other" v-if="info.other_card_point && info.card_point_type === 2">
60
- <text>购买其他物品可抵:</text><text>{{info.other_card_point}} {{ info.unit }}</text>
61
- </view> -->
62
60
  </view>
63
61
  </view>
64
62
  <view
@@ -145,6 +143,7 @@ export default {
145
143
  return {
146
144
  userInfo: null, //用户信息(暂时不可用)
147
145
  entryGroupId: '',//加载入口数据组别
146
+ isShowBuss:'N',//是否展示主营业务线
148
147
 
149
148
  info: null,
150
149
  timeStr: "",
@@ -225,6 +224,7 @@ export default {
225
224
  * @param container {object} 业务组件对象自己
226
225
  */
227
226
  init(container) {
227
+ this.isShowBuss = getContainerPropsValue(container, 'content.isShowBuss', 'N')
228
228
  this.backUrl = getContainerPropsValue(container, "content.back_url", { value: "" }).value;
229
229
  this.shift_url = getContainerPropsValue(container, "content.shift_url", { value: "" }).value;
230
230
  this.give_url = getContainerPropsValue(container, "content.give_url", { value: "" }).value;
@@ -574,7 +574,7 @@ export default {
574
574
  border-radius: 24rpx;
575
575
  padding: 24rpx;
576
576
 
577
-
577
+
578
578
  &-title{
579
579
  display: flex;
580
580
  font-size: 32rpx;
@@ -61,11 +61,11 @@ export default {
61
61
  //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
62
62
  //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
63
63
  }
64
-
64
+
65
65
  //获取返回参数(场景类型名称为必填)
66
66
  //获取返回参数(场景类型名称为必填)
67
67
  let loading = { close(){}}
68
-
68
+
69
69
  //获取显示内容
70
70
  if (action === 'screen') {
71
71
  XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
@@ -77,9 +77,9 @@ export default {
77
77
  console.error(error);
78
78
  loading.close();
79
79
  });
80
-
80
+
81
81
  }
82
-
82
+
83
83
  //获取返回参数(广告位高度必选项)
84
84
  if (action === 'getNewsInfo') {
85
85
  XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
@@ -92,7 +92,7 @@ export default {
92
92
  console.error(error);
93
93
  });
94
94
  }
95
-
95
+
96
96
  //获取产品业务线列表
97
97
  if (action === 'namespace') {
98
98
  XdBus.getParentApi('getOptionsNamespaces')({})
@@ -105,7 +105,7 @@ export default {
105
105
  console.error(error);
106
106
  });
107
107
  }
108
-
108
+
109
109
  //使用内容分类
110
110
  if (action === 'cmsPublishEditxContent') {
111
111
  loading = XdBus.getParentApi('loading')({});
@@ -120,7 +120,7 @@ export default {
120
120
  console.error(error);
121
121
  });
122
122
  }
123
-
123
+
124
124
  //位置列表
125
125
  if (action === 'getListPostion') {
126
126
  loading = XdBus.getParentApi('loading')({});
@@ -134,7 +134,7 @@ export default {
134
134
  console.error(error);
135
135
  });
136
136
  }
137
-
137
+
138
138
  //位置创建
139
139
  if (action === 'addPostion') {
140
140
  loading = XdBus.getParentApi('loading')({});
@@ -149,7 +149,7 @@ export default {
149
149
  data.cb(false)
150
150
  });
151
151
  }
152
-
152
+
153
153
  //位置编辑
154
154
  if (action === 'editPostion') {
155
155
  loading = XdBus.getParentApi('loading')({});
@@ -164,7 +164,7 @@ export default {
164
164
  data.cb(false)
165
165
  });
166
166
  }
167
-
167
+
168
168
  //位置删除
169
169
  if (action === 'deleltePostion') {
170
170
  loading = XdBus.getParentApi('loading')({});
@@ -179,7 +179,7 @@ export default {
179
179
  data.cb(false)
180
180
  });
181
181
  }
182
-
182
+
183
183
  //获取广告位内容列表
184
184
  if (action === 'getListContent') {
185
185
  loading = XdBus.getParentApi('loading')({});
@@ -193,7 +193,7 @@ export default {
193
193
  console.error(error);
194
194
  });
195
195
  }
196
-
196
+
197
197
  //广告内容创建
198
198
  if (action === 'addContent') {
199
199
  loading = XdBus.getParentApi('loading')({});
@@ -208,7 +208,7 @@ export default {
208
208
  data.cb(false)
209
209
  });
210
210
  }
211
-
211
+
212
212
  //广告内容编辑
213
213
  if (action === 'editContent') {
214
214
  loading = XdBus.getParentApi('loading')({});
@@ -223,7 +223,7 @@ export default {
223
223
  data.cb(false)
224
224
  });
225
225
  }
226
-
226
+
227
227
  //广告内容删除
228
228
  if (action === 'deleteContent') {
229
229
  loading = XdBus.getParentApi('loading')({});
@@ -238,7 +238,7 @@ export default {
238
238
  data.cb(false)
239
239
  });
240
240
  }
241
-
241
+
242
242
  //内容发布
243
243
  if (action === 'publish') {
244
244
  loading = XdBus.getParentApi('loading')({});
@@ -253,7 +253,7 @@ export default {
253
253
  console.error(error);
254
254
  });
255
255
  }
256
-
256
+
257
257
  //通知页面进行刷新
258
258
  if (action === 'update') {
259
259
  loading = XdBus.getParentApi('loading')({});
@@ -276,6 +276,17 @@ export default {
276
276
  inline: false,
277
277
  notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
278
278
  },
279
+ {
280
+ label: "是否展示主业务线",
281
+ ele: "xd-radio",
282
+ valueKey: "isShowBuss",
283
+ groupKey:'content',
284
+ value: data['isShowBuss'] || "N",
285
+ list: [
286
+ {label: "展示", value: "Y"},
287
+ {label: "隐藏", value: "N"},
288
+ ]
289
+ },
279
290
  {
280
291
  label: "是否展示核销二维码",
281
292
  ele: "xd-radio",
@@ -211,7 +211,7 @@
211
211
  <text>{{item.end_time}}</text>
212
212
  </view>
213
213
  <view class="card-list__yue">
214
- <text>余额:</text>
214
+ <text>{{isShowBuss==='Y'?item.main_business_code_name:''}}余额:</text>
215
215
  <text>{{item.card_point}} {{ item.unit }}</text>
216
216
  </view>
217
217
  <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
@@ -388,7 +388,7 @@
388
388
  <text>{{item.end_time}}</text>
389
389
  </view>
390
390
  <view class="card-list__yue">
391
- <text>余额:</text>
391
+ <text>{{item.main_business_code_name}}余额:</text>
392
392
  <text>{{item.card_point}} {{ item.unit }}</text>
393
393
  </view>
394
394
  <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
@@ -511,6 +511,7 @@ export default {
511
511
  inCallbackUrlOrg:'',//是否带有回调地址
512
512
  isChange:'N',
513
513
  isTransfering:'N',
514
+ isShowBuss:'N',
514
515
 
515
516
  //提示文案
516
517
  noticeBackgroundColor: "",
@@ -619,6 +620,7 @@ export default {
619
620
  this.cardLayout = getContainerPropsValue(container,"content.cardLayout","1");
620
621
  this.changeUrl = getContainerPropsValue(container,"content.change_url",{value: ""}).value;
621
622
  this.disabledUrl = getContainerPropsValue(container,"content.disabled_url",{value: ""}).value;
623
+ this.isShowBuss = getContainerPropsValue(container,'content.isShowBuss', 'N')
622
624
  this.bindUrl = getContainerPropsValue(container,"content.bind_url",{value: ""}).value;
623
625
  this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
624
626
  this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
@@ -3,6 +3,25 @@
3
3
  module.exports = {
4
4
  getListEntryCardBind: {
5
5
  "list": [
6
+ {"card_number":"101001000006820",
7
+ "card_point":4989,
8
+ "card_type":"59",
9
+ "card_type_name":"多余额福卡2",
10
+ "unit":"点",
11
+ "end_time":"2024-09-09",
12
+ "is_valid":"Y",
13
+ "main_business_code_name":"电影(勿改)、蛋糕(勿改)",
14
+ "other_card_point":3991,
15
+ "is_exchange":"N",
16
+ "card_point_type":2,
17
+ "business_codes":["cake","market","movie"],
18
+ "is_login":"N",
19
+ "consume_type":"1",
20
+ "card_use_rule":"可凭本票券到电影(勿改)、商城(对应百货)(勿改)、蛋糕(勿改)使用",
21
+ "is_transfering":"N",
22
+ "show_name":"多余额福卡2",
23
+ "is_show_baseinfo":"N","is_gift":"N"
24
+ },
6
25
  {
7
26
  "card_number": "101001000008422",
8
27
  "card_point": 100000,
@@ -16,7 +35,7 @@ module.exports = {
16
35
  "is_exchange": "N",
17
36
  "is_transfering":"Y",
18
37
  "card_point_type": 1,
19
- "is_login":'Y',
38
+ "is_login":'N',
20
39
  "is_gift":"Y",
21
40
  "business_codes": ["health"]
22
41
  }, {
@@ -27,9 +27,7 @@
27
27
  <view class="card_info">
28
28
  <view class="card_type">券号:{{ info.card_number }}</view>
29
29
  <view class="card_sec">有效期:{{ info.end_time }}</view>
30
- <view class="card_sec"
31
- >余额:{{ info.card_point }}{{ info.unit }}</view
32
- >
30
+ <view class="card_sec">余额:{{ info.card_point }}{{ info.unit }}</view>
33
31
  <view
34
32
  class="card_other"
35
33
  v-if="info.other_card_point && info.card_point_type === 2"
@@ -136,7 +134,7 @@
136
134
  <xd-button @click="toSeeShareImg" width="260rpx" type="primary" size="small"
137
135
  >查看分享图片</xd-button>
138
136
  </view>
139
-
137
+
140
138
  <!-- #endif -->
141
139
  </view>
142
140
  </xd-dailog>
@@ -26,30 +26,6 @@ export default {
26
26
  });
27
27
  },
28
28
  },
29
- {
30
- label: '票券绑定成功回跳地址:',
31
- ele: 'xd-select-pages-path',
32
- valueKey: 'back_url',
33
- groupKey:'advanced',
34
- placeholder: '请选择票券绑定成功回跳地址',
35
- value: null,
36
- setting: {
37
- router: XdBus.getParentApi('getPagesTree'),
38
- },
39
- inline: false,
40
- },
41
- {
42
- label: '我的票券跳转地址:',
43
- ele: 'xd-select-pages-path',
44
- valueKey: 'my_card_url',
45
- groupKey:'advanced',
46
- placeholder: '请选择我的票券跳转地址',
47
- value: null,
48
- setting: {
49
- router: XdBus.getParentApi('getPagesTree'),
50
- },
51
- inline: false,
52
- },
53
29
  {
54
30
  label: '票券号码框自定义文案:',
55
31
  ele: 'el-input',
@@ -80,6 +56,41 @@ export default {
80
56
  {label: "是", value: "Y"},
81
57
  {label: "否", value: "N"},
82
58
  ]
83
- }
59
+ },
60
+ {
61
+ label: "是否展示主业务线",
62
+ ele: "xd-radio",
63
+ valueKey: "isShowBuss",
64
+ groupKey:'content',
65
+ value: 'N',
66
+ list: [
67
+ {label: "展示", value: "Y"},
68
+ {label: "隐藏", value: "N"},
69
+ ]
70
+ },
71
+ {
72
+ label: '票券绑定成功回跳地址:',
73
+ ele: 'xd-select-pages-path',
74
+ valueKey: 'back_url',
75
+ groupKey:'advanced',
76
+ placeholder: '请选择票券绑定成功回跳地址',
77
+ value: null,
78
+ setting: {
79
+ router: XdBus.getParentApi('getPagesTree'),
80
+ },
81
+ inline: false,
82
+ },
83
+ {
84
+ label: '我的票券跳转地址:',
85
+ ele: 'xd-select-pages-path',
86
+ valueKey: 'my_card_url',
87
+ groupKey:'advanced',
88
+ placeholder: '请选择我的票券跳转地址',
89
+ value: null,
90
+ setting: {
91
+ router: XdBus.getParentApi('getPagesTree'),
92
+ },
93
+ inline: false,
94
+ },
84
95
  ],
85
96
  };
@@ -85,7 +85,7 @@
85
85
  <text>{{info.end_time}}</text>
86
86
  </view>
87
87
  <view class="card-list__yue" v-if="isShowBalance">
88
- <text>余额:</text>
88
+ <text>{{isShowBuss==='Y'?info.main_business_code_name:''}}余额:</text>
89
89
  <text>{{info.card_point}} {{ info.unit }}</text>
90
90
  </view>
91
91
  <view class="card-list__other" v-if="info.is_bind_show_other_point === 'Y' && info.other_card_point && info.card_point_type === 2">
@@ -158,6 +158,7 @@ export default {
158
158
  card_pwd_placeholder: "",
159
159
  showInfo: false,
160
160
  entryGroupId: '',//加载入口数据组别
161
+ isShowBuss:'N',//是否展示主营业务线
161
162
 
162
163
  qrcode: "", //二维码
163
164
  showForm: true,
@@ -242,7 +243,8 @@ export default {
242
243
  this.handlerAfterBindCard(res);
243
244
  })
244
245
  .catch();
245
- } else {
246
+ }
247
+ else {
246
248
  jfbRootExec("pwdCardBindEntry", {
247
249
  vm: this,
248
250
  data: {
@@ -313,6 +315,7 @@ export default {
313
315
  this.card_pwd_placeholder = getContainerPropsValue(container, "content.card_pwd_placeholder", "请输入密码");
314
316
  this.my_card_url = getContainerPropsValue(container, 'content.my_card_url', { value: "" }).value;
315
317
  this.is_show_balance = getContainerPropsValue(container, 'content.is_show_balance', "N");
318
+ this.isShowBuss = getContainerPropsValue(container, 'content.isShowBuss', 'N')
316
319
  //'wechat_mini_program|default'
317
320
  this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
318
321
  },
@@ -312,8 +312,7 @@ export default {
312
312
  if(res.receive_method !== "batch") {
313
313
  if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
314
314
  if (this.isPreview) {
315
- console.log(getContainerPropsValue(value, "content.is_show_dailog", 'Y'))
316
- this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
315
+ this.isShow = getContainerPropsValue(this.container, "content.is_show_dailog", 'Y') === 'N';
317
316
  }else this.isShow = true;
318
317
  }else{
319
318
  this.handleCardBindClose();
@@ -324,8 +323,8 @@ export default {
324
323
  } else {
325
324
  if(res.can_take === "Y"){
326
325
  if (this.isPreview) {
327
- console.log(getContainerPropsValue(value, "content.is_show_dailog", 'Y'))
328
- this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
326
+ console.log(getContainerPropsValue(this.container, "content.is_show_dailog", 'Y'))
327
+ this.isShow = getContainerPropsValue(this.container, "content.is_show_dailog", 'Y') === 'N';
329
328
  }else this.isShow = true;
330
329
  }else{
331
330
  this.handleCardBindClose();
@@ -374,7 +373,7 @@ export default {
374
373
  });
375
374
  setTimeout(()=>{
376
375
  this.getDialogList();
377
- },2000)
376
+ },2000)
378
377
  return;
379
378
  }
380
379
  this.order_num = res.tmp_order_number;
@@ -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
@@ -271,6 +271,7 @@ export default {
271
271
  list: [
272
272
  { label: '全部用户', value: 'all' },
273
273
  { label: '仅会员', value: 'vip' },
274
+ { label: '非会员', value: 'notvip' },
274
275
  ]
275
276
  },
276
277
  {
@@ -152,10 +152,14 @@ export default {
152
152
  } else {
153
153
  if(this.showGroup==='all') {
154
154
  this.handlePop();
155
- }else {
155
+ } else if(this.showGroup==='vip') {
156
156
  if(this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP') {
157
157
  this.handlePop();
158
158
  }
159
+ } else if(this.showGroup==='notvip'){
160
+ if(!this.getTokenForKey('user_level')) {
161
+ this.handlePop();
162
+ }
159
163
  }
160
164
  }
161
165
  }