|
|
@@ -34,12 +34,12 @@ |
|
|
|
@click="downAuthD(item)">《{{item.name}}》</text> |
|
|
|
</view> |
|
|
|
<view class="action" style="margin-bottom: 30rpx;" v-if="state.details['orderStep']!=7"> |
|
|
|
<button type="default" class="ui-btn" @click="savaHandle()" v-if="state.isSign"> |
|
|
|
<button type="default" class="ui-btn" @click="savaHandle()"> |
|
|
|
{{state.words}} |
|
|
|
</button> |
|
|
|
<button type="default" class="ui-btn" @click="sign()" v-else> |
|
|
|
<!-- <button type="default" class="ui-btn" @click="sign()" v-else> |
|
|
|
去签署协议 |
|
|
|
</button> |
|
|
|
</button> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@@ -309,12 +309,12 @@ |
|
|
|
} |
|
|
|
// QT(黔通智联) QD (渠道) |
|
|
|
// 申办ETC的时候,判断如果这个字段的值如果是QD就不需要在九州小程序里签协议 |
|
|
|
if(state.details['etcUserAgreement']=='QT'){ |
|
|
|
contractRequest() |
|
|
|
}else{ |
|
|
|
state.isSign=true |
|
|
|
// if(state.details['etcUserAgreement']=='QT'){ |
|
|
|
// contractRequest() |
|
|
|
// }else{ |
|
|
|
// state.isSign=true |
|
|
|
getWrlds() |
|
|
|
} |
|
|
|
// } |
|
|
|
console.log("查协议", state.agreeURL) |
|
|
|
}); |
|
|
|
} |
|
|
@@ -353,52 +353,52 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
// 查询是否签署协议 |
|
|
|
const contractRequest = () => { |
|
|
|
const options = { |
|
|
|
type: 2, |
|
|
|
data: { |
|
|
|
orderId: state.orderId, //订单编号 |
|
|
|
// const contractRequest = () => { |
|
|
|
// const options = { |
|
|
|
// type: 2, |
|
|
|
// data: { |
|
|
|
// orderId: state.orderId, //订单编号 |
|
|
|
|
|
|
|
}, |
|
|
|
method: "POST", |
|
|
|
showLoading: true, |
|
|
|
}; |
|
|
|
requestNew(contractQuery, options).then((res) => { |
|
|
|
if (res.contractState == 1) { |
|
|
|
state.isSign = true |
|
|
|
// 协议签署了复选框选上 |
|
|
|
state.checked = true |
|
|
|
} else { |
|
|
|
state.isSign = false |
|
|
|
state.checked = false |
|
|
|
} |
|
|
|
getWrlds() |
|
|
|
console.log("查询是否签署协议", res) |
|
|
|
}); |
|
|
|
} |
|
|
|
// }, |
|
|
|
// method: "POST", |
|
|
|
// showLoading: true, |
|
|
|
// }; |
|
|
|
// requestNew(contractQuery, options).then((res) => { |
|
|
|
// if (res.contractState == 1) { |
|
|
|
// state.isSign = true |
|
|
|
// // 协议签署了复选框选上 |
|
|
|
// state.checked = true |
|
|
|
// } else { |
|
|
|
// state.isSign = false |
|
|
|
// state.checked = false |
|
|
|
// } |
|
|
|
// getWrlds() |
|
|
|
// console.log("查询是否签署协议", res) |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// 去签署协议 |
|
|
|
const sign = () => { |
|
|
|
const options = { |
|
|
|
type: 2, |
|
|
|
data: { |
|
|
|
orderId: state.orderId, //订单编号 |
|
|
|
// const sign = () => { |
|
|
|
// const options = { |
|
|
|
// type: 2, |
|
|
|
// data: { |
|
|
|
// orderId: state.orderId, //订单编号 |
|
|
|
|
|
|
|
}, |
|
|
|
method: "POST", |
|
|
|
showLoading: true, |
|
|
|
}; |
|
|
|
requestNew(accountSign, options).then((res) => { |
|
|
|
uni.navigateToMiniProgram({ |
|
|
|
appId: 'wxeee4ac6e61915479', |
|
|
|
path: `/pages/externel/view/view?random=${res.random}&envType=product`, |
|
|
|
envVersion: 'release', |
|
|
|
fail: (error) => { |
|
|
|
console.log(error); |
|
|
|
} |
|
|
|
}) |
|
|
|
console.log("去签署协议", res) |
|
|
|
}); |
|
|
|
} |
|
|
|
// }, |
|
|
|
// method: "POST", |
|
|
|
// showLoading: true, |
|
|
|
// }; |
|
|
|
// requestNew(accountSign, options).then((res) => { |
|
|
|
// uni.navigateToMiniProgram({ |
|
|
|
// appId: 'wxeee4ac6e61915479', |
|
|
|
// path: `/pages/externel/view/view?random=${res.random}&envType=product`, |
|
|
|
// envVersion: 'release', |
|
|
|
// fail: (error) => { |
|
|
|
// console.log(error); |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// console.log("去签署协议", res) |
|
|
|
// }); |
|
|
|
// } |
|
|
|
const changeColor = (e) => { |
|
|
|
state.vehiclePlateColor = e |
|
|
|
for(var i=0;i<state.carAll.length;i++){ |