diff --git a/api/pay.js b/api/pay.js index 77463d2..b6a04e4 100644 --- a/api/pay.js +++ b/api/pay.js @@ -15,5 +15,8 @@ export const payWay = (data) => oahttp.get('/pay/payWay', data) */ export const payPrepay = (data) => oahttp.post('/pay/prepay', data) - +/** + * 支付配置 + */ +export const wechatJsConfig = (data) => oahttp.get('/wechat/jsConfig', data) diff --git a/manifest.json b/manifest.json index 2f54160..708dd68 100644 --- a/manifest.json +++ b/manifest.json @@ -44,7 +44,9 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios" : { + "dSYMs" : false + }, /* SDK配置 */ "sdkConfigs" : { "payment" : { @@ -53,7 +55,8 @@ "appid" : "__UNI__3A527D1", "UniversalLinks" : "" } - } + }, + "ad" : {} } } }, diff --git a/pages.json b/pages.json index 202a74d..5c05f93 100644 --- a/pages.json +++ b/pages.json @@ -134,6 +134,24 @@ "enablePullDownRefresh": false } + } + ,{ + "path" : "contract/contract", + "style" : + { + "navigationBarTitleText": "合同签订", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "contractDetail/contractDetail", + "style" : + { + "navigationBarTitleText": "合同详情", + "enablePullDownRefresh": false + } + } ] }], diff --git a/pages/oaLogin/oaLogin.vue b/pages/oaLogin/oaLogin.vue index 251922e..065af2a 100644 --- a/pages/oaLogin/oaLogin.vue +++ b/pages/oaLogin/oaLogin.vue @@ -6,13 +6,15 @@ - + - + - + 获取验证码 @@ -36,15 +38,15 @@ account: 'admin123', password: 'qq123456', code: '', - terminal: 3, + terminal: 6, //6是APP端 scene: 1 } }; }, methods: { - changeTabs(e){ + changeTabs(e) { this.current = e.index; - this.formData.scene = e.index+1; + this.formData.scene = e.index + 1; }, async login() { let that = this; @@ -56,7 +58,7 @@ token: res.data.token }) uni.switchTab({ - url:'/pages/oaHome/oaHome' + url: '/pages/oaHome/oaHome' }) // uni.request({ // url: 'https://worker-task.lihaink.cn/api/login/account', @@ -72,8 +74,34 @@ // this.res = res.data.m // } // }) - + + }, + initTerminal() { + // #ifndef APP-PLUS + this.formData.terminal = 6; + // #endif + uni.getSystemInfo({ + success: (res) => { + const platform = res.platform.toLowerCase(); + if (platform === 'ios') { + this.formData.terminal = 5; + } else if (platform === 'windows') { + this.formData.terminal = 4; + } else if (platform === 'mac') { + this.formData.terminal = 4; + } + } + }) + // #ifdef H5 + this.formData.terminal = 3; + // #endif + // #ifdef MP-WEIXIN + this.formData.terminal = 1; + // #endif } + }, + mounted() { + this.initTerminal(); } } @@ -159,7 +187,8 @@ display: flex; justify-content: space-between; align-items: center; - input{ + + input { font-size: 28rpx; } @@ -167,7 +196,8 @@ color: #3274F9; } } - .btn{ + + .btn { display: flex; justify-content: space-between; } diff --git a/static/server/server.js b/static/server/server.js index 37af3bf..4a1cdfb 100644 --- a/static/server/server.js +++ b/static/server/server.js @@ -204,7 +204,8 @@ export const oaHomeData = [ }, { text: '合同签订', - icon: prefix + 'oa/cgsq@2x.png' + icon: prefix + 'oa/cgsq@2x.png', + url: '/subpkg/contract/contract' }, { text: '公司管理', diff --git a/subpkg/topUp/topUp.vue b/subpkg/topUp/topUp.vue index 37cb638..9a9630b 100644 --- a/subpkg/topUp/topUp.vue +++ b/subpkg/topUp/topUp.vue @@ -35,7 +35,7 @@