|
@@ -4,10 +4,10 @@
|
|
|
<image :src="$getimg + 'offlineBuy-bg.png'" class="img" mode="widthFix"></image>
|
|
|
</view>
|
|
|
<view class="offline-content">
|
|
|
- <view class="step-wrap" v-if="status == 0||status == 1||status == 2||status == 3">
|
|
|
- <view class="step-item" data-text="步骤一" :class="status == 0?'active':''"></view>
|
|
|
- <view class="step-item" data-text="步骤二" :class="status == 1?'active':''"></view>
|
|
|
- <!-- <view class="step-item" data-text="步骤三" :class="status == 2?'active':''"></view> -->
|
|
|
+ <view class="step-wrap" v-if="applyStatus == 0||applyStatus == 1||applyStatus == 2||applyStatus == 3">
|
|
|
+ <view class="step-item" data-text="步骤一" :class="applyStatus == 0?'active':''"></view>
|
|
|
+ <view class="step-item" data-text="步骤二" :class="applyStatus == 1?'active':''"></view>
|
|
|
+ <!-- <view class="step-item" data-text="步骤三" :class="applyStatus == 2?'active':''"></view> -->
|
|
|
</view>
|
|
|
<view class="step-text">
|
|
|
<view class="step-text-item">
|
|
@@ -24,7 +24,7 @@
|
|
|
</view> -->
|
|
|
</view>
|
|
|
<!-- step end -->
|
|
|
- <view class="step-content" v-if="status == 0">
|
|
|
+ <view class="step-content" v-if="applyStatus == 0">
|
|
|
<view class="til">
|
|
|
<image :src="$getimg + 'icon-rengou.png'" class="til-img" mode="scaleToFill"></image>
|
|
|
步骤一
|
|
@@ -33,7 +33,7 @@
|
|
|
说明:感谢您的认购,生态环境厅将收到您的申请,请尽快联系生态环境厅(联系电话:84546545)签订认购协议
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="step-content" v-if="status == 1">
|
|
|
+ <view class="step-content" v-if="applyStatus == 1">
|
|
|
<view class="til">
|
|
|
<image :src="$getimg + 'icon-rengou.png'" class="til-img" mode="scaleToFill"></image>
|
|
|
步骤二
|
|
@@ -42,7 +42,7 @@
|
|
|
说明:认购成功,订单已生成,请在2020年11月11日之前,打款完成后等待审核,如有疑问或需开具发票可联系08121212
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- <view class="step-content" v-if="status == 2">
|
|
|
+ <!-- <view class="step-content" v-if="applyStatus == 2">
|
|
|
<view class="til">
|
|
|
<image :src="$getimg + 'icon-rengou.png'" class="til-img" mode="scaleToFill"></image>
|
|
|
步骤三
|
|
@@ -55,15 +55,15 @@
|
|
|
</view>
|
|
|
<view class="bottom-btn-wrap">
|
|
|
<view class="bottom-btn-wrap-bg">
|
|
|
- <view class="bottom-btn btn" v-if="status == 0" @click="callnumber(phone01)">
|
|
|
+ <view class="bottom-btn btn" v-if="applyStatus == 0" @click="callnumber(phone01)">
|
|
|
联系管理部门
|
|
|
</view>
|
|
|
- <view class="bottom-btn btn" v-if="status == 1">
|
|
|
+ <view class="bottom-btn btn" v-if="applyStatus == 1" @click="goOrderDetails(guid)">
|
|
|
查看订单
|
|
|
</view>
|
|
|
- <view class="bottom-btn btn" v-if="status == 2">
|
|
|
+ <!-- <view class="bottom-btn btn" v-if="applyStatus == 2">
|
|
|
查看订单
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -76,7 +76,7 @@
|
|
|
thetoken:'',
|
|
|
guid:'',
|
|
|
$getimg:this.$getimg,
|
|
|
- status:0,
|
|
|
+ applyStatus:0,
|
|
|
time:'2020年11月11日',
|
|
|
bankAccount:'6210000000000009900',
|
|
|
phone01:'08121224',
|
|
@@ -110,11 +110,22 @@
|
|
|
},
|
|
|
getDetails(){
|
|
|
this.$api.http.get(this.config.apiBaseurl+'/carbon-h5/wap/apply/'+this.guid,{header: {Authorization:this.thetoken}}).then( res =>{
|
|
|
- console.log('this.status',res);
|
|
|
- this.status = res.data.data.recordStatus;
|
|
|
- console.log('this.status',this.status)
|
|
|
+ console.log('this.applyStatus',res);
|
|
|
+ this.applyStatus = res.data.data.applyStatus;
|
|
|
+ this.guid = res.data.data.guid;
|
|
|
+ console.log('this.applyStatus1',this.applyStatus)
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ goOrderDetails(id){
|
|
|
+ console.log(id)
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/usercenter/orderList/orderdetails/orderdetails?orderid=' + id,
|
|
|
+ fail:function(err){
|
|
|
+ console.log('err',err)
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
}
|
|
|
}
|