jufubao-base 1.0.237-beta8 → 1.0.237-beta9

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.237-beta8",
3
+ "version": "1.0.237-beta9",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -300,6 +300,28 @@ export default {
300
300
  groupKey:'style',
301
301
  hidden: true,
302
302
  },
303
+ {
304
+ label: "是否展示二维码",
305
+ ele: "xd-radio",
306
+ valueKey: "showQrcode",
307
+ value: data.showQrcode || "N",
308
+ list: [
309
+ {label: "不显示", value: "N"},
310
+ {label: "显示", value: "Y"}
311
+ ],
312
+ groupKey:'content',
313
+ },
314
+ {
315
+ label: "是否展示扫一扫",
316
+ ele: "xd-radio",
317
+ valueKey: "showScan",
318
+ value: data.showScan || "N",
319
+ list: [
320
+ {label: "不显示", value: "N"},
321
+ {label: "显示", value: "Y"}
322
+ ],
323
+ groupKey:'content',
324
+ },
303
325
  {
304
326
  label: "是否展示快捷入口",
305
327
  ele: "xd-radio",
@@ -356,6 +378,40 @@ export default {
356
378
  placeholder: '请选择快捷入口背景颜色',
357
379
  classNmae: 'input80',
358
380
  },
381
+ data.showQrcode === 'Y' && {
382
+ ele: 'title',
383
+ label: '二维码样式设置',
384
+ size: 'small',
385
+ groupKey:'style',
386
+ },
387
+ data.showQrcode === 'Y' && {
388
+ label: "二维码大小:",
389
+ ele: "el-input",
390
+ valueKey: "qrcodeSize",
391
+ value: data.qrcodeSize || 32,
392
+ type: "number",
393
+ groupKey: "style",
394
+ },
395
+ data.showQrcode === 'Y' && {
396
+ label: "二维码图标颜色:",
397
+ ele: 'xd-color',
398
+ valueKey: "qrCodeColor",
399
+ groupKey:'style',
400
+ value: data.qrCodeColor || '',
401
+ },
402
+ data.showScan === 'Y' && {
403
+ ele: "title",
404
+ label: "扫一扫样式设置",
405
+ size: "small",
406
+ groupKey: "style",
407
+ },
408
+ data.showScan === 'Y' && {
409
+ label: "扫一扫图标颜色:",
410
+ ele: 'xd-color',
411
+ valueKey: "scanIconColor",
412
+ value: data.scanIconColor || '',
413
+ groupKey:'style',
414
+ },
359
415
  {
360
416
  label: '是否有边框:',
361
417
  ele: 'xd-radio',
@@ -429,6 +485,32 @@ export default {
429
485
  notice:'<div><span style="color:red">客服类型</span>不需要配置</div>',
430
486
  inline: false,
431
487
  },
488
+ {
489
+ label: '二维码跳转链接:',
490
+ ele: 'xd-select-pages-path',
491
+ valueKey: 'qrcodePath',
492
+ groupKey:'advanced',
493
+ placeholder: '选择二维码跳转链接',
494
+ value: data['qrcodePath'] || null,
495
+ setting: {
496
+ router: XdBus.getParentApi('getPagesTree'),
497
+ },
498
+ inline: false,
499
+ hidden: data.showQrcode === 'N'
500
+ },
501
+ {
502
+ label: "扫一扫跳转链接:",
503
+ ele: 'xd-select-pages-path',
504
+ valueKey: "scanPath",
505
+ groupKey:'advanced',
506
+ placeholder: '选择扫一扫跳转链接',
507
+ value: data['scanPath'] || null,
508
+ setting: {
509
+ router: XdBus.getParentApi('getPagesTree'),
510
+ },
511
+ inline: false,
512
+ hidden: data.showScan === 'N'
513
+ },
432
514
  {
433
515
  label: '',
434
516
  ele: 'slot',
@@ -60,6 +60,9 @@
60
60
  :key="showLocationKey"
61
61
  ></xd-city-show-api>
62
62
  </view>
63
+ <view v-if="showScan==='Y'" class="scan_in" @click.stop="handleScanClick">
64
+ <xd-font-icon :size="32" :color="scanIconColor" icon="iconsaoma1"></xd-font-icon>
65
+ </view>
63
66
  <xd-font-icon v-if="searchIconPosition==='left'" :icon="icon" :color="iconColor" size="32"/>
64
67
  <input
65
68
  v-if="useSearch==='Y'"
@@ -78,6 +81,9 @@
78
81
  @click.stop="doSearch"
79
82
  >{{searchBtnText || '搜索'}}</view>
80
83
  </view>
84
+ <view v-if="showQrcode==='Y'" class="qr_code" @click.stop="handleQrCodeClick">
85
+ <xd-font-icon :size="qrcodeSize" icon="iconerweima" :color="qrCodeColor"></xd-font-icon>
86
+ </view>
81
87
  <view v-if="showSearchBtn==='Y' && searchBtnPosition==='out'"
82
88
  class="search_btn_out"
83
89
  :style="[searchBtnStyle]"
@@ -196,6 +202,13 @@
196
202
  searchBoxRadius: 30,
197
203
  bottomBorder: "",
198
204
  inputBorder: "",
205
+ showQrcode: "",
206
+ qrcodeSize: 32,
207
+ qrcodePath: "",
208
+ qrCodeColor: "",
209
+ showScan: "",
210
+ scanIconColor: "",
211
+ scanPath: "",
199
212
  }
200
213
  },
201
214
  watch: {
@@ -226,7 +239,11 @@
226
239
  this.useSearch = getContainerPropsValue(container, "content.useSearch", "Y");
227
240
  this.searchPagePath = getContainerPropsValue(container, "content.searchPagePath", {value:""}).value;
228
241
  this.choseCityPath = getContainerPropsValue(container, "content.choseCityPath", {value:""}).value;
229
-
242
+ this.showQrcode = getContainerPropsValue(container, "content.showQrcode", "");
243
+ this.qrcodeSize = getContainerPropsValue(container, "content.qrcodeSize", 32);
244
+ this.qrCodeColor = getContainerPropsValue(container, "content.qrCodeColor", "#333");
245
+ this.showScan = getContainerPropsValue(container, "content.showScan", "");
246
+ this.scanIconColor = getContainerPropsValue(container, "content.scanIconColor", "#333");
230
247
 
231
248
  //基础
232
249
  this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", '#fff');
@@ -263,6 +280,8 @@
263
280
  this.showQuickEntry = getContainerPropsValue(container, 'content.showQuickEntry', "N");
264
281
  this.quickEntryType = getContainerPropsValue(container, 'content.quickEntryType', "");
265
282
  this.quickEntryPath = getContainerPropsValue(container, 'content.quickEntryPath', {value:""}).value;
283
+ this.qrcodePath = getContainerPropsValue(container, 'content.qrcodePath', {value:""}).value;
284
+ this.scanPath = getContainerPropsValue(container, 'content.scanPath', {value:""}).value;
266
285
 
267
286
  let name , logo, platform_logo;
268
287
  if (this.projectAttr['site_name']) name = this.projectAttr['site_name'];
@@ -301,6 +320,16 @@
301
320
  })
302
321
  }
303
322
  },
323
+ handleQrCodeClick(){
324
+ this.$xdUniHelper.navigateTo({
325
+ url: this.qrcodePath
326
+ })
327
+ },
328
+ handleScanClick(){
329
+ this.$xdUniHelper.navigateTo({
330
+ url: this.scanPath
331
+ })
332
+ },
304
333
 
305
334
  /***
306
335
  * @description 定位完成事件
@@ -446,6 +475,20 @@
446
475
  padding: 0;
447
476
  }
448
477
  }
478
+ .scan_in{
479
+ position: relative;
480
+ padding-right: 28rpx;
481
+ margin-right: 20rpx;
482
+ &::before{
483
+ content: " ";
484
+ position: absolute;
485
+ width: 2rpx;
486
+ height: 100%;
487
+ background-color: #CCCCCC;
488
+ right: -0rpx;
489
+ top: 0rpx;
490
+ }
491
+ }
449
492
  .search_input{
450
493
  flex: 1;
451
494
  text-align: left;
@@ -479,6 +522,9 @@
479
522
  align-items: center;
480
523
  justify-content: center;
481
524
  }
525
+ .qr_code{
526
+ margin-left: 16rpx;
527
+ }
482
528
  }
483
529
  }
484
530
  }
@@ -66,7 +66,7 @@
66
66
  :key="showLocationKey"
67
67
  ></xd-city-show-api>
68
68
  </view>
69
- <view v-if="showScan==='Y'" class="scan_in" @click="handleScanClick">
69
+ <view v-if="showScan==='Y'" class="scan_in" @click.stop="handleScanClick">
70
70
  <xd-font-icon :size="32" :color="scanIconColor" icon="iconsaoma1"></xd-font-icon>
71
71
  </view>
72
72
  <xd-font-icon v-if="searchIconPosition==='left'" :icon="icon" :color="iconColor" size="32"/>
@@ -87,7 +87,7 @@
87
87
  @click.stop="doSearch"
88
88
  >{{searchBtnText || '搜索'}}</view>
89
89
  </view>
90
- <view v-if="showQrcode==='Y'" class="qr_code" @click="handleQrCodeClick">
90
+ <view v-if="showQrcode==='Y'" class="qr_code" @click.stop="handleQrCodeClick">
91
91
  <xd-font-icon :size="qrcodeSize" icon="iconerweima" :color="qrCodeColor"></xd-font-icon>
92
92
  </view>
93
93
  <view v-if="showSearchBtn==='Y' && searchBtnPosition==='out'"