jufubao-base 1.0.130 → 1.0.132-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.130",
3
+ "version": "1.0.132-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -294,8 +294,9 @@
294
294
  ></image>
295
295
  <image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
296
296
  </view>
297
- <view class="jfb-base-order-detail__body-cashier-text">
298
- {{ info.codes[0].can_read_code }}
297
+
298
+ <view v-if="info.codes[0].can_read_password" class="jfb-base-order-detail__body-cashier-password" @click="showPassword = true">
299
+ {{ showPassword ? info.codes[0].can_read_code : "查看密码" }}
299
300
  </view>
300
301
  <view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">
301
302
  {{info.codes[0].refund_tip_text}}
@@ -414,12 +415,13 @@
414
415
  v-if="item.show_type === 'qrcode'"
415
416
  >
416
417
  <view class="jfb-base-order-detail__body-num">
417
- <view class="jfb-base-order-detail__body-num-info">
418
+ <!-- <view class="jfb-base-order-detail__body-num-info">
418
419
  <view>{{ item.can_read_code }}</view>
419
- </view>
420
+ </view> -->
420
421
  <view
421
422
  class="jfb-base-order-detail__body-num-info-copy"
422
- @click="handleShowCode(item)">查看二维码</view>
423
+ style="margin-top: 0;"
424
+ @click="handleShowCode(item)">查看二维码和密码</view>
423
425
  <view
424
426
  v-if="item.code_end_time"
425
427
  class="jfb-base-order-detail__body-cashier-code"
@@ -764,6 +766,9 @@
764
766
  </image>
765
767
  </view>
766
768
  </view>
769
+ <view v-if="dialogPassword" class="dialog_password">
770
+ {{ dialogPassword }}
771
+ </view>
767
772
  </xd-dailog>
768
773
  </view>
769
774
  </template>
@@ -815,6 +820,9 @@ export default {
815
820
  isPreview: false, //是否预览
816
821
  biz_code: "",
817
822
 
823
+ showPassword: false,
824
+ dialogPassword: "",
825
+
818
826
  //基础
819
827
  radius: 0,
820
828
  backgroundColor: "",
@@ -1158,6 +1166,7 @@ export default {
1158
1166
  this.codeSrc = item.code_url;
1159
1167
  this.showType = item.show_type;
1160
1168
  this.logo = item.logo;
1169
+ this.dialogPassword = item.can_read_code;
1161
1170
  console.log(this.codeSrc, "this.codeSrc");
1162
1171
  this.showCode = true;
1163
1172
  },
@@ -1291,11 +1300,12 @@ export default {
1291
1300
  &__body {
1292
1301
  color: #333;
1293
1302
  .logo-icon {
1294
- width: unit(100, rpx) !important;
1295
- height: unit(100, rpx) !important;
1303
+ width: unit(80, rpx) !important;
1304
+ height: unit(80, rpx) !important;
1296
1305
  position: absolute;
1297
1306
  top: 50%;
1298
1307
  transform: translate(-50rpx, -50rpx);
1308
+ margin-top: 0;
1299
1309
  }
1300
1310
  &-show {
1301
1311
  display: flex;
@@ -1663,6 +1673,14 @@ export default {
1663
1673
  font-size: unit(32, rpx);
1664
1674
  font-weight: 500;
1665
1675
  }
1676
+ &-password{
1677
+ text-align: center;
1678
+ font-size: unit(32, rpx);
1679
+ font-weight: 500;
1680
+ background: #D3D3D3;
1681
+ border-radius: unit(12, rpx);
1682
+ padding: unit(14, rpx) unit(28, rpx);
1683
+ }
1666
1684
 
1667
1685
  image {
1668
1686
  width: unit(272, rpx);
@@ -1708,6 +1726,15 @@ export default {
1708
1726
  font-size: @xd-font-size-lg;
1709
1727
  }
1710
1728
  }
1729
+
1730
+ }
1731
+ .dialog_password{
1732
+ text-align: center;
1733
+ font-size: unit(32, rpx);
1734
+ font-weight: 500;
1735
+ background: #D3D3D3;
1736
+ border-radius: unit(12, rpx);
1737
+ padding: unit(14, rpx) unit(28, rpx);
1711
1738
  }
1712
1739
  }
1713
1740
  </style>
@@ -105,7 +105,9 @@
105
105
  ></image>
106
106
  <image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
107
107
  </view>
108
- <view class="jfb-base-success__body-cashier-text">{{ info.codes[0].can_read_code }}</view>
108
+ <view v-if="info.codes[0].can_read_password" class="jfb-base-success__body-cashier-password" @click="showPassword = true">
109
+ {{ showPassword ? info.codes[0].can_read_code : "查看密码" }}
110
+ </view>
109
111
  <view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">{{info.codes[0].refund_tip_text}}</view>
110
112
  <view
111
113
  v-if="info.codes[0].code_end_time"
@@ -202,13 +204,14 @@
202
204
  v-if="item.show_type === 'qrcode'"
203
205
  >
204
206
  <view class="jfb-base-success__body-num">
205
- <view class="jfb-base-success__body-num-info">
207
+ <!-- <view class="jfb-base-success__body-num-info">
206
208
  <view>{{ item.can_read_code }}</view>
207
- </view>
209
+ </view> -->
208
210
  <view
209
211
  class="jfb-base-success__body-num-info-copy"
212
+ style="margin-top: 0;"
210
213
  @click="handleShowCode(item)"
211
- >查看二维码</view>
214
+ >查看二维码和密码</view>
212
215
  <view
213
216
  v-if="item['code_end_time']"
214
217
  class="jfb-base-success__body-cashier-code"
@@ -329,6 +332,9 @@
329
332
  </image>
330
333
  </view>
331
334
  </view>
335
+ <view v-if="dialogPassword" class="jfb-base-success__body-d_password">
336
+ {{ dialogPassword }}
337
+ </view>
332
338
  </xd-dailog>
333
339
  </view>
334
340
  </template>
@@ -398,6 +404,7 @@ export default {
398
404
  info: null,
399
405
  timeer: null,
400
406
  noUserLoding:null,
407
+ showPassword: false,
401
408
 
402
409
  //请求参数
403
410
  params: null,
@@ -405,6 +412,7 @@ export default {
405
412
  showCode: false,
406
413
  codeSrc: "",
407
414
  logo: "",
415
+ dialogPassword: "",
408
416
  ...styleForm.getDataItem(),
409
417
  };
410
418
  },
@@ -447,6 +455,7 @@ export default {
447
455
  this.codeSrc = item.code_url;
448
456
  this.showType = item.show_type;
449
457
  this.logo = item.logo;
458
+ this.dialogPassword = item.can_read_code;
450
459
  this.showCode = true;
451
460
  },
452
461
  /**
@@ -730,11 +739,12 @@ export default {
730
739
  }
731
740
 
732
741
  .logo-icon {
733
- width: unit(100, rpx) !important;
734
- height: unit(100, rpx) !important;
742
+ width: unit(80, rpx) !important;
743
+ height: unit(80, rpx) !important;
735
744
  position: absolute;
736
745
  top: 50%;
737
746
  transform: translate(-50rpx, -50rpx);
747
+ margin-top: 0;
738
748
 
739
749
 
740
750
  }
@@ -789,6 +799,14 @@ export default {
789
799
  font-size: unit(32, rpx);
790
800
  font-weight: 500;
791
801
  }
802
+ &-password{
803
+ text-align: center;
804
+ font-size: unit(32, rpx);
805
+ font-weight: 500;
806
+ background: #D3D3D3;
807
+ border-radius: unit(12, rpx);
808
+ padding: unit(14, rpx) unit(28, rpx);
809
+ }
792
810
 
793
811
  image {
794
812
  width: unit(272, rpx);
@@ -840,6 +858,14 @@ export default {
840
858
  max-width: 100%;
841
859
  }
842
860
  }
861
+ &-d_password{
862
+ text-align: center;
863
+ font-size: unit(32, rpx);
864
+ font-weight: 500;
865
+ background: #D3D3D3;
866
+ border-radius: unit(12, rpx);
867
+ padding: unit(14, rpx) unit(28, rpx);
868
+ }
843
869
 
844
870
  &-detail {
845
871
  &-html {