取消用户信息授权
This commit is contained in:
parent
d49728a139
commit
ddca27c8ed
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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') {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 => {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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
File diff suppressed because one or more lines are too long
|
|
@ -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') {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue