| | |
| | | <up-icon name="edit-pen" @click='isShow'></up-icon> |
| | | </template> |
| | | </up-cell> |
| | | <up-cell title="手机号" :value="userInfo.phone" :border="false"></up-cell> |
| | | <up-cell title="手机号" :value="userInfo.phone" :border="false"></up-cell> |
| | | <!-- <up-cell @click="goApply" title="申请接单" isLink :border="false"></up-cell> --> |
| | | <!-- <view class="tabbtns"> |
| | | <up-button color='#fece01' class="text-69" text="保存" @click=''></up-button> |
| | |
| | | }); |
| | | } |
| | | const saveUserNikename = (val) => { |
| | | if(!userInfo.nickname){ |
| | | if (!userInfo.nickname) { |
| | | $util.showToast({ |
| | | title: "请输入昵称!", |
| | | icon: "success" |
| | | }) |
| | | return |
| | | return |
| | | } |
| | | $api.saveUser({ |
| | | Nickname: userInfo.nickname |
| | |
| | | title: "昵称保存成功!", |
| | | icon: "success" |
| | | }) |
| | | store.commit('setUserInfo',userInfo.value) |
| | | store.commit('setUserInfo', userInfo.value) |
| | | showEdit.value = false |
| | | } else { |
| | | $util.showToast({ |
| | | title: res.error |
| | | }) |
| | | } |
| | | }) |
| | | } |