Browse Source

修改注册页面关闭

lihuilin/feature-20251024095243-我的
wangyi 4 weeks ago
parent
commit
cbf88d106f
  1. 10
      pages.json
  2. 4
      pages/setting/account.vue
  3. 2
      pages/start/Registration/Registration.vue
  4. 56
      pages/start/index/index.vue
  5. 6
      utils/http.js

10
pages.json

@ -29,16 +29,6 @@
}
},
{
"path": "pages/start/index/index",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "uni-app",
"disableSwipeBack": true,
"titleNView": false,
"bounce": false
}
},
{
"path": "pages/start/Registration/Registration",
"style": {
"navigationBarTitleText": "",

4
pages/setting/account.vue

@ -86,6 +86,10 @@
title: '退出登录成功',
icon: 'none',
})
uni.navigateTo({
url: '/pages/start/login/login'
})
}
const goToBind = () =>{

2
pages/start/Registration/Registration.vue

@ -246,7 +246,7 @@ function showCountryPicker() {
function goToIndex() {
//
uni.navigateTo({
url: "/pages/start/index/index",
url: "/pages/start/login/login",
});
}

56
pages/start/index/index.vue

@ -1,56 +0,0 @@
<template>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title" @click="showLoginPrompt">{{ title }}</text>
</view>
<LoginPrompt ref="loginPrompt"></LoginPrompt>
<button @click="toDeepMate">deepMate</button>
</view>
</template>
<script setup>
import { ref } from "vue";
import { useUserStore } from "../../../stores/modules/userInfo";
const title = ref("请先登录");
const loginPrompt = ref(null);
const userStore = useUserStore();
function showLoginPrompt() {
userStore.clearUserInfo();
}
function toDeepMate() {
uni.navigateTo({
url: "/pages/deepMate/deepMate",
});
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>

6
utils/http.js

@ -1,7 +1,7 @@
import { useUserStore } from "../stores/modules/userInfo"
import { useDeviceStore } from "../stores/modules/deviceInfo"
const baseURL = "https://hwjb.homilychart.com/testApi"
const baseURL = "https://dbqb.nfdxy.net/testApi"
const httpInterceptor = {
@ -22,7 +22,7 @@ const httpInterceptor = {
// 打印最终请求地址
console.log('HTTP(finalUrl)=', options.url)
// 2.请求超时,默认60s
options.timeout = 60000
options.timeout = 10000
console.log(options)
//3 添加小程序端请求头
const sys = uni.getSystemInfoSync();
@ -91,7 +91,7 @@ export const http = (options) => {
fail: (err) => {
reject(err)
uni.showToast({
title: '网络错误',
title: '请求超时',
icon: 'none'
})
}

Loading…
Cancel
Save