open-location-weex.js 461 字节
Newer Older
1 2 3 4
import {
  showPage
} from '../page.js'

5
export function openLocation (data, callbackId) {
6 7 8 9 10 11
  showPage({
    url: '__uniappopenlocation',
    data,
    style: {
      titleNView: {
        type: 'transparent'
12 13 14 15 16 17 18 19
      },
      popGesture: 'close',
      backButtonAutoControl: 'close'
    },
    onClose() {
      invoke(callbackId, {
        errMsg: 'openLocation:fail cancel'
      })
20 21 22 23 24 25
    }
  })
  return {
    errMsg: 'openLocation:ok'
  }
}