first commit
This commit is contained in:
81
README.md
Normal file
81
README.md
Normal file
@@ -0,0 +1,81 @@
|
||||
## @作者:zhang-shu-wei
|
||||
## @日期:2022年10月8日
|
||||
## @邮箱:2966211270@qq.com
|
||||
|
||||
## 一、打印机参数信息
|
||||
|
||||
### 项目名:京西云打印机
|
||||
|
||||
### 英文名:jxc4-Bluetooth-printer
|
||||
|
||||
### 分支名:cliCode
|
||||
|
||||
### 微信小程序运行指令:npm run dev:mp-weixin
|
||||
|
||||
### 微信小程序打包指令:npm run build:mp-weixin
|
||||
|
||||
### AppId:wx2bfbc02e6251b71b
|
||||
|
||||
### Secret:bbfa95292b2ae6ba8a18383707c6277b
|
||||
|
||||
### 软件下载地址:[http://pweb.jxc4.com/printer/downLoad.html](http://pweb.jxc4.com/printer/downLoad.html)
|
||||
|
||||
### 打印机官网[http://pweb.jxc4.com](http://pweb.jxc4.com/home)
|
||||
|
||||
## 二、打印机前端代码部署
|
||||
|
||||
### 推荐使用工具:WinSCP
|
||||
|
||||
### 连接配置:
|
||||
|
||||
文件协议:SFTP
|
||||
主机名:www.jxcs.net
|
||||
端口号:22
|
||||
用户名:ubuntu
|
||||
配置ssh密钥,以ssh方式登录
|
||||

|
||||
ssh密钥在项目根目录:ssh_key.ppk
|
||||
打印机官网服务器地址:/jxdata/webroot/printer_web
|
||||
打印机静态资源存位置:/jxdata/webroot/printer_web/printer
|
||||
|
||||
## 三、打印机移动端说明(Android)
|
||||
|
||||
### 项目打包
|
||||
|
||||
1.版本更新:需要更新《应用版本名称》和《应用版本号》
|
||||
注意使用 每次更新 版本号需要高于上一次跟新的版本号,否则回导致更新失败
|
||||

|
||||
2.更新分类--整包更新
|
||||
整包更新就是重新下载软件把用户当前安装的版本替换掉
|
||||
整包更新步骤--发行--原生App-云打包(p)
|
||||

|
||||

|
||||
3.更新分类-热更新(wgt)
|
||||
热更新每次更新版本号需要大于上一次版本更新版本号
|
||||
热更新步骤:发行--原生App-制作应用wgt包(G)
|
||||
注意:使用热更新wgt 的时候 hbuilderX的版本必须要是3.5.3 否则使用热更新会出错
|
||||

|
||||

|
||||
|
||||
## 四、项目规范
|
||||
|
||||
项目使用cli 构建,src/pages 当中的文件为主包文件,主包文件应当只放主页四个文件,其他页面组件放在分包文件夹
|
||||
subPackages 为分包文件夹,其他页面放在分包文件夹里面
|
||||
|
||||
### 项目开发规范
|
||||
|
||||
1.项目文件夹构建时因该遵循data 数据放在data.js 当中 methods 方法放在methods.js 中 样式文件放在xxx.scss 文件中,而html 就写在xxx.vue 当中,详细规范请查看其他文件夹规范操作
|
||||
|
||||
|
||||
```
|
||||
```
|
||||
<!-- 首页新公告new 图标 -->
|
||||
<uni-icons v-if="showIcon === true || showIcon === 'true'" custom-prefix="iconfont" class="uni-noticebar-icon" type="icon-new" color="rgb(184, 7, 7)" size="34" />
|
||||
<!-- 打印机列表搜索框 -->
|
||||
<uni-icons custom-prefix="iconfont" color="#c0c4cc" size="18" type="icon-sousuo" />
|
||||
<text style="color:#fff;" @click="cancel" class="uni-searchbar__cancel" v-if="cancelButton ==='always' || show && cancelButton ==='auto'">{{cancelTextI18n}}</text>
|
||||
<!-- select 图标 -->
|
||||
<uni-icons v-else custom-prefix="iconfont" class="uni-noticebar-icon" :type="showSelector? 'icon-jiantoushang' : 'icon-jiantouxia'" size="14" color="#999" />
|
||||
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user