Commit 0199d4af by 张立顺

fix bug

1 parent 03a29fa9
...@@ -10,9 +10,7 @@ Component({ ...@@ -10,9 +10,7 @@ Component({
}, },
show: { show: {
type: Boolean, type: Boolean,
observer: function () { observer: function (n) { }
}
}, },
goodsData: { goodsData: {
type: Object, type: Object,
...@@ -28,7 +26,16 @@ Component({ ...@@ -28,7 +26,16 @@ Component({
}, },
}, },
}, },
observers: {
'show': function (value, old) {
console.log(value, old, 'show');
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
scrollDisabled: value
})
}
},
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
...@@ -204,11 +211,11 @@ Component({ ...@@ -204,11 +211,11 @@ Component({
}) })
}, },
}, },
lifetimes:{ lifetimes: {
attached(){ attached() {
console.log(77777) console.log(77777)
this.setData({ this.setData({
windowHight:wx.getSystemInfoSync().windowHeight windowHight: wx.getSystemInfoSync().windowHeight
}) })
} }
} }
......
<van-popup custom-style="min-height: 280px;width:var(--fontSize686);" round z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}"> <van-popup lock-scroll catchtouchmove="noScroll" custom-style="min-height: 280px;width:var(--fontSize686);" round z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}">
<view class="title">确认需购买的商品</view> <view class="title">确认需购买的商品</view>
<view class="tips">温馨提示:请仔细确认当前售价,避免录错单</view> <view class="tips">温馨提示:请仔细确认当前售价,避免录错单</view>
<view class="goods"> <view class="goods" catchtouchmove="noScroll">
<scroll-view scroll-y style="height:350px;">
<view class="item-wrap {{i.active?'active':''}}" wx:for="{{goodsData.multipleSpecificationsGoods.skuGoodsList}}" wx:key="ind" wx:for-index="index" wx:for-item="i"> <view class="item-wrap {{i.active?'active':''}}" wx:for="{{goodsData.multipleSpecificationsGoods.skuGoodsList}}" wx:key="ind" wx:for-index="index" wx:for-item="i">
<view class="icon" catchtap="choose" data-index="{{index}}" data-item="{{i}}"> <view class="icon" catchtap="choose" data-index="{{index}}" data-item="{{i}}">
<block wx:if="{{i.active}}"> <block wx:if="{{i.active}}">
...@@ -28,12 +29,13 @@ ...@@ -28,12 +29,13 @@
{{i.sellPrice}} {{i.sellPrice}}
</view> </view>
</view> </view>
<view style="display:flex;align-items: center;" wx:if="{{i.active&&sceneType==1}}" >x <input type="number" catchtap="noScroll"class="input" value="{{i.count || 1}}" catchinput="input" bindblur="blur" data-index="{{index}}" data-item="{{i}}" /></view> <view style="display:flex;align-items: center;" wx:if="{{i.active&&sceneType==1}}">x <input type="number" catchtap="noScroll" class="input" value="{{i.count || 1}}" catchinput="input" bindblur="blur" data-index="{{index}}" data-item="{{i}}" /></view>
<view class="count" catchtap="showPopup" wx:else data-show-name="goodsBox">x{{i.count||1}}</view> <view class="count" catchtap="showPopup" wx:else data-show-name="goodsBox">x{{i.count||1}}</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</scroll-view>
</view> </view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bind:tap="hidePopup">取消</view> <view class="cancel btn text-center" bind:tap="hidePopup">取消</view>
......
...@@ -28,6 +28,7 @@ Page({ ...@@ -28,6 +28,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
scrollDisabled: false,
tipsProps: { tipsProps: {
tipsText: "该门店产生异常订单,请点击补录!", tipsText: "该门店产生异常订单,请点击补录!",
showTips: true, showTips: true,
...@@ -985,7 +986,7 @@ Page({ ...@@ -985,7 +986,7 @@ Page({
.catch(err => { }) .catch(err => { })
}, },
handleSpecificationsEcho(item) { handleSpecificationsEcho(item) {
console.log('item',item) console.log('item', item)
let { let {
quotationGoodsList quotationGoodsList
} = this.data, skuArr = [], } = this.data, skuArr = [],
...@@ -998,14 +999,14 @@ console.log('item',item) ...@@ -998,14 +999,14 @@ console.log('item',item)
tempData.forEach(temp => { tempData.forEach(temp => {
if (temp.merchantGoodsId == item.goodsId) { if (temp.merchantGoodsId == item.goodsId) {
let obj={ let obj = {
goodsFlag: 2, goodsFlag: 2,
goods: null, goods: null,
} }
obj.multipleSpecificationsGoods={ obj.multipleSpecificationsGoods = {
goods:temp, goods: temp,
baseGoodsName:item.goodsName baseGoodsName: item.goodsName
} }
temp.price = this.divideByHundred(item.goodsPrice) temp.price = this.divideByHundred(item.goodsPrice)
temp.goodsId = item.goodsId temp.goodsId = item.goodsId
...@@ -1016,7 +1017,7 @@ console.log('item',item) ...@@ -1016,7 +1017,7 @@ console.log('item',item)
// value.value = arr[index] // value.value = arr[index]
// }) // })
// obj.multipleSpecificationsGoods = data.multipleSpecificationsGoods // obj.multipleSpecificationsGoods = data.multipleSpecificationsGoods
console.log('🚀',obj) console.log('🚀', obj)
skuArr.push(obj) skuArr.push(obj)
} }
}) })
......
...@@ -11,6 +11,11 @@ page { ...@@ -11,6 +11,11 @@ page {
/* min-height: 100vh; */ /* min-height: 100vh; */
} }
.scroll-disabled {
height: 100vh;
overflow: hidden;
}
.navigation-title { .navigation-title {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -43,7 +48,7 @@ page { ...@@ -43,7 +48,7 @@ page {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
/* height: calc(100vh - 50px); */ /* height: calc(100vh - 50px); */
overflow: scroll; // overflow: scroll;
} }
.btns { .btns {
......
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml --> <!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- <scroll-view class="container" scroll-y style="height:{{windowHeight}}px"> --> <!-- <scroll-view class="container" scroll-y style="height:{{windowHeight}}px"> -->
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back"> <navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title"> <view class="navigation-title">
<view class="navigation-title-text text-hide"> <view class="navigation-title-text text-hide">
车险信息 车险信息
</view> </view>
</view> </view>
</navigation-bar> </navigation-bar>
<view class="layout {{(showTips||waitInputCount)?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;"> <!-- {{scrollDisabled? "": height:{{windowHeight}}px}} -->
<view class="layout {{(showTips||waitInputCount)?'fullSucreen-tips':'' }} {{scrollDisabled?'scroll-disabled':''}}" style="padding-top:{{ navBarHeight }}px; ">
<first-step id="FirstStep" serviceInfo="{{ owner }}" dataAttrName="{{ dataAttrName }}" orderInfo="{{ orderInfo }}" subBtnShow="{{ false }}" mode="{{mode}}" /> <first-step id="FirstStep" serviceInfo="{{ owner }}" dataAttrName="{{ dataAttrName }}" orderInfo="{{ orderInfo }}" subBtnShow="{{ false }}" mode="{{mode}}" />
<second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" /> <second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" />
</view> </view>
<view wx:if="{{showTips}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}"> <view wx:if="{{showTips}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips"> <view class="tips">
<image class=" tipsIcon" src="../../../images/tips.png" /> <image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText"> <view class="contentText">
...@@ -29,7 +30,7 @@ ...@@ -29,7 +30,7 @@
</view> </view>
<!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> --> <!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> -->
</view> </view>
</view> </view>
<!-- </scroll-view> --> <!-- </scroll-view> -->
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !orderInfo.resetOrder && !isErrorOrder&&!outTradeNo }}"> <view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !orderInfo.resetOrder && !isErrorOrder&&!outTradeNo }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" /> <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
......
...@@ -463,7 +463,6 @@ ...@@ -463,7 +463,6 @@
<!-- </scroll-view> --> <!-- </scroll-view> -->
</block> </block>
<!-- &&!outTradeNo -->
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !associateOrderType && !isErrorOrder&&!outTradeNo && recordOrderFlag }}"> <view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !associateOrderType && !isErrorOrder&&!outTradeNo && recordOrderFlag }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" /> <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view> </view>
......
...@@ -51,15 +51,15 @@ ...@@ -51,15 +51,15 @@
</view> </view>
</picker> </picker>
</view> </view>
<!-- <view class="input-item"> <view class="input-item">
<view class="left"> <view class="left">
<view class="label disabled"> <view class="label disabled">
今日成交数 今日成交金额
<text class="required_text"> *</text> <text class="required_text"> *</text>
</view> </view>
</view> </view>
<input value="{{ orderObj.totalOrderCount }}" placeholder-class="placeholder-class" placeholder-style="{{ 'color: #D0D2D6' }};" class="content-input disabled" disabled="{{ true }}" type="{{ 'number' }}" /> <input value="{{ orderObj.totalOrderMoney }}" placeholder-class="placeholder-class" placeholder-style="{{ 'color: #D0D2D6' }};" class="content-input disabled" disabled="{{ true }}" type="{{ 'number' }}" />
</view> --> </view>
<!-- 备注 --> <!-- 备注 -->
<view class="remark_box"> <view class="remark_box">
<view class="label">备注</view> <view class="label">备注</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!