From 8bb1cdfd3913fca3feac636663c16ca749bbcb3a Mon Sep 17 00:00:00 2001 From: Gdpao <1341331954@qq.com> Date: Wed, 29 Jul 2020 15:04:57 +0800 Subject: [PATCH] gyhup --- .gitignore | 3 +- common/store/index.js | 27 ++++++- manifest.json | 20 ++++- pageA/login/login.vue | 56 +++++++------ pageB/photo/index.vue | 8 +- pageE/setting/Index.vue | 171 ++++++++++++++++++++-------------------- 6 files changed, 163 insertions(+), 122 deletions(-) diff --git a/.gitignore b/.gitignore index bac9b9b..d033cc7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vscode /node_modules/* unpackage -manifest.json \ No newline at end of file +manifest.json +deming.keystore \ No newline at end of file diff --git a/common/store/index.js b/common/store/index.js index 9ddea79..333b9b2 100644 --- a/common/store/index.js +++ b/common/store/index.js @@ -1,5 +1,9 @@ import Vue from 'vue' import Vuex from 'vuex' +import { + mapMutations +} from 'vuex'; + Vue.use(Vuex) const store = new Vuex.Store({ @@ -12,6 +16,8 @@ const store = new Vuex.Store({ pintuangroup_headid: '', // 拼团团长id 有为开团 无为参团 groupbuyInfo: {}, // 秒杀详情 loadmore: {}, // 下拉加载返回的数据 + hasLogin: false, // 登录状态 + token: "" // 储存token }, getters: { getOrderAddress(state) { @@ -25,6 +31,23 @@ const store = new Vuex.Store({ } }, mutations: { + // 登录 + loginIn(state, token) { + state.hasLogin = true; + state.token = token; + uni.setStorage({ + key: "token", + data: token + }) + }, + // 退出登录 + logout(state) { + state.hasLogin = false; + state.token = ""; + uni.removeStorage({ + key: "token" + }) + }, setOrderType(state, type) { state.orderType = type; }, @@ -48,7 +71,7 @@ const store = new Vuex.Store({ }, setLoadMore(state, info) { state.loadmore = info; - }, + } } }) -export default store; \ No newline at end of file +export default store; diff --git a/manifest.json b/manifest.json index 9886ad2..9486019 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "deming", - "appid" : "__UNI__62A680B", + "appid" : "__UNI__EBFF00A", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", @@ -18,7 +18,12 @@ }, /* 模块配置 */ "modules" : { - "OAuth" : {} + "OAuth" : {}, + "Share" : {}, + "Push" : {}, + "Maps" : {}, + "LivePusher" : {}, + "Payment" : {} }, /* 应用发布信息 */ "distribute" : { @@ -37,6 +42,7 @@ "", "", "", + "", "", "", "", @@ -46,6 +52,7 @@ "", "", "", + "", "" ] }, @@ -58,7 +65,14 @@ "qq" : { "appid" : "101884160" } - } + }, + "maps" : { + "amap" : { + "appkey_ios" : "eafe430aa31fa033dcf45a0e87032653", + "appkey_android" : "8045e8a4cd6d544690c786265b248f91" + } + }, + "share" : {} } } }, diff --git a/pageA/login/login.vue b/pageA/login/login.vue index cf2b78b..5b71542 100644 --- a/pageA/login/login.vue +++ b/pageA/login/login.vue @@ -8,11 +8,11 @@ 手机登录 - + - + @@ -22,7 +22,8 @@ 我已详细阅读并同意 - {{item.text}} + {{item.text}} + + - {{login}} + {{login}} @@ -50,7 +51,7 @@ 微信登录 - 取消 + 取消 @@ -60,6 +61,7 @@ \ No newline at end of file + -- 2.47.2