Commit 0fefa2bd by baihong

add:新增上传成功提示弹窗

parent 7b7f5299
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<view class="top">上传图片</view> <view class="top">上传图片</view>
<view class="upload-main"> <view class="upload-main">
<view class="item"> <view class="item">
<image src="../../static/imgs/ic_gallery@2x.png" mode=""></image> <image src="../../static/imgs/ic_camera@2x.png" mode=""></image>
<text>照相</text> <text>照相</text>
</view> </view>
<view class="item"> <view class="item">
...@@ -137,6 +137,14 @@ ...@@ -137,6 +137,14 @@
<view class="close" @click="showUpload=false">取消</view> <view class="close" @click="showUpload=false">取消</view>
</view> </view>
</u-popup> </u-popup>
<u-popup v-model="showSuccess" mode="center" width="673rpx" height="567rpx" >
<view class="success-popup">
<image src="../../static/imgs/ic_bay_01@2x.png" mode=""></image>
<p>上传成功</p>
<text>请在个人中心查看审核状态</text>
<view class="close" @click="showSuccess=false">知道了</view>
</view>
</u-popup>
</view> </view>
</template> </template>
...@@ -149,7 +157,8 @@ ...@@ -149,7 +157,8 @@
data() { data() {
return { return {
show: false, show: false,
showUpload:true, showUpload:false,
showSuccess:true,
src: 'https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF', src: 'https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF',
number: 0, number: 0,
}; };
...@@ -182,8 +191,8 @@ ...@@ -182,8 +191,8 @@
}, },
success: (uploadFileRes) => { success: (uploadFileRes) => {
let file_path = JSON.parse(uploadFileRes.data).data.file_path let file_path = JSON.parse(uploadFileRes.data).data.file_path
_this.member_avatar = file_path //_this.member_avatar = file_path
_this.infoUpdate(file_path) //_this.infoUpdate(file_path)
} }
}); });
} }
...@@ -209,6 +218,45 @@ ...@@ -209,6 +218,45 @@
.app { .app {
background: #f5f7f9; background: #f5f7f9;
height: 100vh; height: 100vh;
.success-popup {
display: flex;
flex-direction: column;
align-items: center;
image{
width: 108rpx;
height: 108rpx;
margin: 83rpx 0 48rpx 0;
}
p {
font-size: 36rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 50rpx;
}
text{
font-size: 26rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
line-height: 37rpx;
margin: 16rpx 0 69rpx 0;
}
.close {
width: 440rpx;
height: 74rpx;
background: #FFC915;
border-radius: 4rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
line-height: 40rpx;
}
}
.upload-popup { .upload-popup {
background-color: #F5F5F5; background-color: #F5F5F5;
.close { .close {
......
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