Commit 7c987057 authored by linxin's avatar linxin

add

parent 69bc360a
......@@ -13,5 +13,5 @@ module.exports = merge(prodEnv, {
filePath: '"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"',
ocrPath: '"http://180.104.121.66:8088/r/api"',
appId: '"com.xcmg.app.dev"',
currentVersion: '"1.6.1"',
currentVersion: '"1.6.3"',
})
......@@ -101,7 +101,7 @@
</div>
</h-content>
<bottom-tab class="add-box">
<tab-button v-if="!isReadOnly" class="before" @click.native="handSave">同步电子签</tab-button>
<tab-button v-if="!isReadOnly" class="before" @click.native="handSave">保存</tab-button>
<tab-button v-if="!isReadOnly" class="next" @click.native="isSubmit">提交</tab-button>
<tab-button v-if="isReadOnly" class="before" @click.native="$routeGo()">上一步</tab-button>
</bottom-tab>
......@@ -512,21 +512,21 @@ export default {
},
// 同步电子签
handSave () {
// hlsPopup.showLongCenter('保存成功!')
let vm = this
let url = process.env.basePath + 'syn_content_app'
let param = {
project_id: window.localStorage.project_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.hlsPopup.showSuccess('同步成功')
} else {
vm.hlsPopup.showLongCenter(res.message)
}
})
hlsPopup.showLongCenter('保存成功!')
// let vm = this
// let url = process.env.basePath + 'syn_content_app'
// let param = {
// project_id: window.localStorage.project_id,
// }
// vm.hlsPopup.showLoading('请稍候')
// vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
// vm.hlsPopup.showSuccess('同步成功')
// } else {
// vm.hlsPopup.showLongCenter(res.message)
// }
// })
},
isSubmit () {
let vm = this
......
......@@ -177,7 +177,7 @@
</div>
</h-content>
<bottom-tab v-if="!flag">
<tab-button class="save" @click.native="handSave">同步电子签</tab-button>
<!-- <tab-button class="save" @click.native="handSave">同步电子签</tab-button> -->
<tab-button class="approve" @click.native="checkStatus">发车申请</tab-button>
</bottom-tab>
<div class="bottom-pop">
......
......@@ -62,7 +62,7 @@ export default {
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name !== 'PrivacyPolicy') {
vm.getAccessToken()
// vm.getAccessToken()
}
if (!window.localStorage.getItem('isReadPolicy')) {
setTimeout(() => {
......@@ -124,28 +124,33 @@ export default {
// 极光推送
})
},
getAccessToken () {
async getAccessToken () {
let vm = this
let url = process.env.loginPath + 'appadmin'
let param = {}
// vm.hlsPopup.showLoading('请稍等')
vm.$post(url, param).then(function (res) {
let res = await vm.$post(url, param)
// vm.hlsPopup.hideLoading()
if (res) {
window.localStorage.setItem('access_token', res.access_token)
vm.updateVersion() // 版本更新
})
return true
}
},
access: function () {
async access () {
document.getElementById('passwordInput').blur()
document.activeElement.blur()
let flag = await this.getAccessToken()
let vm = this
if (!vm.username || vm.username === undefined) {
vm.hlsPopup.showLongCenter('请输入用户名')
} else if (!vm.password || vm.password === undefined) {
vm.hlsPopup.showLongCenter('请输入密码')
} else {
hlsPopup.showLoading('正在登录')
vm.login()
if (flag) {
if (!vm.username || vm.username === undefined) {
vm.hlsPopup.showLongCenter('请输入用户名')
} else if (!vm.password || vm.password === undefined) {
vm.hlsPopup.showLongCenter('请输入密码')
} else {
hlsPopup.showLoading('正在登录')
vm.login()
}
}
},
registerNew: function () {
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.8aff99fa55fe4dc60e6d63d96f17b12c.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.6a178e8d77c32e3c385d.js></script><script type=text/javascript src=./static/js/vendor.c6877d591112b6e9baa7.js></script><script type=text/javascript src=./static/js/app.4851b531dabbea1f3606.js></script></body></html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment