jufubao-base 1.0.254-beta1 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.254-beta1",
3
+ "version": "1.0.254-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -378,8 +378,8 @@
378
378
  let data = {
379
379
  shop_id: this.shop_id,
380
380
  temp_order_id: this.temp_order_id,
381
- business_code: this.xnamespace,
382
- resource_shop_id: this.resource_shop_id
381
+ // business_code: this.xnamespace,
382
+ // resource_shop_id: this.resource_shop_id
383
383
  }
384
384
  if(data.resource_shop_id) delete data.shop_id
385
385
  jfbRootExec("getConsumpCode", {
@@ -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,30 +261,16 @@ export default {
248
261
  ]
249
262
  },
250
263
  {
251
- label: '展示位置:',
264
+ label: '是否开启展示方式过滤:',
252
265
  ele: 'xd-radio',
253
- valueKey: 'systemType',
266
+ valueKey: 'is_order_by_show_group',
254
267
  groupKey:'content',
255
- value: data['systemType'] || 'fuli',
256
- placeholder: '请选择展示位置',
268
+ value: data['is_order_by_show_group'] || 'N',
269
+ placeholder: '请选择是否开启展示方式过滤',
257
270
  className: 'input60',
258
271
  list: [
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
- { label: '非会员', value: 'notvip' },
272
+ { label: '', value: 'Y' },
273
+ { label: '', value: 'N' },
275
274
  ]
276
275
  },
277
276
  {
@@ -85,8 +85,7 @@ export default {
85
85
  currentIndex: 0,
86
86
  contentList: [],
87
87
  number: '',
88
- systemType: '',
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,21 +147,7 @@ export default {
147
147
  );
148
148
  }
149
149
  this.currentIndex = 0;
150
- if(this.systemType === 'fuli'){
151
- this.handlePop();
152
- } else {
153
- if(this.showGroup==='all') {
154
- this.handlePop();
155
- } else if(this.showGroup==='vip') {
156
- if(this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP') {
157
- this.handlePop();
158
- }
159
- } else if(this.showGroup==='notvip'){
160
- if(!this.getTokenForKey('user_level')) {
161
- this.handlePop();
162
- }
163
- }
164
- }
150
+ this.handlePop();
165
151
  }
166
152
  })
167
153
  .catch((error) => {
@@ -190,15 +176,10 @@ export default {
190
176
  );
191
177
  this.type = getContainerPropsValue(container, "content.type", "pop");
192
178
  this.number = getContainerPropsValue(container, "content.number", 1);
193
- this.systemType = getContainerPropsValue(
194
- container,
195
- "content.systemType",
196
- "fuli"
197
- );
198
- this.showGroup = getContainerPropsValue(
179
+ this.is_order_by_show_group = getContainerPropsValue(
199
180
  container,
200
- "content.showGroup",
201
- "all"
181
+ "content.is_order_by_show_group",
182
+ "N"
202
183
  );
203
184
  },
204
185
  handlePop() {