Commit be811d7cbac27b423457250160b5f694a93e0b72

Authored by wangfan
1 parent 38fb94b0

c端预定

Showing 1 changed file with 4 additions and 12 deletions
@@ -8,18 +8,7 @@ Page({ @@ -8,18 +8,7 @@ Page({
8 * 页面的初始数据 8 * 页面的初始数据
9 */ 9 */
10 data: { 10 data: {
11 - seller:{  
12 - id:1,  
13 - sellername:'陕西风味面馆',  
14 - banner:[  
15 - 'http://qn.colorcun.com/custom/lite-online/image/def-banner.png'  
16 - ],  
17 - baos:[  
18 - 'http://qn.colorcun.com/custom/lite-online/image/def-banner.png',  
19 - 'http://qn.colorcun.com/custom/lite-online/image/def-banner.png',  
20 - 'http://qn.colorcun.com/custom/lite-online/image/def-banner.png'  
21 - ]  
22 - }, 11 + seller:{},
23 IsCollectionSeller:false, 12 IsCollectionSeller:false,
24 }, 13 },
25 14
@@ -60,6 +49,9 @@ Page({ @@ -60,6 +49,9 @@ Page({
60 }else{ 49 }else{
61 seller.distanceStr=seller.distance+'米'; 50 seller.distanceStr=seller.distance+'米';
62 } 51 }
  52 + if(seller.envi_image.length<1){
  53 + seller.envi_image=['http://qn.colorcun.com/custom/lite-online/image/def-banner.png']
  54 + }
63 this.setData({ 55 this.setData({
64 seller:seller, 56 seller:seller,
65 }) 57 })