diff --git a/apis/index.js b/apis/index.js index ec79c85..dd9661c 100644 --- a/apis/index.js +++ b/apis/index.js @@ -10,6 +10,7 @@ import store from '@/store' // 基础配置 const config = { apiUrl : 'http://api.ahxh.shangkelian.cn/api/', + apiUrls : 'http://api.ahxh.shangkelian.cn', timeout : 60000 } @@ -154,5 +155,6 @@ const loginHint = () => { export { request, - uploading + uploading, + config } diff --git a/apis/interfaces/mine.js b/apis/interfaces/mine.js index d154f62..e838a28 100644 --- a/apis/interfaces/mine.js +++ b/apis/interfaces/mine.js @@ -69,7 +69,7 @@ const browsers = (page) => { // 修改用户头像或昵称 const resetUserInfo= (data) => { return request({ - url: 'user/'+data.key, + url: 'user/setting/'+data.key, method: 'PUT', data:{ value:data.value diff --git a/apis/interfaces/news.js b/apis/interfaces/news.js new file mode 100644 index 0000000..644d82f --- /dev/null +++ b/apis/interfaces/news.js @@ -0,0 +1,53 @@ +/** + * Web-zdx + * moduleName: 通知消息列表 + */ + +import {request} from '../index.js' + +// 消息列表 +const notificationsType = () => { + return request({ + url: 'notifications', + method: 'GET' + }) +} +// 根据type 获取具体消息列表 +const notificationsList = (type,data) => { + return request({ + url: 'notifications/'+type+'/list', + method: 'GET', + data:data + }) +} +// 根据type 全部已读 +const notificationsReaded = (type) => { + return request({ + url: 'notifications/'+type, + method: 'PUT' + }) +} +// 根据type 全部已读 +const notificationsDelete= () => { + return request({ + url: 'notifications', + method: 'DELETE' + }) +} +// 根据消息id获取消息详情 +const notificationsDetail= (id) => { + return request({ + url: 'notifications/'+id, + method: 'get' + }) +} + + + +export { + notificationsType, + notificationsList, + notificationsDetail, + notificationsReaded, + notificationsDelete +} diff --git a/apis/interfaces/setting.js b/apis/interfaces/setting.js index 956163f..f903b7c 100644 --- a/apis/interfaces/setting.js +++ b/apis/interfaces/setting.js @@ -25,7 +25,7 @@ const wechatbind = (data) => { // 修改用户头像或昵称 const resetUserInfo = (data) => { return request({ - url: 'user/' + data.key, + url: 'user/setting/' + data.key, method: 'PUT', data: { value: data.value @@ -71,6 +71,13 @@ const aboutUs = () => { url: 'articles/about' }) } +// 获取企业认证状态 -1.未认证,0.审核中,1.审核通过,2.驳回 +const companyStatus = () => { + return request({ + url: 'companies/applies/query' + }) +} + export { login, @@ -80,5 +87,6 @@ export { agreementLogin, resetUserInfo, getUserSettingInfo, - aboutUs + aboutUs, + companyStatus } diff --git a/apis/interfaces/wallet.js b/apis/interfaces/wallet.js new file mode 100644 index 0000000..b383342 --- /dev/null +++ b/apis/interfaces/wallet.js @@ -0,0 +1,159 @@ + +/** + * Web唐明明 + * 匆匆数载恍如梦,岁月迢迢华发增。 + * 碌碌无为枉半生,一朝惊醒万事空。 + * moduleName: 钱包 + */ + +import {request} from '../index.js' + +// 导出助记词 +const seed = () => { + return request({ + url: 'chain/safe/seed' + }) +} + +const hash = (data) => { + return request({ + url: 'chain/wallet/hash', + method: 'POST', + data: data + }) +} + +// 收款码 +const code = () => { + return request({ + url: 'chain/account/code' + }) +} + +// 原石余额 +const sum = () => { + return request({ + url: 'chain/account/balance' + }) +} + +// 原石价格 +const price = () => { + return request({ + url: 'nodes/price' + }) +} + +// 账户记录 +const logs = (data) => { + return request({ + url: 'chain/account/logs', + data: data + }) +} + +// 设置安全密码 +const security = (data) => { + return request({ + url: 'chain/safe/security', + method: 'POST', + data + }) +} + +// 转账 +const transfer = (data) => { + return request({ + url: 'chain/account/transfer', + method: 'POST', + data + }) +} + +// 钱包私钥 +const privatekey = (code) => { + return request({ + url : "chain/safe/private_key", + data: { + code + } + }) +} + +// 获取可提现信息 +const withdraw = () => { + return request({ + url : "withdraw" + }) +} + +// 提现记录 +const withdrawLogs = (data) => { + return request({ + url : "withdraw/logs", + data:data + }) +} + +// 提现 +const withdrawDo = (data) => { + return request({ + url : "withdraw", + method: 'POST', + data:data + }) +} + +// 验证支付密码是否正确 +const securityCheck = (password) => { + return request({ + url : "chain/safe/security/check", + method: 'POST', + data:{ + code : password, + } + }) +} + +// 修改密码 +const securityReset = (data) => { + return request({ + url : "chain/safe/security", + method: 'PUT', + data:data + }) +} + +// 提现服务条款 +const cmsWithdraw = () => { + return request({ + url : "cms/withdraw" + }) +} + +// 私钥规则 +const keyrules = () => { + return request({ + url: 'cms/keyrules' + }) +} + +export { + seed, + hash, + code, + sum, + price, + logs, + security, + transfer, + privatekey, + withdraw, + withdrawLogs, + withdrawDo, + securityCheck, + securityReset, + cmsWithdraw, + keyrules +} + diff --git a/components/no-list-components/index.vue b/components/no-list-components/index.vue new file mode 100644 index 0000000..85d597f --- /dev/null +++ b/components/no-list-components/index.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/components/numberJpan/numberJpan.vue b/components/numberJpan/numberJpan.vue new file mode 100644 index 0000000..c8017b1 --- /dev/null +++ b/components/numberJpan/numberJpan.vue @@ -0,0 +1,238 @@ + + + + + diff --git a/components/property/record.vue b/components/property/record.vue new file mode 100644 index 0000000..a5a5ccd --- /dev/null +++ b/components/property/record.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/main.js b/main.js index 11f608a..6c51a8d 100644 --- a/main.js +++ b/main.js @@ -4,7 +4,8 @@ import App from './App' import Vue from 'vue' import { router, RouterMount } from './router' import store from './store' -import uView from 'uview-ui' +import uView from 'uview-ui' +import noList from './components/no-list-components/index.vue' Vue.use(router) Vue.use(uView); Vue.config.productionTip = false @@ -12,7 +13,8 @@ Vue.prototype.$store = store App.mpType = 'app' const app = new Vue({ ...App -}) +}) +Vue.component('no-list',noList) // #ifdef H5 RouterMount(app,router,'#app') // #endif diff --git a/pages.json b/pages.json index 7de6ca3..2cfab87 100644 --- a/pages.json +++ b/pages.json @@ -149,6 +149,104 @@ "style": { "navigationBarTitleText": "企业认证" } + }, { + "path": "pages/news/index", + "name": "news", + "auth": true, + "style": { + "navigationBarTitleText": "消息中心" + } + }, { + "path": "pages/news/detail", + "name": "newsDetail", + "auth": true, + "style": { + "navigationBarTitleText": "消息列表" + } + }, { + "path": "pages/wallet/property", + "name": "walletProperty", + "style": { + "navigationBarTitleText": "能量钱包", + "enablePullDownRefresh": false, + "navigationBarTextStyle": "white" + } + }, { + "path": "pages/wallet/extract", + "style": { + "navigationBarTitleText": "提现能量", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#774ffd", + "navigationBarTextStyle": "white" + }, + "name": "Extract" + }, { + "path": "pages/wallet/resetPassword", + "style": { + "navigationBarTitleText": "重置密码", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#774ffd", + "navigationBarTextStyle": "white" + }, + "name": "ResetPassword" + },{ + "path": "pages/verification/index", + "name": "verificationIndex", + "auth": true, + "style": { + "navigationBarTitleText": "扫码核销" + } + },{ + "path": "pages/verification/history", + "name": "verificationHistory", + "auth": true, + "style": { + "navigationBarTitleText": "核销记录" + } + },{ + "path": "pages/shop/lists", + "name": "shopLists", + "auth": true, + "style": { + "navigationBarTitleText": "部门/门店" + } + },{ + "path": "pages/shop/create", + "name": "shopCreate", + "auth": true, + "style": { + "navigationBarTitleText": "创建部门/门店" + } + },{ + "path": "pages/employees/list", + "name": "employeesList", + "auth": true, + "style": { + "navigationBarTitleText": "员工管理" + } + },{ + "path": "pages/employees/add", + "name": "employeesAdd", + "auth": true, + "style": { + "navigationBarTitleText": "添加员工" + } + },{ + "path": "pages/instrument/Spread", + "name": "instrumentSpread", + "auth": true, + "style": { + "navigationBarTitleText": "营销推广码" + } + }, { + "path": "pages/wallet/fragment", + "style": { + "navigationBarTitleText": "能量碎片记录", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#774ffd", + "navigationBarTextStyle": "white" + }, + "name": "Fragment" }], "globalStyle": { "navigationStyle": "custom", @@ -181,4 +279,4 @@ "easycom": { "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" } -} \ No newline at end of file +} diff --git a/pages/employees/add.vue b/pages/employees/add.vue new file mode 100644 index 0000000..ed32964 --- /dev/null +++ b/pages/employees/add.vue @@ -0,0 +1,311 @@ + + + + + diff --git a/pages/employees/list.vue b/pages/employees/list.vue new file mode 100644 index 0000000..5b39527 --- /dev/null +++ b/pages/employees/list.vue @@ -0,0 +1,260 @@ + + + + + diff --git a/pages/index/index.vue b/pages/index/index.vue index 41cadb8..0d35411 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,51 +1,60 @@