version/0412
fanfan 9 months ago
parent feaedf83a7
commit 65140af1df
  1. 2
      pages/index/index.vue
  2. 3
      pages/user/index.vue

@ -259,7 +259,7 @@
<view class="topcontent"> <view class="topcontent">
<view class="shopTitle"> <view class="shopTitle">
<text class="title">{{cityInfo.shop_name}}</text> <text class="title">{{cityInfo.shop_name}}</text>
<text class="shopStatus">营业中</text> <text class="shopStatus">{{cityInfo.is_open==1?'营业中':'休息中'}}</text>
</view> </view>
<view class="rate"> <view class="rate">
<u-rate :count="5" inactive-color="#818181" active-color="#FA8C3D" v-model="cityInfo.star"> <u-rate :count="5" inactive-color="#818181" active-color="#FA8C3D" v-model="cityInfo.star">

@ -618,7 +618,6 @@
let rawData = JSON.parse(res.rawData) let rawData = JSON.parse(res.rawData)
this.userInfo.avatar_url = rawData.avatarUrl; this.userInfo.avatar_url = rawData.avatarUrl;
this.userInfo.nick_name = rawData.nickName; this.userInfo.nick_name = rawData.nickName;
console.log("用户信息", JSON.parse(res.rawData))
if (rawData) { if (rawData) {
that.headImgUpload(rawData.avatarUrl, rawData.nickName) that.headImgUpload(rawData.avatarUrl, rawData.nickName)
} else { } else {
@ -628,7 +627,7 @@
} }
}) })
}, },
nickSubmit(avatar_id,nick_name) { nickSubmit(avatar_id, nick_name) {
UserApi.editUser({ UserApi.editUser({
avatar_id: avatar_id, avatar_id: avatar_id,
nick_name: nick_name nick_name: nick_name

Loading…
Cancel
Save