Showing
11 changed files
with
37 additions
and
13 deletions
| @@ -177,7 +177,9 @@ Page({ | @@ -177,7 +177,9 @@ Page({ | ||
| 177 | // 跳转到商家入驻页 | 177 | // 跳转到商家入驻页 |
| 178 | gotoJoinSeller() { | 178 | gotoJoinSeller() { |
| 179 | wx.navigateTo({ | 179 | wx.navigateTo({ |
| 180 | - url: '/pages/customer/joinSeller', | 180 | + url: util.http_build_query({ |
| 181 | + laiyuan:'邀请函' | ||
| 182 | + }, '/pages/customer/joinSeller') | ||
| 181 | }) | 183 | }) |
| 182 | }, | 184 | }, |
| 183 | // 导航 | 185 | // 导航 |
| @@ -177,7 +177,9 @@ Page({ | @@ -177,7 +177,9 @@ Page({ | ||
| 177 | // 跳转到商家入驻页 | 177 | // 跳转到商家入驻页 |
| 178 | gotoJoinSeller() { | 178 | gotoJoinSeller() { |
| 179 | wx.navigateTo({ | 179 | wx.navigateTo({ |
| 180 | - url: '/pages/customer/joinSeller', | 180 | + url: util.http_build_query({ |
| 181 | + laiyuan:'邀请函' | ||
| 182 | + }, '/pages/customer/joinSeller') | ||
| 181 | }) | 183 | }) |
| 182 | }, | 184 | }, |
| 183 | // 导航 | 185 | // 导航 |
| @@ -177,7 +177,9 @@ Page({ | @@ -177,7 +177,9 @@ Page({ | ||
| 177 | // 跳转到商家入驻页 | 177 | // 跳转到商家入驻页 |
| 178 | gotoJoinSeller() { | 178 | gotoJoinSeller() { |
| 179 | wx.navigateTo({ | 179 | wx.navigateTo({ |
| 180 | - url: '/pages/customer/joinSeller', | 180 | + url: util.http_build_query({ |
| 181 | + laiyuan:'邀请函' | ||
| 182 | + }, '/pages/customer/joinSeller') | ||
| 181 | }) | 183 | }) |
| 182 | }, | 184 | }, |
| 183 | // 导航 | 185 | // 导航 |
| @@ -176,7 +176,9 @@ Page({ | @@ -176,7 +176,9 @@ Page({ | ||
| 176 | // 跳转到商家入驻页 | 176 | // 跳转到商家入驻页 |
| 177 | gotoJoinSeller() { | 177 | gotoJoinSeller() { |
| 178 | wx.navigateTo({ | 178 | wx.navigateTo({ |
| 179 | - url: '/pages/customer/joinSeller', | 179 | + url: util.http_build_query({ |
| 180 | + laiyuan:'邀请函' | ||
| 181 | + }, '/pages/customer/joinSeller') | ||
| 180 | }) | 182 | }) |
| 181 | }, | 183 | }, |
| 182 | // 导航 | 184 | // 导航 |
| @@ -170,7 +170,9 @@ Page({ | @@ -170,7 +170,9 @@ Page({ | ||
| 170 | // 跳转到商家入驻页 | 170 | // 跳转到商家入驻页 |
| 171 | gotoJoinSeller() { | 171 | gotoJoinSeller() { |
| 172 | wx.navigateTo({ | 172 | wx.navigateTo({ |
| 173 | - url: '/pages/customer/joinSeller', | 173 | + url: util.http_build_query({ |
| 174 | + laiyuan:'邀请函' | ||
| 175 | + }, '/pages/customer/joinSeller') | ||
| 174 | }) | 176 | }) |
| 175 | }, | 177 | }, |
| 176 | looklocation: function () { | 178 | looklocation: function () { |
| @@ -177,7 +177,9 @@ Page({ | @@ -177,7 +177,9 @@ Page({ | ||
| 177 | // 跳转到商家入驻页 | 177 | // 跳转到商家入驻页 |
| 178 | gotoJoinSeller() { | 178 | gotoJoinSeller() { |
| 179 | wx.navigateTo({ | 179 | wx.navigateTo({ |
| 180 | - url: '/pages/customer/joinSeller', | 180 | + url: util.http_build_query({ |
| 181 | + laiyuan:'邀请函' | ||
| 182 | + }, '/pages/customer/joinSeller') | ||
| 181 | }) | 183 | }) |
| 182 | }, | 184 | }, |
| 183 | // 导航 | 185 | // 导航 |
| @@ -177,7 +177,9 @@ Page({ | @@ -177,7 +177,9 @@ Page({ | ||
| 177 | // 跳转到商家入驻页 | 177 | // 跳转到商家入驻页 |
| 178 | gotoJoinSeller() { | 178 | gotoJoinSeller() { |
| 179 | wx.navigateTo({ | 179 | wx.navigateTo({ |
| 180 | - url: '/pages/customer/joinSeller', | 180 | + url: util.http_build_query({ |
| 181 | + laiyuan:'邀请函' | ||
| 182 | + }, '/pages/customer/joinSeller') | ||
| 181 | }) | 183 | }) |
| 182 | }, | 184 | }, |
| 183 | // 导航 | 185 | // 导航 |
| @@ -194,7 +194,9 @@ Page({ | @@ -194,7 +194,9 @@ Page({ | ||
| 194 | // 跳转到商家入驻页 | 194 | // 跳转到商家入驻页 |
| 195 | gotoJoinSeller() { | 195 | gotoJoinSeller() { |
| 196 | wx.navigateTo({ | 196 | wx.navigateTo({ |
| 197 | - url: '/pages/customer/joinSeller', | 197 | + url: util.http_build_query({ |
| 198 | + laiyuan:'邀请函' | ||
| 199 | + }, '/pages/customer/joinSeller') | ||
| 198 | }) | 200 | }) |
| 199 | }, | 201 | }, |
| 200 | // 导航 | 202 | // 导航 |
| @@ -18,12 +18,15 @@ Page({ | @@ -18,12 +18,15 @@ Page({ | ||
| 18 | lat: '', | 18 | lat: '', |
| 19 | region: [], | 19 | region: [], |
| 20 | }, | 20 | }, |
| 21 | - | 21 | + laiyuan: '', |
| 22 | /** | 22 | /** |
| 23 | * 生命周期函数--监听页面加载 | 23 | * 生命周期函数--监听页面加载 |
| 24 | */ | 24 | */ |
| 25 | onLoad(options) { | 25 | onLoad(options) { |
| 26 | - | 26 | + console.log('options', options); |
| 27 | + if (options && options.laiyuan) { | ||
| 28 | + this.laiyuan = options.laiyuan | ||
| 29 | + } | ||
| 27 | }, | 30 | }, |
| 28 | submitInfo() { | 31 | submitInfo() { |
| 29 | let sellername = this.data.sellername.trim(); | 32 | let sellername = this.data.sellername.trim(); |
| @@ -84,7 +87,7 @@ Page({ | @@ -84,7 +87,7 @@ Page({ | ||
| 84 | shopnumber:this.data.phone.trim(), | 87 | shopnumber:this.data.phone.trim(), |
| 85 | name:this.data.rname.trim(), | 88 | name:this.data.rname.trim(), |
| 86 | address: this.data.map_address, | 89 | address: this.data.map_address, |
| 87 | - laiyuan:'小程序', | 90 | + laiyuan: this.laiyuan, |
| 88 | openid: getApp().openid, | 91 | openid: getApp().openid, |
| 89 | }).then(res => { | 92 | }).then(res => { |
| 90 | if (res.ret != 200) { | 93 | if (res.ret != 200) { |
| 1 | // pages/reservr/index.js | 1 | // pages/reservr/index.js |
| 2 | import PubSub from '../../utils/PubSub' | 2 | import PubSub from '../../utils/PubSub' |
| 3 | +import util from '../../utils/util'; | ||
| 3 | Page({ | 4 | Page({ |
| 4 | data: { | 5 | data: { |
| 5 | background: ['https://qn.colorcun.com/homeImg1.png', 'https://qn.colorcun.com/homeImg2.png', | 6 | background: ['https://qn.colorcun.com/homeImg1.png', 'https://qn.colorcun.com/homeImg2.png', |
| @@ -28,7 +29,9 @@ Page({ | @@ -28,7 +29,9 @@ Page({ | ||
| 28 | // 跳转到商家入驻页 | 29 | // 跳转到商家入驻页 |
| 29 | gotoJoinSeller() { | 30 | gotoJoinSeller() { |
| 30 | wx.navigateTo({ | 31 | wx.navigateTo({ |
| 31 | - url: '/pages/customer/joinSeller', | 32 | + url: util.http_build_query({ |
| 33 | + laiyuan:'小程序' | ||
| 34 | + }, '/pages/customer/joinSeller') | ||
| 32 | }) | 35 | }) |
| 33 | }, | 36 | }, |
| 34 | /** | 37 | /** |
| @@ -125,7 +125,9 @@ Page({ | @@ -125,7 +125,9 @@ Page({ | ||
| 125 | // 跳转到商家入驻页 | 125 | // 跳转到商家入驻页 |
| 126 | gotoJoinSeller() { | 126 | gotoJoinSeller() { |
| 127 | wx.navigateTo({ | 127 | wx.navigateTo({ |
| 128 | - url: '/pages/customer/joinSeller', | 128 | + url: util.http_build_query({ |
| 129 | + laiyuan:'商家详情页' | ||
| 130 | + }, '/pages/customer/joinSeller') | ||
| 129 | }) | 131 | }) |
| 130 | }, | 132 | }, |
| 131 | // 获取商家设置营销信息 | 133 | // 获取商家设置营销信息 |
-
Please register or login to post a comment