jufubao-mall 2.0.27-beta3 → 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-beta3",
3
+ "version": "2.0.27-beta5",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -73,50 +73,52 @@
73
73
  </view>
74
74
  </view>
75
75
  </view>
76
- <!-- 配送信息 -->
77
- <view v-if="shop.support_delivery_method_options.length" class="delivery">
78
- <xd-list-item v-if="shop.sub_show_delivery_method==='Y'" label="配送方式" showRight paddingLR="48rpx" showBottom size="large">
79
- <picker @change="e => bindPickerChange(e, shopIndex)"
80
- range-key="label" :range="shop.support_delivery_method_options"
81
- :value="shop.support_delivery_method_options.findIndex(ll => ll.value == shop.deliveryPickValue)"
82
- >
83
- <view style="color: #333333;">{{shop.deliveryPickLabel || "选择配送方式"}}</view>
84
- </picker>
76
+ <!-- 配送信息 -->
77
+ <view v-if="shop.support_delivery_method_options.length" class="delivery">
78
+ <xd-list-item v-if="shop.sub_show_delivery_method==='Y'" label="配送方式" showRight paddingLR="48rpx" paddingTB="24rpx" showBottom size="large">
79
+ <picker @change="e => bindPickerChange(e, shopIndex)"
80
+ range-key="label" :range="shop.support_delivery_method_options"
81
+ :value="shop.support_delivery_method_options.findIndex(ll => ll.value == shop.deliveryPickValue)"
82
+ >
83
+ <view style="color: #333333;">{{shop.deliveryPickLabel || "选择配送方式"}}</view>
84
+ </picker>
85
+ </xd-list-item>
86
+ <template>
87
+ <xd-list-item v-if="shop.sub_show_delivery_price==='Y'" label="配送费用" showBottom paddingLR="48rpx" paddingTB="24rpx">
88
+ <xd-unit :price="shop.user_logistics_amount_origin" :fontSize="28" :isOld="false"></xd-unit>
89
+ </xd-list-item>
90
+ <xd-list-item v-if="shop.deliveryPickValue === 'samecity'"
91
+ :label="shop.time_label" showRight paddingLR="48rpx" paddingTB="24rpx" showBottom
92
+ @click="toSetSelectTime(shopIndex,shop)">
93
+ {{shop.selectTime ? shop.selectTime.dateTime : "请选择"}}
85
94
  </xd-list-item>
86
- <view>
87
- <xd-list-item v-if="shop.sub_show_delivery_price==='Y'" label="配送费用" showBottom paddingLR="48rpx">
88
- <xd-unit :price="shop.user_logistics_amount_origin" :isOld="false"></xd-unit>
95
+ <template v-if="shop.deliveryPickValue === 'takeout'" >
96
+ <!-- 配送方式:到店自提 -->
97
+ <xd-list-item label="选择门店" show-right paddingLR="48rpx" paddingTB="24rpx" showBottom @click="toSetSelectShop(shopIndex)">
98
+ <view style="text-overflow: ellipsis;overflow: hidden;white-space: nowrap;width: 460rpx;text-align: right;">
99
+ {{shop.choseShop ? shop.choseShop.resource_shop_name : "请选择"}}
100
+ </view>
89
101
  </xd-list-item>
90
- <xd-list-item v-if="shop.deliveryPickValue === 'samecity' && shop.is_support_delivery == 'Y'" :label="shop.time_label" showRight paddingLR="48rpx" @click="toSetSelectTime(shopIndex,shop)">
91
- {{shop.selectTime ? shop.selectTime.dateTime : "请选择"}}
102
+ <xd-list-item v-if="shop.takeoutTimeList" :label="shop.time_label" show-right paddingLR="48rpx" paddingTB="24rpx" @click="toSetTakeoutTime(shopIndex,shop)">
103
+ <view style="">{{shop.takeoutTime ? shop.takeoutTime.dateTime : '请选择'}}</view>
92
104
  </xd-list-item>
93
- <view v-if="shop.deliveryPickValue === 'takeout'" >
94
- <!-- 配送方式:到店自提 -->
95
- <xd-list-item label="选择门店" show-right paddingLR="48rpx" @click="toSetSelectShop(shopIndex)">
96
- <view style="color: #999999;">
97
- {{shop.choseShop ? shop.choseShop.resource_shop_name : "请选择"}}
98
- </view>
99
- </xd-list-item>
100
- <xd-list-item v-if="shop.takeoutTimeList" :label="shop.time_label" show-right paddingLR="48rpx" @click="toSetTakeoutTime(shopIndex,shop)">
101
- <view style="color: #999999;">{{shop.takeoutTime ? shop.takeoutTime.dateTime : '请选择'}}</view>
102
- </xd-list-item>
103
- </view>
104
- </view>
105
- </view>
106
- <!-- <xd-list-item v-if="shop.delivery_message" :label="shop.delivery_message" paddingLR="48rpx" size="large"></xd-list-item> -->
107
- <view v-if="showLogisticsTip === 'Y' && shop.deliveryPickValue === 'logistics'" class="logistics_tip">
108
- {{logisticsTipText}}
109
- </view>
110
- <view v-if="shop.is_support_delivery == 'N'" :style="{background:bgColor,color:warningColor}" class="err_message">
111
- {{shop.message}}
112
- </view>
105
+ </template>
106
+ </template>
107
+ </view>
108
+ <!-- <xd-list-item v-if="shop.delivery_message" :label="shop.delivery_message" paddingLR="48rpx" size="large"></xd-list-item> -->
109
+ <view v-if="showLogisticsTip === 'Y' && shop.deliveryPickValue === 'logistics'" class="logistics_tip">
110
+ {{logisticsTipText}}
111
+ </view>
112
+ <view v-if="shop.is_support_delivery == 'N'" :style="{background:bgColor,color:warningColor}" class="err_message">
113
+ {{shop.message}}
114
+ </view>
113
115
  </view>
114
116
  </view>
115
117
 
116
118
  <!-- 订单备注信息 -->
117
119
  <view v-if="showOrderComment == 'Y'" class="order_comment section" :style=[blockSectionStyleComp]>
118
120
  <view class="title">备注信息</view>
119
- <input v-model="comment" class="order_market" :maxlength="200" placeholder="建议留言前先与平台沟通确认,最多只支持200字"/>
121
+ <input v-model="comment" class="order_market" :maxlength="50" placeholder="建议留言前先与平台沟通确认,最多只支持50字"/>
120
122
  </view>
121
123
  <!-- 展示vip -->
122
124
  <view v-if="is_show_vip_card_list === 'Y'" class="section" style="overflow: hidden;" :style=[blockSectionStyleComp]>
@@ -162,7 +164,7 @@
162
164
  </xd-list-item>
163
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">
164
166
  <view slot="label">
165
- {{ 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>
166
168
  </view>
167
169
  <view v-if="(choseCoupon && choseCoupon.cardPayPrice)">
168
170
  <view style="color:#CCCCCC;font-size: 24rpx">已使用其他票券,不可用</view>
@@ -189,7 +191,7 @@
189
191
  </xd-list-item>
190
192
  </view>
191
193
  </view>
192
- <view :style="fixedBottomPlaceholder"></view>
194
+ <view :style=[fixedBottomPlaceholder]></view>
193
195
  <!-- 靠低支付, 增加淘福客布局 -->
194
196
  <view class="fixe_bottom" :style="prod_bottom">
195
197
  <view class="fixed_bottom_body" :style="[bottomBoxStyle]">
@@ -203,7 +205,11 @@
203
205
  </view>
204
206
  <view v-else class="flex_l" :style="{
205
207
  justifyContent: bottomPricePosition
206
- }">实付:<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>
207
213
  </view>
208
214
  <view>
209
215
  <xd-button :disabled="is_can_buy!=='Y'"
@@ -311,7 +317,7 @@
311
317
  ></xd-select-time>
312
318
  <xd-down-drawer
313
319
  :show.sync="showShopList"
314
- height="60vh"
320
+ height="45vh"
315
321
  >
316
322
  <template v-if="showShopList">
317
323
  <view :style="{height: '100rpx'}"></view>
@@ -456,6 +462,8 @@
456
462
  showCouponChose: false,
457
463
  couponList: [],
458
464
 
465
+ fixedBottomBodyHeight: 0,
466
+
459
467
  //面板
460
468
  xnamespace: "",
461
469
  showBuyer: "",
@@ -477,7 +485,7 @@
477
485
  address_layout: 'old',
478
486
  sectionHeight: 16,
479
487
  orderInfoHeight: 16,
480
- showTopLine: "N",
488
+ showTopLine: "B",
481
489
  blessTextColor: "",
482
490
  priceTextColor: "",
483
491
  bottomPadding: {},
@@ -521,6 +529,7 @@
521
529
  showLogisticsTip: "Y",
522
530
  logisticsTipText: "",
523
531
  checkPayMethod: [],
532
+ ticketPositionStatus: "N"
524
533
  }
525
534
  },
526
535
  computed: {
@@ -612,8 +621,9 @@
612
621
  return flat;
613
622
  },
614
623
  fixedBottomPlaceholder() {
615
- let bottomHeight = this.bottomPadding.top + this.bottomPadding.bottom;
616
- return this.fixedStyle({paddingBottom: 40 + bottomHeight, zIndex: 110}, 'bottom', false);
624
+ return {
625
+ height: (this.fixedBottomBodyHeight + 14) + 'px'
626
+ }
617
627
  },
618
628
  prod_bottom() {
619
629
  return this.fixedStyle({height: 0, zIndex: 111});
@@ -659,7 +669,7 @@
659
669
  },
660
670
  bottomBoxStyle(){
661
671
  return {
662
- padding: this.getMarginAndPadding(this.bottomPadding, 20)
672
+ padding: this.getMarginAndPadding(this.bottomPadding, 16)
663
673
  }
664
674
  },
665
675
  bodyStyleComp(){
@@ -765,6 +775,18 @@
765
775
  this.jwxSDK = res.jwxSDK;
766
776
  })
767
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
+ }
768
790
  },
769
791
  /**
770
792
  * @description 监听事件变化
@@ -787,29 +809,30 @@
787
809
  this.useMode = getContainerPropsValue(container, 'content.useMode', "market");
788
810
  this.showPrice = getContainerPropsValue(container, 'content.showPrice', "Y");
789
811
  this.address_layout = getContainerPropsValue(container, 'content.address_layout', "old");
790
- this.showTopLine = getContainerPropsValue(container, 'content.showTopLine', "N");
812
+ this.showTopLine = getContainerPropsValue(container, 'content.showTopLine', "B");
791
813
  this.skipTip = getContainerPropsValue(container, "content.skipTip", "N");
792
- this.skipToPay = getContainerPropsValue(container, "content.skipToPay", "N");
814
+ this.skipToPay = getContainerPropsValue(container, "content.skipToPay", "Y");
793
815
  this.guidePay = getContainerPropsValue(container, "content.guidePay", "");
794
816
  this.showLogisticsTip = gCPVal(container, 'showLogisticsTip', "Y");
795
817
  this.logisticsTipText = gCPVal(container, 'logisticsTipText', '订单生成后72小时发货,如遇节假日发货顺延');
818
+ this.ticketPositionStatus = gCPVal(container, 'ticketPositionStatus', "N")
796
819
  console.log("this.showLogisticsTip", this.showLogisticsTip);
797
820
  if(this.useMode === "market"){
798
821
  this.showPrice = "Y"
799
822
  }
800
823
 
801
- let contStyle = this.getRelationStatus(container,'cont_style',{ sectionHeightStatus: ['sectionHeight'], lrPaddingStatus: ['lrPadding'] }, `{"spacing":20,"margin":{"bottom":0,"top":0,"left":0,"right":0},"backgroundColor": "rgba(245, 245, 245, 1)"}`);
824
+ let contStyle = this.getRelationStatus(container,'cont_style',{ sectionHeightStatus: ['sectionHeight'], lrPaddingStatus: ['lrPadding'] }, `{"spacing":16,"margin":{"bottom":0,"top":0,"left":16,"right":16},"backgroundColor": "rgba(245, 245, 245, 1)"}`);
802
825
  this.sectionHeight = gCPVal(container, 'sectionHeight', [16], {sKey: "sectionHeightStatus", fields: ['sectionHeight'], cusFields: ['cont_style', 'spacing', contStyle]});
803
826
  this.lrPadding = gCPVal(container, 'lrPadding', [0], {sKey:'lrPaddingStatus',fields:['lrPadding'],isPMR: true, cusFields: ['cont_style', 'margin', contStyle]})
804
827
 
805
- let addrStyle = this.getRelationStatus(container,'addr_style',{ addrLrPaddingStatus: ['addrLrPadding'] }, `{"margin":{"bottom":0,"top":0,"left":0,"right":0}}`);
828
+ let addrStyle = this.getRelationStatus(container,'addr_style',{ addrLrPaddingStatus: ['addrLrPadding'] }, `{"margin":{"bottom":0,"top":16,"left":16,"right":16}}`);
806
829
  this.addrLrPadding = gCPVal(container, 'addrLrPadding', [0], {sKey:'addrLrPaddingStatus',fields:['addrLrPadding'],isPMR: true, cusFields: ['addr_style', 'margin', addrStyle]});
807
830
 
808
831
  this.brandTextColor = gCPVal(container, 'brandTextColor', [this.mainColor], {sKey: "brandTextStatus", fields: ['brandTextColor']})
809
832
  this.blessFontSize = gCPVal(container, 'blessFontSize', [24], {sKey: 'formTipStatus', fields: ['blessFontSize', 'blessTextColor']});
810
833
  this.blessTextColor = gCPVal(container, 'blessTextColor', [this.dangerColor], {sKey: "formTipStatus", fields: ['blessFontSize', 'blessTextColor']});
811
834
  this.priceTextColor = gCPVal(container, 'priceTextColor', [this.mainColor], {sKey: "activityPriceStatus", fields: ['priceTextColor']})
812
- this.bottomPadding = gCPVal(container, 'bottomPadding', [20], {sKey: "bottomPaddingStatus", fields: ['bottomPadding']});
835
+ this.bottomPadding = gCPVal(container, 'bottomPadding', [16], {sKey: "bottomPaddingStatus", fields: ['bottomPadding']});
813
836
  this.bottomBtnRadius = gCPVal(container, 'bottomBtnRadius', [40], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
814
837
  this.bottomBtnHeight = gCPVal(container, 'bottomBtnHeight', [60], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
815
838
  this.bottomPayText = gCPVal(container, 'bottomPayText', ["支付"], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
@@ -850,6 +873,21 @@
850
873
  if(this.skipToPay === 'N'){
851
874
  this.hasAlertCardChose = true;
852
875
  }
876
+ this.$nextTick(() => {
877
+ setTimeout(() => {
878
+ this.getDomReadyRect();
879
+ }, 200)
880
+ });
881
+ },
882
+ getDomReadyRect(){
883
+ return new Promise((resolve, reject) => {
884
+ let query = uni.createSelectorQuery();
885
+ query.select('.fixed_bottom_body').boundingClientRect(rect => {
886
+ console.log('getDomReadyRect', rect);
887
+ this.fixedBottomBodyHeight = rect.height;
888
+ resolve(rect);
889
+ }).exec();
890
+ });
853
891
  },
854
892
  //选择元宝
855
893
  toChoseWallet(){
@@ -1487,7 +1525,14 @@
1487
1525
 
1488
1526
  bindPickerChange(e, index){
1489
1527
  let pickIndex = e.detail.value;
1490
- 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
+ });
1491
1536
  this.shopList = this.shopList.map((item,ii) => {
1492
1537
  if(index === ii){
1493
1538
  let cur = item.support_delivery_method_options[pickIndex];
@@ -1517,7 +1562,7 @@
1517
1562
  @padding_l_r: 50rpx;
1518
1563
  .jfb-mall-confirm {
1519
1564
  &__body{
1520
- // background: #F7F7F7;
1565
+ overflow: auto;
1521
1566
  color: #333333;
1522
1567
  .section{
1523
1568
  margin-bottom: var(--section-height);
@@ -1629,7 +1674,7 @@
1629
1674
  color: #999999;
1630
1675
  }
1631
1676
  .logistics_tip{
1632
- padding: 24rpx 48rpx;
1677
+ padding: 0 48rpx 24rpx;
1633
1678
  font-size: 24rpx;
1634
1679
  color: var(--g-theme-dangerColor);
1635
1680
  }
@@ -1637,6 +1682,11 @@
1637
1682
  padding: 20rpx 48rpx;
1638
1683
  font-size: 24rpx;
1639
1684
  }
1685
+ .delivery{
1686
+ ::v-deep .xd-my-list-item:last-child{
1687
+ border-bottom: none !important;
1688
+ }
1689
+ }
1640
1690
  .shop_name{
1641
1691
  padding: 24rpx 48rpx;
1642
1692
  border-bottom: 1px solid #eee;
@@ -1746,6 +1796,19 @@
1746
1796
  padding: 0 32rpx;
1747
1797
  color: #ff5733;
1748
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
+ }
1749
1812
  }
1750
1813
  }
1751
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",
@@ -93,7 +93,7 @@
93
93
 
94
94
  .icon_wrap{
95
95
  width: 44rpx;
96
- padding: 8rpx 0 0 0rpx;
96
+ padding: 8rpx 12rpx 0 0rpx;
97
97
  box-sizing: border-box;
98
98
  }
99
99
  }
@@ -103,6 +103,8 @@ export default {
103
103
  .my-list_label{
104
104
  font-size: 28rpx;
105
105
  font-weight: 400;
106
+ height: 40rpx;
107
+ line-height: 40rpx;
106
108
  }
107
109
  }
108
110
  &.size_default{
@@ -110,6 +112,8 @@ export default {
110
112
  .my-list_label{
111
113
  font-size: 28rpx;
112
114
  font-weight: 400;
115
+ height: 40rpx;
116
+ line-height: 40rpx;
113
117
  }
114
118
  }
115
119
  &.size_small{
@@ -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, //内容引用模版被禁用
@@ -179,7 +179,7 @@ export default function (data, gValue,gColor,oldData){
179
179
  key: 'addr_style',
180
180
  gValue,
181
181
  fields: { addrLrPaddingStatus: ['addrLrPadding'] },
182
- sValue: `{"margin":{"bottom":0,"top":0,"left":0,"right":0}}`,
182
+ sValue: `{"margin":{"bottom":0,"top":16,"left":16,"right":16}}`,
183
183
  }),
184
184
  labelInline:true,
185
185
  isTplRef: true, //内容引用模版被禁用
@@ -209,7 +209,7 @@ export default function (data, gValue,gColor,oldData){
209
209
  key: 'cont_style',
210
210
  gValue,
211
211
  fields: { sectionHeightStatus: ['sectionHeight'], lrPaddingStatus: ['lrPadding'] },
212
- sValue: `{"spacing":20,"margin":{"bottom":0,"top":0,"left":0,"right":0},"backgroundColor": "rgba(245, 245, 245, 1)"}`,
212
+ sValue: `{"spacing":16,"margin":{"bottom":0,"top":0,"left":16,"right":16},"backgroundColor": "rgba(245, 245, 245, 1)"}`,
213
213
  }),
214
214
  labelInline:true,
215
215
  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,25 +1,27 @@
1
1
  <template>
2
2
  <view class="chose_shop_list">
3
- <view class="shop-search">
4
- <input
5
- class="uni-input"
6
- placeholder="输入门店名称"
7
- :value="keyword"
8
- @input="handleInput"
9
- @confirm="handleInput"
10
- />
11
- <view>
12
- <xd-font-icon icon="iconsousuo_mian" color="#666" size="32"></xd-font-icon>
3
+ <view class="shop_header">
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>
11
+ <view class="shop-search">
12
+ <input
13
+ class="uni-input"
14
+ placeholder="输入门店名称"
15
+ :value="keyword"
16
+ @input="handleInput"
17
+ @confirm="handleInput"
18
+ />
19
+ <view>
20
+ <xd-font-icon icon="iconsousuo_mian" color="#999999" size="28"></xd-font-icon>
21
+ </view>
13
22
  </view>
14
23
  </view>
15
- <view class="chose_location">
16
- <xd-city-show
17
- city-location-type="baidu"
18
- @done="handleCityDone"
19
- @onChange="handleCityChange"
20
- color="#333"></xd-city-show>
21
- <view class="switch_city" @click="handleCityChange">切换城市 <xd-font-icon size="28" icon="iconxiangyou_xian"></xd-font-icon> </view>
22
- </view>
24
+
23
25
  <view class="shop_list" v-if="list && list.length">
24
26
  <view
25
27
  class="shop_item"
@@ -33,31 +35,38 @@
33
35
  <view class="shop_info">
34
36
  <view class="shop_name">
35
37
  <view class="_name">{{item.resource_shop_name}}</view>
36
- <view class="distance" v-if="item.distance">{{item.distance}}</view>
38
+ <!-- <view class="distance" v-if="item.distance">{{item.distance}}</view> -->
37
39
  </view>
38
40
  <view>
39
41
  <view class="shop_sub">
40
- <view class="_icon"><xd-font-icon size="32" icon="icondizhitubiao"></xd-font-icon></view>
41
- <view>{{item.address}}</view>
42
+ <!-- <view class="_icon"><xd-font-icon size="32" icon="icondizhitubiao"></xd-font-icon></view> -->
43
+ <view class="addr_text">{{item.address}}</view>
44
+ <view v-if="item.distance">{{item.distance}}</view>
42
45
  </view>
43
46
  <view class="shop_sub">
44
- <view class="_icon"><xd-font-icon size="32" icon="icondianhuatubiao"></xd-font-icon></view>
47
+ <view class="_icon"><xd-font-icon size="24" icon="icondianhuatubiao"></xd-font-icon></view>
45
48
  <view>{{item.phone}}</view>
46
49
  </view>
47
50
  </view>
48
51
  </view>
49
52
  </view>
50
53
  </view>
51
- <view v-else class="empty_data">该地区暂无可选门店</view>
54
+ <view v-else class="empty_data">
55
+ <xd-no-data :scaleSize="3" iconType="shop">
56
+ <view style="margin-top: -100rpx;">该地区暂无可选门店</view>
57
+ </xd-no-data>
58
+ </view>
52
59
  </view>
53
60
  </template>
54
61
  <script>
55
62
  import XdCityShow from "@/components/XdCityShowApi/XdCityShowApi"
56
63
  import XdFontIcon from "@/components/XdFontIcon/XdFontIcon"
64
+ import XdNoData from "@/components/XdNoData/XdNoData"
57
65
  export default {
58
66
  components: {
59
67
  XdCityShow,
60
- XdFontIcon
68
+ XdFontIcon,
69
+ XdNoData
61
70
  },
62
71
  props: {
63
72
  getCityInfoByLocation: {
@@ -102,26 +111,45 @@ export default {
102
111
  <style lang="less" scoped>
103
112
  .chose_shop_list{
104
113
  background: #F7F7F7;
105
- padding: 32rpx;
114
+ padding: 16rpx;
106
115
  position: relative;
107
- height: calc(60vh - 164rpx);
116
+ height: 45vh;
108
117
  }
109
-
110
- .shop-search {
118
+ .shop_header{
111
119
  position: absolute;
112
- border:1px solid #eee;
113
120
  top: -80rpx;
114
- left: 30rpx;
115
- width: 400rpx;
116
- padding: 10rpx 20rpx;
121
+ left: 8rpx;
122
+ display: flex;
123
+ ::v-deep .xd-city__name-title{
124
+ color: #999999 !important;
125
+ font-size: 24rpx !important;
126
+ }
127
+ ::v-deep .xd-city__name-icon{
128
+ color: #999999 !important;
129
+
130
+ .xd-iconfont {
131
+ font-size: 24rpx !important;
132
+ }
133
+ }
134
+ }
135
+ .shop-search {
136
+ border:1px solid #f8f8f8;
137
+ width: 420rpx;
138
+ padding: 16rpx 32rpx;
117
139
  border-radius: 40rpx;
118
140
  background-color: #f8f8f8;
119
141
  display: flex;
120
142
  justify-content: flex-start;
121
143
  align-items: center;
144
+ margin-left: 8rpx;
145
+
146
+ ::v-deep .uni-input-placeholder{
147
+ color: #999999;
148
+ }
149
+
122
150
 
123
151
  & .uni-input {
124
- font-size: 28rpx;
152
+ font-size: 24rpx;
125
153
  flex: 1;
126
154
  color: #333;
127
155
  line-height: 36rpx;
@@ -155,23 +183,24 @@ export default {
155
183
  font-size: 28rpx;
156
184
  }
157
185
  .empty_data{
158
- line-height: 300rpx;
159
186
  text-align: center;
160
187
  font-size: 28rpx;
161
188
  color: #999999;
189
+ height: 100%;
162
190
  }
163
191
  .shop_list{
164
- height: calc(60vh - 164rpx);
192
+ height: 100%;
165
193
  overflow-y: auto;
166
194
  .shop_item{
167
195
  display: flex;
168
196
  background: #FFFFFF;
169
- padding: 20rpx;
197
+ padding: 16rpx;
170
198
  margin-bottom: 20rpx;
199
+ border-radius: 16rpx;
171
200
  }
172
201
  .shop_image{
173
- width: 200rpx;
174
- height: 200rpx;
202
+ width: 160rpx;
203
+ height: 160rpx;
175
204
  border: 1px solid #DDD;
176
205
  image{
177
206
  width: 100%;
@@ -183,15 +212,22 @@ export default {
183
212
  flex-direction: column;
184
213
  width: 200rpx;
185
214
  flex: 1;
186
- margin-left: 24rpx;
187
- justify-content: space-between;
215
+ margin-left: 16rpx;
216
+
217
+ .addr_text{
218
+ width: 420rpx;
219
+ padding-right: 20rpx;
220
+ overflow: hidden;
221
+ text-overflow: ellipsis;
222
+ white-space: nowrap;
223
+ }
188
224
  }
189
225
  .shop_name{
190
226
  display: flex;
191
227
  align-items: flex-start;
192
228
  justify-content: space-between;
193
229
  font-size: 32rpx;
194
- color: #242424;
230
+ color: #333333;
195
231
  ._name{
196
232
  flex: 1;
197
233
  width: 200rpx;
@@ -207,9 +243,10 @@ export default {
207
243
  }
208
244
  .shop_sub{
209
245
  display: flex;
246
+ align-items: center;
210
247
  color: #999999;
211
248
  font-size: 24rpx;
212
- margin-top: 20rpx;
249
+ margin-top: 16rpx;
213
250
  line-height: 1.6;
214
251
  ._icon{
215
252
  width: 40rpx;