jufubao-mall 2.0.27-beta4 → 2.0.27-beta5

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-mall",
3
- "version": "2.0.27-beta4",
3
+ "version": "2.0.27-beta5",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -87,7 +87,7 @@
87
87
  <xd-list-item v-if="shop.sub_show_delivery_price==='Y'" label="配送费用" showBottom paddingLR="48rpx" paddingTB="24rpx">
88
88
  <xd-unit :price="shop.user_logistics_amount_origin" :fontSize="28" :isOld="false"></xd-unit>
89
89
  </xd-list-item>
90
- <xd-list-item v-if="shop.deliveryPickValue === 'samecity' && shop.is_support_delivery == 'Y'"
90
+ <xd-list-item v-if="shop.deliveryPickValue === 'samecity'"
91
91
  :label="shop.time_label" showRight paddingLR="48rpx" paddingTB="24rpx" showBottom
92
92
  @click="toSetSelectTime(shopIndex,shop)">
93
93
  {{shop.selectTime ? shop.selectTime.dateTime : "请选择"}}
@@ -164,7 +164,7 @@
164
164
  </xd-list-item>
165
165
  <xd-list-item v-if="item.method === 'wallet'" :key="item.method" :label="item.show_name" paddingLR="48rpx" showBottom :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseWallet">
166
166
  <view slot="label">
167
- {{ item.show_name }}<text style="color:red;margin-left: 8px;font-size: 24rpx;">(剩余{{ wallet_total_amount }})</text>
167
+ {{ item.show_name }}<text :style="{color:mainColor}" style="margin-left: 8px;font-size: 24rpx;">(剩余{{ wallet_total_amount }})</text>
168
168
  </view>
169
169
  <view v-if="(choseCoupon && choseCoupon.cardPayPrice)">
170
170
  <view style="color:#CCCCCC;font-size: 24rpx">已使用其他票券,不可用</view>
@@ -205,7 +205,11 @@
205
205
  </view>
206
206
  <view v-else class="flex_l" :style="{
207
207
  justifyContent: bottomPricePosition
208
- }">实付:<xd-unit :price="orderNeedPayPrice" :isOld="false"></xd-unit>
208
+ }">
209
+ <view>
210
+ <view class="t_price">实付:<xd-unit :price="orderNeedPayPrice" :isOld="false"></xd-unit></view>
211
+ <view v-if="isShowPlusSavingMoney" class="b_price">共省<xd-unit :price="orderFee.plus_saving_money" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit></view>
212
+ </view>
209
213
  </view>
210
214
  <view>
211
215
  <xd-button :disabled="is_can_buy!=='Y'"
@@ -481,7 +485,7 @@
481
485
  address_layout: 'old',
482
486
  sectionHeight: 16,
483
487
  orderInfoHeight: 16,
484
- showTopLine: "N",
488
+ showTopLine: "B",
485
489
  blessTextColor: "",
486
490
  priceTextColor: "",
487
491
  bottomPadding: {},
@@ -525,6 +529,7 @@
525
529
  showLogisticsTip: "Y",
526
530
  logisticsTipText: "",
527
531
  checkPayMethod: [],
532
+ ticketPositionStatus: "N"
528
533
  }
529
534
  },
530
535
  computed: {
@@ -664,7 +669,7 @@
664
669
  },
665
670
  bottomBoxStyle(){
666
671
  return {
667
- padding: this.getMarginAndPadding(this.bottomPadding, 20)
672
+ padding: this.getMarginAndPadding(this.bottomPadding, 16)
668
673
  }
669
674
  },
670
675
  bodyStyleComp(){
@@ -770,6 +775,18 @@
770
775
  this.jwxSDK = res.jwxSDK;
771
776
  })
772
777
  // #endif
778
+
779
+ if(this.ticketPositionStatus === 'Y'){
780
+ this.$nextTick(() => {
781
+ setTimeout(() => {
782
+ uni.pageScrollTo({
783
+ scrollTop: 10000,
784
+ duration: 200
785
+ })
786
+ }, 1000)
787
+ })
788
+
789
+ }
773
790
  },
774
791
  /**
775
792
  * @description 监听事件变化
@@ -792,12 +809,13 @@
792
809
  this.useMode = getContainerPropsValue(container, 'content.useMode', "market");
793
810
  this.showPrice = getContainerPropsValue(container, 'content.showPrice', "Y");
794
811
  this.address_layout = getContainerPropsValue(container, 'content.address_layout', "old");
795
- this.showTopLine = getContainerPropsValue(container, 'content.showTopLine', "N");
812
+ this.showTopLine = getContainerPropsValue(container, 'content.showTopLine', "B");
796
813
  this.skipTip = getContainerPropsValue(container, "content.skipTip", "N");
797
- this.skipToPay = getContainerPropsValue(container, "content.skipToPay", "N");
814
+ this.skipToPay = getContainerPropsValue(container, "content.skipToPay", "Y");
798
815
  this.guidePay = getContainerPropsValue(container, "content.guidePay", "");
799
816
  this.showLogisticsTip = gCPVal(container, 'showLogisticsTip', "Y");
800
817
  this.logisticsTipText = gCPVal(container, 'logisticsTipText', '订单生成后72小时发货,如遇节假日发货顺延');
818
+ this.ticketPositionStatus = gCPVal(container, 'ticketPositionStatus', "N")
801
819
  console.log("this.showLogisticsTip", this.showLogisticsTip);
802
820
  if(this.useMode === "market"){
803
821
  this.showPrice = "Y"
@@ -814,7 +832,7 @@
814
832
  this.blessFontSize = gCPVal(container, 'blessFontSize', [24], {sKey: 'formTipStatus', fields: ['blessFontSize', 'blessTextColor']});
815
833
  this.blessTextColor = gCPVal(container, 'blessTextColor', [this.dangerColor], {sKey: "formTipStatus", fields: ['blessFontSize', 'blessTextColor']});
816
834
  this.priceTextColor = gCPVal(container, 'priceTextColor', [this.mainColor], {sKey: "activityPriceStatus", fields: ['priceTextColor']})
817
- this.bottomPadding = gCPVal(container, 'bottomPadding', [20], {sKey: "bottomPaddingStatus", fields: ['bottomPadding']});
835
+ this.bottomPadding = gCPVal(container, 'bottomPadding', [16], {sKey: "bottomPaddingStatus", fields: ['bottomPadding']});
818
836
  this.bottomBtnRadius = gCPVal(container, 'bottomBtnRadius', [40], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
819
837
  this.bottomBtnHeight = gCPVal(container, 'bottomBtnHeight', [60], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
820
838
  this.bottomPayText = gCPVal(container, 'bottomPayText', ["支付"], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
@@ -1507,7 +1525,14 @@
1507
1525
 
1508
1526
  bindPickerChange(e, index){
1509
1527
  let pickIndex = e.detail.value;
1510
- this.tempShopList = this.$xdUniHelper.cloneDeep(this.shopList);
1528
+ let tempShopList = this.$xdUniHelper.cloneDeep(this.shopList);
1529
+ this.tempShopList = tempShopList.map((item, ii) => {
1530
+ if(index === ii){
1531
+ item.takeoutTime = null;
1532
+ item.selectTime = null;
1533
+ }
1534
+ return item;
1535
+ });
1511
1536
  this.shopList = this.shopList.map((item,ii) => {
1512
1537
  if(index === ii){
1513
1538
  let cur = item.support_delivery_method_options[pickIndex];
@@ -1537,7 +1562,7 @@
1537
1562
  @padding_l_r: 50rpx;
1538
1563
  .jfb-mall-confirm {
1539
1564
  &__body{
1540
- // background: #F7F7F7;
1565
+ overflow: auto;
1541
1566
  color: #333333;
1542
1567
  .section{
1543
1568
  margin-bottom: var(--section-height);
@@ -1771,6 +1796,19 @@
1771
1796
  padding: 0 32rpx;
1772
1797
  color: #ff5733;
1773
1798
  }
1799
+ .t_price{
1800
+ display: flex;
1801
+ align-items: center;
1802
+ font-weight: 500;
1803
+ color: #FF2C18;
1804
+ }
1805
+ .b_price{
1806
+ display: flex;
1807
+ align-items: center;
1808
+ font-size: 24rpx;
1809
+ color: #FF2C18;
1810
+ font-weight: 400;
1811
+ }
1774
1812
  }
1775
1813
  }
1776
1814
  }
@@ -224,7 +224,7 @@ module.exports = {
224
224
  product_thumb:
225
225
  "https://sandbox-img.jufubao.cn/uploads/20230406/0b890cd5a947d9c5724b412d34cd4000.png",
226
226
  product_form_data:
227
- '[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"请务必确保输入的号码准确无误,填错号码无法进行退还操作,后果自负。","default":"","placeholder":"","required":true},"options":[],"value":"祝福语"}]',
227
+ '[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"请务必准确填写号码,号码错误将无法进行退还操作。","default":"","placeholder":"","required":true},"options":[],"value":"祝福语"}]',
228
228
  brand_id: 3,
229
229
  brand_name: "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
230
230
  aftersale_service: ",refund,exchange",
@@ -278,7 +278,7 @@ module.exports = {
278
278
  product_thumb:
279
279
  "https://sandbox-img.jufubao.cn/uploads/20230406/0b890cd5a947d9c5724b412d34cd4000.png",
280
280
  product_form_data:
281
- '[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"请务必确保输入的号码准确无误,填错号码无法进行退还操作,后果自负。","default":"","placeholder":"","required":true},"options":[],"value":"祝福语"}]',
281
+ '[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"请务必准确填写号码,号码错误将无法进行退还操作。","default":"","placeholder":"","required":true},"options":[],"value":"祝福语"}]',
282
282
  brand_id: 3,
283
283
  brand_name: "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
284
284
  aftersale_service: ",refund,exchange",
@@ -56,7 +56,7 @@ export default function (data, gValue,gColor,oldData){
56
56
  label: "引导支付",
57
57
  ele: "xd-radio",
58
58
  valueKey: "skipToPay",
59
- value: dataVal({data, key:'skipToPay', dValue: 'N', gValue}),
59
+ value: dataVal({data, key:'skipToPay', dValue: 'Y', gValue}),
60
60
  groupKey: "content",
61
61
  labelInline: true,
62
62
  className: 'input100',
@@ -68,25 +68,25 @@ export default function (data, gValue,gColor,oldData){
68
68
  ]
69
69
  },
70
70
  //2.0新属性
71
- // {
72
- // label: "票券定位",
73
- // ele: "xd-radio",
74
- // valueKey: "ticketPositionStatus",
75
- // value: dataVal({data, key: "ticketPositionStatus", dValue: "N", gValue}),
76
- // groupKey: "content",
77
- // labelInline: true,
78
- // inline: false,
79
- // notice: "开启后会提示票券选择,点击自动滚动到选择支付位置",
80
- // list: [
81
- // { label: "显示", value: "Y" },
82
- // { label: "隐藏", value: "N" },
83
- // ]
84
- // },
71
+ {
72
+ label: "票券定位",
73
+ ele: "xd-radio",
74
+ valueKey: "ticketPositionStatus",
75
+ value: dataVal({data, key: "ticketPositionStatus", dValue: "N", gValue}),
76
+ groupKey: "content",
77
+ labelInline: true,
78
+ inline: false,
79
+ notice: "开启后会提示票券选择,点击自动滚动到选择支付位置",
80
+ list: [
81
+ { label: "显示", value: "Y" },
82
+ { label: "隐藏", value: "N" },
83
+ ]
84
+ },
85
85
  {
86
86
  label: "使用新票券",
87
87
  ele: "xd-radio",
88
88
  valueKey: "bindCard",
89
- value: dataVal({data, key:'bindCard', dValue: "", gValue}),
89
+ value: dataVal({data, key:'bindCard', dValue: "1", gValue}),
90
90
  groupKey:'content',
91
91
  labelInline: true,
92
92
  inline: false,
@@ -158,7 +158,7 @@ export default function (data, gValue,gColor,oldData){
158
158
  label: "横线",
159
159
  ele: "xd-radio",
160
160
  valueKey: "showTopLine",
161
- value: dataVal({data, key:'showTopLine', dValue: "N", gValue}),
161
+ value: dataVal({data, key:'showTopLine', dValue: "B", gValue}),
162
162
  groupKey:'content',
163
163
  labelInline: true,
164
164
  isTplRef: true, //内容引用模版被禁用
@@ -407,7 +407,7 @@ export default function (data={},gValue={},gColor={},oldData) {
407
407
  value: dataVal({
408
408
  data,
409
409
  key:'bottomPadding',
410
- dValue:[20],
410
+ dValue:[16],
411
411
  gValue,
412
412
  isPM: true,
413
413
  isCPM: true,
@@ -1,11 +1,13 @@
1
1
  <template>
2
2
  <view class="chose_shop_list">
3
3
  <view class="shop_header">
4
- <xd-city-show
5
- city-location-type="baidu"
6
- @done="handleCityDone"
7
- @onChange="handleCityChange"
8
- color="#333"></xd-city-show>
4
+ <view style="display: flex;align-items: center;">
5
+ <xd-city-show
6
+ city-location-type="baidu"
7
+ @done="handleCityDone"
8
+ @onChange="handleCityChange"
9
+ color="#333"></xd-city-show>
10
+ </view>
9
11
  <view class="shop-search">
10
12
  <input
11
13
  class="uni-input"
@@ -15,7 +17,7 @@
15
17
  @confirm="handleInput"
16
18
  />
17
19
  <view>
18
- <xd-font-icon icon="iconsousuo_mian" color="#999999" size="32"></xd-font-icon>
20
+ <xd-font-icon icon="iconsousuo_mian" color="#999999" size="28"></xd-font-icon>
19
21
  </view>
20
22
  </view>
21
23
  </view>
@@ -126,14 +128,14 @@ export default {
126
128
  color: #999999 !important;
127
129
 
128
130
  .xd-iconfont {
129
- font-size: 28rpx !important;
131
+ font-size: 24rpx !important;
130
132
  }
131
133
  }
132
134
  }
133
135
  .shop-search {
134
- border:1px solid #eee;
136
+ border:1px solid #f8f8f8;
135
137
  width: 420rpx;
136
- padding: 10rpx 20rpx;
138
+ padding: 16rpx 32rpx;
137
139
  border-radius: 40rpx;
138
140
  background-color: #f8f8f8;
139
141
  display: flex;
@@ -147,7 +149,7 @@ export default {
147
149
 
148
150
 
149
151
  & .uni-input {
150
- font-size: 28rpx;
152
+ font-size: 24rpx;
151
153
  flex: 1;
152
154
  color: #333;
153
155
  line-height: 36rpx;
@@ -210,8 +212,7 @@ export default {
210
212
  flex-direction: column;
211
213
  width: 200rpx;
212
214
  flex: 1;
213
- margin-left: 24rpx;
214
- justify-content: space-between;
215
+ margin-left: 16rpx;
215
216
 
216
217
  .addr_text{
217
218
  width: 420rpx;
@@ -245,7 +246,7 @@ export default {
245
246
  align-items: center;
246
247
  color: #999999;
247
248
  font-size: 24rpx;
248
- margin-top: 20rpx;
249
+ margin-top: 16rpx;
249
250
  line-height: 1.6;
250
251
  ._icon{
251
252
  width: 40rpx;