jufubao-base 1.0.254 → 1.0.256-beta1
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/JfbBaseAddress/XdAddress.vue +6 -3
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +33 -8
- package/src/components/JfbBaseNoticeDialog/Attr.js +6 -19
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +6 -21
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +11 -6
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +2 -2
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +2 -6
package/package.json
CHANGED
|
@@ -16,11 +16,12 @@
|
|
|
16
16
|
<view class="xd-address__body-item-label">收货人</view>
|
|
17
17
|
<view class="xd-address__body-item-input">
|
|
18
18
|
<input
|
|
19
|
+
:cursor-spacing="10"
|
|
19
20
|
class="xd-address__body-item-input-el"
|
|
20
21
|
placeholder-class="xd-address__body-item-input-placeholder"
|
|
21
22
|
@confirm="doneInput"
|
|
22
23
|
placeholder="收货人"
|
|
23
|
-
:adjust-position="
|
|
24
|
+
:adjust-position="true"
|
|
24
25
|
@blur="handleUsername"
|
|
25
26
|
maxlength="25"
|
|
26
27
|
v-model="receipt_username"
|
|
@@ -35,11 +36,12 @@
|
|
|
35
36
|
<view class="xd-address__body-item-label">手机号码</view>
|
|
36
37
|
<view class="xd-address__body-item-input">
|
|
37
38
|
<input
|
|
39
|
+
:cursor-spacing="10"
|
|
38
40
|
class="xd-address__body-item-input-el"
|
|
39
41
|
placeholder-class="xd-address__body-item-input-placeholder"
|
|
40
42
|
@confirm="doneInput"
|
|
41
43
|
placeholder="手机号码"
|
|
42
|
-
:adjust-position="
|
|
44
|
+
:adjust-position="true"
|
|
43
45
|
maxlength="11"
|
|
44
46
|
v-model="receipt_phone"
|
|
45
47
|
@blur="handlePhone"
|
|
@@ -93,7 +95,8 @@
|
|
|
93
95
|
placeholder-class="xd-address__body-item-input-placeholder"
|
|
94
96
|
@confirm="doneInput"
|
|
95
97
|
placeholder="详细地址"
|
|
96
|
-
:adjust-position="
|
|
98
|
+
:adjust-position="true"
|
|
99
|
+
:cursor-spacing="10"
|
|
97
100
|
:focus="focus"
|
|
98
101
|
auto-height
|
|
99
102
|
maxlength="50"
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
}">
|
|
13
13
|
<view class="content-box">
|
|
14
14
|
<view class="logo-box">
|
|
15
|
-
<image :src="userInfo['head_url']" class="logo"></image>
|
|
15
|
+
<image v-if="userInfo['head_url']" :src="userInfo['head_url']" class="logo"></image>
|
|
16
|
+
<image v-else class="logo" src="https://img1-b.jufubao.cn/uploads/20250528/e88bb70d4ccdcdd01a277bdf6b66c488.jpg"></image>
|
|
16
17
|
</view>
|
|
17
18
|
<view v-if="isFlow">
|
|
18
19
|
<view @click="handleToShop" class="shop">
|
|
@@ -69,7 +70,10 @@
|
|
|
69
70
|
<image mode="aspectFit" class="bar-code" :src="barcode_url">
|
|
70
71
|
</image>
|
|
71
72
|
<view class="bar-code-text">{{barCode}}</view>
|
|
72
|
-
<
|
|
73
|
+
<view style="position: relative">
|
|
74
|
+
<image mode="aspectFit" class="qrcode" :src="code_url">
|
|
75
|
+
<image v-if="qrcode_icon" class="logo-icon" :src="qrcode_icon"></image>
|
|
76
|
+
</view>
|
|
73
77
|
</image>
|
|
74
78
|
<view class="code-refresh">{{expiration_sec_str}}后自动更新</view>
|
|
75
79
|
<view v-if="plusDiscount">
|
|
@@ -195,7 +199,9 @@
|
|
|
195
199
|
jwxSDK: null,
|
|
196
200
|
refresh: true, //onshow是否刷新数据
|
|
197
201
|
showLocationDialog: false,
|
|
198
|
-
cityPath: ''
|
|
202
|
+
cityPath: '',
|
|
203
|
+
resource_shop_id: '',
|
|
204
|
+
qrcode_icon: '',
|
|
199
205
|
}
|
|
200
206
|
},
|
|
201
207
|
watch: {
|
|
@@ -252,7 +258,7 @@
|
|
|
252
258
|
// #endif
|
|
253
259
|
},
|
|
254
260
|
methods: {
|
|
255
|
-
async onJfbLoad(options) {
|
|
261
|
+
async onJfbLoad(options) {
|
|
256
262
|
this.xnamespace = this.projectAttr.business_code
|
|
257
263
|
this.getUserInfo()
|
|
258
264
|
this.options = options
|
|
@@ -281,6 +287,7 @@
|
|
|
281
287
|
}).then(res => {
|
|
282
288
|
if (res && res.list.length > 0) {
|
|
283
289
|
this.shop_id = res.list[0].shop_id;
|
|
290
|
+
this.resource_shop_id = res.list[0].resource_shop_id;
|
|
284
291
|
this.shopName = res.list[0].resource_shop_name;
|
|
285
292
|
this.showMask = true;
|
|
286
293
|
this.showDialog = true;
|
|
@@ -291,6 +298,7 @@
|
|
|
291
298
|
})
|
|
292
299
|
} else {
|
|
293
300
|
this.shop_id = this.options.shop_id;
|
|
301
|
+
this.resource_shop_id = this.options.resource_shop_id;
|
|
294
302
|
this.p_getAsyncStep();
|
|
295
303
|
}
|
|
296
304
|
},
|
|
@@ -372,12 +380,16 @@
|
|
|
372
380
|
p_getQuickPayQRCode() {
|
|
373
381
|
return new Promise((resolve, reject) => {
|
|
374
382
|
this.$xdShowLoading({});
|
|
383
|
+
let data = {
|
|
384
|
+
shop_id: this.shop_id,
|
|
385
|
+
temp_order_id: this.temp_order_id,
|
|
386
|
+
// business_code: this.xnamespace,
|
|
387
|
+
// resource_shop_id: this.resource_shop_id
|
|
388
|
+
}
|
|
389
|
+
if(data.resource_shop_id) delete data.shop_id
|
|
375
390
|
jfbRootExec("getConsumpCode", {
|
|
376
391
|
vm: this,
|
|
377
|
-
data:
|
|
378
|
-
shop_id: this.shop_id,
|
|
379
|
-
temp_order_id: this.temp_order_id,
|
|
380
|
-
}
|
|
392
|
+
data: data
|
|
381
393
|
}).then(res => {
|
|
382
394
|
this.$xdHideLoading();
|
|
383
395
|
this.plusDiscount = res.plus_discount
|
|
@@ -392,12 +404,15 @@
|
|
|
392
404
|
this.temp_order_id = res.temp_order_id;
|
|
393
405
|
let code_url = this.brandInfo['api_host'] + res.code_url;
|
|
394
406
|
let barcode_url = this.brandInfo['api_host'] + res.barcode_url;
|
|
407
|
+
let qrcode_icon = res.qrcode_icon;
|
|
395
408
|
if (this.isPreview) {
|
|
396
409
|
code_url = 'https://sandbox-apis.jufubao.cn/common/v1/image/qrcode?code_content=h.161.v91654768653746&size=240'
|
|
397
410
|
barcode_url = 'https://sandbox-apis.jufubao.cn/common/v1/image/barcode?code_content=h.161.v91654768653746'
|
|
411
|
+
qrcode_icon = 'https://img1-b.jufubao.cn/uploads/20250528/e88bb70d4ccdcdd01a277bdf6b66c488.jpg'
|
|
398
412
|
}
|
|
399
413
|
this.code_url = code_url;
|
|
400
414
|
this.barcode_url = barcode_url;
|
|
415
|
+
this.qrcode_icon = qrcode_icon;
|
|
401
416
|
this.barCode = res.payment_code
|
|
402
417
|
this.expiration_sec = res.expiration_sec;
|
|
403
418
|
this.showMask = false;
|
|
@@ -1107,5 +1122,15 @@
|
|
|
1107
1122
|
height: auto;
|
|
1108
1123
|
line-height: inherit;
|
|
1109
1124
|
}
|
|
1125
|
+
|
|
1126
|
+
.logo-icon {
|
|
1127
|
+
width: unit(80, rpx) !important;
|
|
1128
|
+
height: unit(80, rpx) !important;
|
|
1129
|
+
position: absolute;
|
|
1130
|
+
top: 50%;
|
|
1131
|
+
left: 50%;
|
|
1132
|
+
transform: translate(-40rpx, -40rpx);
|
|
1133
|
+
margin-top: 0;
|
|
1134
|
+
}
|
|
1110
1135
|
}
|
|
1111
1136
|
</style>
|
|
@@ -248,29 +248,16 @@ export default {
|
|
|
248
248
|
]
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
|
-
label: '
|
|
251
|
+
label: '是否开启展示方式过滤:',
|
|
252
252
|
ele: 'xd-radio',
|
|
253
|
-
valueKey: '
|
|
253
|
+
valueKey: 'is_order_by_show_group',
|
|
254
254
|
groupKey:'content',
|
|
255
|
-
value: data['
|
|
256
|
-
placeholder: '
|
|
255
|
+
value: data['is_order_by_show_group'] || 'N',
|
|
256
|
+
placeholder: '请选择是否开启展示方式过滤',
|
|
257
257
|
className: 'input60',
|
|
258
258
|
list: [
|
|
259
|
-
{ label: '
|
|
260
|
-
{ label: '
|
|
261
|
-
]
|
|
262
|
-
},
|
|
263
|
-
data['systemType']==='plus'&&{
|
|
264
|
-
label: '展示方式:',
|
|
265
|
-
ele: 'xd-radio',
|
|
266
|
-
valueKey: 'showGroup',
|
|
267
|
-
groupKey:'content',
|
|
268
|
-
value: data['showGroup'] || 'all',
|
|
269
|
-
placeholder: '请选择展示方式',
|
|
270
|
-
className: 'input60',
|
|
271
|
-
list: [
|
|
272
|
-
{ label: '全部用户', value: 'all' },
|
|
273
|
-
{ label: '仅会员', value: 'vip' },
|
|
259
|
+
{ label: '是', value: 'Y' },
|
|
260
|
+
{ label: '否', value: 'N' },
|
|
274
261
|
]
|
|
275
262
|
},
|
|
276
263
|
{
|
|
@@ -85,8 +85,7 @@ export default {
|
|
|
85
85
|
currentIndex: 0,
|
|
86
86
|
contentList: [],
|
|
87
87
|
number: '',
|
|
88
|
-
|
|
89
|
-
showGroup: ''
|
|
88
|
+
is_order_by_show_group: '',
|
|
90
89
|
};
|
|
91
90
|
},
|
|
92
91
|
watch: {
|
|
@@ -129,6 +128,7 @@ export default {
|
|
|
129
128
|
page_id: this.pageAttr["page_id"], //页面ID
|
|
130
129
|
container_id: this.containerId, //组件ID
|
|
131
130
|
page_size: this.number, //数量
|
|
131
|
+
is_order_by_show_group: this.is_order_by_show_group
|
|
132
132
|
},
|
|
133
133
|
})
|
|
134
134
|
.then((res) => {
|
|
@@ -147,17 +147,7 @@ export default {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
this.currentIndex = 0;
|
|
150
|
-
|
|
151
|
-
this.handlePop();
|
|
152
|
-
} else {
|
|
153
|
-
if(this.showGroup==='all') {
|
|
154
|
-
this.handlePop();
|
|
155
|
-
}else {
|
|
156
|
-
if(this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP') {
|
|
157
|
-
this.handlePop();
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
150
|
+
this.handlePop();
|
|
161
151
|
}
|
|
162
152
|
})
|
|
163
153
|
.catch((error) => {
|
|
@@ -186,15 +176,10 @@ export default {
|
|
|
186
176
|
);
|
|
187
177
|
this.type = getContainerPropsValue(container, "content.type", "pop");
|
|
188
178
|
this.number = getContainerPropsValue(container, "content.number", 1);
|
|
189
|
-
this.
|
|
190
|
-
container,
|
|
191
|
-
"content.systemType",
|
|
192
|
-
"fuli"
|
|
193
|
-
);
|
|
194
|
-
this.showGroup = getContainerPropsValue(
|
|
179
|
+
this.is_order_by_show_group = getContainerPropsValue(
|
|
195
180
|
container,
|
|
196
|
-
"content.
|
|
197
|
-
"
|
|
181
|
+
"content.is_order_by_show_group",
|
|
182
|
+
"N"
|
|
198
183
|
);
|
|
199
184
|
},
|
|
200
185
|
handlePop() {
|
|
@@ -74,11 +74,13 @@
|
|
|
74
74
|
</view>
|
|
75
75
|
</view> -->
|
|
76
76
|
</view>
|
|
77
|
-
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
<view :style="{height: '342rpx'}"></view>
|
|
78
|
+
<view :style="prod_bottom">
|
|
79
|
+
<xd-vip-list v-if="!isVip" :list="showVipCardList"
|
|
80
|
+
@handlePrivacy="handlePrivacy"
|
|
81
|
+
@toVipDetail="toVipDetail"
|
|
82
|
+
></xd-vip-list>
|
|
83
|
+
</view>
|
|
82
84
|
|
|
83
85
|
<xd-down-drawer :show.sync="showDrawer" height="480rpx">
|
|
84
86
|
<view class="drawer_title">立即续费</view>
|
|
@@ -152,7 +154,10 @@
|
|
|
152
154
|
},
|
|
153
155
|
showVipCardList(){
|
|
154
156
|
return this.showExchangeCode === 'Y' ? [this.exchangeCodeVip, ...this.vipCardList] : [...this.vipCardList]
|
|
155
|
-
}
|
|
157
|
+
},
|
|
158
|
+
prod_bottom() {
|
|
159
|
+
return this.fixedStyle({height: 0, zIndex: 111});
|
|
160
|
+
},
|
|
156
161
|
},
|
|
157
162
|
watch: {
|
|
158
163
|
container(value, oldValue) {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
<view class="jfb-base-personal-data__body-item">
|
|
10
10
|
<view class="jfb-base-personal-data__body-item-label">头像</view>
|
|
11
11
|
<view class="profile">
|
|
12
|
-
<image :src="info.head_url"></image>
|
|
12
|
+
<image v-if="info.head_url" :src="info.head_url"></image>
|
|
13
|
+
<image v-else src="https://img1-b.jufubao.cn/uploads/20250528/e88bb70d4ccdcdd01a277bdf6b66c488.jpg"></image>
|
|
13
14
|
<!--#ifdef MP-->
|
|
14
15
|
<button type="default" open-type="chooseAvatar" @chooseavatar="handleChooseAvatar"></button>
|
|
15
16
|
<!-- #endif -->
|
|
@@ -203,7 +204,6 @@
|
|
|
203
204
|
if(!this.$xdUniHelper.isEmpty(ext)) {
|
|
204
205
|
params = Object.assign({},params,ext);
|
|
205
206
|
}
|
|
206
|
-
debugger
|
|
207
207
|
jfbRootExec("setBasePersonInfo", {
|
|
208
208
|
vm: this,
|
|
209
209
|
data: params,
|
|
@@ -15,13 +15,9 @@
|
|
|
15
15
|
<template v-if="logined">
|
|
16
16
|
<image @click="handleToPersonal" :style="{border: `1px solid ${imageColor}`, borderRadius:imageRadius}"
|
|
17
17
|
v-if="userInfo['head_url']" :src="userInfo['head_url']"></image>
|
|
18
|
-
<
|
|
19
|
-
<xd-font-icon :color="imageColor" icon="iconwode_mian" size="100"></xd-font-icon>
|
|
20
|
-
</view>
|
|
18
|
+
<image v-else @click="handleToPersonal" :style="{border: `1px solid ${imageColor}`, borderRadius:imageRadius}" src="https://img1-b.jufubao.cn/uploads/20250528/e88bb70d4ccdcdd01a277bdf6b66c488.jpg"></image>
|
|
21
19
|
</template>
|
|
22
|
-
<
|
|
23
|
-
<xd-font-icon :color="imageColor" icon="iconwode_mian" size="90"></xd-font-icon>
|
|
24
|
-
</view>
|
|
20
|
+
<image v-else @click="handleToPersonal" :style="{border: `1px solid ${imageColor}`, borderRadius:imageRadius}" src="https://img1-b.jufubao.cn/uploads/20250528/e88bb70d4ccdcdd01a277bdf6b66c488.jpg"></image>
|
|
25
21
|
<view class="jfb-base-user-info__body-plus-header-top-left-info">
|
|
26
22
|
<view class="jfb-base-user-info__body-plus-header-top-left-info-name" v-if="logined">
|
|
27
23
|
<view :style="is_vip==='Y'?[plusNickNameStyle]:[normalNickNameStyle]">{{userInfo|getName}} </view>
|