jufubao-base 1.0.162-beta8 → 1.0.162-beta9

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.162-beta8",
3
+ "version": "1.0.162-beta9",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -40,11 +40,11 @@
40
40
  </view>
41
41
  <view :style="{height:bottomHeight+100+'rpx'}"></view>
42
42
  <view class="jfb-base-card-shift__body-footer" :style="prod_bottom">
43
+ <xd-button type="primary" width="360rpx" @click="handleChange">立即转换</xd-button>
43
44
  <view class="jfb-base-card-shift__body-agree">
44
45
  <xd-radio size="small" v-model="isCheck"></xd-radio>
45
46
  <view>我已经阅读和同意积分转换规则</view>
46
47
  </view>
47
- <xd-button type="primary" width="360rpx" @click="handleChange">立即转换</xd-button>
48
48
  </view>
49
49
  <xd-dailog
50
50
  class="dialog"
@@ -55,14 +55,22 @@
55
55
  :cancel="false"
56
56
  >
57
57
  <view class="jfb-base-card-shift__body-success">
58
- <xd-font-icon
59
- size="100"
60
- color="#52C41A"
61
- icon="icondui-01"
62
- ></xd-font-icon>
63
- <view class="jfb-base-card-shift__body-success-title">转换成功</view>
64
- <view class="jfb-base-card-shift__body-success-content">您已成功将{{ card_number }} 转换为{{ changeNumber }}已自动帮您绑定成功,可在卡列表查询</view>
65
- <xd-button type="primarys" width="360rpx" @click="handleToLink">返回列表</xd-button>
58
+ <view class="jfb-base-card-shift__body-success-head">
59
+ <xd-font-icon
60
+ size="42"
61
+ :color="mainColor"
62
+ icon="icondui-01"
63
+ ></xd-font-icon>
64
+ <view class="jfb-base-card-shift__body-success-title" :style="{
65
+ color: mainColor
66
+ }">票券转换成功</view>
67
+ </view>
68
+
69
+ <view class="jfb-base-card-shift__body-success-content">
70
+ 已成功将 <text class="b">{{ card_number }}</text><br/> 转换成为 <text class="b">{{ changeNumber }}</text><br/>
71
+ <text @click="handleToLink">可在券包中查看</text>
72
+ </view>
73
+ <!-- <xd-button type="primarys" width="360rpx" @click="handleToLink">返回列表</xd-button> -->
66
74
  </view>
67
75
  </xd-dailog>
68
76
  </view>
@@ -270,8 +278,7 @@ export default {
270
278
  justify-content: center;
271
279
  font-size: unit(24, rpx);
272
280
  color: #bbb;
273
- padding: unit(20, rpx) 0;
274
- margin-bottom: unit(40,rpx);
281
+ margin: unit(40,rpx) 0;
275
282
 
276
283
  & > view {
277
284
  margin-left: unit(25, rpx);
@@ -284,13 +291,21 @@ export default {
284
291
  right: 0;
285
292
  // bottom: unit(120,rpx) !important;
286
293
  height: unit(100, rpx);
294
+ background: #FFFFFF;
295
+ padding-top: unit(20, rpx);
287
296
  }
288
297
 
289
298
  &-success {
290
299
  padding: unit(70, rpx);
291
300
  &-title {
292
- font-size: unit(42, rpx);
301
+ font-size: unit(36, rpx);
293
302
  color: #242424;
303
+ margin-left: 8px;
304
+ }
305
+ &-head{
306
+ display: flex;
307
+ align-items: center;
308
+ justify-content: center;
294
309
  }
295
310
 
296
311
  &-content {
@@ -298,7 +313,11 @@ export default {
298
313
  color: #5a5a5a;
299
314
  text-align: center;
300
315
  line-height: unit(42, rpx);
301
- margin: unit(50, rpx) 0;
316
+ margin: unit(40, rpx) 0 0;
317
+ .b{
318
+ font-weight: bold;
319
+ margin-left: 8rpx;
320
+ }
302
321
  }
303
322
  }
304
323
 
@@ -33,19 +33,20 @@
33
33
  <view class="jfb-base-sweep__body-other-text">无法识别该界面</view>
34
34
  </view>
35
35
  <view class="jfb-base-sweep__body-footer" :style="prod_bottom">
36
- <XdButton @click="scan" type="primary" radius="20" width="40%"
36
+ <XdButton @click="scan" type="primary" radius="50rpx" width="50%"
37
37
  >重试</XdButton
38
38
  >
39
39
  </view>
40
40
  </view>
41
41
  <view class="jfb-base-sweep__body-other" v-if="show">
42
- <view @click="scan">
43
- <xd-font-icon
44
- color="#ccc"
45
- size="240"
46
- icon="iconsaoma"
47
- ></xd-font-icon>
48
- <view class="jfb-base-sweep__body-other-text">点击扫码</view>
42
+ <view>
43
+ <image style="width: 500rpx;height:500rpx" src="https://img0.jufubao.cn/common/qrcode-dome.png?ver=1"></image>
44
+ <view style="color:#000000;font-size:48rpx" class="jfb-base-sweep__body-other-text">重新扫码</view>
45
+ </view>
46
+ <view class="jfb-base-sweep__body-footer" :style="prod_bottom">
47
+ <XdButton @click="scan" type="primary" radius="50rpx" width="50%"
48
+ >扫一扫</XdButton
49
+ >
49
50
  </view>
50
51
  </view>
51
52
  </view>
@@ -91,14 +92,6 @@ export default {
91
92
  container(value) {
92
93
  this.init(value);
93
94
  },
94
- jwxSDK(value) {
95
- //#ifdef H5
96
- if (value) {
97
- this.$xdHideLoading();
98
- this.scan();
99
- }
100
- //#endif
101
- },
102
95
  },
103
96
  created() {
104
97
  this.backgroundColor = Color(this.warningColor).alpha(0.2).toString();
@@ -112,6 +105,8 @@ export default {
112
105
  })
113
106
  .then(res => {
114
107
  console.log(0)
108
+ this.$xdHideLoading();
109
+ this.scan();
115
110
  })
116
111
  .catch(error=>{
117
112
  this.$xdAlert({
@@ -173,7 +168,8 @@ export default {
173
168
  }
174
169
  if (queryobjArr["pa"]) {
175
170
  // 如果queryobjArr中有pa属性,则获取pa属性的值,并将其拼接到bind_url后面,然后使用navigateTo方法跳转到该路径
176
- let path = `${this.bind_url}?pa=${queryobjArr["pa"]}`;
171
+ console.log(this.bind_url,'pathpath');
172
+ let path = `${this.bind_url}?pa=${res.resultStr}`;
177
173
  this.$xdUniHelper.navigateTo({
178
174
  url: path,
179
175
  });
@@ -247,7 +243,7 @@ export default {
247
243
  }
248
244
  if (queryobjArr["pa"]) {
249
245
  // 如果queryobjArr中有pa属性,则获取pa属性的值,并将其拼接到bind_url后面,然后使用navigateTo方法跳转到该路径
250
- let path = `${this.bind_url}?pa=${queryobjArr["pa"]}`;
246
+ let path = `${this.bind_url}?pa=${res.result}`;
251
247
  this.$xdUniHelper.navigateTo({
252
248
  url: path,
253
249
  });
@@ -348,7 +344,7 @@ export default {
348
344
  position: fixed;
349
345
  left: 0;
350
346
  right: 0;
351
- height: unit(110, rpx);
347
+ height: unit(200, rpx);
352
348
  }
353
349
  }
354
350
  }