Showing
10 changed files
with
95 additions
and
20 deletions
| @@ -27,7 +27,8 @@ | @@ -27,7 +27,8 @@ | ||
| 27 | "pages/manager-invitation/setting/history", | 27 | "pages/manager-invitation/setting/history", |
| 28 | "pages/reserve/activity", | 28 | "pages/reserve/activity", |
| 29 | "pages/reserve/discount", | 29 | "pages/reserve/discount", |
| 30 | - "pages/reserve/indexList" | 30 | + "pages/reserve/indexList", |
| 31 | + "pages/reserve/share" | ||
| 31 | ], | 32 | ], |
| 32 | "subpackages": [ | 33 | "subpackages": [ |
| 33 | { | 34 | { |
| @@ -5,7 +5,7 @@ Component({ | @@ -5,7 +5,7 @@ Component({ | ||
| 5 | * 组件的属性列表 | 5 | * 组件的属性列表 |
| 6 | */ | 6 | */ |
| 7 | properties: { | 7 | properties: { |
| 8 | - | 8 | + seller_id:String, |
| 9 | }, | 9 | }, |
| 10 | 10 | ||
| 11 | /** | 11 | /** |
| @@ -32,11 +32,14 @@ Component({ | @@ -32,11 +32,14 @@ Component({ | ||
| 32 | shareDo(e){ | 32 | shareDo(e){ |
| 33 | this.hide() | 33 | this.hide() |
| 34 | let act=util.attr(e,'act'); | 34 | let act=util.attr(e,'act'); |
| 35 | - if('wechat'==act){ | ||
| 36 | - | ||
| 37 | - }else{ | ||
| 38 | - | ||
| 39 | - } | 35 | + if(!act) return; |
| 36 | + console.log('shareDo.'+act,e); | ||
| 37 | + wx.navigateTo({ | ||
| 38 | + url:util.http_build_query({ | ||
| 39 | + id:this.data.seller_id, | ||
| 40 | + act:act, | ||
| 41 | + },'/pages/reserve/share') | ||
| 42 | + }) | ||
| 40 | }, | 43 | }, |
| 41 | } | 44 | } |
| 42 | }) | 45 | }) |
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | </button> | 4 | </button> |
| 5 | </block> | 5 | </block> |
| 6 | <block wx:else=""> | 6 | <block wx:else=""> |
| 7 | - <formids bindclick="setUserInfoSuccess" catchtap="catchtap"> | 7 | + <formids bindclick="setUserInfoSuccess" catchtap="catchtap" style="width: 100%;"> |
| 8 | <slot></slot> | 8 | <slot></slot> |
| 9 | </formids> | 9 | </formids> |
| 10 | </block> | 10 | </block> |
| @@ -284,10 +284,4 @@ Page({ | @@ -284,10 +284,4 @@ Page({ | ||
| 284 | currentView:e.detail.current+1 | 284 | currentView:e.detail.current+1 |
| 285 | }) | 285 | }) |
| 286 | }, | 286 | }, |
| 287 | - onImgOK(e){ | ||
| 288 | - console.log('onImgOK',e.detail.path) | ||
| 289 | - this.setData({ | ||
| 290 | - paletteImageSrc:e.detail.path | ||
| 291 | - }) | ||
| 292 | - }, | ||
| 293 | }) | 287 | }) |
| @@ -11,7 +11,6 @@ | @@ -11,7 +11,6 @@ | ||
| 11 | "nav":"/components/nav/nav", | 11 | "nav":"/components/nav/nav", |
| 12 | "getpos":"/components/userinfo/getpos", | 12 | "getpos":"/components/userinfo/getpos", |
| 13 | "discount":"/components/reserve/discount", | 13 | "discount":"/components/reserve/discount", |
| 14 | - "painter":"/components/painter/painter", | ||
| 15 | "share":"/components/reserve/share/share" | 14 | "share":"/components/reserve/share/share" |
| 16 | } | 15 | } |
| 17 | } | 16 | } |
| @@ -162,8 +162,4 @@ | @@ -162,8 +162,4 @@ | ||
| 162 | <as id="as" items="{{seller.seller_tel}}" bindclick="reservePhone">拨打电话预订</as> | 162 | <as id="as" items="{{seller.seller_tel}}" bindclick="reservePhone">拨打电话预订</as> |
| 163 | <getpos bindpos="onpos" id="getpos"></getpos> | 163 | <getpos bindpos="onpos" id="getpos"></getpos> |
| 164 | <discount id="discount" seller="{{seller}}" bindhide="discountHide" bindshow="discountShow"></discount> | 164 | <discount id="discount" seller="{{seller}}" bindhide="discountHide" bindshow="discountShow"></discount> |
| 165 | -<view style="position: fixed;top:-9999rpx;" wx:if="{{palette}}"> | ||
| 166 | - <painter palette="{{palette}}" bind:imgOK="onImgOK" bind:imgErr="onImgOK"/> | ||
| 167 | - <painter palette="{{paletteCode}}" bind:imgOK="onImgOKCode" bind:imgErr="onImgOKCode"/> | ||
| 168 | -</view> | ||
| 169 | -<share id="share"></share> | ||
| 165 | +<share id="share" seller_id="{{seller.id}}"></share> |
pages/reserve/share.js
0 → 100644
| 1 | +// pages/reserve/share.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +const {regeneratorRuntime} = global | ||
| 5 | +Page({ | ||
| 6 | + | ||
| 7 | + /** | ||
| 8 | + * 页面的初始数据 | ||
| 9 | + */ | ||
| 10 | + data: { | ||
| 11 | + | ||
| 12 | + }, | ||
| 13 | + | ||
| 14 | + /** | ||
| 15 | + * 生命周期函数--监听页面加载 | ||
| 16 | + */ | ||
| 17 | + onLoad: function (options) { | ||
| 18 | + | ||
| 19 | + }, | ||
| 20 | + | ||
| 21 | + /** | ||
| 22 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 23 | + */ | ||
| 24 | + onReady: function () { | ||
| 25 | + | ||
| 26 | + }, | ||
| 27 | + | ||
| 28 | + /** | ||
| 29 | + * 生命周期函数--监听页面显示 | ||
| 30 | + */ | ||
| 31 | + onShow: function () { | ||
| 32 | + | ||
| 33 | + }, | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * 生命周期函数--监听页面隐藏 | ||
| 37 | + */ | ||
| 38 | + onHide: function () { | ||
| 39 | + | ||
| 40 | + }, | ||
| 41 | + | ||
| 42 | + /** | ||
| 43 | + * 生命周期函数--监听页面卸载 | ||
| 44 | + */ | ||
| 45 | + onUnload: function () { | ||
| 46 | + | ||
| 47 | + }, | ||
| 48 | + | ||
| 49 | + /** | ||
| 50 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 51 | + */ | ||
| 52 | + onPullDownRefresh: function () { | ||
| 53 | + | ||
| 54 | + }, | ||
| 55 | + | ||
| 56 | + /** | ||
| 57 | + * 页面上拉触底事件的处理函数 | ||
| 58 | + */ | ||
| 59 | + onReachBottom: function () { | ||
| 60 | + | ||
| 61 | + }, | ||
| 62 | + | ||
| 63 | + onImgOK(e){ | ||
| 64 | + console.log('onImgOK',e.detail.path) | ||
| 65 | + this.setData({ | ||
| 66 | + paletteImageSrc:e.detail.path | ||
| 67 | + }) | ||
| 68 | + }, | ||
| 69 | +}) |
pages/reserve/share.json
0 → 100644
pages/reserve/share.wxml
0 → 100644
| 1 | +<!--pages/reserve/share.wxml--> | ||
| 2 | +<nav>{{true?'分享图':'二维码下载'}}</nav> | ||
| 3 | +<view style="position: fixed;top:-9999rpx;" wx:if="{{palette}}"> | ||
| 4 | + <painter palette="{{palette}}" bind:imgOK="onImgOK" bind:imgErr="onImgOK"/> | ||
| 5 | + <painter palette="{{paletteCode}}" bind:imgOK="onImgOKCode" bind:imgErr="onImgOKCode"/> | ||
| 6 | +</view> |
pages/reserve/share.wxss
0 → 100644
| 1 | +/* pages/reserve/share.wxss */ |
-
Please register or login to post a comment