jufubao-base 1.0.413-beta1 → 1.0.413

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,22 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.413-beta1",
3
+ "version": "1.0.413",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -535,15 +535,6 @@ export default {
535
535
  XdCardNew,
536
536
  },
537
537
  mixins: [componentsMixins, extsMixins, JfbBaseCardEntryMixin, colorCardMixins, cardListMixins, posterMixins],
538
- computed: {
539
- ...mapState({
540
- jwxSDK: (state) => state.jwxSDK,
541
- jfbAuthorize: (state) => state.jfbAuthorize,
542
- }),
543
- emptyBg() {
544
- return this.getNoData();
545
- },
546
- },
547
538
  computed: {
548
539
  tabSelectedStyle() {
549
540
  let styleObj = {
@@ -559,6 +550,13 @@ export default {
559
550
  }
560
551
  return this.styleObjectToString(styleObj);
561
552
  },
553
+ ...mapState({
554
+ jwxSDK: (state) => state.jwxSDK,
555
+ jfbAuthorize: (state) => state.jfbAuthorize,
556
+ }),
557
+ emptyBg() {
558
+ return this.getNoData();
559
+ },
562
560
  },
563
561
  filters:{
564
562
  cutstr(val){
@@ -817,10 +815,12 @@ export default {
817
815
  color: '#fff',
818
816
  bgColor: '',
819
817
  });
820
- if(this.bussShowType !== bussShowType){
821
- this.clearDefault();
822
- this.cardPageNum = 0;
823
- this.onJfbLoad(this.options);
818
+ if (this.isPreview) {
819
+ if(this.bussShowType !== bussShowType){
820
+ this.clearDefault();
821
+ this.cardPageNum = 0;
822
+ this.onJfbLoad(this.options);
823
+ }
824
824
  }
825
825
  this.bussShowType = bussShowType;
826
826
  },
@@ -732,59 +732,17 @@ export default {
732
732
  ]
733
733
  },
734
734
  {
735
- label: '订单来源:',
736
- ele: 'xd-radio',
737
- valueKey: 'showOrderSource',
738
- value: data['showOrderSource'] || 'Y',
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: "展示方式",
735
+ label: "核销订单样式",
765
736
  ele: "xd-radio",
766
- valueKey: "logisticsTipType",
767
- value: dataVal({ data, key: 'logisticsTipType', dValue: 'shop', gValue }),
737
+ valueKey: 'qrcodeLayout',
768
738
  groupKey:'content',
739
+ value: data['qrcodeLayout'] || '1',
740
+ placeholder: '请选择核销订单样式',
769
741
  list: [
770
- { label: "按拆单展示", value: "shop"},
771
- { label: "按商品展示", value: "prod"},
772
- ],
773
- hidden: data.showLogisticsTip === 'N',
774
- labelInline: true,
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',
742
+ { label: '样式1', value: '1' },
743
+ { label: '样式2', value: '2' },
744
+ ]
786
745
  },
787
- { ele: 'group_end' },
788
746
  {
789
747
  label: '底部客服',
790
748
  ele: 'xd-cus-switch',
@@ -227,14 +227,6 @@
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>
238
230
  </view>
239
231
  <view
240
232
  class="jfb-base-order-detail__body-delivery-bottom"
@@ -301,52 +293,83 @@
301
293
  marginBottom: padding + 'rpx',
302
294
  }"
303
295
  v-if="info.codes.length === 1 && (info.codes[0].show_type === 'qrcode' || info.codes[0].show_type === 'barcode')"
304
- class="jfb-base-order-detail__body-card jfb-base-order-detail__body-cashier"
296
+ class=" jfb-base-order-detail__body-cashier"
305
297
  >
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>
316
- </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>
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>
340
325
  </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>
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>
349
371
  </view>
372
+
350
373
  </view>
351
374
  <!--单条条形码或者二维码-->
352
375
  <!--其他情况显示-->
@@ -1135,6 +1158,7 @@ export default {
1135
1158
  is_show_support_shop: "",
1136
1159
  is_show_delete_order:'N', //删除订单
1137
1160
  ticket_method_msg:'', //取票提示文案
1161
+ qrcodeLayout: '1',
1138
1162
 
1139
1163
  showPassword: false,
1140
1164
  dialogPassword: "",
@@ -1198,10 +1222,7 @@ export default {
1198
1222
  refundPath: "",
1199
1223
  refundFastPath: "",
1200
1224
  btnTextSize: 20,
1201
- showOrderSource: "",
1202
- showLogisticsTip: "",
1203
- logisticsTipType: "",
1204
- logisticsTipText: "",
1225
+ order_from: "",
1205
1226
 
1206
1227
  showSupplement: false,
1207
1228
  supplementList: [],
@@ -1364,13 +1385,11 @@ export default {
1364
1385
  is_show_jhd_code: Number(this.is_show),
1365
1386
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
1366
1387
  version: 'v2',
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
1388
+ is_show_after_btn: this.showApplyAfter === 'Y' ? 1 : 0
1370
1389
  },
1371
1390
  })
1372
1391
  .then((res) => {
1373
-
1392
+
1374
1393
  //跳转到第三方订单
1375
1394
  if(res['third_order_detail_url']) {
1376
1395
  this.$xdUniHelper.redirectTo({url: res['third_order_detail_url']}, false, true);
@@ -1382,6 +1401,7 @@ export default {
1382
1401
 
1383
1402
  this.biz_code = res.biz_code;
1384
1403
  this.is_not_show_price = res.is_not_show_price;
1404
+ this.order_from = res.order_from;
1385
1405
 
1386
1406
  //旅游模块
1387
1407
  if(res.extras && res.extras.travel_booking_info) {
@@ -1395,6 +1415,10 @@ export default {
1395
1415
  res.pay_info.real_pay_amount,
1396
1416
  100
1397
1417
  );
1418
+ res.pay_info.goods_amount = this.$xdUniHelper.divisionFloatNumber(
1419
+ res.pay_info.goods_amount,
1420
+ 100
1421
+ );
1398
1422
  res.pay_info.base =
1399
1423
  res.pay_info.base &&
1400
1424
  res.pay_info.base.map((item) => {
@@ -1690,6 +1714,7 @@ export default {
1690
1714
  this.lineHeight = getContainerPropsValue(container, "content.lineHeight", 20);
1691
1715
  this.btnTextSize = getContainerPropsValue(container, "content.btnTextSize", 20);
1692
1716
  let sectionShadow = getContainerPropsValue(container, "content.sectionShadow", "");
1717
+ this.qrcodeLayout = '2';
1693
1718
  this.sectionShadow = this.getShadowCompatibleOldStyle(sectionShadow, {
1694
1719
  type: this.is_shadow,
1695
1720
  width: this.is_shadow_w,
@@ -1718,10 +1743,6 @@ export default {
1718
1743
  this.showPreviewCode = true;
1719
1744
  }
1720
1745
  }
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小时发货,如遇节假日发货顺延');
1725
1746
  this.is_show_invoice = getContainerPropsValue(container, "content.is_show_invoice", "N");
1726
1747
  this.showService = getContainerPropsValue(container, "content.showService", "");
1727
1748
  this.serviceIcon = getContainerPropsValue(container, "content.serviceIcon", 'iconkefu');
@@ -2188,11 +2209,45 @@ export default {
2188
2209
  height: 24rpx;
2189
2210
  margin-right: 20rpx;
2190
2211
  }
2191
-
2192
- .postage_tip{
2193
- color: rgb(229, 116, 112);
2194
- font-size: 24rpx;
2195
- margin: 10px 0;
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
+ }
2196
2251
  }
2197
2252
 
2198
2253
  .code-url {
@@ -95,6 +95,7 @@ module.exports = {
95
95
  },
96
96
  "shop": {
97
97
  "layer_name": "影院信息",
98
+ "brand_name": "星巴克",
98
99
  "shop_id": 60487,
99
100
  "shop_name": "大地影院(北京西三旗物美店)",
100
101
  "shop_address": "北京3北京西夏区城区河北省廊坊市三河市燕郊开发区燕高路西侧实验小学南侧 "
@@ -32,6 +32,18 @@ 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
+ },
35
47
  {
36
48
  label: '是否显示码:',
37
49
  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_order_info === 'Y'"
29
+ v-if="info.status.status_type === 'wait' || is_show_pay === '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>{{ info.status.status_name }}</view>
47
+ <view style="margin-top: 16rpx;">{{ 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,6 +455,7 @@ export default {
455
455
  index: "", //首页跳转
456
456
  is_show_code: "",
457
457
  is_show_order_info: "",
458
+ is_show_pay: "",
458
459
  is_show_product: "",
459
460
  webViewPath: "/pages/webview/webview", //容器路径
460
461
  isPreview: false,
@@ -612,6 +613,7 @@ export default {
612
613
  "content.is_show_order_info",
613
614
  "Y"
614
615
  );
616
+ this.is_show_pay = getContainerPropsValue(value, 'content.is_show_pay', 'Y')
615
617
  this.is_show_product = getContainerPropsValue(
616
618
  value,
617
619
  "content.is_show_product",
@@ -1,7 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(node *)"
5
- ]
6
- }
7
- }