Skip to content

Commit

Permalink
000
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyChen2001 committed Jul 30, 2021
1 parent 418365a commit f4e25c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"weui": true
},
"style": "v2",
"sitemapLocation": "sitemap.json"
"sitemapLocation": "sitemap.json",
"navigateToMiniProgramAppIdList": ["wxc2edadc87077fa2a"]
}
15 changes: 15 additions & 0 deletions pages/home/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,22 @@ Page({
})
},
click: function (e) {
if(e.currentTarget.dataset.id=="medicine/medicine"){
wx.navigateToMiniProgram({
appId: 'wxc2edadc87077fa2a',
path: '',
envVersion: 'release',// 打开正式版
success(res) {
// 打开成功
},
fail: function (err) {
console.log(err);
}
})
}
else{
app.homeclick(e)
}
},
loadImage() {
//加载缩略图
Expand Down

0 comments on commit f4e25c1

Please sign in to comment.