Commit 0cf38f0e authored by lijiongliang's avatar lijiongliang

样式修改

parent 4baf4e33
......@@ -111,6 +111,7 @@
detailInfo: '',
//是否微信通知
wechat: false,
code:null
},
noticeResult: {
secretPhone: '',
......@@ -154,6 +155,9 @@
if (this.noticeResult.allowPhone) {
// this.list[0].name = this.noticeResult.secretPhone
this.show = true;
// uni.makePhoneCall({
// phoneNumber: this.noticeResult.secretPhone
// });
}
} else {
this.noticeResult = res.data.data
......@@ -195,6 +199,7 @@
},
selectClick(index) {
if (index.name == "呼叫") {
this.show = false;
uni.makePhoneCall({
phoneNumber: this.noticeResult.secretPhone
});
......
......@@ -9,7 +9,7 @@
<span class="cover__name">头像</span>
<div class="cover">
<image v-if="image" :src="image" />
<image v-else src="@/static/my/my2.png" />
<image v-else src="@/static/my/my2.jpg" />
<!-- 此处应该有默认头像 -->
<!-- <image v-else src="@/static/my/my2.png" />-->
<span>
......@@ -239,6 +239,10 @@ export default {
},
select() {
let that = this
uni.showLoading({
title:"加载中",
mask:true
})
uni.chooseImage({
count: 1, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
......@@ -270,12 +274,25 @@ export default {
val: uploadData.data.url
};
that.http.httpTokenRequest(opts, userInfoItem).then(response => {
uni.hideLoading()
if (response.data.code == 200) {
that.$nextTick(() => {
that.image = uploadData.data.url
})
}
}else{
uni.showToast({
title: response.data.msg,
icon: "error",
});
}
})
},
fail() {
uni.hideLoading()
uni.showToast({
title: "上传头像失败!",
icon: "error",
});
}
});
}
......
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