@ -0,0 +1,125 @@ |
|||||||
|
.page{ |
||||||
|
min-height:calc(100vh - 45px); |
||||||
|
background-color: #f5f5f5; |
||||||
|
padding:24rpx; |
||||||
|
.tabs{ |
||||||
|
height: 80rpx; |
||||||
|
background-color: rgb(35, 96, 48); |
||||||
|
padding: 6rpx; |
||||||
|
border-radius: 5px; |
||||||
|
display: flex; |
||||||
|
.tabsItem{ |
||||||
|
flex:1; |
||||||
|
text-align: center; |
||||||
|
line-height: 70rpx; |
||||||
|
font-size: 26rpx; |
||||||
|
color: #ffffff; |
||||||
|
} |
||||||
|
.active{ |
||||||
|
background-color: #fff; |
||||||
|
font-size: 30rpx; |
||||||
|
font-weight: bold; |
||||||
|
border-radius: 5px; |
||||||
|
color: rgb(35, 96, 48); |
||||||
|
} |
||||||
|
} |
||||||
|
.yhk{ |
||||||
|
width: 100%; |
||||||
|
background-color: #FFFFFF; |
||||||
|
margin-top:20rpx; |
||||||
|
border-radius: 10px; |
||||||
|
.list-input{ |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
padding: 0 4%; |
||||||
|
height: 100rpx; |
||||||
|
border-bottom: 2rpx solid #f6f6f6; |
||||||
|
.title{ |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
width: 30%; |
||||||
|
height: 100%; |
||||||
|
text{ |
||||||
|
color: #236030; |
||||||
|
font-size: 26rpx; |
||||||
|
} |
||||||
|
} |
||||||
|
.content{ |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
width: 70%; |
||||||
|
height: 100%; |
||||||
|
input{ |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
font-size: 26rpx; |
||||||
|
color: #222222; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
.yzmBtn{ |
||||||
|
background: rgb(35, 96, 48); |
||||||
|
color: rgb(255, 255, 255); |
||||||
|
margin-bottom: 5px; |
||||||
|
padding: 0px; |
||||||
|
width: 126px; |
||||||
|
overflow: hidden; |
||||||
|
font-size: 14px; |
||||||
|
height: 38px; |
||||||
|
line-height: 38px; |
||||||
|
color: #fff; |
||||||
|
text-align: center; |
||||||
|
border-radius:10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
.saveBtn{ |
||||||
|
background: rgb(35, 96, 48); |
||||||
|
color: rgb(255, 255, 255); |
||||||
|
border: 1px solid rgb(35, 96, 48); |
||||||
|
overflow: hidden; |
||||||
|
font-size: 28rpx; |
||||||
|
height: 44px; |
||||||
|
line-height: 44px; |
||||||
|
text-align: center; |
||||||
|
border-radius: 10rpx; |
||||||
|
margin-top:50rpx; |
||||||
|
} |
||||||
|
.input-info{ |
||||||
|
padding: 0 6%; |
||||||
|
.info{ |
||||||
|
display: flex; |
||||||
|
align-items:center; |
||||||
|
justify-content: space-between; |
||||||
|
width: 100%; |
||||||
|
height: 100rpx; |
||||||
|
border-bottom: 2rpx solid #f6f6f6; |
||||||
|
input{ |
||||||
|
width: 70%; |
||||||
|
height: 100%; |
||||||
|
font-size: 26rpx; |
||||||
|
color: #222222; |
||||||
|
} |
||||||
|
.more{ |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
justify-content: flex-end; |
||||||
|
width: 30%; |
||||||
|
height: 100%; |
||||||
|
.iconfont{ |
||||||
|
font-size: 34rpx; |
||||||
|
} |
||||||
|
.mo{ |
||||||
|
font-size: 26rpx; |
||||||
|
padding-left: 20rpx; |
||||||
|
margin-left: 10rpx; |
||||||
|
border-left: 2rpx solid #EEEEEE; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
/deep/.u-upload__button{ |
||||||
|
border:1px solid #aaa; |
||||||
|
margin:30rpx auto; |
||||||
|
} |
@ -0,0 +1,173 @@ |
|||||||
|
<template> |
||||||
|
<view class="page"> |
||||||
|
<view class="tabs"> |
||||||
|
<view :class="activeIndex==item.id?'tabsItem active':'tabsItem'" @click="getPay(item)" v-for="item in list4" :key="item.id"> |
||||||
|
{{item.name}} |
||||||
|
</view> |
||||||
|
<view class=""> |
||||||
|
|
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view > |
||||||
|
<view class="yhk" v-show="activeIndex==1"> |
||||||
|
<view class="list-input"> |
||||||
|
<view class="title"> |
||||||
|
<text>姓名</text> |
||||||
|
</view> |
||||||
|
<view class="content"> |
||||||
|
<input type="text" v-model="yhk.bank_realname" placeholder="请输入真实姓名"> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="list-input"> |
||||||
|
<view class="title"> |
||||||
|
<text>预留手机号</text> |
||||||
|
</view> |
||||||
|
<view class="content"> |
||||||
|
<input type="tel" v-model="yhk.bank_mobile" placeholder="请输入银行预留手机号"> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="list-input"> |
||||||
|
<view class="title"> |
||||||
|
<text>卡号</text> |
||||||
|
</view> |
||||||
|
<view class="content"> |
||||||
|
<input type="tel" v-model="yhk.bank_no" placeholder="请输入银行卡号"> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="list-input"> |
||||||
|
<view class="title"> |
||||||
|
<text>开户行</text> |
||||||
|
</view> |
||||||
|
<view class="content"> |
||||||
|
<input type="tel" v-model="yhk.bank_address" placeholder="请输入开户行信息"> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
|
||||||
|
</view> |
||||||
|
<view class="zfb" v-show="activeIndex==2"> |
||||||
|
<u-upload |
||||||
|
:fileList="zfbPic" |
||||||
|
:previewFullImage="true" |
||||||
|
@afterRead="" |
||||||
|
:maxCount="1" width="176" height="176" |
||||||
|
|
||||||
|
name="1" |
||||||
|
multiple |
||||||
|
></u-upload> |
||||||
|
</view> |
||||||
|
<view class="zfb" v-show="activeIndex==3"> |
||||||
|
<u-upload |
||||||
|
:fileList="zfbPic" |
||||||
|
:previewFullImage="true" |
||||||
|
@afterRead="" |
||||||
|
:maxCount="1" width="176" height="176" |
||||||
|
name="1" |
||||||
|
multiple |
||||||
|
></u-upload> |
||||||
|
</view> |
||||||
|
<view class="yhk"> |
||||||
|
<view class="list-input"> |
||||||
|
<view class="title"> |
||||||
|
<text>手机号</text> |
||||||
|
</view> |
||||||
|
<view class="content"> |
||||||
|
<input type="text" v-model="mobileForm.phone" placeholder="请输入手机号"> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="list-input"> |
||||||
|
<view class="title"> |
||||||
|
<text>验证码</text> |
||||||
|
</view> |
||||||
|
<view class="content"> |
||||||
|
<input type="text" v-model="mobileForm.code" placeholder="请输入验证码"> |
||||||
|
</view> |
||||||
|
<view class="yzmBtn" v-show="!codeSend"> |
||||||
|
获取验证码 |
||||||
|
</view> |
||||||
|
<view class="yzmBtn" v-show="codeSend"> |
||||||
|
{{timeNum}}s后重试 |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="saveBtn"> |
||||||
|
|
||||||
|
{{activeIndex==1?'保存银行卡':activeIndex==2?'保存支付宝二维码':activeIndex==3?'保存微信二维码':''}} |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
|
||||||
|
<u-toast ref="uToast"></u-toast> |
||||||
|
</view> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import {updateUserInfo,smsSend} from '@/common/api.js' |
||||||
|
export default { |
||||||
|
data() { |
||||||
|
return { |
||||||
|
activeIndex:1, |
||||||
|
list4: [{ |
||||||
|
name: '银行卡', |
||||||
|
id:1 |
||||||
|
}, { |
||||||
|
name: '支付宝', |
||||||
|
id:2 |
||||||
|
}, { |
||||||
|
name: '微信', |
||||||
|
id:3 |
||||||
|
}], |
||||||
|
yhk:{ |
||||||
|
bank_realname:null, |
||||||
|
bank_mobile:null, |
||||||
|
bank_no:null, |
||||||
|
bank_address:null, |
||||||
|
}, |
||||||
|
codeSend:false, |
||||||
|
timeNum:59, |
||||||
|
timer:null, |
||||||
|
zfbPic:[], |
||||||
|
mobileForm:{ |
||||||
|
phone: '', |
||||||
|
code: '', |
||||||
|
} |
||||||
|
}; |
||||||
|
}, |
||||||
|
onLoad(option) { |
||||||
|
|
||||||
|
}, |
||||||
|
methods:{ |
||||||
|
getPay(item){ |
||||||
|
this.activeIndex = item.id |
||||||
|
}, |
||||||
|
getCode(){ |
||||||
|
if(!this.mobileForm.phone){ |
||||||
|
this.$refs.uToast.show({ |
||||||
|
message:'请输入手机号码' |
||||||
|
}) |
||||||
|
return; |
||||||
|
} |
||||||
|
smsSend({mobile:this.mobileForm.phone}).then(res=>{ |
||||||
|
if(res.code==1){ |
||||||
|
this.codeSend = true; |
||||||
|
this.timer = setInterval(()=>{ |
||||||
|
if(this.timeNum>0){ |
||||||
|
this.timeNum--; |
||||||
|
}else{ |
||||||
|
this.codeSend = false; |
||||||
|
clearInterval(this.timer) |
||||||
|
this.timer = null; |
||||||
|
} |
||||||
|
},1000) |
||||||
|
} |
||||||
|
}) |
||||||
|
}, |
||||||
|
}, |
||||||
|
destroyed() { |
||||||
|
clearInterval(this.timer) |
||||||
|
this.timer = null; |
||||||
|
}, |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<style scoped lang="scss"> |
||||||
|
@import 'shoukuan.scss'; |
||||||
|
</style> |
After Width: | Height: | Size: 550 KiB |
@ -0,0 +1,2 @@ |
|||||||
|
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>商城</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) |
||||||
|
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.97465e7b.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.fd0c9014.js></script><script src=/static/js/index.f43f9137.js></script></body></html> |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 591 B |
After Width: | Height: | Size: 917 B |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 786 B |
After Width: | Height: | Size: 630 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 669 B |
After Width: | Height: | Size: 617 B |
After Width: | Height: | Size: 550 KiB |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 601 B |
After Width: | Height: | Size: 573 B |
After Width: | Height: | Size: 822 B |
After Width: | Height: | Size: 828 B |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 112 KiB |
After Width: | Height: | Size: 964 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 259 KiB |
After Width: | Height: | Size: 226 KiB |
After Width: | Height: | Size: 550 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 25 KiB |