|
@@ -23,6 +23,14 @@
|
|
|
<view class="row">
|
|
<view class="row">
|
|
|
<text class="tit">账户</text>
|
|
<text class="tit">账户</text>
|
|
|
<input class="input" type="text" disabled="true" v-model="userInfo.username" placeholder-class="placeholder" />
|
|
<input class="input" type="text" disabled="true" v-model="userInfo.username" placeholder-class="placeholder" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="row1">
|
|
|
|
|
+ <text class="tit">支付宝收款码</text>
|
|
|
|
|
+ <view class="background-img1" @click.stop="imgsubali"><image class="background-img1" :src="userInfo.ali" mode="aspectFill"></image></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="row1">
|
|
|
|
|
+ <text class="tit">微信收款码</text>
|
|
|
|
|
+ <view class="background-img1" @click.stop="imgsubwechat"><image class="background-img1" :src="userInfo.wechat" mode="aspectFill"></image></view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="add-btn" @click="confirm">提交</view>
|
|
<view class="add-btn" @click="confirm">提交</view>
|
|
|
<view class="out" @click="toLogout">退出登录</view>
|
|
<view class="out" @click="toLogout">退出登录</view>
|
|
@@ -58,9 +66,31 @@ export default{
|
|
|
console.log(res,'++++++++++++++++')
|
|
console.log(res,'++++++++++++++++')
|
|
|
this.userInfo.avatar = res[0].fullurl;
|
|
this.userInfo.avatar = res[0].fullurl;
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ imgsubali() {
|
|
|
|
|
+ console.log('上传支付宝二维码')
|
|
|
|
|
+ uploads({
|
|
|
|
|
+ filename: ''
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ // console.log("data",data);
|
|
|
|
|
+ // this.userInfo.avatar = data.fullurl;
|
|
|
|
|
+ console.log(res,'++++++++++++++++')
|
|
|
|
|
+ this.userInfo.ali = res[0].fullurl;
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ imgsubwechat() {
|
|
|
|
|
+ console.log('上传微信二维码')
|
|
|
|
|
+ uploads({
|
|
|
|
|
+ filename: ''
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ // console.log("data",data);
|
|
|
|
|
+ // this.userInfo.avatar = data.fullurl;
|
|
|
|
|
+ console.log(res,'++++++++++++++++')
|
|
|
|
|
+ this.userInfo.wechat = res[0].fullurl;
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
confirm() {
|
|
confirm() {
|
|
|
- userEdit({ avatar: this.userInfo.avatar ,nickname: this.userInfo.nickname,bank_of_deposit:this.userInfo.bank_of_deposit,bank_card_no:this.userInfo.bank_card_no})
|
|
|
|
|
|
|
+ userEdit({ avatar: this.userInfo.avatar ,nickname: this.userInfo.nickname,bank_of_deposit:this.userInfo.bank_of_deposit,bank_card_no:this.userInfo.bank_card_no,ali: this.userInfo.ali,wechat: this.userInfo.wechat})
|
|
|
.then(e => {
|
|
.then(e => {
|
|
|
this.$api.msg('修改成功');
|
|
this.$api.msg('修改成功');
|
|
|
setTimeout(()=> {
|
|
setTimeout(()=> {
|
|
@@ -117,6 +147,11 @@ export default{
|
|
|
height: 80rpx;
|
|
height: 80rpx;
|
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
|
background: #f2f2f2;
|
|
background: #f2f2f2;
|
|
|
|
|
+ }
|
|
|
|
|
+ .background-img1 {
|
|
|
|
|
+ width: 80rpx;
|
|
|
|
|
+ height: 80rpx;
|
|
|
|
|
+ background: #f2f2f2;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.row {
|
|
.row {
|