jufubao-mall 2.0.93-beta2 → 2.0.93

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/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
12
+ }
13
+
14
+ if (packname === 'gxd-uni-library-editx') {
15
+ return `/Users/shiyonggao/home/root/Base-Jufubao/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-mall",
3
- "version": "2.0.93-beta2",
3
+ "version": "2.0.93",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -38,8 +38,8 @@
38
38
  </view>
39
39
  <view class="column-item">
40
40
  <view class="column_label">
41
- 仍需支付
42
- <view class="label_sub">(可使用多张优惠券支付)</view>
41
+ 仍需
42
+ <view class="label_sub">(可使用多张优惠券兑换)</view>
43
43
  </view>
44
44
  <view class="column_value text-primary">
45
45
  <xd-unit
@@ -100,7 +100,7 @@
100
100
  type="primary"
101
101
  radius="50rpx"
102
102
  @click="doTicketPay"
103
- >确认支付</xd-button
103
+ >确认兑换</xd-button
104
104
  >
105
105
  </view>
106
106
  </view>
@@ -138,9 +138,14 @@
138
138
  @change="(num) => handleCartNumSet(num, prod, i)"
139
139
  ></xd-number>
140
140
  </view>
141
- <view v-if="prod.tip" :style="{color: activityPriceTextColor,fontSize:'24rpx',marginTop:'4rpx'}">{{ prod.tip }}</view>
141
+ <view v-if="prod.tip" :style="{color: activityPriceTextColor,fontSize:'24rpx',marginTop:'4rpx'}">
142
+ <text v-html="prod.tip"></text>
143
+ </view>
142
144
  <view v-else-if="showActivityPrice==='Y'&&prod.is_activity==='Y'"
143
145
  :style="{color: activityPriceTextColor,fontSize:'24rpx',marginTop:'4rpx'}">活动价</view>
146
+ <view v-if="showOrderSource==='Y'&&prod.source_from_tip" :style="{color: activityPriceTextColor,fontSize:'24rpx',marginTop:'4rpx'}">
147
+ <text v-html="prod.source_from_tip"></text>
148
+ </view>
144
149
  </view>
145
150
  </view>
146
151
  </uni-swipe-action-item>
@@ -276,6 +281,7 @@ export default {
276
281
  is_border_w: 0,
277
282
  is_border_c: "",
278
283
  showActivityPrice: 'N',
284
+ showOrderSource: 'N',
279
285
 
280
286
  listMargin: {},
281
287
  listItemBorder: "",
@@ -485,6 +491,7 @@ export default {
485
491
  // this.showActivityPrice = getContainerPropsValue(container, 'content.showActivityPrice', 'N');
486
492
  console.log(this.mainColor,'mainColor')
487
493
  this.showActivityPrice = gCPVal(container, 'showActivityPrice', 'N');
494
+ this.showOrderSource = gCPVal(container, 'showOrderSource', 'N');
488
495
  //下间距
489
496
  // this.padding = getContainerPropsValue(container, "content.padding", 0);
490
497
  this.padding = gCPVal(container,'padding', 0, {sKey:'paddingStatus',fields:['padding']});
@@ -759,7 +766,12 @@ export default {
759
766
  };
760
767
  }),
761
768
  },
762
- }).then((res) => {});
769
+ }).then((res) => {
770
+ if(res.is_refresh) {
771
+ this.p_getCartList()
772
+ }
773
+ this.$xdRoot.$emit("restFooterNumber");
774
+ });
763
775
  },
764
776
 
765
777
  //全选固定商铺
@@ -21,7 +21,8 @@ module.exports = {
21
21
  is_select: "N",
22
22
  promo_price: 1800,
23
23
  is_activity: 'Y',
24
- tip: ''
24
+ tip: '',
25
+ source_from_tip: '产品来源:文字+背景测试新功能(商品V2) 专题'
25
26
  },
26
27
  {
27
28
  product_id: 60008817,
@@ -39,7 +40,8 @@ module.exports = {
39
40
  shop_name: "",
40
41
  is_select: "N",
41
42
  is_activity: 'Y',
42
- tip: '已超活动限购数量,将按原价购买'
43
+ tip: '已超活动限购数量,将按原价购买',
44
+ source_from_tip: '产品来源:文字+背景测试新功能(商品V2) 专题'
43
45
  },
44
46
  {
45
47
  product_id: 60007091,
@@ -58,7 +60,8 @@ module.exports = {
58
60
  shop_name: "",
59
61
  is_select: "N",
60
62
  is_activity: 'Y',
61
- tip: '已超活动限购数量,将按原价购买'
63
+ tip: '已超活动限购数量,将按原价购买',
64
+ source_from_tip: '产品来源:文字+背景测试新功能(商品V2) 专题'
62
65
  },
63
66
  {
64
67
  product_id: 60008820,
@@ -144,6 +144,24 @@ export default (data, gValue, gColor, oldData) => {
144
144
  ele:'xd-line',
145
145
  groupKey:'content'
146
146
  },
147
+ {
148
+ label: '订单来源',
149
+ ele: 'xd-cus-switch',
150
+ valueKey: 'showOrderSource',
151
+ value: dataVal({data, key:'showOrderSource', dValue:"N", gValue}),
152
+ className: 'input100',
153
+ groupKey:'content',
154
+ labelInline:true,
155
+ cusStyle:{marginBottom: '10px'},
156
+ setting: {
157
+ tips:['显示','不显示'],
158
+ isBackType: 'string'
159
+ },
160
+ },
161
+ {
162
+ ele:'xd-line',
163
+ groupKey:'content'
164
+ },
147
165
  {
148
166
  label: '随便逛逛',
149
167
  ele: 'xd-cus-switch',
@@ -62,6 +62,9 @@
62
62
  :style="{color:priceTextColor,fontSize:'24rpx'}">活动价</view>
63
63
  </view>
64
64
  </view>
65
+ <view v-if="showLogisticsTip === 'Y' &&
66
+ logisticsTipType === 'prod' &&
67
+ shop.deliveryPickValue === 'logistics'" class="postage_tip">{{ prod.postage_tip || logisticsTipText }}</view>
65
68
  <view v-if="prod.blessingKey" class="wish_comment">
66
69
  <input :maxlength="prod.blessingData.struct.maxlength||16" v-model="prod.blessing" :placeholder="prod.blessingData.value" />
67
70
  <view class="bless_tip"
@@ -107,8 +110,8 @@
107
110
  </template>
108
111
  </view>
109
112
  <!-- <xd-list-item v-if="shop.delivery_message" :label="shop.delivery_message" paddingLR="48rpx" size="large"></xd-list-item> -->
110
- <view v-if="showLogisticsTip === 'Y' && shop.deliveryPickValue === 'logistics'" class="logistics_tip">
111
- {{logisticsTipText}}
113
+ <view v-if="showLogisticsTip === 'Y' && logisticsTipType === 'shop' && shop.deliveryPickValue === 'logistics'" class="logistics_tip">
114
+ {{shop.postage_tip || logisticsTipText}}
112
115
  </view>
113
116
  <view v-if="shop.is_support_delivery == 'N'" :style="{background:bgColor,color:warningColor}" class="err_message">
114
117
  {{shop.message}}
@@ -580,6 +583,7 @@
580
583
  guidePay: "",
581
584
  showLogisticsTip: "Y",
582
585
  logisticsTipText: "",
586
+ logisticsTipType: "", //shop:拆单, prod: 商品
583
587
  checkPayMethod: [],
584
588
  ticketPositionStatus: "N",
585
589
  openVipBtnBgImg: "",
@@ -942,6 +946,7 @@
942
946
  this.guidePay = getContainerPropsValue(container, "content.guidePay", "");
943
947
  this.showLogisticsTip = gCPVal(container, 'showLogisticsTip', "Y");
944
948
  this.logisticsTipText = gCPVal(container, 'logisticsTipText', '订单生成后72小时发货,如遇节假日发货顺延');
949
+ this.logisticsTipType = gCPVal(container, 'logisticsTipType', "shop");
945
950
  this.ticketPositionStatus = gCPVal(container, 'ticketPositionStatus', "N")
946
951
  console.log("this.showLogisticsTip", this.showLogisticsTip);
947
952
  if(this.useMode === "market"){
@@ -964,7 +969,7 @@
964
969
  this.bottomPadding = gCPVal(container, 'bottomPadding', [16], {sKey: "bottomPaddingStatus", fields: ['bottomPadding']});
965
970
  this.bottomBtnRadius = gCPVal(container, 'bottomBtnRadius', [40], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
966
971
  this.bottomBtnHeight = gCPVal(container, 'bottomBtnHeight', [60], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
967
- this.bottomPayText = gCPVal(container, 'bottomPayText', ["支付"], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
972
+ this.bottomPayText = gCPVal(container, 'bottomPayText', ["兑换"], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
968
973
  this.bottomPricePosition = gCPVal(container, 'bottomPricePosition', ['flex-start'], {sKey: "btnPriceStatus", fields: ['bottomPricePosition']});
969
974
 
970
975
  //优惠券样式升级为不在面板设置
@@ -1348,7 +1353,7 @@
1348
1353
  return new Promise((resolve, reject) => {
1349
1354
  this.$xdConfirm({
1350
1355
  title: '提示',
1351
- content: '您当前未使用票券,您将全部用微信支付',
1356
+ content: '您当前未使用票券,您将全部用微信兑换',
1352
1357
  confirmText: '我知道了',
1353
1358
  width: '85%',
1354
1359
  isTitle: true,
@@ -1356,7 +1361,7 @@
1356
1361
  if (res.confirm) {
1357
1362
  resolve();
1358
1363
  } else if (res.cancel) {
1359
- reject("取消支付");
1364
+ reject("取消兑换");
1360
1365
  }
1361
1366
  }
1362
1367
  });
@@ -1952,6 +1957,11 @@
1952
1957
  font-size: 24rpx;
1953
1958
  color: var(--g-theme-dangerColor);
1954
1959
  }
1960
+ .shop_postage{
1961
+ padding: 0 var(--cont-lr-padding) 24rpx;
1962
+ font-size: 24rpx;
1963
+ color: var(--g-theme-dangerColor);
1964
+ }
1955
1965
  .err_message{
1956
1966
  padding: 20rpx var(--cont-lr-padding);
1957
1967
  font-size: 24rpx;
@@ -2027,6 +2037,12 @@
2027
2037
  justify-content: space-between;
2028
2038
  }
2029
2039
  }
2040
+ .postage_tip{
2041
+ color: rgb(229, 116, 112);
2042
+ font-size: 24rpx;
2043
+ padding: 0 var(--cont-lr-padding);
2044
+ margin: 10px 0;
2045
+ }
2030
2046
  .wish_comment{
2031
2047
  padding: 0 var(--cont-lr-padding);
2032
2048
  input{
@@ -163,6 +163,7 @@ module.exports = {
163
163
  group_id: "61527_3_1_1_1_0_YLYO6_3-vLG2sP8ytvmHF",
164
164
  is_support_delivery: "Y",
165
165
  message: "可以配送.",
166
+ postage_tip: "订单将在活动结算后5个工作日内完成发货",
166
167
  user_logistics_amount_origin: "50",
167
168
  supplier_partner_id: 161,
168
169
  show_subscribe_time_list: [],
@@ -207,6 +208,7 @@ module.exports = {
207
208
  "https://sandbox-img.jufubao.cn/uploads/20230406/0b890cd5a947d9c5724b412d34cd4000.png",
208
209
  product_form_data:
209
210
  '[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"请务必准确填写号码,号码错误将无法进行退还操作。","default":"","placeholder":"","required":true},"options":[],"value":"祝福语"}]',
211
+ postage_tip: "订单生成后72小时发货",
210
212
  brand_id: 3,
211
213
  brand_name: "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
212
214
  aftersale_service: ",refund,exchange",
@@ -339,6 +339,19 @@ export default function (data, gValue,gColor,oldData){
339
339
  notice:'仅针对配送方式为快递的商品展示',
340
340
  },
341
341
  {ele: 'group_start'},
342
+ {
343
+ label: "展示方式",
344
+ ele: "xd-radio",
345
+ valueKey: "logisticsTipType",
346
+ value: dataVal({data, key:'logisticsTipType', dValue: 'shop', gValue}),
347
+ groupKey:'content',
348
+ list: [
349
+ { label: "按拆单展示", value: "shop"},
350
+ { label: "按商品展示", value: "prod"},
351
+ ],
352
+ hidden: data.showLogisticsTip === 'N',
353
+ labelInline: true,
354
+ },
342
355
  {
343
356
  label: "",
344
357
  ele: "el-input",
@@ -473,7 +473,7 @@ export default function (data={},gValue={},gColor={},oldData) {
473
473
  value: dataVal({data, key:'bottomPayText', dValue: '', gValue}),
474
474
  hidden: !statusShow({data, key: 'btnStyleStatus', fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText'], gValue}),
475
475
  labelInline: true,
476
- placeholder: '支付按钮文字,默认“支付”',
476
+ placeholder: '兑换按钮文字,默认“兑换”',
477
477
  className: 'input80',
478
478
  },
479
479
  {ele: "group_end"},
@@ -105,14 +105,12 @@ export default {
105
105
  this.showShopList = false;
106
106
  return;
107
107
  }
108
+
108
109
  jfbRootExec("getShopTakeTime", {
109
110
  vm: this,
110
111
  data: {
111
112
  resource_shop_id: shop.resource_shop_id,
112
- shop_id: shop.shop_id,
113
- cart_order_id: this.order_id,
114
- address_nnid: this.curAddr ? this.curAddr.address_nnid : "",
115
- delivery_method: curShop.deliveryPickValue
113
+ shop_id: shop.shop_id
116
114
  }
117
115
  }).then(res => {
118
116
  this.shopList = this.shopList.map((item, index) => {
@@ -452,7 +450,7 @@ export default {
452
450
  this.handleToPay(val);
453
451
  }else{
454
452
  this.$xdAlert({
455
- content: '余额不足,请选择其他票券',
453
+ content: '积分不足,请选择其他票券',
456
454
  time: 3000,
457
455
  isClose: true,
458
456
  zIndex: 5000
@@ -264,7 +264,7 @@
264
264
  width="220rpx" fontSize="28"
265
265
  @click="addCartAndBuy"
266
266
  :plain="btnStyle==='border'"
267
- >立即购买</xd-button>
267
+ >立即兑换</xd-button>
268
268
  <view v-if="btnNoBuy" style="font-size:32rpx;color:#666666;">
269
269
  {{btnNoBuy.text}}
270
270
  </view>
@@ -181,7 +181,7 @@
181
181
  type="subPrimary"
182
182
  size="small"
183
183
  @click="onConfirm('buy')"
184
- >立即购买</xd-button
184
+ >立即兑换</xd-button
185
185
  >
186
186
  </template>
187
187
  </view>
@@ -150,7 +150,7 @@
150
150
  ]"
151
151
  :bg-color="buyButtonStyle.buyBtnBgColor"
152
152
  :radius="otherButtonStyle.bottomBtnRadius + 'rpx'"
153
- type="subPrimary" style="width:250rpx;margin:0 20rpx" size="small" @click="onConfirm('buy')">立即购买</xd-button>
153
+ type="subPrimary" style="width:250rpx;margin:0 20rpx" size="small" @click="onConfirm('buy')">立即兑换</xd-button>
154
154
  </template>
155
155
  </view>
156
156
  </view>
@@ -140,7 +140,7 @@
140
140
  style="width: 250rpx;margin:0 20rpx"
141
141
  size="small"
142
142
  @click="onConfirm('buy')"
143
- >立即购买</xd-button
143
+ >立即兑换</xd-button
144
144
  >
145
145
  </template>
146
146
  </view>
@@ -839,7 +839,7 @@ export default function (data, gValue, gColor, oldData) {
839
839
  },
840
840
  { ele: 'group_end' },
841
841
  {
842
- label: '立即购买',
842
+ label: '立即兑换',
843
843
  ele: 'xd-radio',
844
844
  groupKey: 'style',
845
845
  valueKey: 'buyBtnStatus',
@@ -105,7 +105,7 @@
105
105
  class="btn" type="subPrimary" size="small"
106
106
  width="200rpx" fontSize="28"
107
107
  @click="addCartAndBuy"
108
- >立即购买</xd-button>
108
+ >立即兑换</xd-button>
109
109
  <view v-if="btnNoBuy" style="font-size:32rpx;color:#666666;">
110
110
  {{btnNoBuy.text}}
111
111
  </view>
@@ -46,7 +46,7 @@
46
46
  <xd-button
47
47
  v-if="btnBuyNow"
48
48
  :disabled="!btnBuyNow.enabled"
49
- type="subPrimary" style="width:250rpx" size="small" @click="onConfirm('buy')">立即购买</xd-button>
49
+ type="subPrimary" style="width:250rpx" size="small" @click="onConfirm('buy')">立即兑换</xd-button>
50
50
  </template>
51
51
  </view>
52
52
  </view>
@@ -361,7 +361,7 @@ module.exports = {
361
361
  "a": "",
362
362
  },
363
363
  ],
364
- desc:'到店消费任意金额可用',
364
+ desc:'请到店出示电子券核验',
365
365
  consume_mode:'JHD'
366
366
  },
367
367
  {
@@ -365,7 +365,7 @@
365
365
  }else if(hand_status === 'F'){
366
366
  this.handlerOderFail();
367
367
  this.$xdAlert({
368
- content: hand_status_msg || '支付失败',
368
+ content: hand_status_msg || '兑换失败',
369
369
  time: 3000,
370
370
  isClose: false,
371
371
  zIndex: 5000
@@ -493,7 +493,7 @@
493
493
  success: (res) => {
494
494
  this.$xdLog.setARMSInfo({options:this.options, res}, 'pay_success');
495
495
  this.$xdAlert({
496
- content: '支付成功',
496
+ content: '兑换成功',
497
497
  time: 2500,
498
498
  isClose: false,
499
499
  zIndex: 5000
@@ -504,7 +504,7 @@
504
504
  this.onRefreshPage();
505
505
  this.$xdLog.setARMSInfo(this.options, 'cancel_pay');
506
506
  this.$xdAlert({
507
- content: '取消支付',
507
+ content: '取消兑换',
508
508
  time: 2500,
509
509
  isClose: false,
510
510
  zIndex: 5000
@@ -516,7 +516,7 @@
516
516
  if (window['jwxJfbSDKParams']) error = Object.assign(error, paySignData, window['jwxJfbSDKParams'])
517
517
  this.$xdLog.setARMSError(error)
518
518
  this.$xdAlert({
519
- content: '支付失败',
519
+ content: '兑换失败',
520
520
  time: 2500,
521
521
  isClose: false,
522
522
  zIndex: 5000
@@ -530,7 +530,7 @@
530
530
  success: (res) => {
531
531
  this.$xdLog.setARMSInfo({options: this.options, res}, 'pay_success');
532
532
  this.$xdAlert({
533
- content: '支付成功',
533
+ content: '兑换成功',
534
534
  time: 2500,
535
535
  isClose: false,
536
536
  zIndex: 5000
@@ -544,7 +544,7 @@
544
544
  error: JSON.stringify(err)
545
545
  });
546
546
  this.$xdAlert({
547
- content: '支付失败',
547
+ content: '兑换失败',
548
548
  time: 2500,
549
549
  isClose: false,
550
550
  zIndex: 5000
@@ -1,12 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(git checkout *)",
5
- "Bash(npx lessc *)",
6
- "Bash(python3 *)",
7
- "Bash(sips -g pixelWidth -g pixelHeight \"/Users/zxd/Workspaces/jufubao-mall/temp_screenshot.jpg\")",
8
- "Bash(identify \"/Users/zxd/Workspaces/jufubao-mall/temp_screenshot.jpg\")",
9
- "Bash(sips *)"
10
- ]
11
- }
12
- }