Commit 8c9b32f7481ce23ebd707164c48ac8f4019010a9

Authored by vking
1 parent 32d74d74

painter

Showing 1 changed file with 12 additions and 7 deletions
@@ -97,6 +97,7 @@ Page({ @@ -97,6 +97,7 @@ Page({
97 let seller=this.data.seller 97 let seller=this.data.seller
98 let pw=getApp().system.windowWidth-20; 98 let pw=getApp().system.windowWidth-20;
99 let ph=pw/355*558; 99 let ph=pw/355*558;
  100 + let tagsHeight=60//rpx
100 if(seller.activity.length==0){ 101 if(seller.activity.length==0){
101 ph=pw/355*500; 102 ph=pw/355*500;
102 } 103 }
@@ -109,8 +110,12 @@ Page({ @@ -109,8 +110,12 @@ Page({
109 cai_jiu_bao.push(seller.room_num+'个包间') 110 cai_jiu_bao.push(seller.room_num+'个包间')
110 } 111 }
111 cai_jiu_bao=cai_jiu_bao.join(' | ') 112 cai_jiu_bao=cai_jiu_bao.join(' | ')
112 - let tags=['明星老板','湖景餐厅']; 113 + let tags=[];
113 tags=tags.join(' | ') 114 tags=tags.join(' | ')
  115 + if(!tags){
  116 + ph=ph-tagsHeight/2
  117 + tagsHeight=0
  118 + }
114 palette={ 119 palette={
115 background: '#fff', 120 background: '#fff',
116 width: pw+'px', 121 width: pw+'px',
@@ -118,7 +123,7 @@ Page({ @@ -118,7 +123,7 @@ Page({
118 views: [ 123 views: [
119 { 124 {
120 type:'image', 125 type:'image',
121 - url:this.data.seller.share_image+'?imageView2/1/w/750/h/500/q/100', 126 + url:seller.share_image+'?imageView2/1/w/750/h/500/q/100',
122 css:{ 127 css:{
123 width:710+'rpx', 128 width:710+'rpx',
124 height:470+'rpx', 129 height:470+'rpx',
@@ -127,7 +132,7 @@ Page({ @@ -127,7 +132,7 @@ Page({
127 }, 132 },
128 { 133 {
129 type:'text', 134 type:'text',
130 - text: this.data.seller.sellername, 135 + text: seller.sellername,
131 id:'seller-name', 136 id:'seller-name',
132 css:{ 137 css:{
133 fontSize:'36rpx', 138 fontSize:'36rpx',
@@ -139,7 +144,7 @@ Page({ @@ -139,7 +144,7 @@ Page({
139 }, 144 },
140 { 145 {
141 type:'text', 146 type:'text',
142 - text: '优选餐厅', 147 + text: seller.rank,
143 css:{ 148 css:{
144 fontSize:'20rpx', 149 fontSize:'20rpx',
145 color:'#ffffff', 150 color:'#ffffff',
@@ -177,7 +182,7 @@ Page({ @@ -177,7 +182,7 @@ Page({
177 type:'rect', 182 type:'rect',
178 css:{ 183 css:{
179 color:'#F5F5F5', 184 color:'#F5F5F5',
180 - top:'694rpx', 185 + top:(634+tagsHeight)+'rpx',
181 left:'30rpx', 186 left:'30rpx',
182 width:(pw-30)+'px', 187 width:(pw-30)+'px',
183 height:'1px' 188 height:'1px'
@@ -245,7 +250,7 @@ Page({ @@ -245,7 +250,7 @@ Page({
245 css:{ 250 css:{
246 fontSize:'30rpx', 251 fontSize:'30rpx',
247 color:'#353535', 252 color:'#353535',
248 - top: '736rpx', 253 + top: (676+tagsHeight)+'rpx',
249 left: '30rpx', 254 left: '30rpx',
250 lineHeight:'38rpx', 255 lineHeight:'38rpx',
251 maxLines:1, 256 maxLines:1,
@@ -256,7 +261,7 @@ Page({ @@ -256,7 +261,7 @@ Page({
256 type:'rect', 261 type:'rect',
257 css:{ 262 css:{
258 color:'#F5F5F5', 263 color:'#F5F5F5',
259 - top:'814rpx', 264 + top:(754+tagsHeight)+'rpx',
260 left:'30rpx', 265 left:'30rpx',
261 width:(pw-30)+'px', 266 width:(pw-30)+'px',
262 height:'1px' 267 height:'1px'