Commit 0cf38f0e authored by lijiongliang's avatar lijiongliang

样式修改

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