Commit 0a4ba165 authored by liwei's avatar liwei

新增了页面跳转

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