jufubao-food 1.0.13-beta3 → 1.0.13-beta4

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-food",
3
- "version": "1.0.13-beta3",
3
+ "version": "1.0.13-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件餐饮插件包",
6
6
  "main": "index.js",
@@ -76,7 +76,7 @@
76
76
  </view>
77
77
  </view>
78
78
  <!-- 订单备注信息 -->
79
- <view v-if="showOrderComment == 'Y'" class="order_comment section">
79
+ <view v-if="showOrderComment === 'Y'" class="order_comment section">
80
80
  <view class="title">备注信息</view>
81
81
  <textarea v-model="comment" :maxlength="50" type="textarea" placeholder="备注信息,限50字以内"/>
82
82
  </view>
@@ -100,7 +100,7 @@
100
100
  <xd-unit :price="-plus_saving_money" :largeZero="false" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
101
101
  </xd-list-item>
102
102
  </view>
103
-
103
+
104
104
  <view class="section">
105
105
  <template v-for="item in otherPayMethod">
106
106
  <xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="60rpx" size="small" :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseCard">
@@ -140,13 +140,12 @@
140
140
  <xd-unit :price="orderInfo.real_total_amount" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
141
141
  </xd-list-item>
142
142
  </view>
143
-
144
143
  <view class="placeholderBottom" :style="bottomFixedStylePlaceholder"></view>
145
144
  <view v-if="orderInfo.order_status === 'N'" class="alert_bottom" :style="alertBottomStyleComp">
146
- {{ orderInfo.error_tip }}
145
+ <view>{{ orderInfo.error_tip }}</view>
147
146
  </view>
148
147
  <!-- 靠低支付 -->
149
- <view class="fixe_bottom" :style="prod_bottom">
148
+ <view class="fixe_bottom" id="pay-elx" :style="prod_bottom">
150
149
  <view class="fixed_bottom_body" :style="[bottomBoxStyle]">
151
150
  <view class="flex_l" :style="{
152
151
  justifyContent: bottomPricePosition
@@ -299,10 +298,10 @@
299
298
  plus_saving_money: 0,
300
299
  main_order_id: "",
301
300
  resource_shop_id: "",
302
-
301
+
303
302
  showDialogConfirmShop: false,
304
303
  showDialogChangeShop: false,
305
-
304
+
306
305
  validImageAPIUrl: "",
307
306
  jwxSDK: null,
308
307
  is_plus_site: false,
@@ -331,14 +330,10 @@
331
330
  bottomBtnRadius: 0,
332
331
  bottomBtnHeight: 60,
333
332
  bottomPayText: "",
334
- bottomPricePosition: "",
333
+ payBtnHeight: 0,
335
334
 
336
335
  lrPadding: {},
337
336
  bottomPadding: {},
338
- bottomBtnRadius: 0,
339
- bottomBtnHeight: 60,
340
- bottomPayText: "",
341
- bottomPricePosition: "",
342
337
 
343
338
  payPath: "",
344
339
  paySuccessPath: "",
@@ -366,7 +361,8 @@
366
361
  return this.fixedStyle({paddingBottom: 106, zIndex: 110})
367
362
  },
368
363
  bottomFixedStylePlaceholder() {
369
- let tipAlert = this.orderInfo && this.orderInfo.order_status==='N' ? 120: 0
364
+ let tipAlert = this.orderInfo && this.orderInfo.order_status==='N' ? 72: 0;
365
+ tipAlert = tipAlert + this.payBtnHeight;
370
366
  return this.fixedStyle({paddingBottom: tipAlert, zIndex: 110}, 'bottom', false);
371
367
  },
372
368
  bottomBoxStyle(){
@@ -454,7 +450,7 @@
454
450
  init(container) {
455
451
  this.bgColor = this.$colorChange(this.warningColor).alpha(0.1).toString();
456
452
  this.bgColor2 = this.$colorChange(this.mainColor).alpha(0.1).toString();
457
-
453
+
458
454
  this.xnamespace = getContainerPropsValue(container, 'content.xnamespace', this.projectAttr.business_code);
459
455
  this.showBuyer = getContainerPropsValue(container, 'content.showBuyer', "Y");
460
456
  this.showOrderComment = getContainerPropsValue(container, 'content.showOrderComment', "Y");
@@ -467,7 +463,7 @@
467
463
  this.skipTip = getContainerPropsValue(container, "content.skipTip", "N");
468
464
  this.guidePay = getContainerPropsValue(container, "content.guidePay", "");
469
465
  this.skipToPay = getContainerPropsValue(container, "content.skipToPay", "N");
470
- if(this.skipToPay === 'Y'){
466
+ if(this.skipToPay === 'N'){
471
467
  this.hasAlertCardChose = true;
472
468
  }
473
469
 
@@ -480,6 +476,20 @@
480
476
  this.bottomBtnHeight = gCPVal(container, 'bottomBtnHeight', [60], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
481
477
  this.bottomPayText = gCPVal(container, 'bottomPayText', ["支付"], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
482
478
  this.bottomPricePosition = gCPVal(container, 'bottomPricePosition', ['flex-start'], {sKey: "btnPriceStatus", fields: ['bottomPricePosition']});
479
+
480
+ this.$nextTick(()=>{
481
+ let time = 500;
482
+ //#ifdef H5
483
+ time = 10
484
+ //#endif
485
+ setTimeout(()=>{
486
+ this.$xdUniHelper.getWindowHeight(['#pay-elx'], this)
487
+ .then(res=>{
488
+ this.payBtnHeight = res['#pay-elx'].height * this.$pxNum;
489
+ })
490
+ .catch()
491
+ }, time)
492
+ });
483
493
  },
484
494
  p_getVipList(){
485
495
  jfbRootExec("getVipList", {
@@ -611,7 +621,7 @@
611
621
  this.choseCoupon = data;
612
622
  this.showCouponChose = false;
613
623
  },
614
-
624
+
615
625
  //选择卡片
616
626
  toChoseCard(){
617
627
  if(this.choseCoupon && this.choseCoupon.cardPayPrice) return
@@ -997,7 +1007,7 @@
997
1007
  }
998
1008
  }
999
1009
  .placeholderBottom{
1000
-
1010
+
1001
1011
  }
1002
1012
  .alert_bottom{
1003
1013
  background: rgba(255, 244, 191, 0.9);
@@ -25,7 +25,7 @@
25
25
  <xd-font-icon icon="iconxiangyou_xian" color="#666666" size="28"></xd-font-icon>
26
26
  </view>
27
27
  </view>
28
- <view style="height: 104rpx;"></view>
28
+ <view style="height: 100rpx;"></view>
29
29
 
30
30
  <view class="section_main" :style="[sectionMainStyleComp]">
31
31
  <view class="left_nav">
@@ -52,7 +52,7 @@
52
52
  :id="getID(cate)"
53
53
  :data-next="cate.nextHeight"
54
54
  >
55
- <view class="group_title">{{ cate.category_name }}</view>
55
+ <view class="group_title" :style="[contGroupTitleStyle]">{{ cate.category_name }}</view>
56
56
  <view class="product_list" v-if="cate.productList.length">
57
57
  <view v-for="item in cate.productList" :key="item.key" :style="[contProductStyles]">
58
58
  <view class="product_item">
@@ -201,6 +201,7 @@
201
201
  pointerScroll: true,
202
202
  prodScrollIntoView: "",
203
203
  prodScrollTop: 0,
204
+ oldProdScrollTop: 0,
204
205
  scrollUpTimer: null,
205
206
  scrollTimer: null,
206
207
 
@@ -248,10 +249,15 @@
248
249
  return {
249
250
  backgroundColor: this.itemBgcColor,
250
251
  marginBottom: this.rowSpacing + 'rpx',
251
- padding: '16rpx',
252
+ padding: '16rpx 32rpx',
252
253
  borderRadius: '16rpx',
253
254
  }
254
255
  },
256
+ contGroupTitleStyle(){
257
+ return {
258
+ paddingLeft: '32rpx',
259
+ }
260
+ },
255
261
  bodyStyleComp(){
256
262
  return {
257
263
  '--main-color': this.mainColor
@@ -260,7 +266,7 @@
260
266
  sectionMainStyleComp(){
261
267
  console.log(this.layoutInfo)
262
268
  return {
263
- height: (this.layoutInfo.bodyMinHeightRpx - 158 - this.layoutInfo.bottom) + 'rpx',
269
+ height: (this.layoutInfo.bodyMinHeightRpx - 220) + 'rpx',
264
270
  }
265
271
  },
266
272
  fixed_bottom() {
@@ -539,7 +545,8 @@
539
545
  let scrollTop = e.detail.scrollTop;
540
546
  if(this.scrollTopTimer) clearTimeout(this.scrollTopTimer);
541
547
  this.scrollTopTimer = setTimeout(()=>{
542
- this.prodScrollTop = scrollTop;
548
+ // this.prodScrollTop = scrollTop;
549
+ this.oldProdScrollTop = scrollTop;
543
550
  },50)
544
551
  //手动点击tab定位不触发
545
552
  if(!this.pointerScroll) return false;
@@ -795,6 +802,7 @@
795
802
  align-items: center;
796
803
  }
797
804
  .shop_info{
805
+ height: 100rpx;
798
806
  display: flex;
799
807
  align-items: center;
800
808
  font-size: 32rpx;
@@ -802,9 +810,8 @@
802
810
  justify-content: space-between;
803
811
  background-color: #FFFFFF;
804
812
  box-sizing: border-box;
805
- margin-bottom: 20rpx;
806
813
  border-bottom: 1px solid #F8F8F8;
807
- padding: 30rpx;
814
+ padding: 0 30rpx;
808
815
  position: fixed;
809
816
  top: 0;
810
817
  width: 100%;
@@ -865,7 +872,7 @@
865
872
  }
866
873
  .right_product{
867
874
  flex: 1;
868
- margin: 0 16rpx 0 32rpx;
875
+ margin: 0;
869
876
 
870
877
  .product_group{
871
878
  .group_title{
@@ -877,7 +884,7 @@
877
884
  height: 64rpx;
878
885
  line-height: 64rpx;
879
886
  border-radius: 16rpx;
880
- padding-left: 16rpx;
887
+ padding-left: 32rpx;
881
888
  }
882
889
  .product_list{
883
890
  .product_loading{
@@ -905,9 +912,9 @@
905
912
  }
906
913
 
907
914
  .prod_img{
908
- width: 200rpx;
909
- height: 200rpx;
910
- margin-right: 16rpx;
915
+ width: 180rpx;
916
+ height: 180rpx;
917
+ margin-right: 24rpx;
911
918
  background: #f8f8f8;
912
919
  // border-radius: 16rpx;
913
920
  image{
@@ -1021,9 +1028,9 @@
1021
1028
  border-bottom: 1px solid #F5F5F5;
1022
1029
 
1023
1030
  .prod_img{
1024
- width: 200rpx;
1025
- height: 200rpx;
1026
- margin-right: 24rpx;
1031
+ width: 180rpx;
1032
+ height: 180rpx;
1033
+ margin-right: 16rpx;
1027
1034
  // background: #DDD;
1028
1035
  image{
1029
1036
  width: 100%;