时辰取穴添加一次定时

This commit is contained in:
@fawn-nine
2023-12-08 14:08:44 +08:00
parent abd8171ee5
commit 41eddb7e9b
4 changed files with 92 additions and 9 deletions

View File

@@ -325,7 +325,8 @@
page:1,
totalPage:0,
tjProList:[],
status : 3
status : 3,
userMsg:{}, // 用户信息
};
},
onPageScroll(e) {
@@ -352,6 +353,7 @@
uni.hideTabBar();
this.getData();
this.getTags()
this.getUserInfo()
},
// 页面加载完毕
onReady() {
@@ -363,6 +365,7 @@
this.tjProList = []
this.getData()
this.getTags()
this.getUserInfo()
// this.requestIapOrder()
uni.stopPullDownRefresh()
@@ -403,6 +406,17 @@
methods: {
...mapMutations(['setUserInfo']),
// ...mapMutations(['setLoadingShow']),
// 获取用户详情
getUserInfo() {
// 用户详情
// if (this.userInfo.id != undefined) {
this.$http
.post('book/user/info/' + this.userInfo.id)
.then(res => {
this.userMsg = res.user
});
// }
},
// 获取商品标签
getTags() {
this.loadingNow = false
@@ -662,6 +676,19 @@
// 跳转
onPageJump(url) {
console.log(this.userMsg,'this.userMsg')
if(url == '../luck/luck' && this.userMsg.wylqPower == 0){
uni.showModal({
content: "购买 中医时间医学·火病原理 后方可使用此功能",
confirmText: '好的',
showCancel: false,
success: function(res) {
if (res.confirm) {
}
}
})
return
}
uni.navigateTo({
url: url
});