Commit 74e3c7dd authored by linxin's avatar linxin

新增接口

parent 43d917bb
......@@ -31,7 +31,7 @@
</div>
</div>
<bottom-tab>
<tab-button class="footer" @click.native="toPayEntry(money)">
<tab-button class="footer" @click.native="pay();toPayEntry(money)">
&nbsp;&nbsp;
</tab-button>
</bottom-tab>
......@@ -46,12 +46,12 @@ export default {
},
data () {
return {
money: '',
money: 0,
}
},
beforeRouteEnter (to, from, next) {
next(vm => {
// vm.getDownPayment()
vm.getDownPayment()
})
},
computed: {},
......@@ -73,11 +73,29 @@ export default {
}
})
},
pay () {
let vm = this
let url = process.env.basePath + 'create_order_0_amount'
let param = {
bp_id: vm.$route.params.bp_id,
amount: vm.money,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
console.log(res)
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
toPayEntry (money) {
this.$router.push({
name: 'PayEntry',
params: {
money,
bp_id: this.$route.params.bp_id,
},
})
},
......
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