取消用户信息授权

This commit is contained in:
qiaocl 2023-11-02 15:23:07 +08:00
parent d49728a139
commit ddca27c8ed
49 changed files with 550 additions and 466 deletions

View File

@ -69,7 +69,10 @@
handleBluetoothClick() { handleBluetoothClick() {
let that = this let that = this
if (!that.token) { if (!that.token) {
that.$store.commit("changeUserLogin", true) uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
uni.openBluetoothAdapter({ uni.openBluetoothAdapter({
@ -92,7 +95,10 @@
}, },
// //
handleLogin() { handleLogin() {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
}, },
handleDrawer() { handleDrawer() {
this.$store.commit("changeDrawe", true); this.$store.commit("changeDrawe", true);

View File

@ -265,7 +265,10 @@
changeMonth(type) { changeMonth(type) {
let that = this let that = this
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
if (type == 'pre') { if (type == 'pre') {

View File

@ -41,7 +41,10 @@
}, },
methods: { methods: {
onTap() { onTap() {
this.$store.commit("changeUserLogin", false); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
}, },
getUserInfo() { getUserInfo() {
let that = this let that = this

View File

@ -110,8 +110,8 @@
phone: that.phone, phone: that.phone,
tenantId: uni.getStorageSync('tenantid'), tenantId: uni.getStorageSync('tenantid'),
sessionId: uni.getStorageSync('sessionid'), sessionId: uni.getStorageSync('sessionid'),
name: that.infoRes.name, name: "",
headImg: that.infoRes.headimg, headImg: "",
code: that.code, code: that.code,
isvrcode: true, isvrcode: true,
}).then(res => { }).then(res => {

View File

@ -142,7 +142,10 @@
handlePK() { handlePK() {
let that = this let that = this
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
if (that.isActive.length != 2) { if (that.isActive.length != 2) {

View File

@ -110,7 +110,10 @@
let that = this let that = this
that.devices = [] that.devices = []
if (!that.token) { if (!that.token) {
that.$store.commit("changeUserLogin", true) uni.redirectTo({
url: '/pageTwo/login/login?url=active' + '&code=' + that.code
})
// that.$store.commit("changeUserLogin", true)
return return
} }
uni.openBluetoothAdapter({ uni.openBluetoothAdapter({

View File

@ -373,7 +373,10 @@
handleBluetoothClick() { handleBluetoothClick() {
let that = this let that = this
if (!that.token) { if (!that.token) {
that.$store.commit("changeUserLogin", true) uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
uni.openBluetoothAdapter({ uni.openBluetoothAdapter({
@ -416,7 +419,10 @@
clickTool(ind) { clickTool(ind) {
let that = this let that = this
if (!that.token) { if (!that.token) {
that.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
if (ind == 0) { if (ind == 0) {
@ -472,7 +478,10 @@
}, },
// //
handleLogin() { handleLogin() {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
}, },
handleDrawer() { handleDrawer() {
this.$store.commit("changeDrawe", true); this.$store.commit("changeDrawe", true);

View File

@ -137,7 +137,10 @@
methods: { methods: {
handleLogin() { handleLogin() {
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
}, },
@ -170,7 +173,10 @@
handleClick(ind) { handleClick(ind) {
let that = this let that = this
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
if (ind == 'adult' && that.configBox.referappid) { if (ind == 'adult' && that.configBox.referappid) {
@ -193,7 +199,10 @@
}, },
navTo(url) { navTo(url) {
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
uni.navigateTo({ uni.navigateTo({
@ -202,7 +211,10 @@
}, },
handleEditClick() { handleEditClick() {
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
this.$store.commit("changeEdit", true); this.$store.commit("changeEdit", true);

View File

@ -35,9 +35,9 @@
</view> </view>
<view class="blockC"> <view class="blockC">
<view v-if="lineData&&lineData.categories.length&&handTrue"> <view v-if="lineData&&lineData.categories.length&&handTrue">
<qiun-data-charts type="area" :chartData="lineData" :canvas2d="true" canvasId="charts09" :cHeight="480" <qiun-data-charts type="area" :chartData="lineData" :canvas2d="true" canvasId="charts09"
:cWidth="680" :animation="false" :opts="{enableScroll:true,xAxis:{scrollShow:false,itemCount:3}}" :cHeight="480" :cWidth="680" :animation="false"
:ontouch="true" /> :opts="{enableScroll:true,xAxis:{scrollShow:false,itemCount:3}}" :ontouch="true" />
</view> </view>
<view class="nolist" v-else> <view class="nolist" v-else>
<icon class="iconfont icon-zanwu"></icon> <icon class="iconfont icon-zanwu"></icon>
@ -199,7 +199,10 @@
handAllTime(ind) { handAllTime(ind) {
let that = this let that = this
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
this.active = ind this.active = ind
@ -212,7 +215,10 @@
}, },
handleClick(ind) { handleClick(ind) {
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
})
// that.$store.commit("changeUserLogin", true)
return return
} }
if (ind == 0) { if (ind == 0) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -415,7 +415,10 @@ var _default2 = {
changeMonth: function changeMonth(type) { changeMonth: function changeMonth(type) {
var that = this; var that = this;
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
if (type == 'pre') { if (type == 'pre') {

View File

@ -143,7 +143,10 @@ var _default = {
computed: _objectSpread({}, (0, _vuex.mapState)(["user", "isLogin"])), computed: _objectSpread({}, (0, _vuex.mapState)(["user", "isLogin"])),
methods: { methods: {
onTap: function onTap() { onTap: function onTap() {
this.$store.commit("changeUserLogin", false); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
}, },
getUserInfo: function getUserInfo() { getUserInfo: function getUserInfo() {
var that = this; var that = this;

View File

@ -199,8 +199,8 @@ var _default = {
phone: that.phone, phone: that.phone,
tenantId: uni.getStorageSync('tenantid'), tenantId: uni.getStorageSync('tenantid'),
sessionId: uni.getStorageSync('sessionid'), sessionId: uni.getStorageSync('sessionid'),
name: that.infoRes.name, name: "",
headImg: that.infoRes.headimg, headImg: "",
code: that.code, code: that.code,
isvrcode: true isvrcode: true
}).then(function (res) { }).then(function (res) {

View File

@ -291,7 +291,10 @@ var _default = {
handlePK: function handlePK() { handlePK: function handlePK() {
var that = this; var that = this;
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
if (that.isActive.length != 2) { if (that.isActive.length != 2) {

View File

@ -282,7 +282,10 @@ var _default = {
var that = this; var that = this;
that.devices = []; that.devices = [];
if (!that.token) { if (!that.token) {
that.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login?url=active' + '&code=' + that.code
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
uni.openBluetoothAdapter({ uni.openBluetoothAdapter({

View File

@ -423,7 +423,10 @@ var _default = {
var _this3 = this; var _this3 = this;
var that = this; var that = this;
if (!that.token) { if (!that.token) {
that.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
uni.openBluetoothAdapter({ uni.openBluetoothAdapter({
@ -466,7 +469,10 @@ var _default = {
clickTool: function clickTool(ind) { clickTool: function clickTool(ind) {
var that = this; var that = this;
if (!that.token) { if (!that.token) {
that.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
if (ind == 0) { if (ind == 0) {
@ -520,7 +526,10 @@ var _default = {
}, },
// 登录 // 登录
handleLogin: function handleLogin() { handleLogin: function handleLogin() {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
}, },
handleDrawer: function handleDrawer() { handleDrawer: function handleDrawer() {
this.$store.commit("changeDrawe", true); this.$store.commit("changeDrawe", true);

View File

@ -182,7 +182,10 @@ var _default = {
methods: { methods: {
handleLogin: function handleLogin() { handleLogin: function handleLogin() {
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
}, },
@ -215,7 +218,10 @@ var _default = {
handleClick: function handleClick(ind) { handleClick: function handleClick(ind) {
var that = this; var that = this;
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
if (ind == 'adult' && that.configBox.referappid) { if (ind == 'adult' && that.configBox.referappid) {
@ -238,7 +244,10 @@ var _default = {
}, },
navTo: function navTo(url) { navTo: function navTo(url) {
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
uni.navigateTo({ uni.navigateTo({
@ -247,7 +256,10 @@ var _default = {
}, },
handleEditClick: function handleEditClick() { handleEditClick: function handleEditClick() {
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
this.$store.commit("changeEdit", true); this.$store.commit("changeEdit", true);

View File

@ -294,7 +294,10 @@ var _default = {
handAllTime: function handAllTime(ind) { handAllTime: function handAllTime(ind) {
var that = this; var that = this;
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
this.active = ind; this.active = ind;
@ -307,7 +310,10 @@ var _default = {
}, },
handleClick: function handleClick(ind) { handleClick: function handleClick(ind) {
if (!uni.getStorageSync('token')) { if (!uni.getStorageSync('token')) {
this.$store.commit("changeUserLogin", true); uni.redirectTo({
url: '/pageTwo/login/login'
});
// that.$store.commit("changeUserLogin", true)
return; return;
} }
if (ind == 0) { if (ind == 0) {