From 0a449dd4691c8d04406a6b16803d8c202a7f241c Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Thu, 28 Jan 2021 18:06:04 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=98add=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 24 ++ src/pages/mine_trainee/mine_trainee.vue | 123 ++++++ src/pages/site/confirm/confirm.vue | 261 ++++++++++++ src/pages/site/manage/manage.vue | 706 ++++++++++++++++++++++++++++++++ src/pages/time/select/select.vue | 278 +++++++++++++ src/store/actions.js | 22 +- src/store/index.js | 74 ++-- src/store/mutations.js | 18 +- 8 files changed, 1449 insertions(+), 57 deletions(-) create mode 100644 src/pages/mine_trainee/mine_trainee.vue create mode 100644 src/pages/site/confirm/confirm.vue create mode 100644 src/pages/site/manage/manage.vue create mode 100644 src/pages/time/select/select.vue diff --git a/src/pages.json b/src/pages.json index 10ba51b..35b09b5 100644 --- a/src/pages.json +++ b/src/pages.json @@ -132,6 +132,30 @@ } }, { + "path": "pages/mine_trainee/mine_trainee", + "style": { + "navigationBarTitleText": "我的学员" + } + }, + { + "path": "pages/site/manage/manage", + "style": { + "navigationBarTitleText": "选择场次" + } + }, + { + "path": "pages/site/confirm/confirm", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { + "path": "pages/time/select/select", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { "path": "pages/login/login", "style": { } diff --git a/src/pages/mine_trainee/mine_trainee.vue b/src/pages/mine_trainee/mine_trainee.vue new file mode 100644 index 0000000..abdbf58 --- /dev/null +++ b/src/pages/mine_trainee/mine_trainee.vue @@ -0,0 +1,123 @@ + + + + + \ No newline at end of file diff --git a/src/pages/site/confirm/confirm.vue b/src/pages/site/confirm/confirm.vue new file mode 100644 index 0000000..deccc8f --- /dev/null +++ b/src/pages/site/confirm/confirm.vue @@ -0,0 +1,261 @@ + + + + + \ No newline at end of file diff --git a/src/pages/site/manage/manage.vue b/src/pages/site/manage/manage.vue new file mode 100644 index 0000000..c973341 --- /dev/null +++ b/src/pages/site/manage/manage.vue @@ -0,0 +1,706 @@ + + + + + \ No newline at end of file diff --git a/src/pages/time/select/select.vue b/src/pages/time/select/select.vue new file mode 100644 index 0000000..e768a80 --- /dev/null +++ b/src/pages/time/select/select.vue @@ -0,0 +1,278 @@ + + + + + \ No newline at end of file diff --git a/src/store/actions.js b/src/store/actions.js index 73e1a6d..8ce589f 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -2,15 +2,15 @@ import { servers } from '../js/server'; import { API } from '../js/api'; export default { - getBrandInfo({commit, state}){ - return servers.get({ - url: API.calc, - data: {}, - failMsg: '加载数据失败!' - }) - .then(res=>{ - commit('setBrandInfo',res); - return res; - }) - } + // getBrandInfo({commit, state}){ + // return servers.get({ + // url: API.calc, + // data: {}, + // failMsg: '加载数据失败!' + // }) + // .then(res=>{ + // commit('setBrandInfo',res); + // return res; + // }) + // } } \ No newline at end of file diff --git a/src/store/index.js b/src/store/index.js index a776071..cb15e5f 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2,53 +2,53 @@ import Vue from 'vue'; import Vuex from 'vuex'; import mutations from './mutations'; import actions from './actions'; -import device from './device'; +// import device from './device'; Vue.use(Vuex); export default new Vuex.Store({ modules: { - device + // device }, state: { - // #ifdef H5 - APPID: uni.getAccountInfoSync().miniProgram.appId, - // #endif - brandInfo: { - brand: {} - }, - permissionObj: { // 权限代号对应 - '1001': '营业额', - '1002': '收款记录', - '1003': '经营分析', - '1004': '预约订单', - '1005': '会员卡订单', - '1006': '积分订单', - '1007': '员工管理', - '1008': '查询核销', - '1009': '场地管理', - '1010': '设备管理', - }, + // // #ifdef H5 + // APPID: uni.getAccountInfoSync().miniProgram.appId, + // // #endif + // brandInfo: { + // brand: {} + // }, + // permissionObj: { // 权限代号对应 + // '1001': '营业额', + // '1002': '收款记录', + // '1003': '经营分析', + // '1004': '预约订单', + // '1005': '会员卡订单', + // '1006': '积分订单', + // '1007': '员工管理', + // '1008': '查询核销', + // '1009': '场地管理', + // '1010': '设备管理', + // }, - // 场地占用提交页面信息 - occupyInfo: { - storeInfo: {}, // 店铺信息 - dateInfo: {}, // 时间信息 - typeInfo: {}, // 球场类型 - venueList: [], // 选择场地列表 - } + // // 场地占用提交页面信息 + // occupyInfo: { + // storeInfo: {}, // 店铺信息 + // dateInfo: {}, // 时间信息 + // typeInfo: {}, // 球场类型 + // venueList: [], // 选择场地列表 + // } }, mutations, actions, getters: { - permissionArr: state=>{ - let _arr = [], _obj = state.permissionObj; - for(let key in _obj){ - _arr.push({ - key, - name: _obj[key], - }) - } - return _arr; - } + // permissionArr: state=>{ + // let _arr = [], _obj = state.permissionObj; + // for(let key in _obj){ + // _arr.push({ + // key, + // name: _obj[key], + // }) + // } + // return _arr; + // } } }); diff --git a/src/store/mutations.js b/src/store/mutations.js index 99d4083..8c34132 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -2,14 +2,14 @@ export default { - // 设置品牌信息 - setBrandInfo(state, brandInfo){ - // console.log(storeInfo,'-----') - state.brandInfo = brandInfo - }, + // // 设置品牌信息 + // setBrandInfo(state, brandInfo){ + // // console.log(storeInfo,'-----') + // state.brandInfo = brandInfo + // }, - // 场地占用信息 - setOccupyInfo(state, _occupyInfo){ - state.occupyInfo = _occupyInfo; - } + // // 场地占用信息 + // setOccupyInfo(state, _occupyInfo){ + // state.occupyInfo = _occupyInfo; + // } } \ No newline at end of file