Commit 33888f71 authored by Mac's avatar Mac

头像上传

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