页面
This commit is contained in:
parent
8db7579875
commit
c5a67db7a0
@ -57,24 +57,24 @@
|
|||||||
@click="more(item)"
|
@click="more(item)"
|
||||||
v-for="item in [
|
v-for="item in [
|
||||||
{
|
{
|
||||||
name: '租赁服务',
|
name: '名优特产',
|
||||||
url: '/pages/activity/lease/index',
|
url: '/pages/columnGoods/goods_list/index?id=38',
|
||||||
icon: '/static/icons/village_service.png',
|
icon: '/static/icons/village_service.png',
|
||||||
type: 3,
|
type: 2,
|
||||||
color: 'green',
|
color: 'green',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '农事服务',
|
name: '当季产品',
|
||||||
url: '/pages/store/home/index?id=13',
|
url: '/pages/columnGoods/goods_list/index?id=37',
|
||||||
icon: '/static/icons/agriculture_service.png',
|
icon: '/static/icons/agriculture_service.png',
|
||||||
type: 3,
|
type: 2,
|
||||||
color: 'blue',
|
color: 'blue',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '店铺街',
|
name: '滞销产品',
|
||||||
url: '/pages/store/shopStreet/index',
|
url: '/pages/columnGoods/goods_list/index?id=30',
|
||||||
icon: '/static/icons/agriculture_course.png',
|
icon: '/static/icons/agriculture_course.png',
|
||||||
type: 3,
|
type: 2,
|
||||||
color: 'orange',
|
color: 'orange',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -480,12 +480,13 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
more(item) {
|
more(item) {
|
||||||
if (hasLogin() === false) {
|
const islogin = hasLogin()
|
||||||
|
if (islogin === false) {
|
||||||
this.show = true
|
this.show = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (hasLogin() === true) {
|
if (islogin === true) {
|
||||||
console.log(item)
|
// console.log(item)
|
||||||
if (item.type == 1) {
|
if (item.type == 1) {
|
||||||
getUrl(item.url)
|
getUrl(item.url)
|
||||||
} else if (item.type == 2) {
|
} else if (item.type == 2) {
|
||||||
|
@ -103,7 +103,7 @@
|
|||||||
>
|
>
|
||||||
<wd-grid-item use-slot>
|
<wd-grid-item use-slot>
|
||||||
<view class="p-2">
|
<view class="p-2">
|
||||||
<wd-img radius="20rpx" :width="'100rpx'" :height="'100rpx'" :src="item.icon" />
|
<wd-img radius="20rpx" :width="'60rpx'" :height="'60rpx'" :src="item.icon" />
|
||||||
<view class="ps-2 pt-2 pb-2 text-center text-gray-500 font-size-3">
|
<view class="ps-2 pt-2 pb-2 text-center text-gray-500 font-size-3">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</view>
|
</view>
|
||||||
|
@ -221,31 +221,31 @@ export function hasLogin() {
|
|||||||
const hasLogin = useUserStore().userInfo.id ? true : false
|
const hasLogin = useUserStore().userInfo.id ? true : false
|
||||||
// console.log(useUserStore().userInfo)
|
// console.log(useUserStore().userInfo)
|
||||||
|
|
||||||
console.log('是否登录', hasLogin)
|
// console.log('是否登录', hasLogin)
|
||||||
console.log('是否登录sss', useUserStore().userInfo)
|
// console.log('是否登录sss', useUserStore().userInfo)
|
||||||
//强制跳转设置村庄
|
// //强制跳转设置村庄
|
||||||
if (hasLogin && !useUserStore().userInfo.isset) {
|
// if (hasLogin && !useUserStore().userInfo.isset) {
|
||||||
// if (!this.phone) {
|
// // if (!this.phone) {
|
||||||
// uni.showToast({
|
// // uni.showToast({
|
||||||
// title: '请填写手机号',
|
// // title: '请填写手机号',
|
||||||
// icon: 'none',
|
// // icon: 'none',
|
||||||
|
// // })
|
||||||
|
// // return
|
||||||
|
// // }
|
||||||
|
// uni.showModal({
|
||||||
|
// title: '温馨提示',
|
||||||
|
// content: ' 您尚未完善个人信息,是否前往设置你的个人地址?',
|
||||||
|
// success: function (res) {
|
||||||
|
// if (res.confirm) {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/pages/my/setting',
|
||||||
// })
|
// })
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// })
|
||||||
|
|
||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
uni.showModal({
|
|
||||||
title: '温馨提示',
|
|
||||||
content: ' 您尚未完善个人信息,是否前往设置你的个人地址?',
|
|
||||||
success: function (res) {
|
|
||||||
if (res.confirm) {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/my/setting',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
|
||||||
//返回是否登录
|
//返回是否登录
|
||||||
return hasLogin
|
return hasLogin
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user