...
|
...
|
@@ -7,16 +7,42 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="shoe bg1"></div>
|
|
|
|
|
|
<div style="position: absolute; width: 100%;">
|
|
|
<div class="item account">
|
|
|
<input class="input-class" name="account" placeholder="支付宝帐号"></input>
|
|
|
<div class="item">
|
|
|
<div class="logo"></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
<div class="title"></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
<div class="desc"></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
<div class="account-label"></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="item username">
|
|
|
<input class="input-class" name="username" placeholder="支付宝姓名"></input>
|
|
|
<div class="item">
|
|
|
<input class="input-class" v-model="alipayAccount" name="account" placeholder="支付宝帐号"></input>
|
|
|
</div>
|
|
|
|
|
|
<div class="item submit">
|
|
|
<div class="item">
|
|
|
<div class="name-label"></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
<input class="input-class" v-model="alipayName" name="username" placeholder="支付宝姓名"></input>
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
<div class="tip"></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
<div class="btn" @click="onClick"></div>
|
|
|
</div>
|
|
|
|
...
|
...
|
@@ -26,14 +52,87 @@ |
|
|
|
|
|
<script>
|
|
|
|
|
|
import { Dialog } from 'cube-ui';
|
|
|
|
|
|
export default {
|
|
|
name: 'AlipayForm',
|
|
|
components: {
|
|
|
Dialog
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
alipayAccount: '',
|
|
|
alipayName: ''
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
onClick() {
|
|
|
console.log('huangtao');
|
|
|
if (!this.alipayAccount || !this.alipayName) {
|
|
|
this.$createToast({
|
|
|
type: 'warn',
|
|
|
time: 1000,
|
|
|
txt: '不能为空'
|
|
|
}).show();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.showBtn();
|
|
|
},
|
|
|
onBack() {
|
|
|
this.$yoho.finishPage({});
|
|
|
},
|
|
|
content() {
|
|
|
return `信息一旦提交后不可修改,确认提交吗?<br>支付宝账号:${this.alipayAccount} <br>支付宝姓名:${this.alipayName}`;
|
|
|
},
|
|
|
showBtn() {
|
|
|
this.$createDialog({
|
|
|
type: 'confirm',
|
|
|
content: this.content(),
|
|
|
confirmBtn: {
|
|
|
text: '确定',
|
|
|
active: true,
|
|
|
disabled: false,
|
|
|
href: 'javascript:;'
|
|
|
},
|
|
|
cancelBtn: {
|
|
|
text: '取消',
|
|
|
active: false,
|
|
|
disabled: false,
|
|
|
href: 'javascript:;'
|
|
|
},
|
|
|
onConfirm: () => {
|
|
|
this.submit();
|
|
|
},
|
|
|
onCancel: () => {
|
|
|
// this.$createToast({
|
|
|
// type: 'warn',
|
|
|
// time: 1000,
|
|
|
// txt: '点击取消按钮'
|
|
|
// }).show();
|
|
|
}
|
|
|
}).show();
|
|
|
},
|
|
|
submit() {
|
|
|
this.$api.post('/alipay/submit', {
|
|
|
alipayAccount: this.alipayAccount,
|
|
|
alipayName: this.alipayName
|
|
|
}).then(result => {
|
|
|
if (result.code !== 200) {
|
|
|
this.$createToast({
|
|
|
type: 'warn',
|
|
|
time: 1000,
|
|
|
txt: result.message
|
|
|
}).show();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.$createToast({
|
|
|
type: 'text',
|
|
|
time: 1000,
|
|
|
txt: result.message
|
|
|
}).show();
|
|
|
});
|
|
|
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
@@ -49,7 +148,75 @@ export default { |
|
|
}
|
|
|
|
|
|
.bg {
|
|
|
background-image: url("~statics/image/alipay/bg.jpg");
|
|
|
background-image: url("~statics/image/alipay/bg1.png");
|
|
|
background-size: contain;
|
|
|
}
|
|
|
|
|
|
.bg1 {
|
|
|
background-image: url("~statics/image/alipay/bg2.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
|
|
|
.logo {
|
|
|
display: inline-block;
|
|
|
width: 361px;
|
|
|
height: 62px;
|
|
|
margin-top: 45px;
|
|
|
background-image: url("~statics/image/alipay/logo.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
|
|
|
.title {
|
|
|
display: inline-block;
|
|
|
width: 474px;
|
|
|
height: 240px;
|
|
|
margin-top: 40px;
|
|
|
background-image: url("~statics/image/alipay/title.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
|
|
|
.desc {
|
|
|
display: inline-block;
|
|
|
width: 645px;
|
|
|
height: 352px;
|
|
|
margin-top: 30px;
|
|
|
background-image: url("~statics/image/alipay/desc.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
|
|
|
.tip {
|
|
|
display: inline-block;
|
|
|
width: 483px;
|
|
|
height: 52px;
|
|
|
margin-top: 20px;
|
|
|
background-image: url("~statics/image/alipay/tip.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
|
|
|
.shoe {
|
|
|
position: absolute;
|
|
|
bottom: 0;
|
|
|
width: 100%;
|
|
|
height: 213px;
|
|
|
background-image: url("~statics/image/alipay/bg2.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
|
|
|
.account-label {
|
|
|
display: inline-block;
|
|
|
width: 181px;
|
|
|
height: 33px;
|
|
|
margin-top: 50px;
|
|
|
background-image: url("~statics/image/alipay/account.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
|
|
|
.name-label {
|
|
|
display: inline-block;
|
|
|
width: 181px;
|
|
|
height: 32px;
|
|
|
margin-top: 25px;
|
|
|
background-image: url("~statics/image/alipay/name.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -61,6 +228,7 @@ export default { |
|
|
.input-class {
|
|
|
width: 480px;
|
|
|
height: 57px;
|
|
|
margin-top: 20px;
|
|
|
border: 2px solid #131835;
|
|
|
font-size: 17px;
|
|
|
color: #131835;
|
...
|
...
|
@@ -84,8 +252,11 @@ export default { |
|
|
|
|
|
.btn {
|
|
|
display: inline-block;
|
|
|
width: 300px;
|
|
|
height: 130px;
|
|
|
width: 227px;
|
|
|
height: 71px;
|
|
|
margin-top: 40px;
|
|
|
background-image: url("~statics/image/alipay/btn.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
|
|
|
.header {
|
...
|
...
|
|