| | |
| | | model: { |
| | | longitude, |
| | | latitude |
| | | },capacity: 3,page:1 |
| | | }, |
| | | capacity: 3, |
| | | page: 1 |
| | | }).then(res => { |
| | | this.setData({ |
| | | shopList: res.data.records |
| | | }) |
| | | if (res.data && res.data.records) { |
| | | this.setData({ |
| | | shopList: res.data.records || [] |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | shopDetail(e) { |
| | |
| | | <image class="right" src="../../static/icon/arrow_right.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="list"> |
| | | <view class="item" wx:for="{{shopList}}"> |
| | | <view class="item" wx:for="{{shopList}}" wx:key="index"> |
| | | <view class="name"> |
| | | <view class="icon"> |
| | | <image src="../../static/icon/mendian_item.png" mode="widthFix"></image> |
| | |
| | | // this.getDetail(options.id, options.userId || '') |
| | | }, |
| | | handleDesign() { |
| | | const { member } = this.data |
| | | const { member, origin, info } = this.data |
| | | let path = '/pages/design/design' |
| | | if(origin != 'b' && info.users && info.users.id){ |
| | | path = `/pages/design/design?name=${info.users.iamUsername}` |
| | | } |
| | | if (!member.phone) { |
| | | wx.setStorageSync('tempPath', '/pages/design/design') |
| | | wx.setStorageSync('tempPath', path) |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design', |
| | | url: path, |
| | | }) |
| | | }, |
| | | onShareAppMessage() { |
| | |
| | | * 页面的初始数据 |
| | | */ |
| | | data: { |
| | | guideName: '', |
| | | name: '', |
| | | phone: '', |
| | | showAreaList: false, |
| | |
| | | }, |
| | | onLoad(options) { |
| | | this.initData() |
| | | if(options.name){ |
| | | this.setData({ guideName: options.name }) |
| | | } |
| | | qqmapsdk = new QQMapWX({ |
| | | key: 'HIDBZ-2QXL4-TAWUD-XET6Q-EKTJE-CCBSQ' |
| | | }); |
| | |
| | | const { |
| | | name, |
| | | phone, |
| | | addr |
| | | addr, |
| | | guideName |
| | | } = this.data |
| | | if (!name) return wx.showToast({ |
| | | title: '请输入姓名', |
| | |
| | | saveFreeCustomizationApply({ |
| | | name, |
| | | phone, |
| | | username: guideName || null, |
| | | ...addr |
| | | }).then(res => { |
| | | wx.showToast({ |
| | |
| | | }) |
| | | }, |
| | | handleDesign() { |
| | | const { member } = this.data |
| | | const { member, origin, info } = this.data |
| | | let path = '/pages/design/design' |
| | | if(origin != 'b' && info.users && info.users.id){ |
| | | path = `/pages/design/design?name=${info.users.iamUsername}` |
| | | } |
| | | if (!member.phone) { |
| | | wx.setStorageSync('tempPath', '/pages/design/design') |
| | | wx.setStorageSync('tempPath', path) |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design', |
| | | url: path, |
| | | }) |
| | | }, |
| | | playVideo() { |
| | |
| | | }) |
| | | }, |
| | | handleDesign() { |
| | | const { member } = this.data |
| | | const { member, origin, info } = this.data |
| | | let path = '/pages/design/design' |
| | | if(origin != 'b' && info.users && info.users.id){ |
| | | path = `/pages/design/design?name=${info.users.iamUsername}` |
| | | } |
| | | if (!member.phone) { |
| | | wx.setStorageSync('tempPath', '/pages/design/design') |
| | | wx.setStorageSync('tempPath', path) |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design', |
| | | url: path, |
| | | }) |
| | | }, |
| | | openShare() { |
| | |
| | | }) |
| | | }, |
| | | handleDesign() { |
| | | const { member } = this.data |
| | | const { member, origin, info } = this.data |
| | | let path = '/pages/design/design' |
| | | if(origin != 'b' && info.users && info.users.id){ |
| | | path = `/pages/design/design?name=${info.users.iamUsername}` |
| | | } |
| | | if (!member.phone) { |
| | | wx.setStorageSync('tempPath', '/pages/design/design') |
| | | wx.setStorageSync('tempPath', path) |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design', |
| | | url: path, |
| | | }) |
| | | }, |
| | | openShare() { |
| | |
| | | |
| | | |
| | | |
| | | // export const baseUrl = 'http://192.168.0.136:10027' // 本地 |
| | | // export const baseUrl = 'http://192.168.43.177:10027' // 本地 |
| | | // export const baseUrl = 'https://dmtest.ahapp.net/web_interface' //测试服务器 |
| | | |
| | | // 测试服务器 |
| | |
| | | export const baseUrl = 'http://192.168.0.170:80' |
| | | // export const baseUrl = 'http://192.168.0.170:80' |
| | | // 测试服务器 |
| | | // export const baseUrl = 'https://dmdev.zhibang.com:8443/web_interface' |
| | | // 生产服务器 |
| | | // export const baseUrl = 'https://zbyj.zbom.com/web_interface' |
| | | export const baseUrl = 'https://zbyj.zbom.com/web_interface' |
| | | |
| | | // 腾讯地图开发者 key |
| | | export const qqMapKey = 'HIDBZ-2QXL4-TAWUD-XET6Q-EKTJE-CCBSQ' |