Commit 640e7153 authored by linxin's avatar linxin

add保证金支付

parent f2ffbf06
Pipeline #4409 canceled with stages
...@@ -30,14 +30,14 @@ ...@@ -30,14 +30,14 @@
<CurrencyInput v-model="money" type="number" placeholder="请输入支付金额" /> <CurrencyInput v-model="money" type="number" placeholder="请输入支付金额" />
<!-- <div @click="createOrder"> <!-- <div @click="createOrder">
<img src="@/assets/payment/into.png" > <img src="@/assets/payment/into.png" >
</div> --> </div>-->
</div> </div>
</div> </div>
</div> </div>
<div class="write"> <div class="write">
<div class="box"> <div class="box">
<span>备注</span> <span>备注</span>
<textarea placeholder="请输入您的备注……" /> <textarea v-model="pay_note" placeholder="请输入您的备注……" />
</div> </div>
</div> </div>
</section> </section>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</div> </div>
</h-content> </h-content>
<bottom-tab> <bottom-tab>
<tab-button class="footer" @click.native="toPayEntry(money)">&nbsp;&nbsp;</tab-button> <tab-button class="footer" @click.native="putOrder(money)">提交订单</tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
</template> </template>
...@@ -69,25 +69,40 @@ export default { ...@@ -69,25 +69,40 @@ export default {
return { return {
money: 0, money: 0,
default: 0, default: 0,
pay_note: '', // 备注
} }
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {})
})
}, },
computed: {}, computed: {},
watch: {}, watch: {},
methods: { methods: {
putOrder (money) {
toPayEntry (money) { let vm = this
this.$router.push({ let url = process.env.basePath + 'create_order_agent_amt'
name: 'MarginPayEntry', let param = {
params: { info: {
money, bp_id: window.localStorage.bp_id,
amount: money,
pay_note: this.pay_note,
}, },
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
this.$router.push({
name: 'MarginPayEntry',
params: {
order_id: res.order_id,
money,
},
})
}
}) })
}, },
toPayEntry (money) {},
}, },
} }
</script> </script>
...@@ -97,7 +112,7 @@ export default { ...@@ -97,7 +112,7 @@ export default {
width: 96%; width: 96%;
height: 172px; height: 172px;
background-color: #fff; background-color: #fff;
margin-top:10px; margin-top: 10px;
box-shadow: 0 1px 3px 2px rgba(168, 168, 168, 0.14); box-shadow: 0 1px 3px 2px rgba(168, 168, 168, 0.14);
span { span {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
...@@ -119,7 +134,7 @@ export default { ...@@ -119,7 +134,7 @@ export default {
} }
} }
} }
.top-head { .top-head {
width: 100%; width: 100%;
height: 142px; height: 142px;
background: url("../../../assets/payment/back1.png"); background: url("../../../assets/payment/back1.png");
......
This diff is collapsed.
...@@ -258,7 +258,7 @@ export default { ...@@ -258,7 +258,7 @@ export default {
}) })
}, },
affirm () { affirm () {
// this.confirm = true // this.confirm = true
this.confirmToPay() this.confirmToPay()
}, },
confirmToPay (e) { confirmToPay (e) {
......
...@@ -244,8 +244,8 @@ export default new Router({ ...@@ -244,8 +244,8 @@ export default new Router({
{path: '/new-list', component: NewList, name: 'NewList', meta: {keepAlive: true}}, {path: '/new-list', component: NewList, name: 'NewList', meta: {keepAlive: true}},
{path: '/payment-contract-record', component: PaymentContractRecord, name: 'PaymentContractRecord', meta: {keepAlive: true}}, {path: '/payment-contract-record', component: PaymentContractRecord, name: 'PaymentContractRecord', meta: {keepAlive: true}},
// 保证金支付 // 保证金支付
{path: '/margin-first-pay', component: MarginFirstPay, name: 'MarginFirstPay', meta: {keepAlive: true}}, {path: '/margin-first-pay', component: MarginFirstPay, name: 'MarginFirstPay', meta: {keepAlive: false}},
{path: '/margin-pay-entry', component: MarginPayEntry, name: 'MarginPayEntry', meta: {keepAlive: true}}, {path: '/margin-pay-entry', component: MarginPayEntry, name: 'MarginPayEntry', meta: {keepAlive: false}},
// 支付页 // 支付页
{path: '/pay-page', component: PayPage, name: 'PayPage', meta: {keepAlive: false}}, {path: '/pay-page', component: PayPage, name: 'PayPage', meta: {keepAlive: false}},
// 产品查询 // 产品查询
......
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