Name
Last commit
Last update
build Loading commit data...
config Loading commit data...
hooks Loading commit data...
plugins Loading commit data...
res Loading commit data...
resources Loading commit data...
src Loading commit data...
static Loading commit data...
www Loading commit data...
.babelrc Loading commit data...
.editorconfig Loading commit data...
.eslintignore Loading commit data...
.eslintrc.js Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.postcssrc.js Loading commit data...
.stylelintignore Loading commit data...
.stylelintrc.js Loading commit data...
README.md Loading commit data...
build-extras.gradle Loading commit data...
config.xml Loading commit data...
hls.keystore Loading commit data...
index.html Loading commit data...
package.json Loading commit data...

hls-car-vue

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

文件命名规范

  1. 文件夹全部采用驼峰命名法,即首字母小写后面每个单词首字母大写

  2. 文件名全部使用小写字母,单词与单词之间采用**-**连接,如 user-info.vue,user-info-detail.vue,

  3. 路由的注册 import 语句后的单词采用 Pascal命名法,所有单词的首字母大写,其余字母小写,单词与单词之间不使用任何符号风格。如

import HomeManager from '@/pages/homeManager/home-manager'
import LoadMore from '@/pages/loadMore/load-more'
import UserInfo from '@/pages/userInfo/user-info'
import UserInfoDetail from '@/pages/userInfo/user-info-detail'
  1. 实际路由注册需安照如下写法,path/tab/文件名,/tab是否保留视实际情况而定。component后接的单词需和import的单词保持一致,name后接的单词也需和import的单词保持一致
{path: "/tab/home-manager", component: HomeManager, name: 'HomeManager', meta: {keepAlive: true}},
{path: '/tab/load-more', component: LoadMore, name: 'LoadMore', meta: {keepAlive: true}},
{path: '/tab/user-info', component: UserInfo, name: 'UserInfo', meta: {keepAlive: true}},

keyStore签名信息

keystore文件 hlscar.keystore

别名 HLSkey

密码 com.hls.easy.car

签名

jarsigner -verbose -keystore hls.keystore -signedjar 车租易.apk hls.apk HLSkey

打包冲突解决

各项目如果安装了 com.hls.plugins.barcode 扫码插件与cordova-plugin-open-camera 媒体插件 两个插件之间存在一些冲突 请注释掉媒体插件 plugin.xml 第83行

Android执行add环境后修改文件

修改platforms/android/AndroidManifest.xml

在第6行 activity标签后面 添加 android:background="@color/white" 同时找到 android:windowSoftInputMode 修改它的值为 adjustResize