Commit 3c7742cb authored by 黄奎's avatar 黄奎

去掉授权登录

parent f1a8b15d
This diff is collapsed.
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
</van-nav-bar> </van-nav-bar>
<view class="top"> <view class="top">
登录 登录
<van-image width="193rpx" height="242rpx" fit="cover" class="yuqi" <van-image width="193rpx" height="242rpx" fit="cover" class="yuqi" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/yuqi.png" />
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/yuqi.png" />
</view> </view>
<view class="main"> <view class="main">
<van-cell-group> <van-cell-group>
...@@ -21,9 +20,9 @@ ...@@ -21,9 +20,9 @@
<view class="btnBox" @click="login"> <view class="btnBox" @click="login">
账号登录 账号登录
</view> </view>
<view class="flex_center_center" v-if="showVisitor"> <!-- <view class="flex_center_center" v-if="showVisitor">
<indexassembly width="440rpx" height="90rpx" @success='againdata' > <indexassembly width="440rpx" height="90rpx" @success='againdata'>
<view class="btnBox authBtn" > <view class="btnBox authBtn">
授权登录 授权登录
</view> </view>
</indexassembly> </indexassembly>
...@@ -32,9 +31,8 @@ ...@@ -32,9 +31,8 @@
游客登录 游客登录
</view> </view>
<van-toast id="van-toast" /> <van-toast id="van-toast" />
<van-dialog :show='show' title="提示" message='游客登录,不能使用全部功能!' show-cancel-button @cancel='show = false' <van-dialog :show='show' title="提示" message='游客登录,不能使用全部功能!' show-cancel-button @cancel='show = false' @confirm='login3'>
@confirm='login3'> </van-dialog> -->
</van-dialog>
</view> </view>
</template> </template>
...@@ -60,7 +58,7 @@ ...@@ -60,7 +58,7 @@
} from '../../wxcomponents/vant/dialog/index'; } from '../../wxcomponents/vant/dialog/index';
import indexassembly from '../index/components/indexassembly.vue' import indexassembly from '../index/components/indexassembly.vue'
export default { export default {
components:{ components: {
indexassembly indexassembly
}, },
setup(props, context) { setup(props, context) {
...@@ -79,7 +77,7 @@ ...@@ -79,7 +77,7 @@
openid: "", openid: "",
code: "", code: "",
show: false, show: false,
showVisitor:false, showVisitor: false,
}); });
let methods = { let methods = {
...@@ -94,13 +92,10 @@ ...@@ -94,13 +92,10 @@
}, },
jumpPage() { jumpPage() {
uni.reLaunch({ uni.reLaunch({
url: "/pages/index/index", url: "/pages/index/index",
// url: "/pages/index/index2",//跳转查看考试
}); });
clearTimeout(); clearTimeout();
}, },
async login() { async login() {
if (msg.Account == "" || !msg.Account) { if (msg.Account == "" || !msg.Account) {
Toast.fail("请输入账号"); Toast.fail("请输入账号");
...@@ -110,8 +105,8 @@ ...@@ -110,8 +105,8 @@
Toast.fail("请输入密码"); Toast.fail("请输入密码");
return; return;
} }
let res = await this.$request('/AppletLogin/Login', msg).then(res=>{ let res = await this.$request('/AppletLogin/Login', msg).then(res => {
if(res.Code==1){ if (res.Code == 1) {
res.Data.Account = msg.Account; res.Data.Account = msg.Account;
uni.setStorageSync("userInfo", res.Data); uni.setStorageSync("userInfo", res.Data);
Toast.success("登录成功"); Toast.success("登录成功");
...@@ -203,21 +198,14 @@ ...@@ -203,21 +198,14 @@
} else { } else {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title:"未授权电话,请先点击授权按钮", title: "未授权电话,请先点击授权按钮",
duration:2000, duration: 2000,
}) })
// setTimeout(()=>{
// uni.reLaunch({
// url: '/pages/index/index' //没有授权登录
// });
// },1500)
} }
}, },
againdata() { againdata() {
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/index' url: '/pages/index/index'
}); });
}, },
}; };
...@@ -231,7 +219,7 @@ ...@@ -231,7 +219,7 @@
}, },
onLoad() { onLoad() {
//审核用 //审核用
this.showVisitor=new Date().getTime()> new Date('2022-03-16').getTime() this.showVisitor = new Date().getTime() > new Date('2022-03-16').getTime()
} }
}; };
</script> </script>
...@@ -321,11 +309,13 @@ ...@@ -321,11 +309,13 @@
text-align: center; text-align: center;
line-height: 88rpx; line-height: 88rpx;
} }
.authBtn{
.authBtn {
background-color: #EDEDFD !important; background-color: #EDEDFD !important;
color: #4C50E8 !important; color: #4C50E8 !important;
} }
.visitor{
.visitor {
text-align: center; text-align: center;
font-size: 28rpx; font-size: 28rpx;
font-family: PingFang SC; font-family: PingFang SC;
......
//请求教育接口 //请求教育接口
let host = '' let host = ''
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
host = 'http://192.168.10.46:8300/api' host = 'http://192.168.10.128:8300/api'
// host = 'http://192.168.10.65:8085/api'
// host = 'https://eduapi.oytour.com/api'
} else { } else {
host = 'https://eduapi.oytour.com/api' host = 'https://eduapi.oytour.com/api'
} }
......
//请求电商接口 //请求电商接口
let host = '' let host = ''
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
host = 'http://192.168.10.46:8200/api' host = 'http://192.168.10.128:8200/api'
//host = "https://mallapi.oytour.com/api"
} else { } else {
host = "https://mallapi.oytour.com/api" host = "https://mallapi.oytour.com/api"
} }
......
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