Commit 0a4ba165 authored by liwei's avatar liwei

新增了页面跳转

parent dd1c6fa0
......@@ -2,10 +2,9 @@
<view class="">
<u-popup :show="isLoginPop" mode="center" round="12" :safeAreaInsetBottom="false">
<view class="popup-container">
<image class="pop-bgc" :src="img+'img/home-login-bg.png'"></image>
<image src="../../static/images/moon-y.png" class="moon-bg"></image>
<image class="pop-bgc" :src="baseUrl+'/login/home-pop-bg.png'"></image>
<image :src="baseUrl+'/login/moon-y.png'" class="moon-bg"></image>
<view class="container">
<view class="container-c">
<view class="pop-title">登录欧SSS</view>
<view class="tips-content">
......@@ -26,8 +25,6 @@
</view>
</view>
</view>
</view>
</u-popup>
</view>
......@@ -44,7 +41,8 @@
},
data() {
return {
img: this.$BASE_URL+"/",
//图片路径
baseUrl: 'http://192.168.1.80/static/images',
};
},
methods: {
......
......@@ -227,7 +227,6 @@
} else {
this.isLoginPop = true
}
},
getList(isFirst) {
if (isFirst) this.params.pageIndex = 1
......
......@@ -208,7 +208,7 @@
//查看会员详情
gotoUserDetail(item){
uni.navigateTo({
url: '/pages2/business/business/id='+item.businessId
url: '/pagesUser/userInfo?id='+item.businessId
})
},
//左上角的搜索
......
......@@ -206,22 +206,22 @@ import {setUserProfile} from '../../api/login/index'
name: "金币",
num: 0,
la: "立即充值",
img: baseUrl+"/user/mymoney.png",
img: "http://192.168.1.80/static/images/user/mymoney.png",
}, {
name: "个人资料",
num: '',
la: "",
img: baseUrl+"/user/myren.png",
img: "http://192.168.1.80/static/images/user/myren.png",
}, {
name: "推荐给好友",
num: '',
la: "",
img: baseUrl+"/user/myshare.png",
img: "http://192.168.1.80/static/images/user/myshare.png",
}, {
name: "设置",
num: '',
la: "",
img: baseUrl+'/user/myset.png',
img: 'http://192.168.1.80/static/images/user/myset.png',
}],
info: {
headPortrait:'http://192.168.1.80/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg',
......
......@@ -7,7 +7,7 @@
<view class="text">暂无数据</view>
</view>
<view class="card">
<view class="recommendation-card" v-for="item in userList" @click="gotoBusinessDetail(item)">
<view class="recommendation-card" v-for="item in userList" @click="gotoDetail(item)">
<view class="card-image">
<image class="img" src="https://cdn.uviewui.com/uview/album/1.jpg"/>
</view>
......@@ -40,6 +40,7 @@ export default {
//用户列表
userList:[
{
businessId:'1',
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
......@@ -47,6 +48,7 @@ export default {
address:'重庆市'
},
{
businessId:'2',
nickName:'暖洋洋',
gender:'MALE',
age:'21',
......@@ -54,6 +56,7 @@ export default {
address:'重庆市'
},
{
businessId:'3',
nickName:'暖洋洋',
gender:'MALE',
age:'21',
......@@ -61,6 +64,7 @@ export default {
address:'重庆市'
},
{
businessId:'4',
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
......@@ -68,6 +72,7 @@ export default {
address:'重庆市'
},
{
businessId:'5',
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
......@@ -75,6 +80,7 @@ export default {
address:'重庆市'
},
{
businessId:'6',
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
......@@ -84,8 +90,6 @@ export default {
],
//是否有数据
isdata: false,
//页面显示的数据类型 1我喜欢的 2喜欢我的 3互相喜欢
type:'',
//页面数据的数量
num:'',
//距离表头
......@@ -115,56 +119,14 @@ export default {
this.getUserList()
},
methods: {
getUserList(){
if (this.type == '1'){
//我喜欢的
const list = [
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'MALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'MALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
//跳转用户详情
gotoDetail(item){
uni.navigateTo({
url: '/pagesUser/userInfo?id='+item.businessId
})
},
]
this.userList = list
} else if(this.type == '2') {
//喜欢我的
//加载数据
getUserList(){
const list = [
{
nickName:'暖洋洋',
......@@ -208,77 +170,8 @@ export default {
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
},
]
this.userList = list
} else if(this.type == '3') {
//互相喜欢的
const list = [
{
nickName:'暖洋洋',
gender:'MALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'MALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
},
{
nickName:'暖洋洋',
gender:'FEMALE',
age:'21',
height:'165',
address:'重庆市'
}
]
this.userList = list
}
},
backbar() {
uni.navigateBack({
......
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