Showing
5 changed files
with
18 additions
and
5 deletions
| @@ -30,6 +30,7 @@ Page({ | @@ -30,6 +30,7 @@ Page({ | ||
| 30 | IsCollectionSeller:res.data, | 30 | IsCollectionSeller:res.data, |
| 31 | }) | 31 | }) |
| 32 | }) | 32 | }) |
| 33 | + this.SetRelaOpenid(); | ||
| 33 | }, | 34 | }, |
| 34 | GetSellerDetail(){ | 35 | GetSellerDetail(){ |
| 35 | let options=this.options | 36 | let options=this.options |
| @@ -222,4 +223,14 @@ Page({ | @@ -222,4 +223,14 @@ Page({ | ||
| 222 | currentView:e.detail.current+1 | 223 | currentView:e.detail.current+1 |
| 223 | }) | 224 | }) |
| 224 | }, | 225 | }, |
| 226 | + async SetRelaOpenid(){ | ||
| 227 | + if(!this.options.fromid) return; | ||
| 228 | + let openid=await getApp().getOpenid() | ||
| 229 | + App.Reserve.SetRelaOpenid({ | ||
| 230 | + openid:openid, | ||
| 231 | + fromid:this.options.fromid, | ||
| 232 | + sid:this.options.id, | ||
| 233 | + sub:this.options.sub||3,//关系类型:1/2/3 邀请关系/商户端分享关系/C端分享关系 | ||
| 234 | + }) | ||
| 235 | + }, | ||
| 225 | }) | 236 | }) |
| @@ -14,6 +14,7 @@ Page({ | @@ -14,6 +14,7 @@ Page({ | ||
| 14 | hasLoadData:false, | 14 | hasLoadData:false, |
| 15 | act:'', | 15 | act:'', |
| 16 | hasActName:'', | 16 | hasActName:'', |
| 17 | + hasSellerShare:false, | ||
| 17 | }, | 18 | }, |
| 18 | /** | 19 | /** |
| 19 | * 生命周期函数--监听页面加载 | 20 | * 生命周期函数--监听页面加载 |
| @@ -21,7 +22,8 @@ Page({ | @@ -21,7 +22,8 @@ Page({ | ||
| 21 | onLoad: function (options) { | 22 | onLoad: function (options) { |
| 22 | this.options=options; | 23 | this.options=options; |
| 23 | this.setData({ | 24 | this.setData({ |
| 24 | - actType:options.act | 25 | + actType:options.act, |
| 26 | + hasSellerShare:options.hasSellerShare||false, | ||
| 25 | }) | 27 | }) |
| 26 | this.GetSellerDetail(); | 28 | this.GetSellerDetail(); |
| 27 | }, | 29 | }, |
| @@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
| 18 | </view> | 18 | </view> |
| 19 | <view class="save"> | 19 | <view class="save"> |
| 20 | <savefile filePath="{{paletteImageSrc}}"> | 20 | <savefile filePath="{{paletteImageSrc}}"> |
| 21 | - <view class="save-but flex-cc"> | 21 | + <view class="save-but {{hasSellerShare?'sellerShare':''}} flex-cc"> |
| 22 | <view class="save-but-icon"></view> | 22 | <view class="save-but-icon"></view> |
| 23 | <view class="save-but-text">保存到相册</view> | 23 | <view class="save-but-text">保存到相册</view> |
| 24 | </view> | 24 | </view> |
| @@ -45,7 +45,7 @@ | @@ -45,7 +45,7 @@ | ||
| 45 | "list": [] | 45 | "list": [] |
| 46 | }, | 46 | }, |
| 47 | "miniprogram": { | 47 | "miniprogram": { |
| 48 | - "current": 54, | 48 | + "current": 39, |
| 49 | "list": [ | 49 | "list": [ |
| 50 | { | 50 | { |
| 51 | "id": 0, | 51 | "id": 0, |
| @@ -348,7 +348,7 @@ | @@ -348,7 +348,7 @@ | ||
| 348 | "id": 39, | 348 | "id": 39, |
| 349 | "name": "pages/reserve/detail 在线订座 ", | 349 | "name": "pages/reserve/detail 在线订座 ", |
| 350 | "pathName": "pages/reserve/detail", | 350 | "pathName": "pages/reserve/detail", |
| 351 | - "query": "id=999", | 351 | + "query": "id=999&fromid=22222", |
| 352 | "scene": null | 352 | "scene": null |
| 353 | }, | 353 | }, |
| 354 | { | 354 | { |
| @@ -4,7 +4,7 @@ export default { | @@ -4,7 +4,7 @@ export default { | ||
| 4 | silence: true, //静默,不带loading; 默认 true 不带loading | 4 | silence: true, //静默,不带loading; 默认 true 不带loading |
| 5 | cachetime: 0, //缓存 0无,-1永久,86400秒; 默认 0 不缓存 | 5 | cachetime: 0, //缓存 0无,-1永久,86400秒; 默认 0 不缓存 |
| 6 | timeout: 2000, //接口超时时间,默认2s | 6 | timeout: 2000, //接口超时时间,默认2s |
| 7 | - host: '', //默认空使用04服务器,测试填写 'https://xt05.colorcun.com/?s=' | 7 | + host: '', //默认空使用04服务器,测试填写 'https://xt05.colorcun.com:10006/?s=' |
| 8 | alias: 'App.TestManagement.TestReal', //真实接口名称,默认为空 | 8 | alias: 'App.TestManagement.TestReal', //真实接口名称,默认为空 |
| 9 | }, | 9 | }, |
| 10 | 10 |
-
Please register or login to post a comment