Commit d873f734 by 张立顺

other:添加read.me 项目说明文档

1 parent 453e1b90
项目名 精品升级小程序
账号登录可以使用以下(验证码 开发和测试环境任意输入即可):
超级管理员:13022223223
供应商账号:13978573226 (选testfws1)
员工账号 :15626599735 (选明明塘朗园区店)
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据)
接口环境切换 在api目录下的environment (项目上传体验版或生产环境需手动切换)
0本地
1开发
2测试
3生产
项目版本管理有两个 生产环境 svn地址:svn://192.168.3.233/ddh/trunk/src/dijia/dj-miniprogram-merchant-point/dj-car-boutique-work-wechat
开发使用git进行版本管理 git地址:http://zhangls@192.168.3.233:8090/inversion/glsxcommodity-center-webchat.git
...@@ -11,30 +11,10 @@ App({ ...@@ -11,30 +11,10 @@ App({
wx.$request = request wx.$request = request
wx.$router = router wx.$router = router
}, },
// getUpdateManager() {
// const updateManager = wx.getUpdateManager()
// updateManager.onCheckForUpdate(function (res) {
// // 请求完新版本信息的回调
// })
// updateManager.onUpdateReady(function () {
// wx.showModal({
// title: '更新提示',
// content: '新版本已经准备好,是否重启应用?',
// success: function (res) {
// if (res.confirm) {
// // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
// updateManager.applyUpdate()
// }
// }
// })
// })
// updateManager.onUpdateFailed(function () {
// // 新版本下载失败
// })
// },
/**
* 下载小程序新版本并重启应用
*/
autoUpdate: function () { autoUpdate: function () {
// console.log(new Date()) // console.log(new Date())
const self = this const self = this
...@@ -95,27 +75,6 @@ App({ ...@@ -95,27 +75,6 @@ App({
} }
}, },
/**
* 下载小程序新版本并重启应用
*/
// downLoadAndUpdate: function (updateManager){
// var self=this
// wx.showLoading();
// //静默下载更新小程序新版本
// updateManager.onUpdateReady(function () {
// wx.hideLoading()
// //新的版本已经下载好,调用 applyUpdate 应用新版本并重启
// updateManager.applyUpdate()
// })
// updateManager.onUpdateFailed(function () {
// // 新的版本下载失败
// wx.showModal({
// title: '已经有新版本了哟~',
// content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~',
// })
// })
// },
onShow(options) { onShow(options) {
// this.getUpdateManager() // this.getUpdateManager()
if (options.query.scene) wx.$SCENE = options if (options.query.scene) wx.$SCENE = options
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!