|
@@ -2,7 +2,7 @@
|
|
|
<view class="content">
|
|
<view class="content">
|
|
|
<view class="vheight"></view>
|
|
<view class="vheight"></view>
|
|
|
<view class="top flex">
|
|
<view class="top flex">
|
|
|
- <image @click="navTo('/pages/transaction/cblist')" class="top-icon1" src="../../static/img/cb2.png" mode=""></image>
|
|
|
|
|
|
|
+ <image @click="back()" class="top-icon1" src="../../static/img/cb2.png" mode=""></image>
|
|
|
<image class="top-icon2" src="../../static/img/cb1.png" mode=""></image>
|
|
<image class="top-icon2" src="../../static/img/cb1.png" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="title">充幣</view>
|
|
<view class="title">充幣</view>
|
|
@@ -80,7 +80,8 @@ export default {
|
|
|
loadMake: true,
|
|
loadMake: true,
|
|
|
usingComponents: true,
|
|
usingComponents: true,
|
|
|
num: '',
|
|
num: '',
|
|
|
- image: ''
|
|
|
|
|
|
|
+ image: '',
|
|
|
|
|
+ image1: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad(opt) {
|
|
onLoad(opt) {
|
|
@@ -99,6 +100,9 @@ export default {
|
|
|
qrR(res) {
|
|
qrR(res) {
|
|
|
console.log(res, '123456');
|
|
console.log(res, '123456');
|
|
|
},
|
|
},
|
|
|
|
|
+ back() {
|
|
|
|
|
+ uni.navigateBack();
|
|
|
|
|
+ },
|
|
|
navTo(url) {
|
|
navTo(url) {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url
|
|
url
|
|
@@ -111,6 +115,7 @@ export default {
|
|
|
}).then(data => {
|
|
}).then(data => {
|
|
|
console.log('data', data);
|
|
console.log('data', data);
|
|
|
this.image = data[0].src;
|
|
this.image = data[0].src;
|
|
|
|
|
+ this.image1 = data[0].img;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
copy(item) {
|
|
copy(item) {
|
|
@@ -134,10 +139,10 @@ export default {
|
|
|
if (this.num < 0) {
|
|
if (this.num < 0) {
|
|
|
return this.$api.msg('充值金額不能為0');
|
|
return this.$api.msg('充值金額不能為0');
|
|
|
}
|
|
}
|
|
|
- if (!this.image) {
|
|
|
|
|
|
|
+ if (!this.image1) {
|
|
|
return this.$api.msg('請上傳轉款憑證');
|
|
return this.$api.msg('請上傳轉款憑證');
|
|
|
}
|
|
}
|
|
|
- paycoin({ cid: this.id, zznum: this.num, payimg: this.image, coinname: this.info.title }).then(e => {
|
|
|
|
|
|
|
+ paycoin({ cid: this.id, zznum: this.num, payimg: this.image1, coinname: this.info.title }).then(e => {
|
|
|
this.num = '';
|
|
this.num = '';
|
|
|
this.image = '';
|
|
this.image = '';
|
|
|
return this.$api.msg('提交申請成功,請耐心等待審核');
|
|
return this.$api.msg('提交申請成功,請耐心等待審核');
|