jufubao-base 1.0.269-beta3 → 1.0.269-beta4
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
|
@@ -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;
|
|
@@ -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="
|
|
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;">¥
|
|
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'">有效期至:
|
|
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
|