jufubao-base 1.0.255 → 1.0.256-beta2

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.255",
3
+ "version": "1.0.256-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -16,6 +16,7 @@
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"
@@ -24,6 +25,7 @@
24
25
  @blur="handleUsername"
25
26
  maxlength="25"
26
27
  v-model="receipt_username"
28
+ @keyboardheightchange="handleKeyBoardHeightChange"
27
29
  />
28
30
  </view>
29
31
  <view
@@ -35,6 +37,7 @@
35
37
  <view class="xd-address__body-item-label">手机号码</view>
36
38
  <view class="xd-address__body-item-input">
37
39
  <input
40
+ :cursor-spacing="10"
38
41
  class="xd-address__body-item-input-el"
39
42
  placeholder-class="xd-address__body-item-input-placeholder"
40
43
  @confirm="doneInput"
@@ -43,6 +46,7 @@
43
46
  maxlength="11"
44
47
  v-model="receipt_phone"
45
48
  @blur="handlePhone"
49
+ @keyboardheightchange="handleKeyBoardHeightChange"
46
50
  />
47
51
  </view>
48
52
  <view
@@ -94,11 +98,13 @@
94
98
  @confirm="doneInput"
95
99
  placeholder="详细地址"
96
100
  :adjust-position="false"
101
+ :cursor-spacing="10"
97
102
  :focus="focus"
98
103
  auto-height
99
104
  maxlength="50"
100
105
  :selection-start="focusNumber"
101
106
  v-model="receipt_address"
107
+ @keyboardheightchange="handleKeyBoardHeightChange"
102
108
  ></textarea>
103
109
  </view>
104
110
  <view
@@ -153,6 +159,7 @@
153
159
  ></xd-switch> -->
154
160
  </view>
155
161
  </view>
162
+ <view :style="{height:blockHeight+'px',width:'100%'}"></view>
156
163
  <view class="xd-address__btn">
157
164
  <xd-button type="primary" @click="save">保存</xd-button>
158
165
  </view>
@@ -270,6 +277,7 @@ export default {
270
277
  random: new Date().getTime(),
271
278
 
272
279
  needHand: true, //是否需要手动选择所在地区
280
+ blockHeight: 0
273
281
  };
274
282
  },
275
283
  computed: {
@@ -338,6 +346,9 @@ export default {
338
346
  },
339
347
 
340
348
  methods: {
349
+ handleKeyBoardHeightChange(e){
350
+ this.blockHeight=e.detail.height
351
+ },
341
352
  handleRegion() {
342
353
  if (this.needHand) {
343
354
  this.isShowAddress = !this.isShowAddress;
@@ -484,6 +495,7 @@ export default {
484
495
  },
485
496
 
486
497
  handleUsername(e) {
498
+ this.blockHeight=0;
487
499
  this.receipt_username = e.detail.value.replace(/[^\u4e00-\u9fa5\w]/g, '');
488
500
  },
489
501
 
@@ -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
- <image mode="aspectFit" class="qrcode" :src="code_url">
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">
@@ -196,7 +200,8 @@
196
200
  refresh: true, //onshow是否刷新数据
197
201
  showLocationDialog: false,
198
202
  cityPath: '',
199
- resource_shop_id: ''
203
+ resource_shop_id: '',
204
+ qrcode_icon: '',
200
205
  }
201
206
  },
202
207
  watch: {
@@ -399,12 +404,15 @@
399
404
  this.temp_order_id = res.temp_order_id;
400
405
  let code_url = this.brandInfo['api_host'] + res.code_url;
401
406
  let barcode_url = this.brandInfo['api_host'] + res.barcode_url;
407
+ let qrcode_icon = res.qrcode_icon;
402
408
  if (this.isPreview) {
403
409
  code_url = 'https://sandbox-apis.jufubao.cn/common/v1/image/qrcode?code_content=h.161.v91654768653746&size=240'
404
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'
405
412
  }
406
413
  this.code_url = code_url;
407
414
  this.barcode_url = barcode_url;
415
+ this.qrcode_icon = qrcode_icon;
408
416
  this.barCode = res.payment_code
409
417
  this.expiration_sec = res.expiration_sec;
410
418
  this.showMask = false;
@@ -1114,5 +1122,15 @@
1114
1122
  height: auto;
1115
1123
  line-height: inherit;
1116
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
+ }
1117
1135
  }
1118
1136
  </style>
@@ -74,11 +74,13 @@
74
74
  </view>
75
75
  </view> -->
76
76
  </view>
77
-
78
- <xd-vip-list v-if="!isVip" :list="showVipCardList"
79
- @handlePrivacy="handlePrivacy"
80
- @toVipDetail="toVipDetail"
81
- ></xd-vip-list>
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
- <view @click="handleToPersonal" :style="{borderColor: imageColor, borderRadius:imageRadius}" class="no-image" v-else>
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
- <view @click="handleToPersonal" :style="{borderColor: imageColor, borderRadius:imageRadius}" v-else class="no-image">
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>