diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 582561b..9b0d791 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -1,16 +1,20 @@ -{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ - // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 - "version": "0.0", - "configurations": [{ - "app-plus" : - { - "launchtype" : "local" - }, - "default" : - { - "launchtype" : "local" - }, - "type" : "uniCloud" - } +{ + // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ + // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 + "version" : "0.0", + "configurations" : [ + { + "app-plus" : { + "launchtype" : "local" + }, + "default" : { + "launchtype" : "local" + }, + "type" : "uniCloud" + }, + { + "playground" : "standard", + "type" : "uni-app:app-android" + } ] } diff --git a/apis/index.js b/apis/index.js index 1912f23..a358fdc 100644 --- a/apis/index.js +++ b/apis/index.js @@ -8,9 +8,9 @@ import store from '@/store' import { router } from '@/router/index.js' // 基础配置 -const config = { - apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', // 测试环境 - // apiUrl : 'https://douhuo.douhuofalv.com/api/', // 正式环境 +const config = { + apiUrl : 'https://douhuo.douhuofalv.com/api/', + // apiUrl : 'https://douhuo.demos.uzchain.tech/api/', //测试环境 timeout : 60000 } diff --git a/apis/interfaces/auth.js b/apis/interfaces/auth.js index ad9d4a3..5b5f60d 100644 --- a/apis/interfaces/auth.js +++ b/apis/interfaces/auth.js @@ -1,11 +1,11 @@ - + /** * 手太欠 * 愿这世界都如故事里一样 美好而动人~ - */ - -import { request } from '../index' + */ +import { request } from '../index' + // 用户注册 const Register = (data) =>{ return request({ @@ -14,65 +14,74 @@ const Register = (data) =>{ data: data }) } - -// 获取短信前图形验证码 + +// 获取短信前图形验证码 const Captcha = (data) =>{ return request({ url: "user/auth/captcha", method: 'POST', data: data }) -} - -// 需校验图形验证码 +} + +// 需校验图形验证码 const smsAuth = (data) =>{ return request({ url: "user/auth/verify_captcha", method: 'POST', data: data }) -} - -// 用户账号密码登录 +} + +// 用户账号密码登录 const Login = (data) =>{ return request({ url: "user/auth/login", method: 'POST', data: data }) -} - -// 重置密码 +} + +// 重置密码 const resetPassword = (data) =>{ return request({ url: "user/auth/reset_password", method: 'POST', data: data }) -} - -// 修改密码 +} + +// 修改密码 const modifyPassword = (data) =>{ return request({ url: "user/setting/reset_password", method: 'POST', data: data }) -} - -// 隐私+协议 +} + +// 隐私+协议 const registeragree = (website) =>{ return request({ url: "cms/pages/" + website }) +} + +// 验证码登录 +const authSms = (data) =>{ + return request({ + url: "user/auth/sms", + method: 'POST', + data: data + }) } - -export { - Register, - Captcha, - smsAuth, - Login, - resetPassword, +export { + Register, + Captcha, + smsAuth, + Login, + resetPassword, modifyPassword, - registeragree + registeragree, + authSms } diff --git a/apis/interfaces/index.js b/apis/interfaces/index.js index 717b5d1..63508e5 100644 --- a/apis/interfaces/index.js +++ b/apis/interfaces/index.js @@ -1,238 +1,311 @@ - + /** * 手太欠 * 愿这世界都如故事里一样 美好而动人~ - */ - -import { request } from '../index' + */ +import { request } from '../index' + // 首页数据 const home = () =>{ return request({ url: "business/home" }) -} - - +} + + // 文章分类 const articleSort = () =>{ return request({ url: "cms/categories" }) -} - +} + // 文章列表 const articleList = (data) =>{ return request({ - url: "cms/articles", + url: "cms/articles", data: data }) -} - +} + // 文章详情 const articleBrief = (article_id) =>{ return request({ - url: "cms/articles/" + article_id + url: "cms/articles/" + article_id }) -} - +} + // 文章收藏 const collect = (article_id) =>{ return request({ - url: "cms/articles/favorite/" + article_id + url: "cms/articles/favorite/" + article_id }) -} - +} + // 我的文章收藏 const myCollect = (data) =>{ return request({ - url: "user/favorites", - data: data + url: "user/favorites", + data: data }) -} - +} + // 精选律师列表 const lawyers = (data) =>{ return request({ - url: "lawyers", - data: data + url: "lawyers", + data: data }) -} - +} + // 精选律师详情 const lawyersdet = (lawyer_id) =>{ return request({ - url: "lawyers/" + lawyer_id + url: "lawyers/" + lawyer_id }) -} - -//律师业务 +} + +//律师业务 const lawyersBusiness = () =>{ return request({ - url: "lawyers/businesses" + url: "lawyers/businesses" }) -} - - -//律师业务详情 +} + + +//律师业务详情 const businessDet = (lawyer_business_id) =>{ return request({ - url: "lawyers/businesses/" + lawyer_business_id + url: "lawyers/businesses/" + lawyer_business_id }) -} - -//律师订单金额 +} + +//律师订单金额 const lawyerOrder = (lawyer_id) =>{ return request({ - url: "lawyers/" + lawyer_id + "/order" - + url: "lawyers/" + lawyer_id + "/order" + }) -} - -//律师业务-创建订单 +} + +//律师业务-创建订单 const businessOrder = (lawyer_business_id) =>{ return request({ - url: "lawyers/businesses/" + lawyer_business_id + "/order" - + url: "lawyers/businesses/" + lawyer_business_id + "/order" + }) -} +} // 获取主业务 const workIndex = () =>{ return request({ url: "business/index" }) -} - -// 获取主业务机构 +} + +// 获取主业务机构 const workOne = (business_id) =>{ return request({ url: "business/" + business_id + "/institution" }) -} - +} + // 获取二级业务类型 const workLevel = (business_id) =>{ return request({ url: "business/institution/" + business_id + "/type" }) -} - +} + // 提交基础信息 const workStore = (data) =>{ return request({ - url: "business/store", - method: 'POST', + url: "business/store", + method: 'POST', data: data }) -} - +} + // 9.9预约 const Apply = (business_order_id) =>{ return request({ - url: "business/apply/" + business_order_id + "/info" + url: "business/apply/" + business_order_id + "/info" }) -} - -// 9.9预约--微信支付 +} + +// 9.9预约--微信支付 const Wechat = (apply_order_no, data) =>{ return request({ - url: "pay/apply/" + apply_order_no + "/wechat", - data: data - }) -} - -// 咨询服务费--微信支付 + url: "pay/apply/" + apply_order_no + "/wechat", + data: data + }) +} + +// 咨询服务费--微信支付 const applyPay = (business_order_id, data) =>{ return request({ - url: "pay/order/" + business_order_id + "/wechat", - data: data - }) -} - -// 补差价--微信支付 + url: "pay/order/" + business_order_id + "/wechat", + data: data + }) +} + +// 补差价--微信支付 const diffPay = (business_order_diff_price_id, data) =>{ return request({ - url: "pay/diff/" + business_order_diff_price_id + "/wechat", - data: data - }) -} - - -// 获取公众号openid -const Openid = (data) =>{ + url: "pay/diff/" + business_order_diff_price_id + "/wechat", + data: data + }) +} + + +// 获取公众号openid +const Openid = (data) =>{ return request({ - url: "user/auth/official/openid", - data: data + url: "user/auth/official/openid", + data: data }) +} + +// 获取授权页面 +const authFollow = (data) => { + return request({ + url : 'user/auth/official/url', + data: data + }) } - -// 获取授权页面 -const authFollow = (data) => { - return request({ - url : 'user/auth/official/url', - data: data - }) -} - + // 获取方案 const Schemes = (business_order_id) =>{ return request({ - url: "business/" + business_order_id + "/schemes" + url: "business/" + business_order_id + "/schemes" + }) +} + +// h5入库用户数据 +const wechatCode = (data) => { + return request({ + url : 'user/auth/login/wechat/add', + method: 'POST', + data: data + }) +} + +// 校验分享用户 +const Verify = (data) => { + return request({ + url : 'user/relations/verify', + data: data + }) +} + +// 绑定分享用户 +const Bind = (data) => { + return request({ + url : 'user/relations/bind', + method: 'POST', + data: data + }) +} + +// 账户管理类 +const accountManagement = () => { + return request({ + url: "account_management/index" }) } -// h5入库用户数据 -const wechatCode = (data) => { - return request({ - url : 'user/auth/login/wechat/add', - method: 'POST', - data: data - }) +// 账户管理类 - 办理 +const accountFrom = (data, id) => { + return request({ + url : "account_management/" + id + "/store", + method : "POST", + data + }) } -// 校验分享用户 -const Verify = (data) => { - return request({ - url : 'user/relations/verify', - data: data - }) +// 账户管理类 - 订单 +const accountOrder = data => { + return request({ + url : "account_management/order/lists", + data + }) } -// 绑定分享用户 -const Bind = (data) => { - return request({ - url : 'user/relations/bind', - method: 'POST', - data: data - }) +// 账户管理类 - 取消订单 +const accountCancel = id => { + return request({ + url : "account_management/order/" + id + "/cancel", + method : "DELETE" + }) } -export { - home, - articleSort, - articleList, - articleBrief, - collect, - myCollect, - lawyers, - lawyersdet, - lawyersBusiness, - businessDet, - lawyerOrder, - businessOrder, - workIndex, - workOne, - workLevel, - workStore, - Apply, - Wechat, - applyPay, - diffPay, - Openid, - authFollow, - Schemes, - wechatCode, - Verify, - Bind +// 委托管理类 +const delegation = () => { + return request({ + url: "delegation/index" + }) +} + +// 委托管理类 - 办理 +const delegationFrom = (data, id) => { + return request({ + url : "delegation/" + id + "/store", + method : "POST", + data + }) +} + +// 委托管理类 - 订单 +const delegationOrder = data => { + return request({ + url : "delegation/order/lists", + method : "POST", + data + }) +} + +// 委托管理类 - 取消订单 +const delegationCancel = id => { + return request({ + url : "delegation/order/" + id + "/cancel", + method : "DELETE" + }) +} + +export { + home, + articleSort, + articleList, + articleBrief, + collect, + myCollect, + lawyers, + lawyersdet, + lawyersBusiness, + businessDet, + lawyerOrder, + businessOrder, + workIndex, + workOne, + workLevel, + workStore, + Apply, + Wechat, + applyPay, + diffPay, + Openid, + authFollow, + Schemes, + wechatCode, + Verify, + Bind, + accountManagement, + accountFrom, + accountOrder, + accountCancel, + delegation, + delegationFrom, + delegationOrder, + delegationCancel } diff --git a/apis/interfaces/pay.js b/apis/interfaces/pay.js index 6afd66b..1287112 100644 --- a/apis/interfaces/pay.js +++ b/apis/interfaces/pay.js @@ -164,9 +164,6 @@ const payInfo = data => { } const payWechat = data => { - - console.log('111') - return request({ url : "pay/cashier_desk/wechat", method : 'POST', diff --git a/pages.json b/pages.json index 1550d99..08d2be4 100644 --- a/pages.json +++ b/pages.json @@ -84,7 +84,15 @@ "aliasPath": "/login/login", "name": "Login", "style": { - "navigationBarTitleText": "抖火法律-登录", + "navigationBarTitleText": "抖火法律-验证码登录", + "navigationStyle": "custom" + } + }, { + "path": "pages/login/passwordLogin", + "aliasPath": "/login/passwordLogin", + "name": "PasswordLogin", + "style": { + "navigationBarTitleText": "抖火法律-密码登录", "navigationStyle": "custom" } }, { @@ -657,6 +665,38 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } + },{ + "path" : "pages/management/account", + "name" : "MagAccount", + "style" : { + "navigationBarTitleText" : "账户咨询办理", + "enablePullDownRefresh" : false + } + }, + { + "path" : "pages/management/delegation", + "name" : "MagDelegation", + "style" : { + "navigationBarTitleText" : "委托管理办理", + "enablePullDownRefresh" : false + } + }, + { + "path" : "pages/work/account", + "name" : "AccountWork", + "style" : { + "navigationBarTitleText" : "账户管理咨询类", + "enablePullDownRefresh" : false, + "navigationBarBackgroundColor": "#FFFFFF" + } + },{ + "path" : "pages/work/delegation", + "name" : "DelegationWork", + "style" : { + "navigationBarTitleText" : "委托管理类", + "enablePullDownRefresh" : false, + "navigationBarBackgroundColor": "#FFFFFF" + } } ], "globalStyle": { diff --git a/pages/index/index.vue b/pages/index/index.vue index 08dc776..7c83552 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -49,7 +49,7 @@ - + + + + + + + - 法律咨询类 + 企业法律顾问 - + @@ -158,7 +198,7 @@ - 诉讼委托类 + 案件诉讼委托 @@ -187,7 +227,7 @@ - +