Commit e2fcb163 authored by liwei's avatar liwei

增加了会员的查看更多列表

parent eb10c636
......@@ -58,6 +58,21 @@
}
],
"subPackages": [
{
"root": "pagesUser",
"pages": [
{
"path": "userList",
"style": {
"navigationBarTitleText": "会员信息",
"backgroundColor": "#F4F5F9",
"backgroundColorTop": "#F4F5F9",
"navigationBarBackgroundColor": "#F4F5F9",
"navigationStyle": "custom"
}
}
]
},
{
"root": "pagesActivity",
"pages": [
......
<template>
<!-- 使用z-paging-swiper为根节点可以免计算高度 -->
<z-paging-swiper>
<view :class="['add',isOpen?'add2':'']">
<view :class="['add',isOpen ? 'add2':'']">
<image @click='goPage("/pagescommunity/newsRelease/newsRelease")' src="../../static/images/102.png" mode=""/>
</view>
<!-- 需要固定在顶部不滚动的view放在slot="top"的view中 -->
......@@ -53,7 +53,6 @@
import login from '../../components/login/login.vue';
import ELM from '@/components/elm-toast/index.vue';
export default {
// 复制下面这行 options 代码
options: {
styleIsolation: 'shared'
},
......@@ -71,9 +70,6 @@
{
name: '最近',
},
// {
// name: '同城',
// },
],
params: {
pageIndex: 1,
......@@ -93,8 +89,8 @@
};
},
onLoad() {
if (uni.getStorageSync('info') != '') {
this.userInfo = uni.getStorageSync('info');
if (uni.getStorageSync('userInfo') != '') {
this.userInfo = uni.getStorageSync('userInfo');
} else {
this.userInfo = {
id: 0
......@@ -179,7 +175,6 @@
console.log("进来了")
let obj = {
...value,
}
let url = ''
if (obj.isLike) {
......@@ -228,12 +223,6 @@
this.params.tabType = "RECOMMEND"
this.current = 1
}
// else {
// this.params.tabType = "CITY"
// this.current = 2
// }
// this.params.pageIndex = 1
// this.getList(true)
},
goPage(path) {
if (uni.getStorageSync('userInfo') != '') {
......
......@@ -25,7 +25,7 @@
<view class="leftline"></view>
<view class="title">{{notice.title}}</view>
<view class="rightline"></view>
<view class="notice-more" @click="gotopage('/pagesNotice/components/list')">更多</view>
<view class="notice-more" @click="gotoMoreNoticeList">更多</view>
</view>
<!-- 热门推荐-->
<view class="recommendation-top">
......@@ -36,14 +36,14 @@
</view>
</view>
<view class="more">
<view class="more-title" @click="gotoBussinessList">查看更多</view>
<view class="more-title" @click="gotoMoreUserList">查看更多</view>
<view class="more-image">
<image class="rightimage" src="../static/images/home/home_icon_jiantou@2x.png"/>
</view>
</view>
</view>
<view style="border-radius: 12rpx 12rpx 12rpx 12rpx;margin: 34rpx 34rpx 0 34rpx">
<view class="card" v-for="(item,index) in businessList" :key="index" @click="gotodetail(item)">
<view class="card" v-for="(item,index) in businessList" :key="index" @click="gotoUserDetail(item)">
<view class="contentBody">
<view class="leftlist">
<image src="/static/images/home/gonggao.png" class="leftlistimage"/>
......@@ -191,25 +191,28 @@
console.log(e)
})
},
// 页面跳转
gotopage(url) {
uni.reLaunch({
url: url
//查看更多公告
gotoMoreNoticeList() {
uni.navigateTo({
url: '/pagesNotice/components/list'
});
},
//热门推荐 跳转
gotodetail(item){
//查看更多会员用户
gotoMoreUserList(){
uni.navigateTo({
url: '/pages2/business/business/id='+item.businessId
})
url: '/pagesUser/userList'
});
},
goTips() {
//查看会员详情
gotoUserDetail(item){
uni.navigateTo({
url: '/pages2/explain/explain'
});
url: '/pages2/business/business/id='+item.businessId
})
},
//左上角的搜索
async screen() {
const res = await this.$getId();
//判断当前是否已登录
// const res = await this.$getId();
console.log(res);
if (res == 11003) {
this.isLoginPop = true;
......
This diff is collapsed.
......@@ -297,23 +297,11 @@ export default {
}
},
backbar() {
if (this.share != null && this.share == "true") {
if (uni.getStorageSync('userInfo')) {
uni.switchTab({
url: '/pages/tab/index'
});
} else {
uni.reLaunch({
url: '/pageslogin/index/index'
});
}
} else {
uni.navigateBack({
delta: 1, //返回层数,2则上上页
})
}
}
}
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment