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

去掉授权登录

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