Commit 38fddb16 authored by 李晓兵's avatar 李晓兵

'增加热更新'

parent df61538a
......@@ -12,5 +12,5 @@ module.exports = merge(prodEnv, {
rootPath: '"http://hlsapp.hand-china.com/core/r/api"',
file_url: '"http://hlsapp.hand-china.com/file/"',
appId: '"com.hls.easy.car"',
currentVersion: '"1.0.0"'
currentVersion: '"0.0.1"'
});
......@@ -4,11 +4,10 @@ module.exports = {
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: false,
isMobilePlatform: true,
hmapUrl:'"http://hippius.hand-china.com/hmap220"',
loginPath: '"http://hlsapp.hand-china.com/core/oauth/token?client_id=hQGCtxTItRa34PUOgxaD0r7oSPeuEaIB&client_secret=7ee8338c-4a06-44a1-87cc-afa63f8e1bc3&grant_type=password&username=app&password=" ',
basePath: '"http://hlsapp.hand-china.com/core/r/api?sysName=XCMG_DEV&apiName="',
rootPath: '"http://hlsapp.hand-china.com/core/r/api"',
file_url: '"http://hlsapp.hand-china.com/file/"',
appId: '"com.hls.easy.car"',
currentVersion: '"1.0.0"'
currentVersion: '"0.0.1"'
}
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// import FastClick from 'fastclick'
import FastClick from 'fastclick'
import router from './router'
import App from './App'
import Vuex from 'vuex'
......@@ -106,7 +106,7 @@ let routeGo = function (index) {
}
Vue.prototype.$routeGo = routeGo
// FastClick.attach(document.body)
FastClick.attach(document.body)
Vue.config.productionTip = false
......
......@@ -4,21 +4,12 @@
<div slot="left" class="h-header-btn" @click="$routeGo(-1)">
<i class="ion-ios-arrow-back"/>
</div>
<div slot="center">工作流</div>
<div slot="center">个人中心</div>
</h-header>
<h-content>
<list-item :item-height="45">
<item>
<div slot="name" class="required">检查更新</div>
<div slot="content">检查更新</div>
</item>
<item>
<div slot="name" class="required">字数测试</div>
<div slot="content">我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文字</div>
</item>
<item :showArrow="true">
<div slot="name">客户名称</div>
<input slot="content" type="text" placeholder="请输入">
<item :show-arrow="true" @click.native="updateVersion">
<div slot="name">检查更新</div>
</item>
</list-item>
</h-content>
......@@ -28,15 +19,30 @@
<script>
export default {
data () {
return {
}
return {}
},
activated () {
},
methods: {
updateVersion () {
if (vum.Platform.isAndroid()) {
this.hote_update_version('发现新版本是否更新', 'http://hlsapp.hand-china.com/file/XCMG/www/android/www.zip')
} else {
this.hote_update_version('发现新版本是否更新', 'http://hlsapp.hand-china.com/file/XCMG/www/ios/www.zip')
}
},
hote_update_version (content, url) {
hlsPopup.showConfirm({
title: '版本更新',
content: content,
onConfirm: function (index) {
if (index === 1) {
hotpatch.updateNewVersion(url)
}
},
})
},
},
}
</script>
......
......@@ -2,7 +2,7 @@
<h-view id="user-bind" class="public-style" title="用户绑定">
<h-header :proportion="[5,1,1]" class="header">
<div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" >
<img src="@/assets/userBind/arrow.png" @click="$routeGo(-1)">
<span>用户绑定</span>
</div>
</h-header>
......
......@@ -3435,15 +3435,14 @@ fast-levenshtein@~2.0.4:
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
fastclick@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/fastclick/-/fastclick-1.0.6.tgz#161625b27b1a5806405936bda9a2c1926d06be6a"
integrity sha1-FhYlsnsaWAZAWTa9qaLBkm0Gvmo=
"fastclick@https://hel.hand-china.com/easyUI/fastclick.git":
version "1.0.6"
resolved "https://hel.hand-china.com/easyUI/fastclick.git#8b4d3638e307b0c8bdb2ddae52598363701161e6"
"fastclick@https://hel.hand-china.com/easyUI/fastclick.git#v1.0.7":
version "1.0.7"
resolved "https://hel.hand-china.com/easyUI/fastclick.git#3dff81ae580069fba67299217929cca4b470ae49"
fastparse@^1.1.1:
version "1.1.2"
resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.2.tgz#91728c5a5942eced8531283c79441ee4122c35a9"
......
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