'完成填写基本信息' = 1, | '完成填写基本信息' = 1, | ||||
'完成个人/单位信息上传' = 2, | '完成个人/单位信息上传' = 2, | ||||
'完成车辆信息上传' = 3, | '完成车辆信息上传' = 3, | ||||
// '待支付' = 4, | |||||
'待支付' = 26, | |||||
'待支付1' = 4, | |||||
'待支付2' = 26, | |||||
'待支付3' = 27, | |||||
'已支付' = 5, | '已支付' = 5, | ||||
'待审核' = 6, | '待审核' = 6, | ||||
'审核不通过' = 7, | '审核不通过' = 7, |
</view> | </view> | ||||
<!-- 待支付 --> | <!-- 待支付 --> | ||||
<view class="btns" v-if="item.orderStep == OrderStatus.待支付"> | |||||
<view class="btns" v-if="item.orderStep == OrderStatus.待支付1"> | |||||
<view class="btn btn-normal" @click.stop="gotoCancelOrder(item)">取消订单</view> | |||||
<view class="btn btn-primary" @click.stop="gotoOrderDetails(item)">支付</view> | |||||
</view> | |||||
<view class="btns" v-if="item.orderStep == OrderStatus.待支付2"> | |||||
<view class="btn btn-normal" @click.stop="gotoCancelOrder(item)">取消订单</view> | |||||
<view class="btn btn-primary" @click.stop="gotoOrderDetails(item)">支付</view> | |||||
</view> | |||||
<view class="btns" v-if="item.orderStep == OrderStatus.待支付3"> | |||||
<view class="btn btn-normal" @click.stop="gotoCancelOrder(item)">取消订单</view> | <view class="btn btn-normal" @click.stop="gotoCancelOrder(item)">取消订单</view> | ||||
<view class="btn btn-primary" @click.stop="gotoOrderDetails(item)">支付</view> | <view class="btn btn-primary" @click.stop="gotoOrderDetails(item)">支付</view> | ||||
</view> | </view> |
{{ item.promoteName }} | {{ item.promoteName }} | ||||
</view> | </view> | ||||
<!-- 1记账卡2储值卡3记存卡 --> | <!-- 1记账卡2储值卡3记存卡 --> | ||||
<view style="margin-top: 15rpx" class="tip" v-if="item.cardType=='1'"> | |||||
<!-- <view style="margin-top: 15rpx" class="tip" v-if="item.cardType=='1'"> | |||||
记账卡 | 记账卡 | ||||
</view> | |||||
<view style="margin-top: 15rpx" class="tip" v-else> | |||||
储值卡 | |||||
</view> --> | |||||
<view style="margin-top: 15rpx" class="tip"> | |||||
{{ item.cardTypeArr }} | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="money"> | <view class="money"> | ||||
¥:{{ item.fee * 0.01 }} | |||||
¥:{{ item.oncePrice * 0.01 }} | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
console.log(data); | console.log(data); | ||||
// console.log(typeof(data)); | // console.log(typeof(data)); | ||||
state.dataArray = data.csmsnPromoteDistPro ?? []; | state.dataArray = data.csmsnPromoteDistPro ?? []; | ||||
// for(var i=0;i<state.dataArray.length;i++){ | |||||
// for(var j=0;j<state.dataArray[i].cardType.length;j++){ | |||||
// const cardTypeArr=[] | |||||
// if(state.dataArray[i].cardType[j]=='1'){ | |||||
// cardTypeArr.push('记账卡') | |||||
// }else if(state.dataArray[i].cardType[j]=='2'){ | |||||
// cardTypeArr.push('储值卡') | |||||
// }else if(state.dataArray[i].cardType[j]=='3'){ | |||||
// cardTypeArr.push('记存卡') | |||||
// } | |||||
// } | |||||
// state.dataArray[i].cardTypeArr=cardTypeArr.toString() | |||||
// } | |||||
for(var i=0;i<state.dataArray.length;i++){ | |||||
const cardTypeArr=[] | |||||
for(var j=0;j<state.dataArray[i].cardType.length;j++){ | |||||
if(state.dataArray[i].cardType[j]=='1'){ | |||||
cardTypeArr.push('记账卡') | |||||
}else if(state.dataArray[i].cardType[j]=='2'){ | |||||
cardTypeArr.push('储值卡') | |||||
}else if(state.dataArray[i].cardType[j]=='3'){ | |||||
cardTypeArr.push('记存卡') | |||||
} | |||||
} | |||||
state.dataArray[i].cardTypeArr=cardTypeArr.toString() | |||||
} | |||||
console.log("state.dataArray",state.dataArray) | console.log("state.dataArray",state.dataArray) | ||||
}); | }); | ||||
}); | }); |
uni.redirectTo({ | uni.redirectTo({ | ||||
url: `/subpackage/applyCard/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`, | url: `/subpackage/applyCard/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`, | ||||
}); | }); | ||||
} else if (val.orderStep === 26) { | |||||
} else if (val.orderStep === 26 || val.orderStep === 27) { | |||||
uni.redirectTo({ | uni.redirectTo({ | ||||
url: `/subpackage/applyCard/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`, | url: `/subpackage/applyCard/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`, | ||||
}); | }); |
<view class="item-value"> | <view class="item-value"> | ||||
<image class="icon-tip" :src="`${$imgUrl}applyCard/wechat.png`"></image> | <image class="icon-tip" :src="`${$imgUrl}applyCard/wechat.png`"></image> | ||||
<view class="content"> | <view class="content"> | ||||
<view class="title"> 微信车主服务 </view> | |||||
<view style="margin-top: 15rpx" class="tip"> 先通行后付费! </view> | |||||
<view class="title"> {{state.detailsObj.productName}} </view> | |||||
<view style="margin-top: 15rpx" class="tip"> {{state.detailsObj.releaseProduct.remarks}} </view> | |||||
</view> | |||||
<view class="price"> | |||||
¥:{{state.detailsObj.product.oncePrice * 0.01}} | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
wechatAppID, | wechatAppID, | ||||
wechatPayConfigId, | wechatPayConfigId, | ||||
wechatSecret, | wechatSecret, | ||||
queryDetails | |||||
} from "@/utils/network/api"; | } from "@/utils/network/api"; | ||||
import { | import { | ||||
confirm, | confirm, | ||||
console.log("data",option) | console.log("data",option) | ||||
console.log("数组",JSON.parse(decodeURIComponent(option.data))) | console.log("数组",JSON.parse(decodeURIComponent(option.data))) | ||||
queryDetailsData(); | |||||
}); | }); | ||||
type: 'center', | type: 'center', | ||||
msgType: 'success', | msgType: 'success', | ||||
messageText: '这是一条成功提示', | messageText: '这是一条成功提示', | ||||
value: '' | |||||
value: '', | |||||
detailsObj:'', | |||||
}); | }); | ||||
const bindClick=(i)=>{ | const bindClick=(i)=>{ | ||||
console.log(i); | console.log(i); | ||||
state.list[index]['isShow']=!state.list[index]['isShow'] | state.list[index]['isShow']=!state.list[index]['isShow'] | ||||
console.log("state.list",state.list) | console.log("state.list",state.list) | ||||
} | } | ||||
const queryDetailsData=()=>{ | |||||
const options = { | |||||
type: 2, | |||||
data: { | |||||
orderId: state.orderId, //订单编号 | |||||
}, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
request(queryDetails, options).then((res) => { | |||||
state.detailsObj=stringToJson(res.bizContent); | |||||
console.log("sdd",stringToJson(res.bizContent)) | |||||
}); | |||||
} | |||||
</script> | </script> | ||||
<style lang="scss" scoped> | <style lang="scss" scoped> | ||||
position: absolute; | position: absolute; | ||||
display: flex; | display: flex; | ||||
align-items: center; | align-items: center; | ||||
justify-content: space-around; | |||||
// justify-content: space-around; | |||||
width: 80%; | |||||
.content { | .content { | ||||
width: 48%; | |||||
.title { | .title { | ||||
font-size: 32rpx; | font-size: 32rpx; | ||||
font-family: Microsoft YaHei; | font-family: Microsoft YaHei; | ||||
margin-right: 12rpx; | margin-right: 12rpx; | ||||
color: white; | color: white; | ||||
} | } | ||||
.price{ | |||||
color: white; | |||||
} | |||||
</style> | </style> |
export const querySwiper = "59b1aab2864a467fb55f028aa54b224a"; //MTS-轮播图查询所有启用信息 | export const querySwiper = "59b1aab2864a467fb55f028aa54b224a"; //MTS-轮播图查询所有启用信息 | ||||
export const addProduct="10414819633f46db98158fc7b4e8475e" //加购权益产品 | export const addProduct="10414819633f46db98158fc7b4e8475e" //加购权益产品 | ||||
export const queryDetails="8" //查详情 |