更新
This commit is contained in:
@@ -1,79 +1,30 @@
|
||||
<template>
|
||||
<view class="login-page bg-white">
|
||||
|
||||
|
||||
|
||||
<view class="image login-bg">
|
||||
|
||||
|
||||
|
||||
<!-- <image :src="imgURL+'login-bg.png'" mode="widthFix"></image> -->
|
||||
<!-- <image src="../../../BagStation/static/img/LV.png" mode="widthFix"></image> -->
|
||||
<image src="../../../static/img/login-bg.png" mode="widthFix"></image>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<scroll-view scroll-x class=" bg-white nav padding">
|
||||
|
||||
|
||||
|
||||
<view class="flex text-center padding-bottom">
|
||||
|
||||
<view class="cu-item flex-sub">
|
||||
|
||||
</view>
|
||||
|
||||
<view class="cu-item flex-sub" :class="0==TabCur?'text-blues cur':''" @tap="tabSelect(0)">
|
||||
|
||||
|
||||
|
||||
个人账号
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
<view class="cu-item flex-sub">
|
||||
|
||||
</view>
|
||||
|
||||
<!-- <view class="cu-item flex-sub" :class="1==TabCur?'text-red cur':''" @tap="tabSelect(1)">
|
||||
|
||||
|
||||
|
||||
<!-- <view class="cu-item flex-sub" :class="1==TabCur?'text-red cur':''" @tap="tabSelect(1)">
|
||||
企业账号
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
-->
|
||||
|
||||
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</scroll-view>
|
||||
|
||||
|
||||
|
||||
<view class="cu-load load-modal" v-if="loadModal">
|
||||
|
||||
|
||||
|
||||
<view class="gray-text">加载中...</view>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<view class="margin-lg flex flex-direction text-center">
|
||||
<button v-if="checked" @click="decryptPhoneNumber" class="cu-btn round bg-main-oil lg text-lg" open-type="getPhoneNumber"
|
||||
@getphonenumber="decryptPhoneNumber">
|
||||
<button v-if="checked" @click="decryptPhoneNumber" class="cu-btn round bg-main-oil lg text-lg"
|
||||
open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">
|
||||
<text class="cuIcon-weixin padding-right-xs"> </text>
|
||||
<text>
|
||||
微信用户一键登录
|
||||
@@ -92,7 +43,7 @@
|
||||
跳过
|
||||
</button>
|
||||
</view>
|
||||
<loginBottom ref='loginBottom' :checked='checked' @onCheck="checkAgree" />
|
||||
<loginBottom ref='loginBottom' :checked='checked' @onCheck="checkAgree" />
|
||||
|
||||
<uni-popup ref='popup'>
|
||||
<view class="protocol_body">
|
||||
@@ -108,7 +59,7 @@
|
||||
<view class="protocol_footer">
|
||||
<button @click="$refs.popup.close()" class="protocol_footer_close">取消</button>
|
||||
<button @click="checked=true;$refs.popup.close();" class="protocol_footer_confirm">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
|
||||
@@ -222,9 +173,6 @@
|
||||
url: `/BagAuth/pages/login/oldLogin?scanningParams=${this.scanningParams}`
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
|
||||
decryptPhoneNumber(e) {
|
||||
if (!this.checked) {
|
||||
uni.showToast({
|
||||
@@ -273,16 +221,16 @@
|
||||
let user = resData.authTokenDTO.loginUser
|
||||
uni.setStorageSync('user', user)
|
||||
|
||||
setTimeout(() => {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
complete: (err) => {}
|
||||
})
|
||||
}, 1000);
|
||||
// setTimeout(() => {
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none',
|
||||
// complete: (err) => {}
|
||||
// })
|
||||
// }, 1000);
|
||||
if (this.scanningParams) {
|
||||
uni.redirectTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?q=${this.scanningParams}`
|
||||
url: `/BagStation/pages/makeOrder/makeOrder?q=${this.scanningParams}`
|
||||
})
|
||||
return
|
||||
}
|
||||
@@ -298,28 +246,28 @@
|
||||
|
||||
<style>
|
||||
.protocol_footer_close {
|
||||
width: 185rpx;
|
||||
width: 185rpx;
|
||||
border-radius: 94rpx 94rpx 94rpx 94rpx;
|
||||
opacity: 1;
|
||||
border: 1px solid #000000;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
|
||||
.protocol_footer_confirm {
|
||||
width: 185rpx;
|
||||
width: 185rpx;
|
||||
background: #1890FF;
|
||||
border-radius: 56rpx 56rpx 56rpx 56rpx;
|
||||
opacity: 1;
|
||||
font-size: 26rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
||||
.protocol_footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
justify-content: space-between;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
||||
.protocol_content {
|
||||
font-size: 32rpx;
|
||||
font-family: PingFang SC-Medium, PingFang SC;
|
||||
@@ -328,7 +276,7 @@
|
||||
line-height: 46rpx;
|
||||
margin: 60rpx 0;
|
||||
}
|
||||
|
||||
|
||||
.protocol_header {
|
||||
width: 330rpx;
|
||||
height: 32rpx;
|
||||
@@ -337,7 +285,7 @@
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.protocol_body {
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||
@@ -346,7 +294,7 @@
|
||||
max-width: 634rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
|
||||
.login-bg {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -365,4 +313,4 @@
|
||||
background-color: transparent;
|
||||
color: #555555;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -172,11 +172,11 @@
|
||||
loginRes: {},
|
||||
checked: false,
|
||||
next: false,
|
||||
scanningParams:null
|
||||
scanningParams: null
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
if(options.scanningParams) {
|
||||
if (options.scanningParams) {
|
||||
// 用于扫码进入油站详情页面
|
||||
this.scanningParams = options.scanningParams
|
||||
}
|
||||
@@ -409,18 +409,18 @@
|
||||
icon: 'none'
|
||||
})
|
||||
}, 1000);
|
||||
console.log(this.scanningParams,'this.scanningParams')
|
||||
if(this.scanningParams&&this.scanningParams!=='null') {
|
||||
console.log(this.scanningParams, 'this.scanningParams')
|
||||
if (this.scanningParams && this.scanningParams !== 'null') {
|
||||
uni.redirectTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?q=${this.scanningParams}`
|
||||
url: `/BagStation/pages/makeOrder/makeOrder?q=${this.scanningParams}`
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
// 这里有问题
|
||||
uni.switchTab({
|
||||
url: '/pages/tabbar/home/home'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
checkCompany() {
|
||||
|
||||
Reference in New Issue
Block a user