修改订单列表和详情显示判断
This commit is contained in:
@@ -29,7 +29,8 @@ Page({
|
||||
confirm_count_down: 3,
|
||||
wxTimerList: {},
|
||||
wxTimer: null,
|
||||
biz_type_4s: 5 //门店类型4s店
|
||||
biz_type_4s: 5, //门店类型4s店
|
||||
app_id_activity: 1
|
||||
},
|
||||
onLoad: function (options) {
|
||||
for (let key in options) {
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{userInfo.biz_type!=biz_type_4s}}">
|
||||
<block wx:if="{{info.app_id!=app_id_activity}}">
|
||||
<!--订单合同-->
|
||||
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=contract_img&title=订单合同&multi=true&edit={{info.status>0?'0':'1'}}">
|
||||
<view class="absolute left-0 box-middle font-32 color-333">订单合同</view>
|
||||
@@ -273,7 +273,7 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<block wx:if="{{userInfo.biz_type==biz_type_4s}}">
|
||||
<block wx:if="{{info.app_id==app_id_activity}}">
|
||||
<!--4s店铺按钮显示-->
|
||||
<view class="fixed left-0 right-0 bottom-0 pt20 pl30 pr30 pb40 bg-000-op80 fn-flex" style="z-index:999" wx:if="{{userInfo.group_id==2 && info.status<3}}">
|
||||
<button bindtap="postConfirmOrder" class="fn-flex-item ml20 mr20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">{{info.bt_cn}}</button>
|
||||
|
||||
+11
-10
@@ -62,7 +62,8 @@ Page({
|
||||
discount_amount: '', //⻋身优惠
|
||||
business_type: 0,
|
||||
brand_page_show: false,
|
||||
biz_type_4s: 5 //门店类型4s店
|
||||
biz_type_4s: 5, //门店类型4s店
|
||||
app_id_activity: 1
|
||||
},
|
||||
//生命周期函数--监听页面加载
|
||||
onLoad: function (options) {
|
||||
@@ -103,6 +104,15 @@ Page({
|
||||
is_get_insure: parseInt(res.data.if_insure),
|
||||
if_equity: parseInt(res.data.if_equity),
|
||||
})
|
||||
if (res.data.app_id == this.data.app_id_activity) { //活动线索
|
||||
let tab = [{
|
||||
title: '车辆信息',
|
||||
step: 2,
|
||||
}]
|
||||
this.setData({
|
||||
tab: tab
|
||||
})
|
||||
}
|
||||
/*匹配车辆信息*/
|
||||
//匹配品牌
|
||||
if (!!res.data.brand_id) {
|
||||
@@ -308,15 +318,6 @@ Page({
|
||||
this.setData({
|
||||
userInfo: res,
|
||||
})
|
||||
if (res.biz_type == this.data.biz_type_4s) { //4s店铺
|
||||
let tab = [{
|
||||
title: '车辆信息',
|
||||
step: 2,
|
||||
}]
|
||||
this.setData({
|
||||
tab: tab
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
</view>
|
||||
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
|
||||
<block wx:if="{{step==2}}">
|
||||
<block wx:if="{{userInfo.biz_type==biz_type_4s}}">
|
||||
<block wx:if="{{info.app_id==app_id_activity}}">
|
||||
<button class="wp100 btn-36afa2 ml20 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppCusorderV2">确认</button>
|
||||
</block>
|
||||
<block wx:else>
|
||||
|
||||
Reference in New Issue
Block a user