jufubao-base 1.0.413 → 1.0.414-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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(node *)",
5
+ "Bash(git *)"
6
+ ]
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.413",
3
+ "version": "1.0.414-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -295,18 +295,44 @@
295
295
  v-if="info.codes.length === 1 && (info.codes[0].show_type === 'qrcode' || info.codes[0].show_type === 'barcode')"
296
296
  class=" jfb-base-order-detail__body-cashier"
297
297
  >
298
- <view v-if="qrcodeLayout === '2' && order_from === 'offline'" class="qr_new">
298
+ <view v-if="qrcodeLayout === '2' && order_from === 'offline'" style="padding: 30rpx;">
299
+ <view class="take_qrcode_box">
300
+ <view class="take_qrcode_box_header">请到店出示此券核验</view>
301
+ <view class="take_qrcode_box_wrap">
302
+ <view class="take_qrcode_card">
303
+ <view class="t_card_top">
304
+ <view class="t_card_left">
305
+ <view class="t_card_shop">
306
+ <view class="c_l_img">
307
+ <image :src="info.shop.brand_icon" ></image>
308
+ </view>
309
+ <view class="c_l_name">{{info.shop.brand_name}}</view>
310
+ </view>
311
+ <view class="c_l_price">
312
+ <view class="c_l_price_unit">¥</view>
313
+ {{info.pay_info.goods_amount}}
314
+ </view>
315
+ </view>
316
+ <view class="t_card_right">
317
+ <image class="c_r_img" :src="info.codes[0].code_url" mode=""></image>
318
+ </view>
319
+ </view>
320
+ <view class="t_card_bottom">
321
+ {{ info.codes[0].can_read_code }}
322
+ {{info.codes[0].refund_tip_text}}
323
+ </view>
324
+ </view>
325
+ </view>
326
+ </view>
327
+ </view>
328
+
329
+ <!-- <view v-if="qrcodeLayout === '2' && order_from === 'offline'" class="qr_new">
299
330
  <view class="qr_top">
300
331
  <view class="qr_left">
301
332
  <view class="qr_name">{{ info.shop.brand_name }}</view>
302
333
  <view class="qr_point">
303
334
  <view class="m_unit">¥</view>
304
335
  <view>{{ info.pay_info.goods_amount }}</view>
305
- <!-- <xd-unit
306
- :price="info.pay_info.real_pay_amount"
307
- :font-size="72"
308
- :iocn-size="0.45"
309
- ></xd-unit> -->
310
336
  </view>
311
337
  </view>
312
338
  <view class="qr_right">
@@ -322,7 +348,7 @@
322
348
  {{ info.codes[0].can_read_code }}
323
349
  {{info.codes[0].refund_tip_text}}
324
350
  </view>
325
- </view>
351
+ </view> -->
326
352
  <view v-else class="jfb-base-order-detail__body-card">
327
353
  <view class="jfb-base-order-detail__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
328
354
  <view v-if="showPreviewCode" style="position: relative">
@@ -1385,7 +1411,8 @@ export default {
1385
1411
  is_show_jhd_code: Number(this.is_show),
1386
1412
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
1387
1413
  version: 'v2',
1388
- is_show_after_btn: this.showApplyAfter === 'Y' ? 1 : 0
1414
+ is_show_after_btn: this.showApplyAfter === 'Y' ? 1 : 0,
1415
+ style: this.qrcodeLayout
1389
1416
  },
1390
1417
  })
1391
1418
  .then((res) => {
@@ -1419,6 +1446,7 @@ export default {
1419
1446
  res.pay_info.goods_amount,
1420
1447
  100
1421
1448
  );
1449
+ res.shop.brand_icon = getServiceUrl(res.shop.brand_icon, 'size5');
1422
1450
  res.pay_info.base =
1423
1451
  res.pay_info.base &&
1424
1452
  res.pay_info.base.map((item) => {
@@ -1714,7 +1742,7 @@ export default {
1714
1742
  this.lineHeight = getContainerPropsValue(container, "content.lineHeight", 20);
1715
1743
  this.btnTextSize = getContainerPropsValue(container, "content.btnTextSize", 20);
1716
1744
  let sectionShadow = getContainerPropsValue(container, "content.sectionShadow", "");
1717
- this.qrcodeLayout = '2';
1745
+ this.qrcodeLayout = getContainerPropsValue(container, "content.qrcodeLayout", '1');
1718
1746
  this.sectionShadow = this.getShadowCompatibleOldStyle(sectionShadow, {
1719
1747
  type: this.is_shadow,
1720
1748
  width: this.is_shadow_w,
@@ -2209,6 +2237,94 @@ export default {
2209
2237
  height: 24rpx;
2210
2238
  margin-right: 20rpx;
2211
2239
  }
2240
+ .take_qrcode_box {
2241
+
2242
+ .take_qrcode_box_header{
2243
+ border-radius: 20rpx 20rpx 0 0;
2244
+ background: #EDEDED;
2245
+ // width: 220rpx;
2246
+ color: #000000;
2247
+ font-size: 24rpx;
2248
+ font-weight: 500;
2249
+ padding: 16rpx 28rpx;
2250
+ display: inline-block;
2251
+ }
2252
+ .take_qrcode_box_wrap{
2253
+ border-radius: 0 20rpx 20rpx 20rpx;
2254
+ background: #EDEDED;
2255
+ padding: 16rpx;
2256
+ }
2257
+ .take_qrcode_card{
2258
+ box-shadow: 0px 0px 10rpx rgba(0, 0, 0, 0.1);
2259
+ border-radius: 16rpx;
2260
+ overflow: hidden;
2261
+ background: #FFFFFF;
2262
+ .t_card_top{
2263
+ border-radius: 16rpx 16rpx 0 0;
2264
+ min-height: 120rpx;
2265
+ display: flex;
2266
+ align-items: flex-start;
2267
+ justify-content: space-between;
2268
+ padding: 32rpx;
2269
+ background: url('https://sandbox-img1.jufubao.cn/uploads/20260811/0a2025be23d5a9777e956a3547ec16c3.png?x-oss-process=style/size8') no-repeat;
2270
+ background-size: 100% auto;
2271
+ .t_card_left{
2272
+ padding-top: 12rpx;
2273
+ .t_card_shop{
2274
+ display: flex;
2275
+ align-items: center;
2276
+ font-size: 30rpx;
2277
+ color: #333333;
2278
+ font-weight: 500;
2279
+ }
2280
+ .c_l_name{
2281
+ margin-left: 16rpx;
2282
+ }
2283
+ .c_l_img{
2284
+ width: 46rpx;
2285
+ height: 46rpx;
2286
+ background: #EEEEEE;
2287
+ border-radius: 50%;
2288
+ overflow: hidden;
2289
+ image{
2290
+ width: 100% !important;
2291
+ height: 100%;
2292
+ margin: 0 !important;
2293
+ transform: initial;
2294
+ }
2295
+ }
2296
+ .c_l_price{
2297
+ font-size: 68rpx;
2298
+ font-weight: 500;
2299
+ color: #333333;
2300
+ margin-top: 50rpx;
2301
+ display: flex;
2302
+ align-items: flex-end;
2303
+ .c_l_price_unit{
2304
+ font-size: 46rpx;
2305
+ margin-left: 16rpx;
2306
+ margin-bottom: 12rpx;
2307
+ }
2308
+ }
2309
+ }
2310
+ .t_card_right{
2311
+ .c_r_img{
2312
+ width: 240rpx;
2313
+ height: 240rpx;
2314
+ margin: 0;
2315
+ transform: initial;
2316
+ }
2317
+ }
2318
+ }
2319
+ .t_card_bottom{
2320
+ border-radius: 0 0 16rpx 16rpx;
2321
+ padding: 16rpx 32rpx;
2322
+ font-size: 22rpx;
2323
+ font-weight: 400;
2324
+ color: #666666;
2325
+ }
2326
+ }
2327
+ }
2212
2328
  .qr_new{
2213
2329
  .qr_top{
2214
2330
  width: 100%;
@@ -96,6 +96,7 @@ module.exports = {
96
96
  "shop": {
97
97
  "layer_name": "影院信息",
98
98
  "brand_name": "星巴克",
99
+ "brand_icon": "/uploads/20230710/44f645b06fe4da358f7b0ee06259afcd.jpg",
99
100
  "shop_id": 60487,
100
101
  "shop_name": "大地影院(北京西三旗物美店)",
101
102
  "shop_address": "北京3北京西夏区城区河北省廊坊市三河市燕郊开发区燕高路西侧实验小学南侧 "
@@ -10,6 +10,31 @@ export default {
10
10
  style: [],
11
11
  content: (data={})=>{
12
12
  return [
13
+ {
14
+ ele: 'title',
15
+ label: '组件样式',
16
+ size: 'small',
17
+ groupKey:'content',
18
+ },
19
+ {
20
+ label: "样式",
21
+ ele: "xd-radio",
22
+ valueKey: "layoutStyle",
23
+ value: data.layoutStyle || '1',
24
+ groupKey: "content",
25
+ list: [
26
+ { label: '样式1', value: '1' },
27
+ { label: '样式2', value: '2' }
28
+ ],
29
+ labelInline:true,
30
+ inline: false,
31
+ },
32
+ {
33
+ ele: 'title',
34
+ label: '基础',
35
+ size: 'small',
36
+ groupKey:'content',
37
+ },
13
38
  {
14
39
  label: '自定义按钮名称:',
15
40
  ele: 'el-input',
@@ -25,6 +50,7 @@ export default {
25
50
  ele: 'xd-radio',
26
51
  valueKey: 'is_show_order_info',
27
52
  groupKey:'content',
53
+ hidden: data.layoutStyle === '2',
28
54
  value: data['is_show_order_info'] || 'Y',
29
55
  placeholder: '请选择',
30
56
  list: [
@@ -51,6 +77,7 @@ export default {
51
77
  groupKey:'content',
52
78
  value:data['is_show_code']|| '',
53
79
  placeholder: '请选择',
80
+ hidden: data.layoutStyle === '2',
54
81
  list: [
55
82
  {"label": "是", "value": "Y"},
56
83
  {"label": "否", "value": "N"},
@@ -63,6 +90,7 @@ export default {
63
90
  groupKey:'content',
64
91
  value:data['is_show_product'] || 'Y',
65
92
  placeholder: '请选择',
93
+ hidden: data.layoutStyle === '2',
66
94
  list: [
67
95
  {"label": "是", "value": "Y"},
68
96
  {"label": "否", "value": "N"},
@@ -16,7 +16,10 @@
16
16
  <view class="jfb-base-success__edit-icon" @click="delEdit">删除</view>
17
17
  </view>
18
18
  <!-- #endif -->
19
- <view class="jfb-base-success__body" :style="{backgroundColor: boxBgColor}">
19
+ <view class="jfb-base-success__body" :style="{
20
+ '--jfb-list-radius': (Number(jfbListRadius) * $rpxNum) + 'px',
21
+ backgroundColor: boxBgColor
22
+ }">
20
23
  <view class="x-line"></view>
21
24
  <view
22
25
  v-if="noUserLoding === true"
@@ -26,7 +29,7 @@
26
29
  <template v-if="noUserLoding === false && info !== null">
27
30
  <view :style="{ margin: jfbListMarginComputed }">
28
31
  <view
29
- v-if="info.status.status_type === 'wait' || is_show_pay === 'Y'"
32
+ v-if="info.status.status_type === 'wait' || info.status.status_type === 'success' || is_show_pay === 'Y'"
30
33
  class="jfb-base-success__body-icon"
31
34
  :style="{
32
35
  marginBottom: jfbListSpacing + 'rpx',
@@ -36,6 +39,38 @@
36
39
  backgroundColor:payBgColor,
37
40
  }"
38
41
  >
42
+ <!-- 取货码 -->
43
+ <view v-if="layoutStyle === '2' && info.status.status_type === 'success'" class="take_qrcode_box">
44
+ <view class="take_qrcode_box_header">请到店出示此券核验</view>
45
+ <view class="take_qrcode_box_wrap">
46
+ <view class="take_qrcode_card">
47
+ <view class="t_card_top">
48
+ <view class="t_card_left">
49
+ <view class="t_card_shop">
50
+ <view class="c_l_img">
51
+ <image :src="info.shop.brand_icon"></image>
52
+ </view>
53
+ <view class="c_l_name">{{info.shop.brand_name}}</view>
54
+ </view>
55
+ <view class="c_l_price">
56
+ <view class="c_l_price_unit">¥</view>
57
+ {{info.pay_info.goods_amount}}
58
+ </view>
59
+ </view>
60
+ <view class="t_card_right">
61
+ <image class="c_r_img" :src="info.codes[0].code_url" mode=""></image>
62
+ </view>
63
+ </view>
64
+ <view class="t_card_bottom">
65
+ {{info.codes[0].can_read_code}}
66
+ {{info.codes[0].refund_tip_text}}
67
+ </view>
68
+ </view>
69
+ </view>
70
+ </view>
71
+ <!-- 取货码 -->
72
+
73
+
39
74
  <view class="jfb-base-success__body-icon-item">
40
75
  <view>
41
76
  <xd-font-icon
@@ -464,6 +499,7 @@ export default {
464
499
  bgColor:'',
465
500
  ticket_method_msg:'', //取票提示文案
466
501
  is_plus_site: false,
502
+ layoutStyle: '1',
467
503
 
468
504
  //按钮
469
505
  btnTextColor:'',
@@ -598,6 +634,7 @@ export default {
598
634
  this.btnTextSize = getContainerPropsValue(value, "content.btnTextSize", '28');
599
635
  this.payBgColor = getContainerPropsValue(value, "content.payBgColor", '#fff');
600
636
  console.log("this., fontSize: btnTextSize + 'rpx'", this.btnTextSize)
637
+ this.layoutStyle = getContainerPropsValue(value, "content.layoutStyle", '1');
601
638
  this.custom_btn_path = getContainerPropsValue(
602
639
  value,
603
640
  "content.custom_btn_path",
@@ -622,6 +659,12 @@ export default {
622
659
  this.index = this.settings.index;
623
660
  this.packageData = true;
624
661
  styleForm.getInitItem(this, value);
662
+
663
+ if(this.layoutStyle === '2'){
664
+ this.is_show_order_info = 'N';
665
+ this.is_show_product = 'N';
666
+ this.is_show_code = 'N';
667
+ }
625
668
  },
626
669
 
627
670
  getStatus() {
@@ -629,11 +672,12 @@ export default {
629
672
  vm: this,
630
673
  data: {
631
674
  main_order_id: this.order_id,
632
- is_show_code: this.is_show_code === "Y" ? 1 : 0,
675
+ is_show_code: this.layoutStyle === '2' ? 1 : (this.is_show_code === "Y" ? 1 : 0),
633
676
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
634
677
  custom_content_page_id: this.pageAttr.page_id,
635
678
  custom_content_container_id: this.cid,
636
- version: 'v2'
679
+ version: 'v2',
680
+ style: this.layoutStyle,
637
681
  },
638
682
  })
639
683
  .then((res) => {
@@ -834,6 +878,11 @@ export default {
834
878
  this.$xdLog.catch(err)
835
879
  });
836
880
  }
881
+ info.pay_info.goods_amount = this.$xdUniHelper.divisionFloatNumber(
882
+ info.pay_info.goods_amount,
883
+ 100
884
+ );
885
+ info.shop.brand_icon = getServiceUrl(info.shop.brand_icon);
837
886
  this.info = info;
838
887
 
839
888
  //显示核销信息
@@ -1100,8 +1149,9 @@ export default {
1100
1149
  justify-content: center;
1101
1150
  align-items: center;
1102
1151
  flex-direction: column;
1103
- padding: unit(20, rpx) unit(30, rpx);
1152
+ padding: unit(20, rpx) unit(20, rpx);
1104
1153
  &-item {
1154
+ padding: 0 10rpx;
1105
1155
  view {
1106
1156
  text-align: center;
1107
1157
  }
@@ -1172,6 +1222,95 @@ export default {
1172
1222
  }
1173
1223
  }
1174
1224
 
1225
+ .take_qrcode_box {
1226
+ margin-bottom: 48rpx;
1227
+ width: 100%;
1228
+
1229
+ .take_qrcode_box_header{
1230
+ border-radius: 20rpx 20rpx 0 0;
1231
+ background: #EDEDED;
1232
+ // width: 220rpx;
1233
+ color: #000000;
1234
+ font-size: 24rpx;
1235
+ font-weight: 500;
1236
+ padding: 16rpx 28rpx;
1237
+ display: inline-block;
1238
+ }
1239
+ .take_qrcode_box_wrap{
1240
+ border-radius: 0 20rpx 20rpx 20rpx;
1241
+ background: #EDEDED;
1242
+ padding: 16rpx;
1243
+ }
1244
+ .take_qrcode_card{
1245
+ box-shadow: 0px 0px 10rpx rgba(0, 0, 0, 0.1);
1246
+ border-radius: 16rpx;
1247
+ overflow: hidden;
1248
+ background: #FFFFFF;
1249
+ .t_card_top{
1250
+ border-radius: 16rpx 16rpx 0 0;
1251
+ min-height: 120rpx;
1252
+ display: flex;
1253
+ align-items: flex-start;
1254
+ justify-content: space-between;
1255
+ padding: 32rpx;
1256
+ background: url('https://sandbox-img1.jufubao.cn/uploads/20260811/0a2025be23d5a9777e956a3547ec16c3.png?x-oss-process=style/size8') no-repeat;
1257
+ background-size: 100% auto;
1258
+ .t_card_left{
1259
+ padding-top: 16rpx;
1260
+ .t_card_shop{
1261
+ display: flex;
1262
+ align-items: center;
1263
+ font-size: 30rpx;
1264
+ color: #333333;
1265
+ font-weight: 500;
1266
+ }
1267
+ .c_l_name{
1268
+ margin-left: 16rpx;
1269
+ }
1270
+ .c_l_img{
1271
+ width: 46rpx;
1272
+ height: 46rpx;
1273
+ background: #EEEEEE;
1274
+ border-radius: 50%;
1275
+ overflow: hidden;
1276
+ image{
1277
+ width: 100% !important;
1278
+ height: 100%;
1279
+ margin: 0 !important;
1280
+ transform: initial;
1281
+ }
1282
+ }
1283
+ .c_l_price{
1284
+ font-size: 68rpx;
1285
+ font-weight: 500;
1286
+ color: #333333;
1287
+ margin-top: 50rpx;
1288
+ display: flex;
1289
+ align-items: flex-end;
1290
+ .c_l_price_unit{
1291
+ font-size: 46rpx;
1292
+ margin-left: 16rpx;
1293
+ margin-bottom: 12rpx;
1294
+ }
1295
+ }
1296
+ }
1297
+ .t_card_right{
1298
+ .c_r_img{
1299
+ width: 240rpx;
1300
+ height: 240rpx;
1301
+ }
1302
+ }
1303
+ }
1304
+ .t_card_bottom{
1305
+ border-radius: 0 0 16rpx 16rpx;
1306
+ padding: 16rpx 32rpx;
1307
+ font-size: 22rpx;
1308
+ font-weight: 400;
1309
+ color: #666666;
1310
+ }
1311
+ }
1312
+ }
1313
+
1175
1314
  .codes-index {
1176
1315
  color: #999;
1177
1316
  background: #eee;
@@ -10,11 +10,20 @@ module.exports = {
10
10
  "comment": "非常感谢您购买我们的产品",
11
11
  "loading": false
12
12
  },
13
+ "pay_info": {
14
+ "goods_amount": 9990,
15
+ "real_pay_amount": 9990
16
+ },
13
17
  "settle_info":[
14
18
  {"label": "核销门店", "value": "安德鲁森中航城店", "type": "text"},
15
19
  {"label": "核销时间", "value": "2023-09-04 19:09:12", "type": "text"},
16
20
  {"label": "核销金额", "value": 10000, "type": "price"},
17
21
  ],
22
+ "shop": {
23
+ "brand_name": "聚福宝",
24
+ "shop_name": "聚福宝",
25
+ "brand_icon": "/uploads/20230710/44f645b06fe4da358f7b0ee06259afcd.jpg"
26
+ },
18
27
  "codes": [
19
28
  {
20
29
  "code": "tp0KPZnFPDJ8Zffw-pY52|323455",
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 第三方库
5
- * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
- * @param packname {String} 包名字
7
- * @returns {string|*}
8
- */
9
- const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
- if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
- }
13
-
14
- if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
- }
17
-
18
- };
19
-
20
- module.exports = {
21
- getPackagePath
22
- }