纸通宝商家版本的小程序,原生微信开发。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

27 lines
714 B

import { getStationInfo } from "../../../api/ztb"
const util = require('../../../utils/util')
const app = getApp()
Page({
data: {
height: app.globalData.fragmentHeight,
factoryInfo: null
},
onLoad: function (options) {
if(options.id){
wx.showLoading({ title: '正在处理', mask: true })
var params = {factoryId: options.id}
if(app.nowLocation){
params.personalLatitude = app.nowLocation.latitude
params.personalLongitude = app.nowLocation.longitude
}
getStationInfo(params).then(result => {
this.setData({factoryInfo: result.data, height: app.globalData.fragmentHeight})
wx.hideLoading()
}).catch(err => {
wx.hideLoading()
util.showToast(err)
})
}
}
})