Commit 8af97323 by 张立顺

bug修复提交

2 parents 20de0017 96ab4754
...@@ -40,6 +40,9 @@ Component({ ...@@ -40,6 +40,9 @@ Component({
methods: { methods: {
handleClick() { handleClick() {
this.triggerEvent('click') this.triggerEvent('click')
},
handleClose() {
this.triggerEvent('close')
} }
} }
}) })
...@@ -8,5 +8,5 @@ ...@@ -8,5 +8,5 @@
<view class="tipTxt">{{tipTxt}}</view> <view class="tipTxt">{{tipTxt}}</view>
<view class="btn" bindtap="handleClick">{{btnTxt}}</view> <view class="btn" bindtap="handleClick">{{btnTxt}}</view>
</view> </view>
<image src="{{IMG_URL}}index/close.png" class="close" bindtap="handleShow"></image> <image src="{{IMG_URL}}index/close.png" class="close" bindtap="handleClose"></image>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
} }
.content { .content {
position: relative;
text-align: center; text-align: center;
box-sizing: border-box; box-sizing: border-box;
padding: 48rpx 76rpx; padding: 48rpx 76rpx;
...@@ -55,6 +56,8 @@ ...@@ -55,6 +56,8 @@
} }
.btn { .btn {
position: absolute;
bottom: 80rpx;
width: 392rpx; width: 392rpx;
height: 96rpx; height: 96rpx;
line-height: 96rpx; line-height: 96rpx;
......
...@@ -251,6 +251,17 @@ Page({ ...@@ -251,6 +251,17 @@ Page({
this.handleSecondConfirm(params) this.handleSecondConfirm(params)
}, },
handleTipClose(e) {
let { type } = e.currentTarget.dataset
if (type == 'success') {
this.handlePreviewContract()
return true
}
this.setData({
isDialogShow: false
})
},
// 合同 // 合同
handlePreviewContract() { handlePreviewContract() {
wx.$router.go('previewContract', { wx.$router.go('previewContract', {
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
<view class="layout"> <view class="layout">
<first-step wx:if="{{step == 'first'}}" id="FirstStep" serviceInfo="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" bindconfirm="handleFirstConfirm" binddraft="handleSecondConfirm"></first-step> <first-step wx:if="{{step == 'first'}}" id="FirstStep" serviceInfo="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" bindconfirm="handleFirstConfirm" binddraft="handleSecondConfirm"></first-step>
<second-step wx:if="{{step == 'second'}}" id="SecondStep" serviceInfo="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" bindconfirm="handleSecondConfirm" binddraft="handleSecondConfirm"></second-step> <second-step wx:if="{{step == 'second'}}" id="SecondStep" serviceInfo="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" bindconfirm="handleSecondConfirm" binddraft="handleSecondConfirm"></second-step>
<shade-tip isShow="{{isDialogShow}}" type="{{dialogObj.type}}" title="{{dialogObj.title}}" tipTxt="{{dialogObj.tipTxt}}" btnTxt="{{dialogObj.btnTxt}}" bindclick="handleTipClick" data-type="{{dialogObj.type}}"></shade-tip> <shade-tip isShow="{{isDialogShow}}" type="{{dialogObj.type}}" title="{{dialogObj.title}}" tipTxt="{{dialogObj.tipTxt}}" btnTxt="{{dialogObj.btnTxt}}" bindclick="handleTipClick" bindclose="handleTipClose" data-type="{{dialogObj.type}}"></shade-tip>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -120,7 +120,7 @@ Component({ ...@@ -120,7 +120,7 @@ Component({
if (!arr) { if (!arr) {
return arr return arr
} }
var attrList = ['equityPrice', 'quotedPrice', 'equityPrice'] var attrList = ['equityPrice', 'quotedPrice', 'quotedPriceUpdate']
arr.forEach(item => { arr.forEach(item => {
attrList.forEach(k => { attrList.forEach(k => {
if (item[k]) { if (item[k]) {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<!-- 0待报价、1待确认、2待支付、3已支付、-1战败 --> <!-- 0待报价、1待确认、2待支付、3已支付、-1战败 -->
<view wx:if="{{item.orderStatus == '3'}}"> <view wx:if="{{item.orderStatus == '3'}}">
<span class="green-txt">{{orderStatusObj[item.orderStatus]}}</span> <span class="green-txt">{{orderStatusObj[item.orderStatus]}}</span>
<span class="header-price">¥ {{item.equityPrice}}</span> <span class="header-price">¥ {{item.quotedPriceUpdate}}</span>
</view> </view>
<view wx:else class="{{item.orderStatus == '-1' ? 'red-txt' : '' }}"> <view wx:else class="{{item.orderStatus == '-1' ? 'red-txt' : '' }}">
{{orderStatusObj[item.orderStatus] || '--'}} {{orderStatusObj[item.orderStatus] || '--'}}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!