Compare commits
8 Commits
fea1c29b96
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9378ee3b28 | |||
|
|
be6bc9c046 | ||
| 69357846e7 | |||
|
|
843ae242bc | ||
|
|
3c8c985cce | ||
|
|
50ffdddce6 | ||
| a1ebcaf789 | |||
|
|
767f164e59 |
@@ -1,17 +1,24 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
const service_name ='oil-identity'
|
const service_name ='xkhl-identity'
|
||||||
const group_name ='weChatCloudAuthorization'
|
const group_name ='unionAuth'
|
||||||
const Customer_name = 'oilCustomerChannelRelation'
|
const Customer_name = 'oilCustomerChannelRelation'
|
||||||
const WchatLogin_name ='weChatCloudAuthorization'
|
const WchatLogin_name ='weChatCloudAuthorization'
|
||||||
export default{
|
export default{
|
||||||
// 新登录接口 手机密码登录
|
// 新登录接口 手机密码登录
|
||||||
loginByPhonePwd (data) {
|
loginByPhonePwd (data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/${service_name}/${group_name}/loginByPhonePwd`,
|
url: `/${service_name}/${group_name}/loginPwd`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data:data
|
data:data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 新登录接口 手机密码登录
|
||||||
|
logout () {
|
||||||
|
return request({
|
||||||
|
url: `/${service_name}/${group_name}/logout`,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
sendCode(code){
|
sendCode(code){
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
const service_name ='oil-user'
|
const service_name ='xkhl-user'
|
||||||
const group_name ='oilCustomerChannelRelation'
|
const group_name ='oilCustomerChannelRelation'
|
||||||
const change_phone ='sysCustomerInfo'
|
const change_phone ='sysCustomerInfo'
|
||||||
export default{
|
export default{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "星油云站",
|
"name" : "星油云站",
|
||||||
"appid" : "__UNI__EA8D131",
|
"appid" : "__UNI__F1ED4B9",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
|
|||||||
@@ -53,6 +53,8 @@
|
|||||||
frozen: false, // 验证码冷却时间
|
frozen: false, // 验证码冷却时间
|
||||||
auth: {},
|
auth: {},
|
||||||
verifyCodeToken:'',
|
verifyCodeToken:'',
|
||||||
|
pwd:"",
|
||||||
|
authpwd:"",
|
||||||
loginUser: uni.getStorageSync('loginUser')
|
loginUser: uni.getStorageSync('loginUser')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="page-content " :class="(PageCur=='home'||PageCur=='scan')?'my-bg':''">
|
<view class="page-content " :class="(PageCur=='home'||PageCur=='scan')?'my-bg':''">
|
||||||
<!-- <uni-nav-bar left-icon="back" left-text="返回" right-text="菜单" title="导航栏组件"></uni-nav-bar> -->
|
<!-- <uni-nav-bar left-icon="back" left-text="返回" right-text="菜单" title="导航栏组件"></uni-nav-bar> -->
|
||||||
<home ref='homecheck' v-if="PageCur=='home'||PageCur=='scan'" :user-account="userAccount" @changMenus='changMenus' :site="userAccount" :menusList = 'menusList' :checkUser = 'checkUser'></home>
|
<home ref='homecheck' v-if="PageCur==='home'||PageCur==='scan'" :user-account="userAccount" @changMenus='changMenus' :site="userAccount" :menusList = 'menusList' :checkUser = 'checkUser'></home>
|
||||||
<setup v-if="PageCur=='setup'"></setup>
|
<setup v-if="PageCur=='setup'"></setup>
|
||||||
<view class="bottom-view">
|
<view class="bottom-view">
|
||||||
<view class="padding-top radius shadow bottom-bar-fixed">
|
<view class="padding-top radius shadow bottom-bar-fixed">
|
||||||
@@ -134,23 +134,23 @@
|
|||||||
this.menusList =data
|
this.menusList =data
|
||||||
},
|
},
|
||||||
longiCheck(){
|
longiCheck(){
|
||||||
let userInfo = uni.getStorageSync('loginUser'),
|
let userInfo = uni.getStorageSync('loginUser')
|
||||||
_that =this
|
const _that = this
|
||||||
//console.log(userInfo)
|
//console.log(userInfo)
|
||||||
oliUserApi.getByPhone(userInfo.userPhone).then((res)=>{
|
oliUserApi.getByPhone(userInfo.userPhone).then((res)=>{
|
||||||
//console.log('调用')
|
//console.log('调用')
|
||||||
if(res.code == 20000){
|
if(res.code == 20000){
|
||||||
_that.checkList = 'show'
|
|
||||||
_that.oliList = res.data
|
_that.oliList = res.data
|
||||||
|
_that.checkList = 'show'
|
||||||
_that.changeChannel.username = _that.loginUser.userPhone
|
_that.changeChannel.username = _that.loginUser.userPhone
|
||||||
_that.changeChannel.unionId = uni.getStorageSync('unionId')
|
_that.changeChannel.unionId = uni.getStorageSync('unionId')
|
||||||
|
this.$refs.homecheck.oliList = res.data
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'请求失败,请稍后再试',
|
title:'请求失败,请稍后再试',
|
||||||
icon:'none'
|
icon:'none'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
Splicing(list){
|
Splicing(list){
|
||||||
|
|||||||
@@ -164,6 +164,11 @@
|
|||||||
console.log(res,'这里是自动登录res')
|
console.log(res,'这里是自动登录res')
|
||||||
if (res.data.authTokenDTO.loginFlag == true) {
|
if (res.data.authTokenDTO.loginFlag == true) {
|
||||||
this.setStored(res)
|
this.setStored(res)
|
||||||
|
}else {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: res.data.msg
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<view class="bg-white margin padding radius shadow-warp">
|
<view class="bg-white margin padding radius shadow-warp">
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title mini-label text-black">手机号</view>
|
<view class="title mini-label text-black">手机号</view>
|
||||||
<input type="number" v-model="auth.phone" placeholder="请输入手机号" name="input" @blur="bulrInput" />
|
<input type="number" v-model="auth.phone" placeholder="请输入手机号" name="input" />
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group padding-top-sm" v-if="showRandom">
|
<view class="cu-form-group padding-top-sm" v-if="showRandom">
|
||||||
<view class="title text-black mini-label">验证码</view>
|
<view class="title text-black mini-label">验证码</view>
|
||||||
@@ -464,9 +464,12 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
sendMsg() {
|
sendMsg() {
|
||||||
if(!this.checkUser){
|
|
||||||
return
|
console.log("发送验证码",this.checkUser)
|
||||||
}
|
|
||||||
|
// if(!this.checkUser){
|
||||||
|
// return
|
||||||
|
// }
|
||||||
if (!this.frozen) {
|
if (!this.frozen) {
|
||||||
if (this.auth.phone) {
|
if (this.auth.phone) {
|
||||||
const data2 = {
|
const data2 = {
|
||||||
|
|||||||
@@ -76,6 +76,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import cloudSiteApi from '@/api/cloud-site.js'
|
import cloudSiteApi from '@/api/cloud-site.js'
|
||||||
|
import oilIdentityApi from "@/api/oil-identity";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -98,13 +99,22 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async loginOut() {
|
loginOut() {
|
||||||
// await cloudSiteApi.logout();
|
oilIdentityApi.logout().then(res => {
|
||||||
|
if (res.code===20000){
|
||||||
|
uni.showToast({
|
||||||
|
title: '退出登录成功',
|
||||||
|
icon: 'success',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
setTimeout(()=>{
|
||||||
uni.clearStorage()
|
uni.clearStorage()
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/boforeLogin/boforeLogin?type=1' //
|
url: '/pages/login/boforeLogin/boforeLogin?type=1'
|
||||||
|
})
|
||||||
|
},2000)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
getInfo() {
|
getInfo() {
|
||||||
this.userInfo = uni.getStorageSync('loginUser')
|
this.userInfo = uni.getStorageSync('loginUser')
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import utils from '@/utils/encode'
|
|||||||
//42 洛超 /29 孙志华 /40 阿浩
|
//42 洛超 /29 孙志华 /40 阿浩
|
||||||
// 测试日日顺时需要连阿浩
|
// 测试日日顺时需要连阿浩
|
||||||
|
|
||||||
const testUrl = 'http://192.168.26:38080'
|
const testUrl = 'http://192.168.20:38080'
|
||||||
// const productionUrl = 'https://www.51xingka.net/oilApp' // 生产,加密 old
|
// const productionUrl = 'https://www.51xingka.net/oilApp' // 生产,加密 old
|
||||||
// const productionUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
// const productionUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
||||||
// const productionUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
// const productionUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
||||||
@@ -212,7 +212,7 @@ service.interceptors.response.use(
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请求失败!',
|
title: res.msg?res.msg:'请求失败!',
|
||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user