jufubao-base 1.0.181-beta1 → 1.0.181-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.181-beta1",
3
+ "version": "1.0.181-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -284,6 +284,7 @@ export default {
284
284
  display: flex;
285
285
  justify-content: center;
286
286
  align-items: center;
287
+ background:#fff
287
288
  }
288
289
  .package {
289
290
  display: flex;
@@ -71,7 +71,7 @@
71
71
  <view v-if="0">
72
72
  <xd-button size="small" type="primary" width="100%">消费记录</xd-button>
73
73
  </view>
74
- <view v-if="1||info.is_can_transfer==='Y'">
74
+ <view v-if="info.is_can_transfer==='Y'">
75
75
  <xd-button
76
76
  width="100%"
77
77
  @click="handleGive()"
@@ -96,7 +96,7 @@
96
96
  <xd-button type="primary" @click="handleShare">再次分享</xd-button>
97
97
  <!-- #endif -->
98
98
  <!-- #ifdef MP-WEIXIN -->
99
- <button class="share-btn" @click="handleShare" open-type="share">
99
+ <button :style="{background:mainColor}" class="share-btn" @click="handleShare" open-type="share">
100
100
  再次分享
101
101
  </button>
102
102
  <!-- #endif -->
@@ -115,7 +115,7 @@
115
115
  >超过24H未领取,票券会自动退回您的账户中。</view
116
116
  >
117
117
  <!-- #ifdef MP-WEIXIN -->
118
- <button class="share-btn" @click="handleShare" open-type="share">
118
+ <button :style="{background:mainColor}" class="share-btn" @click="handleShare" open-type="share">
119
119
  通知微信好友
120
120
  </button>
121
121
  <!-- #endif -->
@@ -127,15 +127,14 @@
127
127
  </view>
128
128
  </xd-dailog>
129
129
  <xd-dailog
130
- title=""
130
+ title="取消失败"
131
131
  :cancel="false"
132
132
  :confirm="false"
133
133
  :show.sync="resultDialog"
134
134
  >
135
135
  <view class="dialog">
136
- <view class="dialog-title">取消失败</view>
137
136
  <view class="dialog-content">{{ errMsg }}</view>
138
- <xd-button @click="resultDialog = false" width="360rpx" type="primary"
137
+ <xd-button @click="handleCancel" width="360rpx" type="primary"
139
138
  >确定</xd-button
140
139
  >
141
140
  </view>
@@ -202,6 +201,7 @@ export default {
202
201
  await this.getDetail();
203
202
  },
204
203
  getDetail() {
204
+ this.$xdShowLoading({});
205
205
  jfbRootExec("getBaseByIdCardDetailGive", {
206
206
  vm: this,
207
207
  data: {
@@ -210,6 +210,7 @@ export default {
210
210
  },
211
211
  })
212
212
  .then((res) => {
213
+ this.$xdHideLoading({});
213
214
  this.info = res;
214
215
  this.info.card_point = this.$xdUniHelper.divisionFloatNumber(
215
216
  this.info.card_point,
@@ -230,6 +231,7 @@ export default {
230
231
  }
231
232
  })
232
233
  .catch((err) => {
234
+ this.$xdHideLoading({});
233
235
  console.log(err, "err");
234
236
  });
235
237
  },
@@ -248,6 +250,12 @@ export default {
248
250
  ).url;
249
251
  },
250
252
  handleCancel() {
253
+ this.resultDialog = false;
254
+ this.getDetail();
255
+ },
256
+ handleCancel() {
257
+ this.$xdShowLoading({});
258
+
251
259
  jfbRootExec("cancelGiveCard", {
252
260
  vm: this,
253
261
  data: {
@@ -261,12 +269,16 @@ export default {
261
269
  } else {
262
270
  this.getDetail();
263
271
  }
272
+ this.$xdHideLoading({});
264
273
  })
265
274
  .catch((err) => {
275
+ this.$xdHideLoading({});
276
+
266
277
  console.log(err, "err");
267
278
  });
268
279
  },
269
280
  handleGive() {
281
+ this.$xdShowLoading({});
270
282
  jfbRootExec("confirmGiveCard", {
271
283
  vm: this,
272
284
  data: {
@@ -277,8 +289,10 @@ export default {
277
289
  .then((res) => {
278
290
  this.getDetail();
279
291
  this.dialogShow = true;
292
+ this.$xdHideLoading({});
280
293
  })
281
294
  .catch((err) => {
295
+ this.$xdHideLoading({});
282
296
  console.log(err, "err");
283
297
  });
284
298
  },
@@ -292,7 +306,7 @@ export default {
292
306
  uni.setClipboardData({
293
307
  data: text,
294
308
  success: () => {
295
- //this.$xdAlert({ content: "复制成功" });
309
+ this.$xdAlert({ content: "复制成功" });
296
310
  },
297
311
  });
298
312
  // #endif
@@ -312,6 +326,11 @@ export default {
312
326
 
313
327
  // #endif
314
328
  },
329
+ onJfbShow(options) {
330
+ console.log("onJfbShow8888");
331
+
332
+ // this.dialogShow = false;
333
+ },
315
334
  },
316
335
  };
317
336
  </script>
@@ -480,16 +499,15 @@ export default {
480
499
  }
481
500
  .share-btn {
482
501
  opacity: 1;
483
- background: #ff5a39;
484
- font-size: 19px;
485
- height: 44px;
486
- line-height: 44px;
487
- border-radius: 22px;
502
+ font-size: 36rpx;
503
+ height: 80rpx;
504
+ line-height: 80rpx;
505
+ border-radius: 44rpx;
488
506
  color: #fff;
489
507
  width: auto;
490
508
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
491
509
  border: 0;
492
- padding: 0 33px;
510
+ padding: 0 60rpx;
493
511
  margin: 0;
494
512
  }
495
513
  }
@@ -90,11 +90,11 @@
90
90
  </view>
91
91
  </view>
92
92
  <view
93
- v-if="info.transfer_record.status !== 'Y'"
93
+ v-if="info.transfer_record.status === 'N'"
94
94
  style="height: 110rpx"
95
95
  ></view>
96
96
  <view
97
- v-if="info.transfer_record.status !== 'Y'"
97
+ v-if="info.transfer_record.status === 'N'"
98
98
  class="jfb-base-card-receive__body-footer"
99
99
  :style="prod_bottom"
100
100
  >
@@ -103,13 +103,12 @@
103
103
  >
104
104
  </view>
105
105
  <xd-dailog
106
- title=""
106
+ title="领取失败"
107
107
  :cancel="false"
108
108
  :confirm="false"
109
109
  :show.sync="dialogShow"
110
110
  >
111
111
  <view class="dialog">
112
- <view class="dialog-title">领取失败</view>
113
112
  <view class="dialog-content">{{ errMsg }}</view>
114
113
  <xd-button @click="handleClose" width="360rpx" type="primary"
115
114
  >确定</xd-button
@@ -117,13 +116,12 @@
117
116
  </view>
118
117
  </xd-dailog>
119
118
  <xd-dailog
120
- title=""
119
+ title="领取成功"
121
120
  :cancel="false"
122
121
  :confirm="false"
123
122
  :show.sync="resultDialog"
124
123
  >
125
124
  <view class="dialog">
126
- <view class="dialog-title">领取成功</view>
127
125
  <view class="dialog-content">恭喜您领取成功</view>
128
126
  <view class="dialog-notice">票券已放入您的票券列表中</view>
129
127
  <!-- <button open-type="share">通知微信好友</button> -->
@@ -166,7 +164,7 @@ export default {
166
164
  info: null,
167
165
  transfer_auth_code: null,
168
166
  dialogShow: false,
169
- resultDialog: false,
167
+ resultDialog: true,
170
168
  isPreview: false,
171
169
  errMsg: "",
172
170
  };
@@ -229,6 +227,7 @@ export default {
229
227
  });
230
228
  },
231
229
  handleReceive() {
230
+ this.$xdShowLoading({});
232
231
  jfbRootExec("receiveCard", {
233
232
  vm: this,
234
233
  data: {
@@ -243,8 +242,10 @@ export default {
243
242
  this.resultDialog = true;
244
243
  this.getDetail();
245
244
  }
245
+ this.$xdHideLoading({});
246
246
  })
247
247
  .catch((err) => {
248
+ this.$xdHideLoading({});
248
249
  console.log(err, "err");
249
250
  });
250
251
  },
@@ -254,6 +255,8 @@ export default {
254
255
  },
255
256
 
256
257
  toUse() {
258
+ console.log(this.use_url,'this.use_url');
259
+
257
260
  this.$xdUniHelper.navigateTo({
258
261
  url: `${this.use_url}`,
259
262
  });
@@ -327,7 +330,6 @@ export default {
327
330
  }
328
331
  }
329
332
  .dialog {
330
- padding-top: 70rpx;
331
333
  .dialog-title {
332
334
  font-size: 40rpx;
333
335
  font-weight: 500;
@@ -48,7 +48,7 @@ export default {
48
48
  return {
49
49
  btnBg: "",
50
50
  contentBg: "",
51
- greeting: "我的时代看哈稍等哈手机卡好卡哈哈哈哈哈哈",
51
+ greeting: "",
52
52
  receive_get_url: "",
53
53
  btnColor: "",
54
54
  transfer_auth_code: null,
@@ -60,10 +60,12 @@ export default {
60
60
  return this.styleObjectToString({
61
61
  backgroundImage: "url(" + this.btnBg + ")",
62
62
  backgroundRepeat: "no-repeat",
63
- backgroundSize: "100% 100%",
63
+ backgroundSize: 'cover',
64
64
  width: "326rpx",
65
65
  height: "90rpx",
66
- lineHeight: "80rpx",
66
+ display: "flex",
67
+ justifyContent: "center",
68
+ alignItems: "center",
67
69
  color: this.btnColor,
68
70
  border: "none",
69
71
  });
@@ -134,6 +136,7 @@ export default {
134
136
  );
135
137
  },
136
138
  handleToReceive() {
139
+ if(this.status === "T") return;
137
140
  this.$xdUniHelper.navigateTo({
138
141
  url: `${this.receive_get_url}?transfer_auth_code=${this.transfer_auth_code}`,
139
142
  });
@@ -17,7 +17,7 @@ export default {
17
17
  value: data.pay_success_path || null,
18
18
  groupKey:'advanced',
19
19
  setting: {
20
- router: XdBus.getParentApi('getPagesTree'),
20
+ router: XdBus.getParentApi('getPag©esTree'),
21
21
  },
22
22
  inline: false,
23
23
  },
@@ -222,7 +222,7 @@ export default {
222
222
  },
223
223
  },
224
224
  computed: {
225
- prod_bottom() {
225
+ prod_bottom() {
226
226
  return this.fixedStyle({ height: 0, zIndex: 111 });
227
227
  },
228
228
  getSuccessUrl(){
@@ -416,9 +416,15 @@ export default {
416
416
  },
417
417
  })
418
418
  .then((res) => {
419
- this.$xdUniHelper.redirectTo({
420
- url: this.getSuccessUrl + `?order_id=${this.main_order_id}`
421
- });
419
+ if(this.type) {
420
+ this.$xdUniHelper.redirectTo({
421
+ url: this.getSuccessUrl + `?order_id=${this.main_order_id}&type=${this.type}`
422
+ });
423
+ } else {
424
+ this.$xdUniHelper.redirectTo({
425
+ url: this.getSuccessUrl + `?order_id=${this.main_order_id}`
426
+ });
427
+ }
422
428
  })
423
429
  .catch(error=>{
424
430
  this.$xdLog.setARMSCustomError('update_loading_fail', {options: this.options, error});
@@ -21,7 +21,7 @@
21
21
  class="jfb-base-recharge-order-detail__body-delay jfb-base-recharge-order-detail__body-card"
22
22
  >
23
23
  <image
24
- src="https://img.js.design/assets/img/66bad59319ceba995cccf478.png#fbe012b12eff21137811ee558189f911"
24
+ src="https://img3.jufubao.cn/uploads/20240911/f013c774b2ae205e13d1e9cad062b5db.jpg?ver=1726047927908"
25
25
  ></image>
26
26
  <view class="jfb-base-recharge-order-detail__body-delay-info">
27
27
  <view>{{ info.package_name }}</view>