jufubao-base 1.0.269-beta3 → 1.0.269-beta5

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.269-beta3",
3
+ "version": "1.0.269-beta5",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -145,6 +145,9 @@
145
145
  >
146
146
  <shop-list
147
147
  v-if="showShopList"
148
+ :style="{
149
+ '--main-color': mainColor,
150
+ }"
148
151
  :getList="p_getShopList"
149
152
  @handleCityDone="handleCityDone"
150
153
  @handleCityChange="handleCityChange"
@@ -13,7 +13,7 @@
13
13
  </view>
14
14
  <view class="shop_list" v-if="list && list.length">
15
15
  <view
16
- class="shop_item"
16
+ class="shop_item" :class="{active: i === 0}"
17
17
  v-for="(item,i) in list"
18
18
  :key="item.shop_id"
19
19
  @click="$emit('onChose', item)"
@@ -196,6 +196,11 @@ export default {
196
196
  background: #FFFFFF;
197
197
  padding: 20rpx;
198
198
  margin-bottom: 20rpx;
199
+ border-radius: 12rpx;
200
+
201
+ &.active{
202
+ border: 1px solid var(--main-color);
203
+ }
199
204
  }
200
205
  .shop_image{
201
206
  width: 200rpx;
@@ -439,6 +439,7 @@ export default {
439
439
  customLogoUrl: {}, //自定义logo地址
440
440
  loginMenuMargin: {},
441
441
  share_code: "",
442
+ xShare: "",
442
443
  };
443
444
  },
444
445
  computed: {
@@ -611,6 +612,7 @@ export default {
611
612
  this.dialogPreview = true;
612
613
  }
613
614
  if(options['x-share']){
615
+ this.xShare = options['x-share'];
614
616
  let decodeParams = Base64.decode(options['x-share']);
615
617
  try{
616
618
  let commonParams = JSON.parse(decodeParams);
@@ -810,11 +812,10 @@ export default {
810
812
  urlStr = `url=${url}`;
811
813
  }
812
814
 
813
-
814
815
  //需要授权操作
815
816
  if (res.auth_code) {
816
817
  this.$xdUniHelper.navigateTo({
817
- url: `${regUrl}?auth_code=${res.auth_code}&provider_id=${this.quickLogin.provider_id}&${urlStr}`,
818
+ url: `${regUrl}?auth_code=${res.auth_code}&provider_id=${this.quickLogin.provider_id}&x-share=${this.xShare}&${urlStr}`,
818
819
  });
819
820
  }
820
821
  //无需授权直接进行登录
@@ -931,7 +932,6 @@ export default {
931
932
  }
932
933
  }, 1000);
933
934
  }).catch((error) => {
934
- debugger
935
935
  this.$xdHideLoading();
936
936
  console.error(error);
937
937
  this.$xdLog.catch(error)
@@ -13,6 +13,16 @@ module.exports = [
13
13
  isRule: false,
14
14
  isConsole: true,
15
15
  disabled: true,
16
+ },
17
+ {
18
+ mapFnName: "getVipMoneySaving",
19
+ title: "获取会员省钱金额",
20
+ path: '/member/v1/money-saving-record/total-amount',
21
+ isRule: false,
22
+ params: {
23
+ },
24
+ isConsole: true,
25
+ disabled: true
16
26
  }
17
27
 
18
28
  ];
@@ -20,18 +20,18 @@
20
20
  <image v-else @click="handleToPersonal" :style="{border: `1px solid ${imageColor}`, borderRadius:imageRadius}" src="https://img1-b.jufubao.cn/uploads/20250528/e88bb70d4ccdcdd01a277bdf6b66c488.jpg"></image>
21
21
  <view class="jfb-base-user-info__body-plus-header-top-left-info">
22
22
  <view class="jfb-base-user-info__body-plus-header-top-left-info-name" v-if="logined">
23
- <view :style="is_vip==='Y'?[plusNickNameStyle]:[normalNickNameStyle]">{{userInfo|getName}} </view>
23
+ <view :style="[nickStyleComp]">{{userInfo|getName}} </view>
24
24
  <view v-if="is_vip==='Y'"><text>PLUS</text>会员</view>
25
25
  <view v-else>普通用户</view>
26
26
  </view>
27
27
  <view>
28
28
  <view v-if="is_vip==='Y'">
29
- <text style="color:#D19E6B;">已省</text><text style="color: #FEE9CC;">¥30.00</text>
29
+ <text style="color:#D19E6B;">已省</text><text style="color: #FEE9CC;">¥{{ $xdUniHelper.divisionFloatNumber(save_amount, 100) }}</text>
30
30
  </view>
31
- <view v-else>
31
+ <!-- <view v-else>
32
32
  <text style="color:#CCCCCC;">开通会员预计可省</text>
33
33
  <text style="color:#FFFFFF;">¥49.00</text>
34
- </view>
34
+ </view> -->
35
35
  </view>
36
36
  </view>
37
37
  </view>
@@ -42,7 +42,7 @@
42
42
  <view :style="[boxPlusStyleCompBottom]" :class="is_vip==='Y'?'is_vip_bottom':'is_normal_bottom'"
43
43
  class="jfb-base-user-info__body-plus-header-bottom">
44
44
  <view class="_left">
45
- <view v-if="is_vip==='Y'">有效期至:2025年10月01日</view>
45
+ <view v-if="is_vip==='Y'">有效期至:{{ userInfo.vip_expire_time }}</view>
46
46
  <view v-else></view>
47
47
  </view>
48
48
  <view class="_right">
@@ -204,6 +204,9 @@
204
204
  if (this.is_border === 'Y') return `${this.is_border_w}rpx ${this.is_border_s} ${this.is_border_c}`;
205
205
  else return '0';
206
206
  },
207
+ nickStyleComp(){
208
+ return this.is_vip==='Y'? this.plusNickNameStyle:this.normalNickNameStyle
209
+ },
207
210
  plusNickNameStyle() {
208
211
  return {
209
212
  fontSize: this.plusNickStyle.fontSize || '32rpx',
@@ -257,6 +260,7 @@
257
260
  isSetting: 'N',
258
261
  // logoutName:'[退出登录]',
259
262
  imageRadius: '50%',
263
+ save_amount: 0,
260
264
 
261
265
  //基础
262
266
  imageColor: '#333',
@@ -378,10 +382,14 @@
378
382
  }).then(res => {
379
383
  res = res || {};
380
384
  if(res['head_url']) res['head_url'] = getServiceUrl(res['head_url'], 'size2')
385
+ res.vip_expire_time = this.$xdUniHelper.getDate(
386
+ res.vip_expire_time * 1000
387
+ ).fullDate;
381
388
  this.userInfo = res;
382
389
  }).catch(error => {
383
390
  console.log('getBaseUserInfo', error)
384
391
  })
392
+ this.p_getVipMoneySaving();
385
393
  },
386
394
  /**
387
395
  * @description 监听事件变化
@@ -451,6 +459,14 @@
451
459
  this.$xdRoot.$emit("setLayoutPageBg", bg);
452
460
  }
453
461
  },
462
+ p_getVipMoneySaving(){
463
+ jfbRootExec("getVipMoneySaving", {
464
+ vm: this,
465
+ data: {}
466
+ }).then(res => {
467
+ this.save_amount = res.save_amount;
468
+ })
469
+ },
454
470
  handleToPersonal(){
455
471
  this.$xdUniHelper.navigateTo({
456
472
  url: this.profilePath