Commit f519ce2a by 李嘉林

版本号

parent 5eb930d9
...@@ -66,8 +66,14 @@ export default { ...@@ -66,8 +66,14 @@ export default {
}, },
showActionSheet(){ showActionSheet(){
let vm = this let vm = this
let accountInfo = wx.getAccountInfoSync();
let version = accountInfo.miniProgram.version; // 1.0.0 小程序版本号
let itemList = ['复制页面路径', '隐藏工具箱'];
if(version){
itemList.push(`当前版本号:${version}`)
}
wx.showActionSheet({ wx.showActionSheet({
itemList: ['复制页面路径', '隐藏工具箱'], itemList,
success (res) { success (res) {
console.log(res.tapIndex) console.log(res.tapIndex)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment