Commit 0199d4af by 张立顺

fix bug

1 parent 03a29fa9
......@@ -10,9 +10,7 @@ Component({
},
show: {
type: Boolean,
observer: function () {
}
observer: function (n) { }
},
goodsData: {
type: Object,
......@@ -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,13 +211,13 @@ Component({
})
},
},
lifetimes:{
attached(){
lifetimes: {
attached() {
console.log(77777)
this.setData({
windowHight:wx.getSystemInfoSync().windowHeight
})
this.setData({
windowHight: wx.getSystemInfoSync().windowHeight
})
}
}
})
\ No newline at end of file
<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="tips">温馨提示:请仔细确认当前售价,避免录错单</view>
<view class="goods">
<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}}">
<block wx:if="{{i.active}}">
<image src="./images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view>
<view class="value">
<view class="alias" wx:if="{{i.goodsAlias}}">
商品别名:{{i.goodsAlias}}
<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="icon" catchtap="choose" data-index="{{index}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="./images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view>
<view class="value">
<view class="alias" wx:if="{{i.goodsAlias}}">
商品别名:{{i.goodsAlias}}
</view>
<view class="bottom_box">
<view class="left">
<view class="name">{{goodsData.multipleSpecificationsGoods.baseGoodsName}}</view>
<view class="position" wx:if="{{ i.specificationStr }}">{{i.specificationStr}}</view>
</view>
<view class="right">
<view class="price-box">
<text>¥</text>
<view class="price">
<!-- {{i}} -->
{{i.sellPrice}}
</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 class="count" catchtap="showPopup" wx:else data-show-name="goodsBox">x{{i.count||1}}</view>
</view>
</view>
</view>
<view class="bottom_box">
<view class="left">
<view class="name">{{goodsData.multipleSpecificationsGoods.baseGoodsName}}</view>
<view class="position" wx:if="{{ i.specificationStr }}">{{i.specificationStr}}</view>
</view>
<view class="right">
<view class="price-box">
<text>¥</text>
<view class="price">
<!-- {{i}} -->
{{i.sellPrice}}
</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 class="count" catchtap="showPopup" wx:else data-show-name="goodsBox">x{{i.count||1}}</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bind:tap="hidePopup">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认</view>
</view>
<view class="cancel btn text-center" bind:tap="hidePopup">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认</view>
</view>
</van-popup>
\ No newline at end of file
......@@ -28,6 +28,7 @@ Page({
* 页面的初始数据
*/
data: {
scrollDisabled: false,
tipsProps: {
tipsText: "该门店产生异常订单,请点击补录!",
showTips: true,
......@@ -985,7 +986,7 @@ Page({
.catch(err => { })
},
handleSpecificationsEcho(item) {
console.log('item',item)
console.log('item', item)
let {
quotationGoodsList
} = this.data, skuArr = [],
......@@ -996,16 +997,16 @@ console.log('item',item)
let tempData = data.multipleSpecificationsGoods.specificationGoodsMap[str]
if (tempData) {
tempData.forEach(temp => {
if (temp.merchantGoodsId == item.goodsId) {
let obj={
let obj = {
goodsFlag: 2,
goods: null,
}
obj.multipleSpecificationsGoods={
goods:temp,
baseGoodsName:item.goodsName
obj.multipleSpecificationsGoods = {
goods: temp,
baseGoodsName: item.goodsName
}
temp.price = this.divideByHundred(item.goodsPrice)
temp.goodsId = item.goodsId
......@@ -1016,7 +1017,7 @@ console.log('item',item)
// value.value = arr[index]
// })
// obj.multipleSpecificationsGoods = data.multipleSpecificationsGoods
console.log('🚀',obj)
console.log('🚀', obj)
skuArr.push(obj)
}
})
......
......@@ -11,6 +11,11 @@ page {
/* min-height: 100vh; */
}
.scroll-disabled {
height: 100vh;
overflow: hidden;
}
.navigation-title {
display: flex;
align-items: center;
......@@ -43,7 +48,7 @@ page {
display: flex;
flex-direction: column;
/* height: calc(100vh - 50px); */
overflow: scroll;
// overflow: scroll;
}
.btns {
......
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- <scroll-view class="container" scroll-y style="height:{{windowHeight}}px"> -->
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
车险信息
</view>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
车险信息
</view>
</navigation-bar>
<view class="layout {{(showTips||waitInputCount)?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;">
<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" />
</view>
<view wx:if="{{showTips}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips">
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view class="tradeNoCon">
<view>交易参考号:</view>
<view class="tradeNo text-hide">{{tradeNo}}</view>
<view>(共{{outTradeArr.length}}条)</view>
</view>
<!-- <view>支付时间:{{accountDate}}</view> -->
<view class="tipsbox">
<view>支付金额:¥{{totalFee/100}}</view>
<view class="tipsbtn" bindtap="tipsEvent">补录订单</view>
</view>
</navigation-bar>
<!-- {{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}}" />
<second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" />
</view>
<view wx:if="{{showTips}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips">
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view class="tradeNoCon">
<view>交易参考号:</view>
<view class="tradeNo text-hide">{{tradeNo}}</view>
<view>(共{{outTradeArr.length}}条)</view>
</view>
<!-- <view>支付时间:{{accountDate}}</view> -->
<view class="tipsbox">
<view>支付金额:¥{{totalFee/100}}</view>
<view class="tipsbtn" bindtap="tipsEvent">补录订单</view>
</view>
<!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> -->
</view>
<!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> -->
</view>
</view>
<!-- </scroll-view> -->
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !orderInfo.resetOrder && !isErrorOrder&&!outTradeNo }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
......
......@@ -463,7 +463,6 @@
<!-- </scroll-view> -->
</block>
<!-- &&!outTradeNo -->
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !associateOrderType && !isErrorOrder&&!outTradeNo && recordOrderFlag }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view>
......
......@@ -51,15 +51,15 @@
</view>
</picker>
</view>
<!-- <view class="input-item">
<view class="input-item">
<view class="left">
<view class="label disabled">
今日成交数
今日成交金额
<text class="required_text"> *</text>
</view>
</view>
<input value="{{ orderObj.totalOrderCount }}" placeholder-class="placeholder-class" placeholder-style="{{ 'color: #D0D2D6' }};" class="content-input disabled" disabled="{{ true }}" type="{{ 'number' }}" />
</view> -->
<input value="{{ orderObj.totalOrderMoney }}" placeholder-class="placeholder-class" placeholder-style="{{ 'color: #D0D2D6' }};" class="content-input disabled" disabled="{{ true }}" type="{{ 'number' }}" />
</view>
<!-- 备注 -->
<view class="remark_box">
<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!