Showing
6 changed files
with
38 additions
and
8 deletions
| @@ -67,9 +67,25 @@ Page({ | @@ -67,9 +67,25 @@ Page({ | ||
| 67 | onHide: function () { | 67 | onHide: function () { |
| 68 | 68 | ||
| 69 | }, | 69 | }, |
| 70 | + onShareAppMessage: function () { | ||
| 71 | + let path=util.http_build_query({id:this.data.seller.id,fromid:getApp().openid},'/pages/reserve/detail') | ||
| 72 | + return { | ||
| 73 | + title:'请客订包间,就上一键订', | ||
| 74 | + imageUrl:'https://xt04.colorcun.com/sellerShare/Share_'+this.data.seller.id+'.png?'+Math.random(), | ||
| 75 | + path: path, | ||
| 76 | + } | ||
| 77 | + }, | ||
| 70 | NewCustomer(e){ | 78 | NewCustomer(e){ |
| 71 | this.setData({ | 79 | this.setData({ |
| 72 | NewCustomerTotal:e.detail.total | 80 | NewCustomerTotal:e.detail.total |
| 73 | }) | 81 | }) |
| 74 | - } | 82 | + }, |
| 83 | + shareDisplay(){ | ||
| 84 | + this.selectComponent('#share').show() | ||
| 85 | + }, | ||
| 86 | + gotoSellerShop(){ | ||
| 87 | + wx.navigateTo({ | ||
| 88 | + url:util.http_build_query({id:this.data.seller.id},'/pages/reserve/detail') | ||
| 89 | + }) | ||
| 90 | + }, | ||
| 75 | }) | 91 | }) |
| @@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
| 5 | "usingComponents": { | 5 | "usingComponents": { |
| 6 | "nav":"/components/nav/nav", | 6 | "nav":"/components/nav/nav", |
| 7 | "tabBar":"../../../components/book/tabBar/tabBar", | 7 | "tabBar":"../../../components/book/tabBar/tabBar", |
| 8 | - "formids":"/components/formids/formids" | 8 | + "formids":"/components/formids/formids", |
| 9 | + "share":"/components/reserve/share/share" | ||
| 9 | } | 10 | } |
| 10 | } | 11 | } |
| 1 | <!--pages/book/setting/index.wxml--> | 1 | <!--pages/book/setting/index.wxml--> |
| 2 | <nav id="nav" backgroundColor="#199095" color="#fefefe">订座</nav> | 2 | <nav id="nav" backgroundColor="#199095" color="#fefefe">订座</nav> |
| 3 | -<view class="header"> | 3 | +<view class="header flex-lr"> |
| 4 | <view class="info"> | 4 | <view class="info"> |
| 5 | - <view class="nick">{{user.nick_name || user.nickname}}</view> | ||
| 6 | - <view class="seller Medium">{{seller.sellername}} | {{user.role_name||''}}</view> | 5 | + <view class="nick flex-lr"> |
| 6 | + <view bindtap="gotoSellerShop">{{seller.sellername}}</view> | ||
| 7 | + <view class="share-but" bindtap="shareDisplay"></view> | ||
| 8 | + </view> | ||
| 9 | + <view class="seller Medium">{{user.nick_name || user.nickname}} | {{user.role_name||''}}</view> | ||
| 7 | </view> | 10 | </view> |
| 8 | </view> | 11 | </view> |
| 9 | <view class="page"> | 12 | <view class="page"> |
| @@ -59,3 +62,4 @@ | @@ -59,3 +62,4 @@ | ||
| 59 | </formids> | 62 | </formids> |
| 60 | </view> | 63 | </view> |
| 61 | <tabBar bindNewCustomer="NewCustomer" id="tabBar"></tabBar> | 64 | <tabBar bindNewCustomer="NewCustomer" id="tabBar"></tabBar> |
| 65 | +<share id="share" seller_id="{{seller.id}}"></share> |
| @@ -4,15 +4,15 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-zk.png | @@ -4,15 +4,15 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-zk.png | ||
| 4 | http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png | 4 | http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png |
| 5 | */ | 5 | */ |
| 6 | .header{ | 6 | .header{ |
| 7 | - height: 302rpx; | ||
| 8 | background-color: #199095; | 7 | background-color: #199095; |
| 9 | margin-top: -2rpx; | 8 | margin-top: -2rpx; |
| 10 | } | 9 | } |
| 11 | .header .info{ | 10 | .header .info{ |
| 12 | color:#FEFEFE; | 11 | color:#FEFEFE; |
| 13 | width: 90%; | 12 | width: 90%; |
| 14 | - padding-top: 86rpx; | 13 | + padding-top: 66rpx; |
| 15 | margin: 0 auto; | 14 | margin: 0 auto; |
| 15 | + padding-bottom: 80rpx; | ||
| 16 | } | 16 | } |
| 17 | .header .info .nick{ | 17 | .header .info .nick{ |
| 18 | font-size: 44rpx; | 18 | font-size: 44rpx; |
| @@ -43,4 +43,11 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png | @@ -43,4 +43,11 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png | ||
| 43 | } | 43 | } |
| 44 | .row .more{ | 44 | .row .more{ |
| 45 | margin-left: 20rpx; | 45 | margin-left: 20rpx; |
| 46 | +} | ||
| 47 | +.share-but{ | ||
| 48 | + background-image: url("http://qn.colorcun.com/reserve/share/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20190625162307.png"); | ||
| 49 | + width: 52rpx; | ||
| 50 | + height: 52rpx; | ||
| 51 | + background-size: 100% 100%; | ||
| 52 | + min-width: 52rpx; | ||
| 46 | } | 53 | } |
| @@ -110,9 +110,11 @@ Page({ | @@ -110,9 +110,11 @@ Page({ | ||
| 110 | * 用户点击右上角分享 | 110 | * 用户点击右上角分享 |
| 111 | */ | 111 | */ |
| 112 | onShareAppMessage: function () { | 112 | onShareAppMessage: function () { |
| 113 | + let path=util.http_build_query({id:this.data.seller.id,fromid:getApp().openid},'/pages/reserve/detail') | ||
| 113 | return { | 114 | return { |
| 114 | title:'请客订包间,就上一键订', | 115 | title:'请客订包间,就上一键订', |
| 115 | imageUrl:'https://xt04.colorcun.com/sellerShare/Share_'+this.options.id+'.png?'+Math.random(), | 116 | imageUrl:'https://xt04.colorcun.com/sellerShare/Share_'+this.options.id+'.png?'+Math.random(), |
| 117 | + path:path, | ||
| 116 | } | 118 | } |
| 117 | }, | 119 | }, |
| 118 | reserve(){ | 120 | reserve(){ |
| @@ -221,7 +221,7 @@ | @@ -221,7 +221,7 @@ | ||
| 221 | }, | 221 | }, |
| 222 | { | 222 | { |
| 223 | "id": -1, | 223 | "id": -1, |
| 224 | - "name": "预订本-设置", | 224 | + "name": "pack-book/pages/book/setting/index 预订本-设置", |
| 225 | "pathName": "pack-book/pages/book/setting/index", | 225 | "pathName": "pack-book/pages/book/setting/index", |
| 226 | "query": "", | 226 | "query": "", |
| 227 | "scene": "1001" | 227 | "scene": "1001" |
-
Please register or login to post a comment