submit
This commit is contained in:
parent
406b78cc10
commit
c807185db7
3
App.vue
3
App.vue
@ -3,12 +3,11 @@ import tabBar from "./util/tabbar";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
|
|
||||||
// uni.setStorageSync("token",'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6MCwiT3BlbklkIjoib01qYXY2NjlHMEtKcFlKNE1qWGhyNEh5cHhBUSIsIk5pY2tOYW1lIjoi5YiY5bCP5benIiwiVGVsTnVtIjoiMTUyNjI0ODE0OTgiLCJBdmF0YXIiOiJodHRwczovL2NkbnMuZm9udHJlZS5jbi9pbnZlbnRvcnkvZmlsZXMvaW1nL2MzNWQ1ODVhLTVjNTMtMTFlZS04OGRmLTAyNDJhYzEzMDAyNS5qcGciLCJJRE51bSI6IjMyMDMyNDE5OTAwNTA5NjY0WCIsImV4cCI6MTY5NTgxMTk4NCwiaXNzIjoibWFsbCJ9.QDDAiN5xFtL7BelKfgbnej_nO52T_UxQ7GFicHnQA2U')
|
// uni.setStorageSync("token",'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6MCwiT3BlbklkIjoib01qYXY2NjlHMEtKcFlKNE1qWGhyNEh5cHhBUSIsIk5pY2tOYW1lIjoi5YiY5bCP5benIiwiVGVsTnVtIjoiMTUyNjI0ODE0OTgiLCJBdmF0YXIiOiJodHRwczovL2NkbnMuZm9udHJlZS5jbi9pbnZlbnRvcnkvZmlsZXMvaW1nL2MzNWQ1ODVhLTVjNTMtMTFlZS04OGRmLTAyNDJhYzEzMDAyNS5qcGciLCJJRE51bSI6IjMyMDMyNDE5OTAwNTA5NjY0WCIsImV4cCI6MTY5NTgxMTk4NCwiaXNzIjoibWFsbCJ9.QDDAiN5xFtL7BelKfgbnej_nO52T_UxQ7GFicHnQA2U')
|
||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
uni.setStorageSync("tabBar", tabBar);
|
uni.setStorageSync("tabBar", tabBar);
|
||||||
},
|
},
|
||||||
onShow: function(e) {
|
onShow: function() {
|
||||||
console.log("App Show");
|
console.log("App Show");
|
||||||
},
|
},
|
||||||
onHide: function() {
|
onHide: function() {
|
||||||
|
@ -29,14 +29,11 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import tabbar from "../../components/uiq-tabbar/uiq-tabbar.vue";
|
import tabbar from "../../components/uiq-tabbar/uiq-tabbar.vue";
|
||||||
import tabBarJs from "../../util/tabbar";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "index",
|
name: "index",
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
uni.hideTabBar();
|
||||||
uni.setStorageSync("tabBar", tabBarJs);
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getAddress();
|
this.getAddress();
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import http from "@/http/api";
|
import http from "@/http/api";
|
||||||
|
import tabBarJs from "../../util/tabbar";
|
||||||
export default {
|
export default {
|
||||||
name: "set-up",
|
name: "set-up",
|
||||||
data() {
|
data() {
|
||||||
@ -116,6 +117,7 @@ export default {
|
|||||||
if (res.status === 0) {
|
if (res.status === 0) {
|
||||||
this.$common.msgToast('注销成功');
|
this.$common.msgToast('注销成功');
|
||||||
uni.clearStorageSync();
|
uni.clearStorageSync();
|
||||||
|
uni.setStorageSync("tabBar", tabBarJs);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user