jufubao-base 1.0.440 → 1.0.441

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.
@@ -8,11 +8,11 @@
8
8
  */
9
9
  const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
10
  if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
11
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
12
  }
13
13
 
14
14
  if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/home/root/Base-Jufubao/xd-uni-library-editx/${threePackagePath}`;
15
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
16
  }
17
17
 
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.440",
3
+ "version": "1.0.441",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -1,5 +1,8 @@
1
1
  'use strict';
2
- import { dataVal } from "@/utils/AttrTools";
2
+ import {
3
+ dataVal,
4
+ getAttrPathMsg
5
+ } from "@/utils/AttrTools";
3
6
 
4
7
  /**
5
8
  * @description 当表单组件中有联动操作时候,使用方法进行返回
@@ -7,6 +10,7 @@ import { dataVal } from "@/utils/AttrTools";
7
10
  export default {
8
11
  style: [],
9
12
  content: (data, gValue, gColor, oldData={}) => {
13
+ // const cardPath = getAttrPathMsg(data , 'cardPath', '票券列表');
10
14
  return [
11
15
  {
12
16
  ele: 'title',
@@ -25,6 +29,52 @@ export default {
25
29
  inline: false,
26
30
  placeholder: "输入消费标题"
27
31
  },
32
+ {
33
+ label: '去绑定票券',
34
+ ele: 'el-input',
35
+ valueKey: 'bindName',
36
+ value: dataVal({ data, key: 'bindName', dValue: '去绑定票券', gValue }),
37
+ groupKey: 'content',
38
+ className: 'input80',
39
+ labelInline: true,
40
+ inline: false,
41
+ placeholder: "输入去绑定票券自定义文案"
42
+ },
43
+
44
+ // {
45
+ // label: cardPath.label,
46
+ // ele: 'xd-select-pages-path',
47
+ // valueKey: cardPath['key'],
48
+ // groupKey:'advanced',
49
+ // placeholder: cardPath.hold,
50
+ // value: cardPath.path,
51
+ // labelInline:true,
52
+ // className: 'input100',
53
+ // setting: {
54
+ // mode:'new',
55
+ // router: XdBus.getParentApi('getPagesTree'),
56
+ // },
57
+ // inline: false,
58
+ // notice: '当用户票券列表为空时,使用到跳转到票券列表'
59
+ // },
60
+ {
61
+ label: '版本号:',
62
+ ele: 'el-input',
63
+ type: 'text',
64
+ groupKey: 'content',
65
+ valueKey: 'version',
66
+ value: 'v2.0',
67
+ hidden: true,
68
+ },
69
+ {
70
+ label: '过滤引用模版字段:',
71
+ ele: 'el-input',
72
+ type: 'text',
73
+ groupKey: 'content',
74
+ valueKey: 'refFilterKey',
75
+ value: '[]',
76
+ hidden: true,
77
+ },
28
78
  ].filter(i=>i)
29
79
  },
30
80
  advanced: [],
@@ -62,11 +62,14 @@
62
62
  </view>
63
63
  </view>
64
64
  </template>
65
-
66
65
  <view class="card-code__empty" v-else>
67
66
  <xd-no-data height="600rpx" :scaleSize="2">
68
- <view class="empty_txt">
69
- {{ card_number ? '卡券信息加载失败,请稍后重试' : '暂无可用票券' }}
67
+ <view class="empty_txt-list" >
68
+ <view>{{ card_number ? '卡券信息加载失败,请稍后重试' : '暂无可用票券' }}</view>
69
+ <view @click="handleBindCard">
70
+ <text :style="{color: mainColor}">{{bindName}}</text>
71
+ <xd-font-icon size="28" icon="iconxiangyou_xian"></xd-font-icon>
72
+ </view>
70
73
  </view>
71
74
  </xd-no-data>
72
75
  </view>
@@ -187,6 +190,7 @@
187
190
  import componentsMixins from "@/mixins/componentsMixins";
188
191
  import extsMixins from "@/mixins/extsMixins";
189
192
  import { Base64 } from "js-base64";
193
+ import {mapState} from "vuex";
190
194
 
191
195
  export default {
192
196
  name: "JfbBaseCardConsumpCode",
@@ -203,7 +207,7 @@
203
207
  ],
204
208
  data() {
205
209
  return {
206
- takeTitleName: '提货二维码',
210
+ closeMask: true,
207
211
  info: null,
208
212
  timeStr: "",
209
213
  timeer: null,
@@ -223,6 +227,11 @@
223
227
  show_type: 'normal', //normal:已绑定卡券 coupon: 优惠券
224
228
  card_number: '',
225
229
 
230
+ //基础
231
+ takeTitleName: '提货二维码',
232
+ bindName:'去绑定票券',
233
+ // cardPath:'',
234
+
226
235
  //品牌logo
227
236
  //#ifdef H5
228
237
  brandLogo: '//img.jufubao.cn/common/jufubao_logo.png?v=1.0.0',
@@ -234,6 +243,7 @@
234
243
  }
235
244
  },
236
245
  computed: {
246
+ ...mapState(['jfbAuthorize']),
237
247
  activityType() {
238
248
  return {
239
249
  color: '#E5010E',
@@ -251,6 +261,10 @@
251
261
  this.init(this.container);
252
262
  },
253
263
  methods: {
264
+ handleBindCard(){
265
+ if(this.$configProject['isPreview']) return;
266
+ this.jfbAuthorize.jumpToCardLogin(this);
267
+ },
254
268
  /**
255
269
  * @description 监听页面进入,开始拉取展码数据
256
270
  * @param options {object} 页面参数
@@ -289,6 +303,8 @@
289
303
  */
290
304
  init(container) {
291
305
  this.takeTitleName = gCPVal(container, 'takeTitleName', '提货二维码');
306
+ this.bindName = gCPVal(container, 'bindName', '去绑定票券');
307
+ //this.cardPath = gCPVal(container, 'cardPath', {value:''}).value;
292
308
  },
293
309
  /**
294
310
  * @description 未带卡号入参时,拉取可用票券列表并默认选中登录卡
@@ -527,12 +543,7 @@
527
543
  this.refrushTimeer = null;
528
544
  }
529
545
  },
530
- onJfbScroll(options) {
531
- console.log('event.onJfbScroll', options)
532
- },
533
- onJfbReachBottom(options) {
534
- console.log('event.onJfbReachBottom', options)
535
- },
546
+
536
547
  onJfbShow(options) {
537
548
  console.log('event.onJfbShow', options)
538
549
  //从其他页面返回时,二维码已失效且定时器已被清理,重新拉取展码数据
@@ -549,12 +560,6 @@
549
560
  onJfbBack(options) {
550
561
  this.clearAllTimer();
551
562
  },
552
- onJfbUpdate(...data) {
553
- console.log('event.onJfbUpdate', data)
554
- },
555
- onJfbCustomEvent(options) {
556
- console.log('event.onJfbReachBottom', options)
557
- },
558
563
  }
559
564
  }
560
565
 
@@ -793,6 +798,19 @@
793
798
  .align-center {
794
799
  align-items: center;
795
800
  }
801
+
802
+ .empty_txt-list {
803
+ display: flex;
804
+ justify-content: center;
805
+ align-items: center;
806
+
807
+ & > view:nth-child(2) {
808
+ margin: 0 unit(12, rpx);
809
+ display: flex;
810
+ justify-content: flex-start;
811
+ align-items: center;
812
+ }
813
+ }
796
814
  }
797
815
  }
798
816