Commit e2fcb163 authored by liwei's avatar liwei

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

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