修改登陆 不登陆能看 点击详情得登陆
This commit is contained in:
parent
d8aa633914
commit
ea21316c09
|
@ -526,9 +526,9 @@
|
||||||
that.getHomeArtificerList();
|
that.getHomeArtificerList();
|
||||||
that.getHomeNearbyList();
|
that.getHomeNearbyList();
|
||||||
}else{
|
}else{
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url: '/pages/public/login'
|
// url: '/pages/public/login'
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
that.token = uni.getStorageSync('token');
|
that.token = uni.getStorageSync('token');
|
||||||
},
|
},
|
||||||
|
@ -669,16 +669,32 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
goCity(){
|
goCity(){
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
var that = this
|
var that = this
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/index/searchAddress?text='+'index'
|
url:'/pages/index/searchAddress?text='+'index'
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
searchBtn(){//搜索按钮
|
searchBtn(){//搜索按钮
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/my/fuwuGengduo?searchValue='+this.searchValue
|
url:'/pages/my/fuwuGengduo?searchValue='+this.searchValue
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
input(res) {//搜索 输入框
|
input(res) {//搜索 输入框
|
||||||
this.searchValue=res;
|
this.searchValue=res;
|
||||||
|
@ -687,14 +703,30 @@
|
||||||
this.changeSelectData=e
|
this.changeSelectData=e
|
||||||
},
|
},
|
||||||
shangcheng(){
|
shangcheng(){
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/package/pages/zysc/index/index'
|
url:'/package/pages/zysc/index/index'
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
yuedao(text){
|
yuedao(text){
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/shop/index?text='+text
|
url:'/pages/shop/index?text='+text
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
closePopup(type){//提前结束 关闭弹出框
|
closePopup(type){//提前结束 关闭弹出框
|
||||||
this.type = type
|
this.type = type
|
||||||
|
@ -728,9 +760,17 @@
|
||||||
phoneNumber: kefuPhone //仅为示例
|
phoneNumber: kefuPhone //仅为示例
|
||||||
});
|
});
|
||||||
}else if(kefu == 3){
|
}else if(kefu == 3){
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/my/setting/customer'
|
url: '/my/setting/customer'
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
} else{
|
} else{
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
let that = this
|
let that = this
|
||||||
|
@ -860,22 +900,47 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
chaoji(){//超级满减
|
chaoji(){//超级满减
|
||||||
|
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/wallet/index'
|
url:'/my/wallet/index'
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
xinren(){//新人专享
|
xinren(){//新人专享
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/my/hongbao/xinrenhongbao'
|
url:'/my/hongbao/xinrenhongbao'
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
goNavs(e){
|
goNavs(e){
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:e
|
url:e
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
goNav(e){
|
goNav(e){
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
if(e!=undefined){
|
if(e!=undefined){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:e
|
url:e
|
||||||
|
@ -885,6 +950,12 @@
|
||||||
title:'敬请期待!'
|
title:'敬请期待!'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// chooseItem(item){
|
// chooseItem(item){
|
||||||
|
@ -950,9 +1021,17 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
gengduo(){
|
gengduo(){
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/pages/therapist/therapist'
|
url:'/pages/therapist/therapist'
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getCity(e) {
|
getCity(e) {
|
||||||
|
@ -1112,6 +1191,8 @@
|
||||||
},
|
},
|
||||||
goDatail(item){//热门精选,推荐套餐 跳详情
|
goDatail(item){//热门精选,推荐套餐 跳详情
|
||||||
console.log("asdasdasddasd",item)
|
console.log("asdasdasddasd",item)
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
if(item.type=='114'){
|
if(item.type=='114'){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/shop/qiyeDatail?id='+item.id+'&name='+'index'
|
url:'/pages/shop/qiyeDatail?id='+item.id+'&name='+'index'
|
||||||
|
@ -1133,6 +1214,12 @@
|
||||||
url:'/pages/my/fuwuDateil?id='+item.id+'&limit='+this.limit+'&page='+this.page
|
url:'/pages/my/fuwuDateil?id='+item.id+'&limit='+this.limit+'&page='+this.page
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
chengFel(item){//大家常买。。。 导航切换
|
chengFel(item){//大家常买。。。 导航切换
|
||||||
|
@ -1140,17 +1227,41 @@
|
||||||
if(this.currentTabFl=='1'){//大家常买
|
if(this.currentTabFl=='1'){//大家常买
|
||||||
this.remen()
|
this.remen()
|
||||||
}else if(this.currentTabFl=='2'){// 全部项目
|
}else if(this.currentTabFl=='2'){// 全部项目
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/my/fuwuGengduo?text='+'index'
|
url:'/pages/my/fuwuGengduo?text='+'index'
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}else if(this.currentTabFl=='3'){//行业大拿
|
}else if(this.currentTabFl=='3'){//行业大拿
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/my/hangyedana'
|
url:'/pages/my/hangyedana'
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}else{// 女性专区
|
}else{// 女性专区
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/my/fuwuxiangm'
|
url:'/pages/my/fuwuxiangm'
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -268,6 +268,15 @@
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
console.log('回到前台');
|
console.log('回到前台');
|
||||||
|
let userId = uni.getStorageSync('userId')
|
||||||
|
if (userId) {
|
||||||
|
var add=uni.getStorageSync('cityAdderss');
|
||||||
|
}else{
|
||||||
|
var add=uni.getStorageSync('cityAdderss');
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/public/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
if(this.isClick){
|
if(this.isClick){
|
||||||
this.dataList[this.k].state = 'pause';
|
this.dataList[this.k].state = 'pause';
|
||||||
uni.createVideoContext(this.dataList[this.k].id+''+this.k,this).pause()
|
uni.createVideoContext(this.dataList[this.k].id+''+this.k,this).pause()
|
||||||
|
|
Loading…
Reference in New Issue