Logo

GitLab

Sign in

tutorial / mini-app

  • Back to Group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • mini-app
  • official
  • page
  • API
  • pages
  • open-location
  • open-location.js
  • 自动登录,及配置文件修改
    15424199
    zhaoxing authored
    2017-08-14 14:07:50 +0800  
    Browse Code ยป
open-location.js 282 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
Page({
  openLocation: function (e) {
    console.log(e)
    var value = e.detail.value
    console.log(value)
    wx.openLocation({
      longitude: Number(value.longitude),
      latitude: Number(value.latitude),
      name: value.name,
      address: value.address
    })
  }
})