Commit 74e3c7dd authored by linxin's avatar linxin

新增接口

parent 43d917bb
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</div> </div>
</div> </div>
<bottom-tab> <bottom-tab>
<tab-button class="footer" @click.native="toPayEntry(money)"> <tab-button class="footer" @click.native="pay();toPayEntry(money)">
&nbsp;&nbsp; &nbsp;&nbsp;
</tab-button> </tab-button>
</bottom-tab> </bottom-tab>
...@@ -46,12 +46,12 @@ export default { ...@@ -46,12 +46,12 @@ export default {
}, },
data () { data () {
return { return {
money: '', money: 0,
} }
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
// vm.getDownPayment() vm.getDownPayment()
}) })
}, },
computed: {}, computed: {},
...@@ -73,11 +73,29 @@ export default { ...@@ -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) { toPayEntry (money) {
this.$router.push({ this.$router.push({
name: 'PayEntry', name: 'PayEntry',
params: { params: {
money, 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