jufubao-base 1.0.258-beta2 → 1.0.258

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.258-beta2",
3
+ "version": "1.0.258",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -307,7 +307,6 @@ export default {
307
307
  list: [
308
308
  {"label": "焦点图显示", "value": 1},
309
309
  {"label": "轮播图显示", "value": 2},
310
- {"label": "滑块", "value": 3},
311
310
  ]
312
311
  },
313
312
  params['isCarousel'] === 2 && {
@@ -362,8 +361,6 @@ export default {
362
361
  valueKey: 'jdRows',
363
362
  groupKey:'content',
364
363
  value: params.jdRows,
365
- defaultValue: params['isCarousel']===3?1:params.jdRows,
366
- disabled: params['isCarousel']===3,
367
364
  className: 'input60',
368
365
  labelInline: true,
369
366
  list: [
@@ -1,7 +1,6 @@
1
1
  <template>
2
2
  <view class="sreen">
3
- <view v-if="!config['carouselType']">
4
- <view
3
+ <view
5
4
  class="sreen__box notCarousel"
6
5
  :class="{
7
6
  cell4: config['column'] === 4,
@@ -129,30 +128,6 @@
129
128
  <!--#endif-->
130
129
  </xd-swiper-dot>
131
130
  </view>
132
- </view>
133
- <view v-else>
134
- <scroll-view scroll-x="true">
135
- <view class="scroll-box">
136
- <view
137
- v-for="item in content"
138
- :key="item['content_id']"
139
- @click="handleClick(item)"
140
- :style="[config['iconItemStyleComp']]"
141
- >
142
- <view :style="[config['iconItemBoxStyleComp']]">
143
- <view :style="[config['iconStyleComp']]" class="image">
144
- <image :src="item.image_url"></image>
145
- </view>
146
- </view>
147
- <view
148
- class="content_name"
149
- v-if="item['content_name']"
150
- :style="[config['titleStyle']]"
151
- >{{item['content_name']}}</view>
152
- </view>
153
- </view>
154
- </scroll-view>
155
- </view>
156
131
  </view>
157
132
  </template>
158
133
 
@@ -232,8 +207,6 @@
232
207
 
233
208
  },
234
209
  created() {
235
- console.log(this.content,'content');
236
-
237
210
  this.isPreview = this.$configProject.isPreview;
238
211
  this.init();
239
212
  },
@@ -371,12 +344,6 @@
371
344
  }
372
345
  }
373
346
  }
374
- .scroll-box {
375
- width: 100%;
376
- display: flex;
377
- align-items: center;
378
- white-space: nowrap;
379
- }
380
347
  }
381
348
 
382
349
 
@@ -83,7 +83,6 @@
83
83
  bgColor:'rgba(0,0,0,0)',
84
84
  bgRadius: 0,
85
85
  bgImage: "",
86
- carouselType: ''
87
86
  }
88
87
  },
89
88
  computed: {
@@ -148,8 +147,7 @@
148
147
  height: this.iconWH.height,
149
148
  width: this.iconWH.width,
150
149
  titleStyle: this.titleStyle,
151
- dotStyleData: this.dotStyleData,
152
- carouselType: this.carouselType
150
+ dotStyleData: this.dotStyleData
153
151
  }
154
152
  },
155
153
  iconItemStyleComp(){
@@ -244,11 +242,7 @@
244
242
 
245
243
  //content
246
244
  this.mode = getContainerPropsValue(container, 'content.dot_type', 'round');
247
- this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
248
- if(this.isCarousel===3){
249
- this.carouselType='slider'
250
- }
251
- this.isCarousel = this.isCarousel=== 2
245
+ this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1) === 2;
252
246
  this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
253
247
  let useNumberDefault = 20;
254
248
  if(this.isCarousel === false) useNumberDefault = this.row * this.column;
@@ -137,6 +137,28 @@ export default {
137
137
  scanType: ["qrCode"],
138
138
  // 扫描成功后的回调函数
139
139
  success: (res) => {
140
+ console.log(res.resultStr,'res.resultStr');
141
+ // 判断res.resultStr是否包含'wx/cake/index/'
142
+ if(res.resultStr.includes('wx/cake/index/')){
143
+ // 将res.resultStr以'wx/cake/index/'分割,取分割后的第一个元素
144
+ let shop_id=res.resultStr.split('wx/cake/index/')[1]
145
+ // 将shop_id以'_'分割,取分割后的第一个元素
146
+ shop_id = shop_id.split('_')[0]
147
+ // 将shop_id转换为整数,并加上100000
148
+ shop_id = parseInt(shop_id)+100000
149
+ // 将shop_id转换为Base64编码的URI
150
+ let xParams = `shop_id:${shop_id}`
151
+ xParams = Base64.encodeURI(xParams)
152
+ // 拼接change_url和x-params参数
153
+ let path = `${this.change_url}?x-params=${xParams}&referrer=official`;
154
+ // 打印xParams和path
155
+ console.log(xParams,'pathpath');
156
+ // 跳转到指定路径
157
+ this.$xdUniHelper.navigateTo({
158
+ url: path,
159
+ });
160
+ return
161
+ }
140
162
  // 定义一个变量params,将url按照"?"进行分割,获取到参数部分
141
163
  let params = res.resultStr.split("?")[1]
142
164
  ? res.resultStr.split("?")[1]
@@ -225,6 +247,27 @@ export default {
225
247
  uni.scanCode({
226
248
  scanType: ["qrCode"],
227
249
  success: (res) => {
250
+ // 判断res.resultStr是否包含'wx/cake/index/'
251
+ if(res.result.includes('wx/cake/index/')){
252
+ // 将res.resultStr以'wx/cake/index/'分割,取分割后的第一个元素
253
+ let shop_id=res.result.split('wx/cake/index/')[1]
254
+ // 将shop_id以'_'分割,取分割后的第一个元素
255
+ shop_id = shop_id.split('_')[0]
256
+ // 将shop_id转换为整数,并加上100000
257
+ shop_id = parseInt(shop_id)+100000
258
+ // 将shop_id转换为Base64编码的URI
259
+ let xParams = `shop_id:${shop_id}`
260
+ xParams = Base64.encodeURI(xParams)
261
+ // 拼接change_url和x-params参数
262
+ let path = `${this.change_url}?x-params=${xParams}&referrer=official`;
263
+ // 打印xParams和path
264
+ console.log(xParams,'pathpath');
265
+ // 跳转到指定路径
266
+ this.$xdUniHelper.navigateTo({
267
+ url: path,
268
+ });
269
+ return
270
+ }
228
271
  // 定义一个变量params,将url按照"?"进行分割,获取到参数部分
229
272
  let params = res.result.split("?")[1] ? res.result.split("?")[1] : "";
230
273
  // 将参数部分按照"&"进行分割,获取到每个参数