jufubao-base 1.0.412 → 1.0.413-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.
@@ -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.412",
3
+ "version": "1.0.413-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -817,12 +817,10 @@ export default {
817
817
  color: '#fff',
818
818
  bgColor: '',
819
819
  });
820
- if (this.isPreview) {
821
- if(this.bussShowType !== bussShowType){
822
- this.clearDefault();
823
- this.cardPageNum = 0;
824
- this.onJfbLoad(this.options);
825
- }
820
+ if(this.bussShowType !== bussShowType){
821
+ this.clearDefault();
822
+ this.cardPageNum = 0;
823
+ this.onJfbLoad(this.options);
826
824
  }
827
825
  this.bussShowType = bussShowType;
828
826
  },
@@ -732,17 +732,59 @@ export default {
732
732
  ]
733
733
  },
734
734
  {
735
- label: "核销订单样式",
735
+ label: '订单来源:',
736
+ ele: 'xd-radio',
737
+ valueKey: 'showOrderSource',
738
+ value: data['showOrderSource'] || 'N',
739
+ groupKey:'content',
740
+ placeholder: '请选择',
741
+ list: [
742
+ { label: '显示', value: 'Y' },
743
+ { label: '隐藏', value: 'N' },
744
+ ],
745
+ },
746
+ {
747
+ label: '快递提示',
748
+ ele: 'xd-cus-switch',
749
+ valueKey: 'showLogisticsTip',
750
+ value: dataVal({ data, key: 'showLogisticsTip', dValue: 'Y', gValue }),
751
+ className: 'input100',
752
+ groupKey:'content',
753
+ labelInline:true,
754
+ inline: false,
755
+ cusStyle:{marginBottom: '10px'},
756
+ setting: {
757
+ tips:['显示','不显示'],
758
+ isBackType: 'string'
759
+ },
760
+ notice:'仅针对配送方式为快递的商品展示',
761
+ },
762
+ { ele: 'group_start' },
763
+ {
764
+ label: "展示方式",
736
765
  ele: "xd-radio",
737
- valueKey: 'qrcodeLayout',
766
+ valueKey: "logisticsTipType",
767
+ value: dataVal({ data, key: 'logisticsTipType', dValue: 'shop', gValue }),
738
768
  groupKey:'content',
739
- value: data['qrcodeLayout'] || '1',
740
- placeholder: '请选择核销订单样式',
741
769
  list: [
742
- { label: '样式1', value: '1' },
743
- { label: '样式2', value: '2' },
744
- ]
770
+ { label: "按拆单展示", value: "shop"},
771
+ { label: "按商品展示", value: "prod"},
772
+ ],
773
+ hidden: data.showLogisticsTip === 'N',
774
+ labelInline: true,
745
775
  },
776
+ {
777
+ label: "",
778
+ ele: "el-input",
779
+ valueKey: "logisticsTipText",
780
+ value: dataVal({ data, key: 'logisticsTipText', dValue: '', gValue }),
781
+ hidden: data.showLogisticsTip === 'N',
782
+ labelInline: true,
783
+ className: 'input100',
784
+ placeholder: '订单生成后72小时发货,如遇节假日发货顺延',
785
+ groupKey:'content',
786
+ },
787
+ { ele: 'group_end' },
746
788
  {
747
789
  label: '底部客服',
748
790
  ele: 'xd-cus-switch',
@@ -227,6 +227,14 @@
227
227
  <view> {{ Fitem.label }}: </view>
228
228
  <view> {{ Fitem.value }} </view>
229
229
  </view>
230
+ <!-- 订单来源 -->
231
+ <view v-if="showOrderSource==='Y' && Sitem.special_names" class="postage_tip">
232
+ 订单来源:{{ Sitem.special_names }}
233
+ </view>
234
+ <!-- 配送提示 -->
235
+ <view v-if="showLogisticsTip==='Y' && logisticsTipType==='prod'" class="postage_tip">
236
+ <view>{{ Sitem.postage_tip || logisticsTipText}}</view>
237
+ </view>
230
238
  </view>
231
239
  <view
232
240
  class="jfb-base-order-detail__body-delivery-bottom"
@@ -293,83 +301,52 @@
293
301
  marginBottom: padding + 'rpx',
294
302
  }"
295
303
  v-if="info.codes.length === 1 && (info.codes[0].show_type === 'qrcode' || info.codes[0].show_type === 'barcode')"
296
- class=" jfb-base-order-detail__body-cashier"
304
+ class="jfb-base-order-detail__body-card jfb-base-order-detail__body-cashier"
297
305
  >
298
- <view v-if="qrcodeLayout === '2' && order_from === 'offline'" class="qr_new">
299
- <view class="qr_top">
300
- <view class="qr_left">
301
- <view class="qr_name">{{ info.shop.brand_name }}</view>
302
- <view class="qr_point">
303
- <view class="m_unit">¥</view>
304
- <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
- </view>
311
- </view>
312
- <view class="qr_right">
313
- <image :style="{
314
- height: '160rpx',
315
- width: '160rpx',
316
- }"
317
- :src="info.codes[0].code_url"
318
- ></image>
319
- </view>
320
- </view>
321
- <view class="qr_bottom">
322
- {{ info.codes[0].can_read_code }}
323
- {{info.codes[0].refund_tip_text}}
324
- </view>
306
+ <view class="jfb-base-order-detail__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
307
+ <view v-if="showPreviewCode" style="position: relative">
308
+ <image
309
+ :style="{
310
+ height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
311
+ width: info.codes[0].show_type === 'qrcode' ? '50vw' : '85vw',
312
+ }"
313
+ :src="info.codes[0].code_url"
314
+ ></image>
315
+ <image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
325
316
  </view>
326
- <view v-else class="jfb-base-order-detail__body-card">
327
- <view class="jfb-base-order-detail__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
328
- <view v-if="showPreviewCode" style="position: relative">
329
- <image
330
- :style="{
331
- height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
332
- width: info.codes[0].show_type === 'qrcode' ? '50vw' : '85vw',
333
- }"
334
- :src="info.codes[0].code_url"
335
- ></image>
336
- <image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
337
- </view>
338
- <view v-if="info.codes[0].tips" class="jfb-base-order-detail__body-cashier-text">{{ info.codes[0].tips }}</view>
339
- <view v-if="info.codes[0].can_read_password" class="jfb-base-order-detail__body-cashier-password" @click="showPassword = true">
340
- {{ showPassword ? info.codes[0].can_read_code : "查看" }}
341
- </view>
342
- <view v-else class="jfb-base-order-detail__body-cashier-text">
343
- {{ info.codes[0].can_read_code }}
344
- </view>
345
- <view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">
346
- {{info.codes[0].refund_tip_text}}
347
- </view>
348
- <view
349
- v-if="info.codes[0].code_end_time"
350
- class="jfb-base-order-detail__body-cashier-code"
351
- :style="{
352
- borderColor: mainColor,
353
- color: mainColor,
354
- background: bgColor,
355
- }"
356
- >{{ info.codes[0].code_end_time }}</view>
357
- <!-- 自动刷新倒计时 -->
358
- <view v-if="info.codes[0].is_auto_refresh === 'Y'" class="jfb-base-order-detail__body-card-refresh" @click="handleCodeRefresh">
359
- <text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
360
- <xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
361
- </view>
362
- <!-- 预约按钮 -->
363
- <view v-if="info.codes[0].reservation_buttons && info.codes[0].reservation_buttons.length > 0" class="jfb-base-order-detail__body-reserve">
364
- <view
365
- v-for="(btn, idx) in info.codes[0].reservation_buttons"
366
- :key="idx"
367
- class="jfb-base-order-detail__body-reserve-btn"
368
- @click="handleReservationJump(btn.url)"
369
- >{{ btn.name }}</view>
370
- </view>
317
+ <view v-if="info.codes[0].tips" class="jfb-base-order-detail__body-cashier-text">{{ info.codes[0].tips }}</view>
318
+ <view v-if="info.codes[0].can_read_password" class="jfb-base-order-detail__body-cashier-password" @click="showPassword = true">
319
+ {{ showPassword ? info.codes[0].can_read_code : "查看" }}
320
+ </view>
321
+ <view v-else class="jfb-base-order-detail__body-cashier-text">
322
+ {{ info.codes[0].can_read_code }}
323
+ </view>
324
+ <view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">
325
+ {{info.codes[0].refund_tip_text}}
326
+ </view>
327
+ <view
328
+ v-if="info.codes[0].code_end_time"
329
+ class="jfb-base-order-detail__body-cashier-code"
330
+ :style="{
331
+ borderColor: mainColor,
332
+ color: mainColor,
333
+ background: bgColor,
334
+ }"
335
+ >{{ info.codes[0].code_end_time }}</view>
336
+ <!-- 自动刷新倒计时 -->
337
+ <view v-if="info.codes[0].is_auto_refresh === 'Y'" class="jfb-base-order-detail__body-card-refresh" @click="handleCodeRefresh">
338
+ <text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
339
+ <xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
340
+ </view>
341
+ <!-- 预约按钮 -->
342
+ <view v-if="info.codes[0].reservation_buttons && info.codes[0].reservation_buttons.length > 0" class="jfb-base-order-detail__body-reserve">
343
+ <view
344
+ v-for="(btn, idx) in info.codes[0].reservation_buttons"
345
+ :key="idx"
346
+ class="jfb-base-order-detail__body-reserve-btn"
347
+ @click="handleReservationJump(btn.url)"
348
+ >{{ btn.name }}</view>
371
349
  </view>
372
-
373
350
  </view>
374
351
  <!--单条条形码或者二维码-->
375
352
  <!--其他情况显示-->
@@ -1158,7 +1135,6 @@ export default {
1158
1135
  is_show_support_shop: "",
1159
1136
  is_show_delete_order:'N', //删除订单
1160
1137
  ticket_method_msg:'', //取票提示文案
1161
- qrcodeLayout: '1',
1162
1138
 
1163
1139
  showPassword: false,
1164
1140
  dialogPassword: "",
@@ -1222,7 +1198,10 @@ export default {
1222
1198
  refundPath: "",
1223
1199
  refundFastPath: "",
1224
1200
  btnTextSize: 20,
1225
- order_from: "",
1201
+ showOrderSource: "",
1202
+ showLogisticsTip: "",
1203
+ logisticsTipType: "",
1204
+ logisticsTipText: "",
1226
1205
 
1227
1206
  showSupplement: false,
1228
1207
  supplementList: [],
@@ -1385,11 +1364,13 @@ export default {
1385
1364
  is_show_jhd_code: Number(this.is_show),
1386
1365
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
1387
1366
  version: 'v2',
1388
- is_show_after_btn: this.showApplyAfter === 'Y' ? 1 : 0
1367
+ is_show_after_btn: this.showApplyAfter === 'Y' ? 1 : 0,
1368
+ is_show_sub_order_postage_tip: (this.showLogisticsTip === 'Y' && this.logisticsTipType === 'shop') ? 1 : 0,
1369
+ default_sub_order_postage_tip: this.logisticsTipText
1389
1370
  },
1390
1371
  })
1391
1372
  .then((res) => {
1392
-
1373
+
1393
1374
  //跳转到第三方订单
1394
1375
  if(res['third_order_detail_url']) {
1395
1376
  this.$xdUniHelper.redirectTo({url: res['third_order_detail_url']}, false, true);
@@ -1401,7 +1382,6 @@ export default {
1401
1382
 
1402
1383
  this.biz_code = res.biz_code;
1403
1384
  this.is_not_show_price = res.is_not_show_price;
1404
- this.order_from = res.order_from;
1405
1385
 
1406
1386
  //旅游模块
1407
1387
  if(res.extras && res.extras.travel_booking_info) {
@@ -1415,10 +1395,6 @@ export default {
1415
1395
  res.pay_info.real_pay_amount,
1416
1396
  100
1417
1397
  );
1418
- res.pay_info.goods_amount = this.$xdUniHelper.divisionFloatNumber(
1419
- res.pay_info.goods_amount,
1420
- 100
1421
- );
1422
1398
  res.pay_info.base =
1423
1399
  res.pay_info.base &&
1424
1400
  res.pay_info.base.map((item) => {
@@ -1714,7 +1690,6 @@ export default {
1714
1690
  this.lineHeight = getContainerPropsValue(container, "content.lineHeight", 20);
1715
1691
  this.btnTextSize = getContainerPropsValue(container, "content.btnTextSize", 20);
1716
1692
  let sectionShadow = getContainerPropsValue(container, "content.sectionShadow", "");
1717
- this.qrcodeLayout = '2';
1718
1693
  this.sectionShadow = this.getShadowCompatibleOldStyle(sectionShadow, {
1719
1694
  type: this.is_shadow,
1720
1695
  width: this.is_shadow_w,
@@ -1743,6 +1718,10 @@ export default {
1743
1718
  this.showPreviewCode = true;
1744
1719
  }
1745
1720
  }
1721
+ this.showOrderSource = getContainerPropsValue(container, "content.showOrderSource", 'N');
1722
+ this.showLogisticsTip = getContainerPropsValue(container, "content.showLogisticsTip", 'Y');
1723
+ this.logisticsTipType = getContainerPropsValue(container, "content.logisticsTipType", 'shop');
1724
+ this.logisticsTipText = getContainerPropsValue(container, "content.logisticsTipText", '订单生成后72小时发货,如遇节假日发货顺延');
1746
1725
  this.is_show_invoice = getContainerPropsValue(container, "content.is_show_invoice", "N");
1747
1726
  this.showService = getContainerPropsValue(container, "content.showService", "");
1748
1727
  this.serviceIcon = getContainerPropsValue(container, "content.serviceIcon", 'iconkefu');
@@ -2209,45 +2188,11 @@ export default {
2209
2188
  height: 24rpx;
2210
2189
  margin-right: 20rpx;
2211
2190
  }
2212
- .qr_new{
2213
- .qr_top{
2214
- width: 100%;
2215
- display: flex;
2216
- padding: 32rpx 32rpx 16rpx;
2217
- box-sizing: border-box;
2218
- .qr_left{
2219
- flex: 1;
2220
- .qr_name{
2221
- color: #333333;
2222
- font-size: 32rpx;
2223
- font-weight: 500;
2224
- }
2225
- .qr_point{
2226
- margin-top: 16rpx;
2227
- font-size: 72rpx;
2228
- color: #333333;
2229
- font-weight: 500;
2230
- display: flex;
2231
- align-items: flex-end;
2232
- .m_unit{
2233
- font-size: 48rpx;
2234
- margin-bottom: 12rpx;
2235
- }
2236
- }
2237
- }
2238
- .qr_right{
2239
- image{
2240
- margin: 0;
2241
- transform: initial;
2242
- }
2243
- }
2244
- }
2245
- .qr_bottom{
2246
- font-size: 24rpx;
2247
- color: #666666;
2248
- border-top: 1px solid #EEEEEE;
2249
- padding: 16rpx 32rpx 32rpx;
2250
- }
2191
+
2192
+ .postage_tip{
2193
+ color: rgb(229, 116, 112);
2194
+ font-size: 24rpx;
2195
+ margin: 10px 0;
2251
2196
  }
2252
2197
 
2253
2198
  .code-url {
@@ -95,7 +95,6 @@ module.exports = {
95
95
  },
96
96
  "shop": {
97
97
  "layer_name": "影院信息",
98
- "brand_name": "星巴克",
99
98
  "shop_id": 60487,
100
99
  "shop_name": "大地影院(北京西三旗物美店)",
101
100
  "shop_address": "北京3北京西夏区城区河北省廊坊市三河市燕郊开发区燕高路西侧实验小学南侧 "
@@ -32,18 +32,6 @@ export default {
32
32
  {"label": "否", "value": "N"},
33
33
  ],
34
34
  },
35
- {
36
- label: "支付成功展示隐藏:",
37
- ele: "xd-radio",
38
- valueKey: 'is_show_pay',
39
- groupKey:'content',
40
- value: data['is_show_pay'] || 'Y',
41
- placeholder: '请选择',
42
- list: [
43
- {"label": "是", "value": "Y"},
44
- {"label": "否", "value": "N"},
45
- ],
46
- },
47
35
  {
48
36
  label: '是否显示码:',
49
37
  ele: 'xd-radio',
@@ -26,7 +26,7 @@
26
26
  <template v-if="noUserLoding === false && info !== null">
27
27
  <view :style="{ margin: jfbListMarginComputed }">
28
28
  <view
29
- v-if="info.status.status_type === 'wait' || is_show_pay === 'Y'"
29
+ v-if="info.status.status_type === 'wait' || is_show_order_info === 'Y'"
30
30
  class="jfb-base-success__body-icon"
31
31
  :style="{
32
32
  marginBottom: jfbListSpacing + 'rpx',
@@ -44,7 +44,7 @@
44
44
  :color="info.status.iconColor"
45
45
  ></xd-font-icon>
46
46
  </view>
47
- <view style="margin-top: 16rpx;">{{ info.status.status_name }}</view>
47
+ <view>{{ info.status.status_name }}</view>
48
48
  <view class="jfb-base-success__body-icon-item-tip">{{info.status.comment }}</view>
49
49
  </view>
50
50
  <view class="jfb-base-success__body-icon-btn">
@@ -455,7 +455,6 @@ export default {
455
455
  index: "", //首页跳转
456
456
  is_show_code: "",
457
457
  is_show_order_info: "",
458
- is_show_pay: "",
459
458
  is_show_product: "",
460
459
  webViewPath: "/pages/webview/webview", //容器路径
461
460
  isPreview: false,
@@ -613,7 +612,6 @@ export default {
613
612
  "content.is_show_order_info",
614
613
  "Y"
615
614
  );
616
- this.is_show_pay = getContainerPropsValue(value, 'content.is_show_pay', 'Y')
617
615
  this.is_show_product = getContainerPropsValue(
618
616
  value,
619
617
  "content.is_show_product",
@@ -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
- }