登录
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</view>
|
||||
<view class="RoomID">房间ID:{{ item.id }}</view>
|
||||
<view class="Charm">魅力值</view>
|
||||
<view class="charmValue"> {{ item.score }}</view>
|
||||
<view class="charmValue"> {{ item.score }}W</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- `````````````````````````````````````````````````````` -->
|
||||
@@ -218,5 +218,6 @@ export default {
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
line-height: 38rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
export default function request(urldata) {
|
||||
const {url, data, method, header,userInfo} = urldata;
|
||||
const baseUrl =
|
||||
"http://192.168.0.218:8086"
|
||||
+url;
|
||||
console.log("``````````````````````````````````",userInfo);
|
||||
const { url, data, method, header, userInfo } = urldata;
|
||||
const baseUrl =
|
||||
"http://192.168.0.218:8086/"
|
||||
+ url;
|
||||
console.log("``````````````````````````````````", userInfo);
|
||||
if (userInfo) {
|
||||
uni.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
if(res.data){
|
||||
if(res.data.nickName){
|
||||
if (res.data) {
|
||||
if (res.data.nickName) {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
url: baseUrl,
|
||||
@@ -24,16 +24,18 @@ export default function request(urldata) {
|
||||
}
|
||||
});
|
||||
});
|
||||
}else{
|
||||
uni.reLaunch({ url: "/pages/UserInformation/UserInformation"})
|
||||
} else {
|
||||
this.$global.lastPage = uni.page.route;
|
||||
uni.reLaunch({ url: "/pages/UserInformation/UserInformation" })
|
||||
}
|
||||
}else{
|
||||
} else {
|
||||
this.$global.lastPage = uni.page.route;
|
||||
uni.navigateTo({ url: '/pages/login/login' })
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
return new Promise((resolve, reject) => {
|
||||
});
|
||||
} else {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
url: baseUrl,
|
||||
data: data,
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<template>
|
||||
<view class="topNavigation">
|
||||
<view
|
||||
@click="RealTimePk"
|
||||
:class="{ Selectcss: Select, NoSelectcss: !Select }"
|
||||
class="RealTime"
|
||||
>实时PK</view
|
||||
>
|
||||
<view
|
||||
@click="MakeAppointmentPK"
|
||||
:class="{ Selectcss: !Select, NoSelectcss: Select }"
|
||||
class="MakeAppointment"
|
||||
class="RealTime"
|
||||
>预约PK</view
|
||||
>
|
||||
<view
|
||||
@click="RealTimePk"
|
||||
:class="{ Selectcss: Select, NoSelectcss: !Select }"
|
||||
class="MakeAppointment"
|
||||
>实时PK</view
|
||||
>
|
||||
<view @click="screening" class="Screening">筛选</view>
|
||||
<image @click="Search" src="../../static/Searching.png" class="filter-icon" />
|
||||
</view>
|
||||
@@ -22,7 +22,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
Select: true,
|
||||
Select: false,
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -82,11 +82,11 @@ export default {
|
||||
height: 39rpx;
|
||||
font-size: 42rpx;
|
||||
color: #0e1011;
|
||||
font-weight: 600;
|
||||
}
|
||||
.NoSelectcss {
|
||||
width: 108rpx;
|
||||
font-weight: 600;
|
||||
height: 29rpx;
|
||||
font-size: 31rpx;
|
||||
color: #727a7b;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user