[修改综法下单]

This commit is contained in:
2023-05-16 10:04:46 +08:00
parent d61dde8bd8
commit b84661015a
7 changed files with 50 additions and 24 deletions

View File

@@ -300,7 +300,6 @@
let subData = {}; let subData = {};
let dataArr = [] let dataArr = []
for(let val of this.paramsArr){ for(let val of this.paramsArr){
if(val.type === 'pro_city'){ if(val.type === 'pro_city'){
subData[val.key] = this.address subData[val.key] = this.address
@@ -315,9 +314,12 @@
value: subData[key] value: subData[key]
}) })
} }
entrustPost(this.entrustId, {
data: dataArr,
entrustPost(this.entrustId, {...dataArr}).then(res => { type: 'self',
channel: 'h5',
user_id: ''
}).then(res => {
this.disabled = true this.disabled = true
this.expressSheet(res.entrust_order_id, res.order_type, res.can, res.price) this.expressSheet(res.entrust_order_id, res.order_type, res.can, res.price)
}).catch( err => { }).catch( err => {

View File

@@ -240,7 +240,12 @@
}) })
} }
entrustPost(this.$Route.query.entrustId, {...dataArr}).then(res => { entrustPost(this.$Route.query.entrustId, {
data: dataArr,
type: 'self',
channel: 'h5',
user_id: ''
}).then(res => {
this.disabled = true this.disabled = true
this.expressSheet(res.entrust_order_id, res.order_type, res.can, res.price ) this.expressSheet(res.entrust_order_id, res.order_type, res.can, res.price )
}).catch( err => { }).catch( err => {

View File

@@ -223,7 +223,12 @@
}) })
} }
expandsPost(this.$Route.query.entrustId, {...dataArr}).then(res => { expandsPost(this.$Route.query.entrustId, {
data: dataArr,
type: 'self',
channel: 'h5',
user_id: ''
}).then(res => {
this.disabled = true this.disabled = true
this.expressSheet(res.expand_order_id, res.order_type, res.can, res.price ) this.expressSheet(res.expand_order_id, res.order_type, res.can, res.price )
}).catch( err => { }).catch( err => {

View File

@@ -208,7 +208,12 @@
value: subData[key] value: subData[key]
}) })
} }
synthPost(this.$Route.query.synthesisId, {...dataArr}).then(res => { synthPost(this.$Route.query.synthesisId, {
data: dataArr,
type: 'self',
channel: 'h5',
user_id: ''
}).then(res => {
this.disabled = true this.disabled = true
uni.showToast({ uni.showToast({
title: '提交成功', title: '提交成功',

View File

@@ -180,7 +180,12 @@
value: subData[key] value: subData[key]
}) })
} }
yearSynthPost(this.$Route.query.serveId, {...dataArr}).then(res => { yearSynthPost(this.$Route.query.serveId, {
data: dataArr,
type: 'self',
channel: 'h5',
user_id: ''
}).then(res => {
this.disabled = true this.disabled = true
this.expressSheet(res.service_order_id, res.order_type, res.can, res.price ) this.expressSheet(res.service_order_id, res.order_type, res.can, res.price )
}).catch( err => { }).catch( err => {

View File

@@ -206,8 +206,12 @@
value: subData[key] value: subData[key]
}) })
} }
yearSynthPost(this.$Route.query.serveId, {
yearSynthPost(this.$Route.query.serveId, {...dataArr}).then(res => { data: dataArr,
type: 'self',
channel: 'h5',
user_id: ''
}).then(res => {
this.disabled = true this.disabled = true
this.expressSheet(res.service_order_id, res.order_type, res.can, res.price ) this.expressSheet(res.service_order_id, res.order_type, res.can, res.price )
}).catch( err => { }).catch( err => {

View File

@@ -30,20 +30,20 @@ router.beforeEach((to, from, next) => {
return return
} }
// 检查用户是否授权了微信 // 检查用户是否授权了微信
// if(to.name != 'webWechatIndex' && openId === ''){ if(to.name != 'webWechatIndex' && openId === ''){
// authFollow({ authFollow({
// url: 'https://web.douhuotest.douhuofalv.com/webWechat/index' url: 'https://web.douhuotest.douhuofalv.com/webWechat/index'
// // url: 'https://web.douhuofalv.com/webWechat/index' // url: 'https://web.douhuofalv.com/webWechat/index'
// }).then(res => { }).then(res => {
// window.location.href = res window.location.href = res
// }).catch(err => { }).catch(err => {
// uni.showToast({ uni.showToast({
// title: err.message, title: err.message,
// icon: "none" icon: "none"
// }) })
// }) })
// return return
// } }
// 检查是否需要登录 // 检查是否需要登录
if(to.auth && token === ''){ if(to.auth && token === ''){