Browse Source

增加flyio依赖

master
Gao xiaosong 3 years ago
parent
commit
4096296be6
  1. 33
      README.md
  2. 590
      manifest.json
  3. 1
      package.json

33
README.md

@ -2,30 +2,32 @@
## Hbuilderx
- 已支持HBuilderX最新版
- 已支持 HBuilderX 最新版
## 小程序安装步骤
- 先从私服上clone下来项目
- 下载uni的开发者工具 https://www.dcloud.io/hbuilderx.html
- 登录微信开发者工具打开 菜单 > 设置 > 安全设置 勾选服务端口为开启
- 当前项目下执行 npm install
- 先从私服上 clone 下来项目
- 下载 uni 的开发者工具 https://www.dcloud.io/hbuilderx.html
- 登录微信开发者工具打开 菜单 > 设置 > 安全设置 勾选服务端口为开启
- 当前项目下执行 npm install !!!!!!!!!必须执行,找不到模块都是因为这个原因导致的
- 命令行进入项目所在的目录,点击 hbuilderx > 菜单 > 运行 > 运行到小程序模拟器 > 微信开发者工具
- uni会自动打开微信开发者工具并且打开uni的项目
- uni 会自动打开微信开发者工具并且打开 uni 的项目
## 注意事项
- uniapp v3.1版本已经兼容h5,另外yshop有自己的H5,uniappv3.1以下版本未对H5端进行处理,如果需要请自行兼容。
- manifest.json 中可以配置uni项目的一些信息
- 打开manifest.json可配置小程序的 appid
- 由于需要兼容app,公共样式由 main.js 迁移到了 App.vue,公共样式请在App.vue中进行编辑
- 由于需要兼容app,尺寸单位由之前的rem改为rpx,由于修改样式工作量太大并且容易出错,已将.css更改为.less并在其中以之前rem的单位*100,获得新的rpx单位
- 如需修改样式问题,请编辑.less的文件,请勿编辑.css的文件
- uniapp v3.1 版本已经兼容 h5,另外 yshop 有自己的 H5,uniappv3.1 以下版本未对 H5 端进行处理,如果需要请自行兼容。
- manifest.json 中可以配置 uni 项目的一些信息
- 打开 manifest.json 可配置小程序的 appid
- 由于需要兼容 app,公共样式由 main.js 迁移到了 App.vue,公共样式请在 App.vue 中进行编辑
- 由于需要兼容 app,尺寸单位由之前的 rem 改为 rpx,由于修改样式工作量太大并且容易出错,已将.css 更改为.less 并在其中以之前 rem 的单位\*100,获得新的 rpx 单位
- 如需修改样式问题,请编辑.less 的文件,请勿编辑.css 的文件
## git issuse 地址
https://gitee.com/guchengwuyue/yshopmall
### 请按照以下模板提交 issuse
标题:
H5/uni/后端代码/后台管理系统+简单描述
@ -39,10 +41,9 @@ v3.0
windows/macOS/Linux
问题描述:
Ps:如果是uni出现问题,请具体描述是运行那个端小程序/android/ios
Ps:如果是 uni 出现问题,请具体描述是运行那个端小程序/android/ios
## 声明
- app测试版已上,请通过 `https://www.pgyer.com/yRYf` 安装测试。
- 运行app项目ios需要安装xcode,安卓需要装安卓的sdk以及安卓模拟器,建议安卓安装genymotion https://www.genymotion.com/ 登录时可选择私人使用,勾选后无需付费
- app 测试版已上,请通过 `https://www.pgyer.com/yRYf` 安装测试。
- 运行 app 项目 ios 需要安装 xcode,安卓需要装安卓的 sdk 以及安卓模拟器,建议安卓安装 genymotion https://www.genymotion.com/ 登录时可选择私人使用,勾选后无需付费

590
manifest.json

@ -1,296 +1,296 @@
{
"name": "yshopmall",
"appid": "__UNI__C7A519E",
"description": "",
"versionName": "1.0.1",
"versionCode": 1,
"transformPx": false,
/* 5+App */
"app-plus": {
"usingComponents": true,
"nvueCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": false,
"autoclose": true,
"delay": 0
},
/* */
"modules": {
"OAuth": {},
"Payment": {},
"Share": {},
"Geolocation": {}
},
/* */
"distribute": {
/* android */
"android": {
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
/* ios */
"ios": {},
/* SDK */
"sdkConfigs": {
"oauth": {
"weixin": {
"appid": "wx7c84ede33062d1e4",
"appsecret": "c47ef66d3311194da44e60387d5c1abd",
"UniversalLinks": "https://yixiang.co/app/"
}
},
"payment": {
"weixin": {
"appid": "wx7c84ede33062d1e4",
"UniversalLinks": "https://yixiang.co/app/"
}
},
/* */
"distribute": {
/* android */
"android": {
"permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>"
]
},
/* ios */
"ios": {},
/* SDK */
"sdkConfigs": {
"oauth": {
"weixin": {
"appid": "wx7c84ede33062d1e4",
"appsecret": "c47ef66d3311194da44e60387d5c1abd",
"UniversalLinks": "https://yixiang.co/app/"
}
},
"payment": {
"weixin": {
"appid": "wx7c84ede33062d1e4",
"UniversalLinks": "https://yixiang.co/app/"
}
},
"share": {
"weixin": {
"appid": "wx7c84ede33062d1e4",
"UniversalLinks": "https://yixiang.co/app/"
}
},
"ad": {},
"geolocation": {}
},
"splashscreen": {
"ios": {
"iphone": {
"portrait-896h@3x": "splash/1242+2688.png",
"portrait-896h@2x": "splash/828+1792.png",
"iphonex": "splash/1125+2436.png",
"retina55": "splash/1142+2208.png",
"retina47": "splash/750+1334.png",
"retina40": "splash/640+1136.png",
"retina35": "splash/640+960.png"
}
},
"android": {
"hdpi": "splash/480+762.png",
"xhdpi": "splash/720+1242.png",
"xxhdpi": "splash/1080+1882.png"
},
"iosStyle": "common"
},
"icons": {
"android": {
"hdpi": "icons/72x72.png",
"xhdpi": "icons/96x96.png",
"xxhdpi": "icons/144x144.png",
"xxxhdpi": "icons/192x192.png"
},
"ios": {
"appstore": "icons/1024x1024.png",
"ipad": {
"app": "icons/76x76.png",
"app@2x": "icons/152x152.png",
"notification": "icons/20x20.png",
"notification@2x": "icons/40x40.png",
"proapp@2x": "icons/167x167.png",
"settings": "icons/29x29.png",
"settings@2x": "icons/58x58.png",
"spotlight": "icons/40x40.png",
"spotlight@2x": "icons/80x80.png"
},
"iphone": {
"app@2x": "icons/120x120.png",
"app@3x": "icons/180x180.png",
"notification@2x": "icons/40x40.png",
"notification@3x": "icons/60x60.png",
"settings@2x": "icons/58x58.png",
"settings@3x": "icons/87x87.png",
"spotlight@2x": "icons/80x80.png",
"spotlight@3x": "icons/120x120.png"
}
}
}
}
},
"quickapp": {},
"mp-weixin": {
"appid": "wx604d2ea4702620d2",
"setting": {
"urlCheck": true,
"postcss": true,
"minified": true
},
"ad": {},
"geolocation": {}
},
"splashscreen": {
"ios": {
"iphone": {
"portrait-896h@3x": "splash/1242+2688.png",
"portrait-896h@2x": "splash/828+1792.png",
"iphonex": "splash/1125+2436.png",
"retina55": "splash/1142+2208.png",
"retina47": "splash/750+1334.png",
"retina40": "splash/640+1136.png",
"retina35": "splash/640+960.png"
}
},
"android": {
"hdpi": "splash/480+762.png",
"xhdpi": "splash/720+1242.png",
"xxhdpi": "splash/1080+1882.png"
},
"iosStyle": "common"
},
"icons": {
"android": {
"hdpi": "icons/72x72.png",
"xhdpi": "icons/96x96.png",
"xxhdpi": "icons/144x144.png",
"xxxhdpi": "icons/192x192.png"
},
"ios": {
"appstore": "icons/1024x1024.png",
"ipad": {
"app": "icons/76x76.png",
"app@2x": "icons/152x152.png",
"notification": "icons/20x20.png",
"notification@2x": "icons/40x40.png",
"proapp@2x": "icons/167x167.png",
"settings": "icons/29x29.png",
"settings@2x": "icons/58x58.png",
"spotlight": "icons/40x40.png",
"spotlight@2x": "icons/80x80.png"
},
"iphone": {
"app@2x": "icons/120x120.png",
"app@3x": "icons/180x180.png",
"notification@2x": "icons/40x40.png",
"notification@3x": "icons/60x60.png",
"settings@2x": "icons/58x58.png",
"settings@3x": "icons/87x87.png",
"spotlight@2x": "icons/80x80.png",
"spotlight@3x": "icons/120x120.png"
}
}
}
}
},
"quickapp": {},
"mp-weixin": {
"appid": "wx604d2ea4702620d2",
"setting": {
"urlCheck": false
},
"usingComponents": true,
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"plugins": {
// #ifdef MP-WEIXIN
"live-player-plugin": {
"version": "1.2.8",
"provider": "wx2b03c6e691cd7370"
}
}
},
// #endif
"mp-alipay": {
"usingComponents": true
},
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao": {
"usingComponents": true
},
"h5": {
"title": "yshop",
"devServer": {
"disableHostCheck": true,
"proxy": {
"^/api": {
"target": "https://wxapi.yixiang.co",
"changeOrigin": true,
"secure": true,
"pathRewrite": {
"^/api": "/api"
}
}
}
},
"router": {
"mode": "history"
},
"sdkConfigs": {
"maps": {
"qqmap": {
"key": ""
}
}
},
"domain": "h5.yixiang.co"
}
{
"name" : "yshopmall",
"appid" : "__UNI__C7A519E",
"description" : "",
"versionName" : "1.0.2",
"versionCode" : 2,
"transformPx" : false,
/* 5+App */
"app-plus" : {
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : false,
"autoclose" : true,
"delay" : 0
},
/* */
"modules" : {
"OAuth" : {},
"Payment" : {},
"Share" : {},
"Geolocation" : {}
},
/* */
"distribute" : {
/* android */
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
/* ios */
"ios" : {},
/* SDK */
"sdkConfigs" : {
"oauth" : {
"weixin" : {
"appid" : "wx7c84ede33062d1e4",
"appsecret" : "c47ef66d3311194da44e60387d5c1abd",
"UniversalLinks" : "https://yixiang.co/app/"
}
},
"payment" : {
"weixin" : {
"appid" : "wx7c84ede33062d1e4",
"UniversalLinks" : "https://yixiang.co/app/"
}
},
/* */
"distribute" : {
/* android */
"android" : {
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>"
]
},
/* ios */
"ios" : {},
/* SDK */
"sdkConfigs" : {
"oauth" : {
"weixin" : {
"appid" : "wx7c84ede33062d1e4",
"appsecret" : "c47ef66d3311194da44e60387d5c1abd",
"UniversalLinks" : "https://yixiang.co/app/"
}
},
"payment" : {
"weixin" : {
"appid" : "wx7c84ede33062d1e4",
"UniversalLinks" : "https://yixiang.co/app/"
}
},
"share" : {
"weixin" : {
"appid" : "wx7c84ede33062d1e4",
"UniversalLinks" : "https://yixiang.co/app/"
}
},
"ad" : {},
"geolocation" : {}
},
"splashscreen" : {
"ios" : {
"iphone" : {
"portrait-896h@3x" : "splash/1242+2688.png",
"portrait-896h@2x" : "splash/828+1792.png",
"iphonex" : "splash/1125+2436.png",
"retina55" : "splash/1142+2208.png",
"retina47" : "splash/750+1334.png",
"retina40" : "splash/640+1136.png",
"retina35" : "splash/640+960.png"
}
},
"android" : {
"hdpi" : "splash/480+762.png",
"xhdpi" : "splash/720+1242.png",
"xxhdpi" : "splash/1080+1882.png"
},
"iosStyle" : "common"
},
"icons" : {
"android" : {
"hdpi" : "icons/72x72.png",
"xhdpi" : "icons/96x96.png",
"xxhdpi" : "icons/144x144.png",
"xxxhdpi" : "icons/192x192.png"
},
"ios" : {
"appstore" : "icons/1024x1024.png",
"ipad" : {
"app" : "icons/76x76.png",
"app@2x" : "icons/152x152.png",
"notification" : "icons/20x20.png",
"notification@2x" : "icons/40x40.png",
"proapp@2x" : "icons/167x167.png",
"settings" : "icons/29x29.png",
"settings@2x" : "icons/58x58.png",
"spotlight" : "icons/40x40.png",
"spotlight@2x" : "icons/80x80.png"
},
"iphone" : {
"app@2x" : "icons/120x120.png",
"app@3x" : "icons/180x180.png",
"notification@2x" : "icons/40x40.png",
"notification@3x" : "icons/60x60.png",
"settings@2x" : "icons/58x58.png",
"settings@3x" : "icons/87x87.png",
"spotlight@2x" : "icons/80x80.png",
"spotlight@3x" : "icons/120x120.png"
}
}
}
},
"ad" : {}
},
"quickapp" : {},
"mp-weixin" : {
"appid" : "wx604d2ea4702620d2",
"setting" : {
"urlCheck" : true,
"postcss" : true,
"minified" : true
},
"ad" : {},
"geolocation" : {}
},
"splashscreen" : {
"ios" : {
"iphone" : {
"portrait-896h@3x" : "splash/1242+2688.png",
"portrait-896h@2x" : "splash/828+1792.png",
"iphonex" : "splash/1125+2436.png",
"retina55" : "splash/1142+2208.png",
"retina47" : "splash/750+1334.png",
"retina40" : "splash/640+1136.png",
"retina35" : "splash/640+960.png"
}
},
"android" : {
"hdpi" : "splash/480+762.png",
"xhdpi" : "splash/720+1242.png",
"xxhdpi" : "splash/1080+1882.png"
},
"iosStyle" : "common"
},
"icons" : {
"android" : {
"hdpi" : "icons/72x72.png",
"xhdpi" : "icons/96x96.png",
"xxhdpi" : "icons/144x144.png",
"xxxhdpi" : "icons/192x192.png"
},
"ios" : {
"appstore" : "icons/1024x1024.png",
"ipad" : {
"app" : "icons/76x76.png",
"app@2x" : "icons/152x152.png",
"notification" : "icons/20x20.png",
"notification@2x" : "icons/40x40.png",
"proapp@2x" : "icons/167x167.png",
"settings" : "icons/29x29.png",
"settings@2x" : "icons/58x58.png",
"spotlight" : "icons/40x40.png",
"spotlight@2x" : "icons/80x80.png"
},
"iphone" : {
"app@2x" : "icons/120x120.png",
"app@3x" : "icons/180x180.png",
"notification@2x" : "icons/40x40.png",
"notification@3x" : "icons/60x60.png",
"settings@2x" : "icons/58x58.png",
"settings@3x" : "icons/87x87.png",
"spotlight@2x" : "icons/80x80.png",
"spotlight@3x" : "icons/120x120.png"
}
}
}
}
},
"quickapp" : {},
"mp-weixin" : {
"appid" : "wx604d2ea4702620d2",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "你的位置信息将用于小程序位置接口的效果展示"
}
},
"plugins" : {
// #ifdef MP-WEIXIN
"live-player-plugin" : {
"version" : "1.2.8",
"provider" : "wx2b03c6e691cd7370"
}
}
},
// #endif
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao" : {
"usingComponents" : true
},
"h5" : {
"title" : "yshop",
"devServer" : {
"disableHostCheck" : true,
"proxy" : {
"^/api" : {
"target" : "https://wxapi.yixiang.co",
"changeOrigin" : true,
"secure" : true,
"pathRewrite" : {
"^/api" : "/api"
}
}
}
},
"router" : {
"mode" : "history"
},
"sdkConfigs" : {
"maps" : {
"qqmap" : {
"key" : ""
}
}
},
"domain" : "h5.yixiang.co"
}
}

1
package.json

@ -13,6 +13,7 @@
"animate.css": "^3.7.2",
"async-validator": "^3.2.4",
"dayjs": "^1.8.22",
"flyio": "^0.6.14",
"jweixin-module": "^1.6.0",
"miniapp-color-thief": "^1.0.5",
"vconsole": "^3.3.4",

Loading…
Cancel
Save