地址信息完善

This commit is contained in:
@fawn-nine
2023-11-23 13:59:49 +08:00
parent d097e6da6d
commit d8bebc4bc4
4 changed files with 8176 additions and 7929 deletions

View File

@@ -57,6 +57,9 @@
<script>
import musicPlay from '@/components/music.vue'
import $http from '@/config/requestConfig.js';
import {
mapState
} from 'vuex';
export default {
data() {
return {
@@ -69,18 +72,45 @@
curTwoCateIndex:0 , // 当前选中的二级分类
searchList:[], // 搜索结果数组
showSearchList: false,
userMes:{}, // 用户信息
}
},
onLoad() {
this.getUserInfo()
this.getCateList()
},
onHide() {
this.showSearchList = false
this.searchList = []
},
computed: {
...mapState(['userInfo']),
},
methods: {
// 显示无权限弹窗
showNoRights(){
uni.showModal({
content:"购买‘手模’或者‘脚模’后方可使用此功能",
confirmText:'好的',
showCancel:false,
})
},
// 获取用户详情
getUserInfo(){
// 用户详情
if (this.userInfo.id != undefined) {
this.$http
.post('book/user/info/' + this.userInfo.id)
.then(res => {
this.userMes = res.user
console.log(this.userMes,'呼呼')
});
}
},
// 穴位详情
gotoDetail(item){
this.showNoRights()
uni.navigateTo({
url:"./acupointDetail?id=" + item.id
})
@@ -232,6 +262,7 @@
// title: 'focus事件输出值为' + e.value,
// icon: 'none'
// })
this.showNoRights()
this.showSearchList = true
},
// cancel(res) {