Commit 33888f71 authored by Mac's avatar Mac

头像上传

parent c6228acd
......@@ -101,7 +101,7 @@
<Text>{{SmallShops.CustomModel.CommissionWithdrawnName}}</Text>
<Text>{{SmallShops.UserInfo.TXCommission!=null ?SmallShops.UserInfo.TXCommission:0}}</Text>
</view>
<view style="width: 1px;height: 25px;background: #FFFFFF;justify-content: space-between;"></view>
<view style="width: 0.3px;height: 25px;background: #FFFFFF;justify-content: space-between;"></view>
<view class="center_item" style="font-size: 12px;color: #FFFFFF;">
<Text >{{SmallShops.CustomModel.OutstandingCommissionName}}</Text>
<Text>{{SmallShops.UserInfo.WJSCommission!=null ?SmallShops.UserInfo.WJSCommission:0}}</Text>
......
......@@ -3,10 +3,15 @@
<view class="shopsetBox">
<view class="box_item">
<span style="font-weight: bold;">店铺logo</span>
<!-- <view style="width: 50px;height: 50px;border-radius: 25px;" @click="chooseTheImg">
<image :src="msg.Logo" style="width: 50px;height: 50px;border-radius: 25px;" mode="aspectFit"></image>
</view> -->
<u-avatar :src="msg.Logo" size="120" @click="chooseTheImg"></u-avatar>
<u-upload ref="uUpload"
:action="action"
:custom-btn="true"
@on-success="uploadSuccessHandler"
:show-upload-list="showUploadList"
:file-list="fileList"
>
<u-avatar :src="msg.Logo" size="120" slot="addBtn"></u-avatar>
</u-upload>
</view>
<view style="width: 94%;height: 1px;background: #E8E8E8;margin: 5px 0;"></view>
<view class="box_item">
......@@ -46,7 +51,10 @@
Name:'',
Logo:'',
Notice:'',
}
},
showUploadList:false,
fileList:[],
action:this.host2+'/api/File/UploadTencent',
}
},
onLoad(options){
......@@ -111,6 +119,13 @@
identifybtn(val){
this.msg.Notice = val.detail.value
},
uploadSuccessHandler(data, index, lists) {
console.log(JSON.parse(data));
let r = JSON.parse(data);
this.msg.Logo = r.data;
console.log(this.msg.Logo);
},
chooseTheImg(){
let that = this
uni.chooseImage({
......@@ -167,4 +182,14 @@
justify-content: center;
margin-top: 70px;
}
.shopSettingsStyle .slot-btn {
width: 140rpx;
height: 140rpx;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: rgb(244, 245, 246);
border-radius: 10rpx;
}
</style>
......@@ -308,7 +308,6 @@ export default {
(res) => {
this.shopBasics = res.data;
console.log(this.shopBasics.model.IsOpen)
}
);
......
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