jufubao-base 1.0.242-beta1 → 1.0.242-beta3

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.242-beta1",
3
+ "version": "1.0.242-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -174,7 +174,8 @@
174
174
  userInfo: {},
175
175
  is_vip: 'N',
176
176
  isPreview: false,
177
- jwxSDK: null
177
+ jwxSDK: null,
178
+ refresh: true, //onshow是否刷新数据
178
179
  }
179
180
  },
180
181
  watch: {
@@ -458,6 +459,7 @@
458
459
  if (parseFloat(need_pay_price) > 0) {//补差
459
460
  this.handleThirdPay(pay_order_id, order_id);
460
461
  } else {//订单成功
462
+ this.refresh = false
461
463
  this.$xdUniHelper.redirectTo({
462
464
  url: this.successPath + `?order_id=${order_id}`
463
465
  })
@@ -693,6 +695,7 @@
693
695
  },
694
696
  })
695
697
  .then((res) => {
698
+ this.refresh = false;
696
699
  this.$xdUniHelper.redirectTo({
697
700
  url: this.successPath + `?order_id=${main_order_id}`
698
701
  });
@@ -761,7 +764,9 @@
761
764
  },
762
765
  onJfbShow(options) {
763
766
  console.log('event.onJfbShow', options)
764
- this.onJfbLoad(options);
767
+ if (this.refresh) {
768
+ this.onJfbLoad(options);
769
+ }
765
770
  },
766
771
  onJfbHide(options) {
767
772
  console.log('event.onJfbHide', options)
@@ -1045,6 +1045,7 @@ export default {
1045
1045
  custom_content_container_id: this.cid,
1046
1046
  is_show_jhd_code: Number(this.is_show),
1047
1047
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
1048
+ version: 'v2'
1048
1049
  },
1049
1050
  })
1050
1051
  .then((res) => {
@@ -24,7 +24,6 @@
24
24
  <view class="column_value text-gray">
25
25
  <xd-unit
26
26
  :price="payInfo.total_amount"
27
- :isShowIcon="isShowIcon"
28
27
  :isOld="false"
29
28
  :font-size="28"
30
29
  :icon-size="0.28"
@@ -40,7 +39,6 @@
40
39
  <!-- <xd-button width="220rpx" radius="60rpx" type="primary" size="small" @click="xdDownDrawer=true">使用新票券</xd-button> -->
41
40
  <xd-unit
42
41
  :price="payInfo.card_amount"
43
- :isShowIcon="isShowIcon"
44
42
  :isOld="false"
45
43
  :font-size="28"
46
44
  :icon-size="0.28"
@@ -106,7 +104,6 @@
106
104
  <view class="column_value text-primary">
107
105
  <xd-unit
108
106
  :price="payInfo.channel_amount"
109
- :isShowIcon="isShowIcon"
110
107
  :isOld="false"
111
108
  :font-size="28"
112
109
  :icon-size="0.28"
@@ -247,10 +244,6 @@ export default {
247
244
  }
248
245
  return url
249
246
  },
250
- isShowIcon() {
251
- if(this.$configProject['isPreview']) return true;
252
- return this.siteInfo.mapping.is_show_coin_icon==='Y'
253
- },
254
247
  ...styleForm.getComputedItem(),
255
248
  },
256
249
  created() {
@@ -25,11 +25,11 @@
25
25
  </view>
26
26
 
27
27
  <view v-if="showShare" class="share_wrap">
28
- <button class="share_btn" open-type="share" @click="toSendWx" :style="{backgroundImage: `url(${shareImage})`}">
29
- <!-- <image :src="shareImage" mode="widthFix"></image> -->
28
+ <button class="share_btn" open-type="share" @click="toSendWx">
29
+ <image :src="shareImage" mode="widthFix"></image>
30
30
  </button>
31
- <view class="share_btn" @click="toSaveImg" :style="{backgroundImage: `url(${savaImage})`}">
32
- <!-- <image src="https://sandbox-img1.jufubao.cn/uploads/20250410/faeb136bfd684ab6fa4608208ad26294.png?x-oss-process=style/size8" mode="widthFix"></image> -->
31
+ <view class="share_btn" @click="toSaveImg">
32
+ <image :src="savaImage" mode="widthFix"></image>
33
33
  </view>
34
34
  </view>
35
35
 
@@ -245,16 +245,19 @@
245
245
  }
246
246
  .share_wrap{
247
247
  display: flex;
248
- align-items: center;
248
+ // align-items: center;
249
+ align-items: flex-start;
249
250
  justify-content: center;
250
251
  .share_btn{
251
252
  width: 300rpx;
252
- height: 80rpx;
253
+ // height: 80rpx;
253
254
  background-size: 100% 100%;
254
255
  background-color: transparent;
255
256
  margin: 60rpx 0 0 0;
257
+ padding: 0;
256
258
  &::after{
257
259
  border: none !important;
260
+ content: initial !important;
258
261
  }
259
262
  image{
260
263
  width: 100%;
@@ -575,6 +575,7 @@ export default {
575
575
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
576
576
  custom_content_page_id: this.pageAttr.page_id,
577
577
  custom_content_container_id: this.cid,
578
+ version: 'v2'
578
579
  },
579
580
  })
580
581
  .then((res) => {