Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d873f734
authored
Mar 23, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
other:添加read.me 项目说明文档
1 parent
453e1b90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
44 deletions
README.md
app.js
README.md
0 → 100644
View file @
d873f73
项目名 精品升级小程序
账号登录可以使用以下(验证码 开发和测试环境任意输入即可):
超级管理员: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
app.js
View file @
d873f73
...
...
@@ -11,30 +11,10 @@ App({
wx
.
$request
=
request
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
()
{
// console.log(new Date())
const
self
=
this
...
...
@@ -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
)
{
// this.getUpdateManager()
if
(
options
.
query
.
scene
)
wx
.
$SCENE
=
options
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment