Procházet zdrojové kódy

订单查询去掉安心签

优化激活内容
yangteng před 3 týdny
rodič
revize
e656a188ab
2 změnil soubory, kde provedl 53 přidání a 53 odebrání
  1. 51
    51
      subpackage/orders/transfer-page-sign.vue
  2. 2
    2
      utils/network/request.js

+ 51
- 51
subpackage/orders/transfer-page-sign.vue Zobrazit soubor

@@ -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++){

+ 2
- 2
utils/network/request.js Zobrazit soubor

@@ -343,8 +343,8 @@ export function requestNew(code, options = {}, start = false,clie=()=>{}) {
// #ifdef MP-WEIXIN
Common['orderSource'] = "WECHAT"
// #endif
// options.url = envs[process.env.NODE_ENV].baseUrl+'/prod' + code
options.url = envs[process.env.NODE_ENV].baseUrl+'/ndev' + code
options.url = envs[process.env.NODE_ENV].baseUrl+'/prod' + code
// options.url = envs[process.env.NODE_ENV].baseUrl+'/ndev' + code
//默认json数据格式提交`
let contentType = 'application/json'


Načítá se…
Zrušit
Uložit