Commit c1a29838 authored by 李晓兵's avatar 李晓兵

Merge branch 'develop' of https://hel.hand-china.com/xugong/hls-xcmg-vue-app into develop

parents e95dff29 6f78a0b3
Pipeline #4294 canceled with stages
...@@ -122,9 +122,21 @@ export default { ...@@ -122,9 +122,21 @@ export default {
}) })
}, },
changePage () { changePage () {
this.$router.push({ let vm = this
let url = process.env.basePath + 'get_project_id'
let param = {}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
window.localStorage.setItem('project_id', res.info.project_id)
vm.$router.push({
name: 'CreateBaseInfo', name: 'CreateBaseInfo',
}) })
} else {
hlsPopup.showLongCenter(res.message)
}
})
}, },
loadMore () {}, loadMore () {},
}, },
......
...@@ -300,7 +300,7 @@ export default { ...@@ -300,7 +300,7 @@ export default {
NPBaseInfo: {}, // 自然人基本信息 NPBaseInfo: {}, // 自然人基本信息
ORGBaseInfo: {}, // 企业基本信息 ORGBaseInfo: {}, // 企业基本信息
saveInfo: {// 需要保存的信息 saveInfo: {// 需要保存的信息
project_id: '', project_id: window.localStorage.project_id,
bp_id: window.localStorage.bp_id, bp_id: window.localStorage.bp_id,
bp_class: window.localStorage.bp_class, bp_class: window.localStorage.bp_class,
equip_num: '', equip_num: '',
...@@ -403,24 +403,24 @@ export default { ...@@ -403,24 +403,24 @@ export default {
}, },
save () { save () {
let vm = this let vm = this
// let url = process.env.basePath + 'prj_base_info_save' let url = process.env.basePath + 'prj_base_info_save'
// let param = { let param = {
// master: {...vm.saveInfo, ...vm.makeData()}, master: {...vm.saveInfo, ...vm.makeData()},
// } }
// hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
// vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
// if (res.result === 'S') { if (res.result === 'S') {
vm.$router.push({ vm.$router.push({
name: 'CreateRentInfo', name: 'CreateRentInfo',
params: { params: {
bp_agent_id: vm.bp_agent_id, bp_agent_id: vm.bp_agent_id,
}, },
}) })
// } else { } else {
// hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
// } }
// }) })
}, },
getBaseInfo () { getBaseInfo () {
this.getEquipInfo() this.getEquipInfo()
......
...@@ -174,7 +174,6 @@ import zg from '@/assets/payment/zg.png' ...@@ -174,7 +174,6 @@ import zg from '@/assets/payment/zg.png'
import zs from '@/assets/payment/zs.png' import zs from '@/assets/payment/zs.png'
import zx from '@/assets/payment/zx.png' import zx from '@/assets/payment/zx.png'
import bank from '@/assets/payment/bank.png' import bank from '@/assets/payment/bank.png'
import yinlian from '@/assets/payment/bind.png'
export default { export default {
name: 'PayEntry', name: 'PayEntry',
components: {}, components: {},
...@@ -194,10 +193,6 @@ export default { ...@@ -194,10 +193,6 @@ export default {
bank_full_name: '', bank_full_name: '',
bank_account_num: '', bank_account_num: '',
}, },
checkPayWay: {
img: '',
pay_type_name: '',
},
confirm: false, confirm: false,
show: false, show: false,
showOutside: false, showOutside: false,
...@@ -219,6 +214,13 @@ export default { ...@@ -219,6 +214,13 @@ export default {
return '确认订单' return '确认订单'
} }
}, },
text () {
if (this.checkType.bank_full_name.indexOf('农业') !== -1) {
return 'K码/K令支付'
} else if (this.checkType.bank_full_name.indexOf('农业') === -1) {
return '银联支付'
}
},
serviceCharge () { serviceCharge () {
return (this.money * (this.rate / 100)).toFixed(2) return (this.money * (this.rate / 100)).toFixed(2)
}, },
...@@ -369,6 +371,7 @@ export default { ...@@ -369,6 +371,7 @@ export default {
params: { params: {
url: res.paymentURL, url: res.paymentURL,
order_id: vm.$route.params.order_id, order_id: vm.$route.params.order_id,
text: vm.text,
}, },
}) })
} }
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
</div> </div>
</div> </div>
<div> <div v-if="!isSuccess||!isFaild">
<div class="box-top"> <div class="box-top">
<img src="@/assets/payment/bank-title.png" > <img src="@/assets/payment/bank-title.png" >
</div> </div>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</item> </item>
<item> <item>
<div slot="name" class="name">支付方式</div> <div slot="name" class="name">支付方式</div>
<div slot="content">K码/K令支付</div> <div slot="content">{{ text }}</div>
</item> </item>
</list-item> </list-item>
<div class="description"> <div class="description">
...@@ -114,6 +114,7 @@ export default { ...@@ -114,6 +114,7 @@ export default {
return { return {
name: '', name: '',
url: '', url: '',
text: this.$route.params.text,
info: { info: {
order_number: '', order_number: '',
pay_amount_name: '', pay_amount_name: '',
...@@ -138,6 +139,7 @@ export default { ...@@ -138,6 +139,7 @@ export default {
vm.isGo = false vm.isGo = false
vm.name = from.name vm.name = from.name
vm.url = vm.$route.params.url vm.url = vm.$route.params.url
vm.text = vm.$route.params.text
vm.getInfo() vm.getInfo()
}) })
}, },
......
...@@ -210,6 +210,13 @@ export default { ...@@ -210,6 +210,13 @@ export default {
return '确认订单' return '确认订单'
} }
}, },
text () {
if (this.checkType.bank_full_name.indexOf('农业') !== -1) {
return 'K码/K令支付'
} else if (this.checkType.bank_full_name.indexOf('农业') === -1) {
return '银联支付'
}
},
serviceCharge () { serviceCharge () {
return (this.money * (this.rate / 100)).toFixed(2) return (this.money * (this.rate / 100)).toFixed(2)
}, },
...@@ -302,6 +309,7 @@ export default { ...@@ -302,6 +309,7 @@ export default {
params: { params: {
url: res.paymentURL, url: res.paymentURL,
order_id: vm.$route.params.order_id, order_id: vm.$route.params.order_id,
text: vm.text,
}, },
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment