Showing
1 changed file
with
29 additions
and
1 deletions
| @@ -232,8 +232,36 @@ Page({ | @@ -232,8 +232,36 @@ Page({ | ||
| 232 | }, | 232 | }, |
| 233 | ], | 233 | ], |
| 234 | } | 234 | } |
| 235 | - if(seller.cate.length>0){ | 235 | + if(seller.activity.length>0){ |
| 236 | //活动 | 236 | //活动 |
| 237 | + let activity=[]; | ||
| 238 | + seller.activity.forEach(act=>{ | ||
| 239 | + activity.push(act.title) | ||
| 240 | + }) | ||
| 241 | + activity='活动: '+activity.join(' | ') | ||
| 242 | + palette.views.push({ | ||
| 243 | + type:'text', | ||
| 244 | + text: activity, | ||
| 245 | + css:{ | ||
| 246 | + fontSize:'30rpx', | ||
| 247 | + color:'#353535', | ||
| 248 | + top: '736rpx', | ||
| 249 | + left: '30rpx', | ||
| 250 | + lineHeight:'38rpx', | ||
| 251 | + maxLines:1, | ||
| 252 | + width:(pw-30)+'px', | ||
| 253 | + } | ||
| 254 | + }); | ||
| 255 | + palette.views.push({ | ||
| 256 | + type:'rect', | ||
| 257 | + css:{ | ||
| 258 | + color:'#F5F5F5', | ||
| 259 | + top:'814rpx', | ||
| 260 | + left:'30rpx', | ||
| 261 | + width:(pw-30)+'px', | ||
| 262 | + height:'1px' | ||
| 263 | + } | ||
| 264 | + }); | ||
| 237 | } | 265 | } |
| 238 | }else{ | 266 | }else{ |
| 239 | palette={ | 267 | palette={ |
-
Please register or login to post a comment