1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page-content my-bg">
|
||||
<cu-custom :isBack="true" class="main-topbar bg-main-oil" bgColor="bg-main-oil">
|
||||
<block slot="content">绑定星油云站</block>
|
||||
<block slot="content">绑定中品云站</block>
|
||||
<block slot="backText">返回</block>
|
||||
</cu-custom>
|
||||
<view class="pannel">
|
||||
@@ -11,7 +11,7 @@
|
||||
{{oilSite.oilSiteName}}
|
||||
</view>
|
||||
<view class="padding-xs text-lg">
|
||||
星油云站欢迎您的加入
|
||||
中品云站欢迎您的加入
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -44,7 +44,7 @@
|
||||
</view>
|
||||
<view class="margin-left">
|
||||
<text class="cuIcon-infofill padding-right-xs text-sm oil-main-color"></text>
|
||||
<text class="text-sm">请确认您的手机号已添加为星油云站管理员账号</text>
|
||||
<text class="text-sm">请确认您的手机号已添加为中品云站管理员账号</text>
|
||||
</view>
|
||||
<view class="margin margin-top-xl">
|
||||
<!-- <button class="bg-main-oil" @tap="beforeLogin" open-type="getUserInfo" @getuserinfo="getUserInfo">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="content my-bg">
|
||||
<cu-custom class="main-topbar bg-main-oil" @showLists='showLists' :isChange='true' bgColor="bg-main-oil">
|
||||
<block slot="changeChannel">切换</block>
|
||||
<block slot="content">{{'星油云站'}}</block>
|
||||
<block slot="content">{{'中品云站'}}</block>
|
||||
</cu-custom>
|
||||
<view class="main-money bg-main-oil">
|
||||
<view class="padding-left-lg">当前油站为:<text>{{accountName}}</text></view>
|
||||
@@ -84,7 +84,7 @@
|
||||
</view>
|
||||
<text>{{ cuIconList[4].name }}</text>
|
||||
</view>
|
||||
<view class="cu-item" v-for="(item,index) in menusList" :key="index" @tap="routerTo(item.path)" v-if=' item.name != "星油云站超级管理员"' >
|
||||
<view class="cu-item" v-for="(item,index) in menusList" :key="index" @tap="routerTo(item.path)" v-if=' item.name != "中品云站超级管理员"' >
|
||||
<view :class="['cuIcon-' + item.cuIcon, 'text-' + cuIconList[index+1].color]" class="text-sl">
|
||||
<view class="cu-tag badge" v-if="item.badge != 0">
|
||||
<block v-if="item.badge != 1">{{ item.badge > 99 ? '99+' : item.badge }}</block>
|
||||
@@ -135,7 +135,7 @@
|
||||
</view>
|
||||
<view class="cu-modal" :class="checkList">
|
||||
<view class="cu-dialog">
|
||||
<view class="cu-bar bg-red justify-end">
|
||||
<view class="cu-bar bg-blue justify-end">
|
||||
<view class="content ">
|
||||
{{'选择登录油站'}}
|
||||
</view>
|
||||
@@ -147,7 +147,7 @@
|
||||
<view class="flex align-center justify-between margin-bottom-sm " v-for="(list,i) in oliList" :key='list'>
|
||||
<view class=""> {{list.siteName}}</view>
|
||||
<view class="">
|
||||
<view class=" bg-red cu-btn text-white text-center btn-radius-10 text-sm" @tap="checkLists(list)">
|
||||
<view class=" bg-blue cu-btn text-white text-center btn-radius-10 text-sm" @tap="checkLists(list)">
|
||||
进入
|
||||
</view>
|
||||
</view>
|
||||
@@ -157,7 +157,7 @@
|
||||
</view>
|
||||
<view class="cu-modal" :class="[checkFirst ? 'show':'']" >
|
||||
<view class="cu-dialog">
|
||||
<view class="cu-bar bg-red justify-end">
|
||||
<view class="cu-bar bg-blue justify-end">
|
||||
<view class="content ">
|
||||
{{'选择登录油站'}}
|
||||
</view>
|
||||
@@ -169,7 +169,7 @@
|
||||
<view class="flex align-center justify-between margin-bottom-sm " v-for="(list,i) in oliList" :key='list'>
|
||||
<view class=""> {{list.siteName}}</view>
|
||||
<view class="">
|
||||
<view class=" bg-red cu-btn text-white text-center btn-radius-10 text-sm" @tap="checkLists(list)">
|
||||
<view class=" bg-blue cu-btn text-white text-center btn-radius-10 text-sm" @tap="checkLists(list)">
|
||||
进入
|
||||
</view>
|
||||
</view>
|
||||
@@ -400,7 +400,7 @@
|
||||
obj.color= 'blue',
|
||||
obj.badge= 0,
|
||||
obj.name=list.roleName
|
||||
}else if(list.roleName == '星油云站超级管理员'){
|
||||
}else if(list.roleName == '中品云站超级管理员'){
|
||||
obj.cuIcon = 'punch',
|
||||
obj.path= ' ',
|
||||
obj.color= 'blue',
|
||||
@@ -615,7 +615,7 @@
|
||||
transition: all linear .3s;
|
||||
}
|
||||
.color-red{
|
||||
color: #f70e0e;
|
||||
color: #1890FF;
|
||||
font-weight: 700;
|
||||
font-size: 35rpx;
|
||||
margin-left: 3%;
|
||||
|
||||
@@ -7,20 +7,20 @@
|
||||
<view class="padding-top radius shadow bottom-bar-fixed">
|
||||
<view class="cu-bar tabbar bg-white">
|
||||
<view class="action text-gray" @tap="NavChange" data-cur="home">
|
||||
<view class="cuIcon-homefill sl" :class="PageCur=='home'?'text-red':'text-gray'"></view>
|
||||
<text :class="PageCur=='home'?'text-red':'text-gray'">
|
||||
<view class="cuIcon-homefill sl" :class="PageCur=='home'?'text-blue':'text-gray'"></view>
|
||||
<text :class="PageCur=='home'?'text-blue':'text-gray'">
|
||||
加油站
|
||||
</text>
|
||||
</view>
|
||||
<view class="action text-gray add-action" @tap="NavChange" data-cur="scan">
|
||||
<button class="cu-btn cuIcon-scan sl shadow" :class="PageCur=='scan'?'bg-main-oil':'bg-gradual-orange'"></button>
|
||||
<text :class="PageCur=='scan'?'text-red':'text-gray'">
|
||||
<text :class="PageCur=='scan'?'text-blue':'text-gray'">
|
||||
一键扫码
|
||||
</text>
|
||||
</view>
|
||||
<view class="action text-gray" @tap="NavChange" data-cur="setup">
|
||||
<view class="cuIcon-peoplefill sl" :class="PageCur=='setup'?'text-red':'text-gray'"></view>
|
||||
<text :class="PageCur=='setup'?'text-red':'text-gray'">
|
||||
<view class="cuIcon-peoplefill sl" :class="PageCur=='setup'?'text-blue':'text-gray'"></view>
|
||||
<text :class="PageCur=='setup'?'text-blue':'text-gray'">
|
||||
我的
|
||||
</text>
|
||||
</view>
|
||||
@@ -203,7 +203,7 @@
|
||||
obj.color= 'blue',
|
||||
obj.badge= 0,
|
||||
obj.name=list.roleName
|
||||
}else if(list.roleName == '星油云站超级管理员'){
|
||||
}else if(list.roleName == '中品云站超级管理员'){
|
||||
obj.cuIcon = 'punch',
|
||||
obj.path= ' ',
|
||||
obj.color= 'blue',
|
||||
|
||||
@@ -3,21 +3,18 @@
|
||||
<cu-custom class="main-topbar bg-main-oil" bgColor="bg-main-oil">
|
||||
<block slot="content">星油云站</block>
|
||||
</cu-custom>
|
||||
<view class="bg-img margin flex padding-lg radius align-center text-center" :style="'background-image: url('+mainURL+'login-bg.png)'">
|
||||
<view class=" header_card bg-img margin flex padding-lg radius align-center text-center" >
|
||||
<view class="padding-lg margin text-center text-lg text-white w100">
|
||||
<text class="">
|
||||
油站工作人员绑定油站
|
||||
</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="pannel">
|
||||
<view class="bg-white margin padding radius ">
|
||||
<view class="cu-form-group radius " @tap="routerTo('/pages/login/posLogin/posLogin')">
|
||||
<view class="title mini-label text-black">已有账号登录</view>
|
||||
<view class="cuIcon-right">
|
||||
|
||||
</view>
|
||||
<view class="cuIcon-right"></view>
|
||||
</view>
|
||||
<!-- <view class="cu-form-group padding-top" @tap="routerTo('/pages/login/login')">
|
||||
<view class="title mini-label text-black">首次认证登录</view>
|
||||
@@ -25,7 +22,7 @@
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="margin text-center">
|
||||
<button class="cu-btn round bg-main-oil lg text-lg" open-type="getPhoneNumber"
|
||||
@@ -84,11 +81,11 @@
|
||||
if (res.code === 20000) {
|
||||
this.sessionKey = res.data.sessionKey
|
||||
uni.setStorageSync('openid', res.data.openId)
|
||||
uni.setStorageSync('unionid', res.data.unionId)
|
||||
uni.setStorageSync('unionid', res.data.unionId)
|
||||
if(_that.outType !== '1'){
|
||||
this.autoLogin()
|
||||
return
|
||||
}
|
||||
}
|
||||
} else if (res.code == 1002) {
|
||||
uni.showModal({
|
||||
title: '微信登录失败提醒',
|
||||
@@ -96,7 +93,7 @@
|
||||
})
|
||||
} else {
|
||||
// console.log('res', res.code)
|
||||
}
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.reLaunch({
|
||||
url: '/BagAuth/pages/login/boforeLogin/boforeLogin',
|
||||
@@ -126,7 +123,7 @@
|
||||
title: '您已拒绝授权手机号'
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
bindLoginByPhone(data, url) { //绑定用户手机号
|
||||
if (this.count < 1) {
|
||||
oilIdentityApi.bindLoginByPhonePersonal(data, url).then(res => {
|
||||
@@ -134,10 +131,10 @@
|
||||
this.loginSuccess(res)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
loginSuccess(res) {//这里是绑定登录
|
||||
if (res.data.authTokenDTO.loginFlag) {
|
||||
loginSuccess(res) {//这里是绑定登录
|
||||
if (res.data.authTokenDTO.loginFlag) {
|
||||
this.setStored(res)
|
||||
}
|
||||
},
|
||||
@@ -158,22 +155,17 @@
|
||||
let data={
|
||||
unionId:uni.getStorageSync('unionid'),
|
||||
openId:uni.getStorageSync('openid')
|
||||
}
|
||||
}
|
||||
console.log(data,'这里是自动登录data')
|
||||
oilIdentityApi.loginPersonal(data).then(res => { //微信自动登录
|
||||
console.log(res,'这里是自动登录res')
|
||||
if (res.data.authTokenDTO.loginFlag == true) {
|
||||
if (res.data.authTokenDTO.loginFlag == true) {
|
||||
this.setStored(res)
|
||||
}else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 存值本地 根据手机号获取其下的油站并且存储本地
|
||||
setStored(res){
|
||||
setStored(res){
|
||||
let user = res.data.authTokenDTO.loginUser,
|
||||
unionId = uni.getStorageSync('unionid'),
|
||||
openId = uni.getStorageSync('openid'),
|
||||
@@ -187,7 +179,7 @@
|
||||
}
|
||||
})
|
||||
}, 1000);
|
||||
uni.setStorageSync('user', user)
|
||||
uni.setStorageSync('user', user)
|
||||
uni.setStorage({
|
||||
key: 'Authorization',
|
||||
data: res.data.authTokenDTO.accessToken,
|
||||
@@ -234,20 +226,20 @@
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '未绑定油站请联系客服',
|
||||
icon: 'none',
|
||||
duration: 1500
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
nextStep() {
|
||||
if (this.oilSiteNo) {
|
||||
cloudSiteApi.verifyOilSite({
|
||||
oilSiteCode: this.oilSiteNo
|
||||
}).then(res => {
|
||||
}).then(res => {
|
||||
if (res.code === 20000) {
|
||||
//历史遗留代码---------------------------------
|
||||
// address: "安徽省合肥市庐阳区大杨镇"
|
||||
@@ -325,7 +317,7 @@
|
||||
this.toMain(nickName);
|
||||
},
|
||||
toMain(userName) {
|
||||
// this.login(userName)
|
||||
// this.login(userName)
|
||||
/**
|
||||
* 强制登录时使用reLaunch方式跳转过来
|
||||
* 返回首页也使用reLaunch方式
|
||||
@@ -350,6 +342,10 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.header_card{
|
||||
background-image: url('../../../static/img/header_card.png') !important;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.btnSize{
|
||||
font-size:60rpx;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<view class="page-content my-bg">
|
||||
<cu-custom class="main-topbar bg-main-oil" bgColor="bg-main-oil" :isBack="true">
|
||||
<block slot="content">绑定星油云站</block>
|
||||
<block slot="content">绑定中品云站</block>
|
||||
</cu-custom>
|
||||
<view class="bg-img margin flex padding-lg radius align-center text-center" :style="'background-image: url('+mainURL+'login-bg.png)'">
|
||||
<view class=" header_card bg-img margin flex padding-lg radius align-center text-center" >
|
||||
<view class="padding-lg margin text-center text-lg text-white w100">
|
||||
<text class="">
|
||||
油站工作人员绑定油站
|
||||
@@ -20,7 +20,7 @@
|
||||
</view>
|
||||
<view class="margin-left">
|
||||
<text class="cuIcon-infofill padding-right-xs text-sm oil-main-color"></text>
|
||||
<text class="text-sm">请确认您的手机号已添加为星油云站管理员账号</text>
|
||||
<text class="text-sm">请确认您的手机号已添加为中品云站管理员账号</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin-lg padding-lg bottom-bg">
|
||||
@@ -223,7 +223,10 @@
|
||||
background-size: contain;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.header_card{
|
||||
background-image: url('@/static/img/header_card.png') !important;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.bottom-bg {
|
||||
position: sticky;
|
||||
bottom: 50upx;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<template>
|
||||
<view class="page-content my-bg">
|
||||
<cu-custom class="main-topbar bg-main-oil" bgColor="bg-main-oil" :isBack="true">
|
||||
<block slot="content">星油云站</block>
|
||||
<block slot="content">中品云站</block>
|
||||
</cu-custom>
|
||||
<view class="bg-img margin flex padding-lg radius align-center text-center" :style="'background-image: url('+mainURL+'login-bg.png)'">
|
||||
<view class=" header_card bg-img margin flex padding-lg radius align-center text-center" >
|
||||
<view class="padding-lg margin text-center text-lg text-white w100">
|
||||
<text class>油站工作人员绑定油站</text>
|
||||
</view>
|
||||
@@ -56,7 +56,7 @@
|
||||
</view>
|
||||
<view class="text-left padding-xl padding-bottom padding-top bg-white">
|
||||
<view class="padding-bottom-sm">
|
||||
由于微信平台规则变更,现用户要关注 “星油云站” 公众号,才能登陆
|
||||
由于微信平台规则变更,现用户要关注 “中品云站” 公众号,才能登陆
|
||||
</view>
|
||||
<view class="padding-bottom-sm ">
|
||||
之前已经关注过的小部分用户,可能需要重新关注才能登陆,即取消关注,再关注
|
||||
@@ -65,7 +65,7 @@
|
||||
<view class="text-center" @longpress="navToQr" @tap="toQr">
|
||||
<view class=" img-view">
|
||||
<image height="200" src="https://xingka51.oss-cn-hangzhou.aliyuncs.com/applets/cloudSite/yunzhan.jpg" mode="widthFix"></image>
|
||||
星油云站公众号
|
||||
中品云站公众号
|
||||
</view>
|
||||
</view>
|
||||
<view class="text-center padding-top padding-bottom">
|
||||
@@ -653,6 +653,10 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.header_card{
|
||||
background-image: url('../../../static/img/header_card.png') !important;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.textshowCheck{
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<view class="text-center logo-part">
|
||||
<view class="cu-avatar xl text-sl" :style="'background-image: url('+mainURL+'qr-icon.png)'"></view>
|
||||
<view class>
|
||||
<text class="text-lg">星油云站</text>
|
||||
<text class="text-lg">中品云站</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user