jufubao-base 1.0.232-beta7 → 1.0.232-beta8
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 +1 -1
- package/src/components/JfbBaseCodeOpenVip/Attr.js +12 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +13 -2
- package/src/components/JfbBaseConsumpCode/Mock.js +1 -1
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +4 -3
- package/src/components/JfbBaseShare/JfbBaseShare.vue +62 -19
package/package.json
CHANGED
|
@@ -263,6 +263,18 @@ export default {
|
|
|
263
263
|
},
|
|
264
264
|
inline: false,
|
|
265
265
|
},
|
|
266
|
+
{
|
|
267
|
+
label: '支付页面跳转路径:',
|
|
268
|
+
ele: 'xd-select-pages-path',
|
|
269
|
+
valueKey: 'payPath',
|
|
270
|
+
groupKey:'advanced',
|
|
271
|
+
placeholder: '请选择支付页面跳转路径',
|
|
272
|
+
value: data['payPath'] || null,
|
|
273
|
+
setting: {
|
|
274
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
275
|
+
},
|
|
276
|
+
inline: false,
|
|
277
|
+
},
|
|
266
278
|
].filter(i=>i)
|
|
267
279
|
},
|
|
268
280
|
advanced: [],
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
//todo
|
|
80
80
|
description: "",
|
|
81
81
|
vipSuccessPath: "",
|
|
82
|
+
payPath: "",
|
|
82
83
|
}
|
|
83
84
|
},
|
|
84
85
|
computed: {
|
|
@@ -114,6 +115,7 @@
|
|
|
114
115
|
init(container) {
|
|
115
116
|
this.description = getContainerPropsValue(container, 'content.description', "");
|
|
116
117
|
this.vipSuccessPath = getContainerPropsValue(container, 'content.vipSuccessPath', {value: ""}).value;
|
|
118
|
+
this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ""}).value;
|
|
117
119
|
},
|
|
118
120
|
handlePrivacy(code){
|
|
119
121
|
let params = `page_id=${this.pageAttr["page_id"]}`;
|
|
@@ -144,10 +146,19 @@
|
|
|
144
146
|
business_code: this.xnamespace,
|
|
145
147
|
product_id: this.vipInfo.product_id,
|
|
146
148
|
notify_provider_id: this.projectAttr.notify_provider_id,
|
|
147
|
-
need_pay_price: 0
|
|
149
|
+
need_pay_price: 0,
|
|
150
|
+
selected_card_list_json: this.vipInfo.selected_card_list_json
|
|
148
151
|
}
|
|
149
152
|
}).then(res => {
|
|
150
|
-
|
|
153
|
+
if(res.need_pay_price > 0){
|
|
154
|
+
this.$xdUniHelper.redirectTo({
|
|
155
|
+
url: this.payPath + `?order_id=${res.pay_order_id}&main_order_id=${res.main_order_id}`
|
|
156
|
+
})
|
|
157
|
+
}else{
|
|
158
|
+
this.$xdUniHelper.redirectTo({
|
|
159
|
+
url: this.vipSuccessPath + `?order_id=${res.main_order_id}`
|
|
160
|
+
})
|
|
161
|
+
}
|
|
151
162
|
})
|
|
152
163
|
},
|
|
153
164
|
onJfbScroll(options) {
|
|
@@ -16,7 +16,7 @@ module.exports = {
|
|
|
16
16
|
|
|
17
17
|
getConsumpSettleMainInfo: { "shop_id": 1037266, "shop_logo": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_name": "a加盟商-185", "shop_brand": 100003, "shop_partner_name": "A加盟商-余额测试", "settle_tag_list": [{ "label": "幸福西饼、goodlike品牌", "value": 262, "price": 0, "price_yuan": "0.00", "is_static_price": false, "icon_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230728\/70f4dd90cdf2681e71ccf41d332d71a0.jpeg" }], "request_id": "a4a6cfe9db905597" },
|
|
18
18
|
|
|
19
|
-
getConsumpBaseUserInfo: { "user_name": "", "user_code": "WuE5Wotf08", "nickname": "张三", "real_name": "", "head_url": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/AOqEDeiaxss8GR4jD1GicIgyqWSOZV8xN23Iw3DOzFjVBzTFbdv21X7u9ZASQJYsTNm07XSq6ebzp4K4qu1JT26qGZ0qYFMe1nHdQjFZib83Fg\/132", "province_code": "", "city_code": "", "province_name": "", "city_name": "", "sex": "1", "sex_name": "男", "birthday_date": "2025-04-16", "phone_number": "177****7945", "show_user_name": "张三", "user_level": "VIP", "vip_expire_time": 1776157293, "request_id": "f1dbb1c0bb8da893" }
|
|
19
|
+
getConsumpBaseUserInfo: { "user_name": "", "user_code": "WuE5Wotf08", "nickname": "张三", "real_name": "", "head_url": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/AOqEDeiaxss8GR4jD1GicIgyqWSOZV8xN23Iw3DOzFjVBzTFbdv21X7u9ZASQJYsTNm07XSq6ebzp4K4qu1JT26qGZ0qYFMe1nHdQjFZib83Fg\/132", "province_code": "", "city_code": "", "province_name": "", "city_name": "", "sex": "1", "sex_name": "男", "birthday_date": "2025-04-16", "phone_number": "177****7945", "show_user_name": "张三", "user_level": "VIP", "vip_expire_time": 1776157293, "request_id": "f1dbb1c0bb8da893" },
|
|
20
20
|
|
|
21
21
|
addConsumpCashierTempOrderData: { "cart_order_id": "c08f38347ec8bc5b", "request_id": "779bf62e988587ce" }
|
|
22
22
|
}
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
<view v-else class="vip_level">普通用户</view>
|
|
27
27
|
</view>
|
|
28
28
|
<view class="u_sub">
|
|
29
|
-
<view v-if="isVip">已省xx</view>
|
|
30
|
-
<view v-else>{{ uInfo.phone_number }}</view>
|
|
29
|
+
<view v-if="isVip" style="color:#999999;">已省xx</view>
|
|
30
|
+
<view v-else style="color:#333333;">{{ uInfo.phone_number }}</view>
|
|
31
31
|
</view>
|
|
32
32
|
</view>
|
|
33
33
|
<view class="buy_btn" @click="showDrawer=true">立即续费</view>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
</view>
|
|
68
68
|
</view>
|
|
69
69
|
|
|
70
|
-
<xd-vip-list :list="vipCardList"
|
|
70
|
+
<xd-vip-list v-if="!isVip" :list="vipCardList"
|
|
71
71
|
@handlePrivacy="handlePrivacy"
|
|
72
72
|
@toVipDetail="toVipDetail"
|
|
73
73
|
></xd-vip-list>
|
|
@@ -258,6 +258,7 @@
|
|
|
258
258
|
}
|
|
259
259
|
.u_sub{
|
|
260
260
|
margin-top: 24rpx;
|
|
261
|
+
font-size: 24rpx;
|
|
261
262
|
}
|
|
262
263
|
}
|
|
263
264
|
.buy_btn{
|
|
@@ -15,28 +15,30 @@
|
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-share__body">
|
|
17
17
|
<view class="card_wrap">
|
|
18
|
-
<swiper class="card_swiper" next-margin="50rpx" previous-margin="50rpx">
|
|
19
|
-
<swiper-item class="swiper_item" v-for="i in
|
|
18
|
+
<swiper class="card_swiper" next-margin="50rpx" previous-margin="50rpx" :current="shareIndex" @change="handleSwitch">
|
|
19
|
+
<swiper-item class="swiper_item" v-for="(item,i) in shareList" :key="i">
|
|
20
20
|
<view class="swiper_item-inner">
|
|
21
|
-
<
|
|
21
|
+
<image :src="item.share_image_url" mode="aspectFill"></image>
|
|
22
|
+
<!-- <view class="swiper_item-logo"></view>
|
|
22
23
|
<view class="swiper_item-title">邀请好友领福利</view>
|
|
23
24
|
<view class="swiper_item-qrcode"></view>
|
|
24
|
-
<view class="swiper_item-visit">邀请码<br/>LWNXK7H</view>
|
|
25
|
+
<view class="swiper_item-visit">邀请码<br/>LWNXK7H</view> -->
|
|
25
26
|
</view>
|
|
26
27
|
<!-- <image style="width: 600rpx;height: 900rpx;"
|
|
27
28
|
src="https://sandbox-img.jufubao.cn/uploads/20250410/34559f90dd5a01e7368c02bf33f1b484.png?ver=1744249748881&x-oss-process=style/size5"></image> -->
|
|
28
29
|
</swiper-item>
|
|
29
30
|
</swiper>
|
|
30
31
|
</view>
|
|
31
|
-
|
|
32
|
+
<!-- #ifdef MP-WEIXIN -->
|
|
32
33
|
<view class="share_wrap">
|
|
33
|
-
<view class="share_btn">
|
|
34
|
+
<view class="share_btn" @click="toSendWx">
|
|
34
35
|
<image src="https://sandbox-img.jufubao.cn/uploads/20250410/57bc093618bc51a85dc8bb68825d2b97.png?x-oss-process=style/size8" mode="widthFix"></image>
|
|
35
36
|
</view>
|
|
36
|
-
<view class="share_btn">
|
|
37
|
+
<view class="share_btn" @click="toSaveImg">
|
|
37
38
|
<image src="https://sandbox-img1.jufubao.cn/uploads/20250410/faeb136bfd684ab6fa4608208ad26294.png?x-oss-process=style/size8" mode="widthFix"></image>
|
|
38
39
|
</view>
|
|
39
40
|
</view>
|
|
41
|
+
<!-- #endif -->
|
|
40
42
|
|
|
41
43
|
<view class="visit_tip">
|
|
42
44
|
好友使用你的邀请码成功注册后<br/>Ta将成为你的邀请用户
|
|
@@ -52,6 +54,8 @@
|
|
|
52
54
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
53
55
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
54
56
|
import extsMixins from "@/mixins/extsMixins";
|
|
57
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
58
|
+
import { mapState } from "vuex";
|
|
55
59
|
export default {
|
|
56
60
|
name: "JfbBaseShare",
|
|
57
61
|
components: {
|
|
@@ -63,11 +67,14 @@
|
|
|
63
67
|
data() {
|
|
64
68
|
return {
|
|
65
69
|
closeMask: true,
|
|
66
|
-
|
|
70
|
+
shareIndex: 0,
|
|
67
71
|
shareList: [],
|
|
68
72
|
//todo
|
|
69
73
|
}
|
|
70
74
|
},
|
|
75
|
+
computed: {
|
|
76
|
+
...mapState(["shareInfo"]),
|
|
77
|
+
},
|
|
71
78
|
watch: {
|
|
72
79
|
container(value, oldValue) {
|
|
73
80
|
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
@@ -98,11 +105,45 @@
|
|
|
98
105
|
page_token: '1'
|
|
99
106
|
}
|
|
100
107
|
}).then(res => {
|
|
101
|
-
this.shareList = res.list
|
|
108
|
+
this.shareList = res.list.map(item => {
|
|
109
|
+
item.share_image_url = getServiceUrl(item.share_image_url);
|
|
110
|
+
return item;
|
|
111
|
+
});
|
|
102
112
|
})
|
|
103
113
|
},
|
|
114
|
+
handleSwitch(e){
|
|
115
|
+
this.shareIndex = e.detail.current;
|
|
116
|
+
},
|
|
117
|
+
toSendWx(){
|
|
118
|
+
let shareIndex = this.shareIndex;
|
|
119
|
+
let curShare = this.shareList[shareIndex];
|
|
120
|
+
this.setShareInfo({
|
|
121
|
+
title: "您的好友邀请您使用PLUS会员",
|
|
122
|
+
imageUrl: curShare.share_image_url,
|
|
123
|
+
path: `${curShare.jump_url}`,
|
|
124
|
+
});
|
|
125
|
+
},
|
|
126
|
+
toSaveImg(){
|
|
127
|
+
let shareIndex = this.shareIndex;
|
|
128
|
+
let curShare = this.shareList[shareIndex];
|
|
129
|
+
uni.getImageInfo({
|
|
130
|
+
src: curShare.share_image_url,
|
|
131
|
+
success: (res) => {
|
|
132
|
+
uni.saveImageToPhotosAlbum({
|
|
133
|
+
filePath: res.path,
|
|
134
|
+
success: () => {
|
|
135
|
+
uni.showToast({
|
|
136
|
+
title: '保存成功',
|
|
137
|
+
icon: "success"
|
|
138
|
+
})
|
|
139
|
+
}
|
|
140
|
+
})
|
|
141
|
+
}
|
|
142
|
+
})
|
|
143
|
+
|
|
144
|
+
},
|
|
104
145
|
onJfbScroll(options) {
|
|
105
|
-
console.log('event.onJfbScroll', options)
|
|
146
|
+
// console.log('event.onJfbScroll', options)
|
|
106
147
|
},
|
|
107
148
|
onJfbReachBottom(options) {
|
|
108
149
|
console.log('event.onJfbReachBottom', options)
|
|
@@ -146,16 +187,18 @@
|
|
|
146
187
|
justify-content: center;
|
|
147
188
|
|
|
148
189
|
&-inner{
|
|
149
|
-
width:
|
|
150
|
-
height:
|
|
151
|
-
background: url('https://sandbox-img.jufubao.cn/uploads/20250410/2d9f5ec31efb5cddece747d8b8da51f0.png?x-oss-process=style/size8') no-repeat;
|
|
152
|
-
background-size: auto 100%;
|
|
190
|
+
width: 100%;
|
|
191
|
+
height: 100%;
|
|
192
|
+
// background: url('https://sandbox-img.jufubao.cn/uploads/20250410/2d9f5ec31efb5cddece747d8b8da51f0.png?x-oss-process=style/size8') no-repeat;
|
|
193
|
+
// background-size: auto 100%;
|
|
153
194
|
box-sizing: border-box;
|
|
154
|
-
display: flex;
|
|
155
|
-
flex-direction: column;
|
|
156
|
-
align-items: center;
|
|
157
|
-
|
|
158
|
-
|
|
195
|
+
// display: flex;
|
|
196
|
+
// flex-direction: column;
|
|
197
|
+
// align-items: center;
|
|
198
|
+
image{
|
|
199
|
+
width: 100%;
|
|
200
|
+
height: 100%;
|
|
201
|
+
}
|
|
159
202
|
}
|
|
160
203
|
&-logo{
|
|
161
204
|
height: 96rpx;
|