function preview()
 {
     $id = $this->_getid('id', 0);
     if (!$id) {
         showError('参数丢失');
     }
     $rs = M('ste_goods')->where(array('gid' => $id))->find();
     if (!$rs) {
         showError('商品不存在');
     }
     steadmin::$adminInfo['city_id'] = 3301;
     $goodPic = $rs['goods_pic'];
     $rs['goods_tips'] = parent::_getTipsGroupList($this->steSetting['goods_tips'], $rs['goods_tips']);
     $rs['goods_pic'] = getImgUrl(getThumb($goodPic, 0));
     $rs['orig_pic'] = getImgUrl(getThumb($goodPic, 2));
     if ($rs['is_realtime'] && $rs['booked_time']) {
         $rs['goods_desc'] = '<p><img src="' . getImgUrl('statics/default/images/steward/2015/presell_' . $rs['booked_time'] . '.png') . '"/></p><br/>' . $rs['goods_desc'];
     }
     $rs['goods_desc'] = htmlspecialchars_decode($rs['goods_desc']);
     $rs['is_delay'] = parent::_getShopName($rs['shop_id'], 'is_delay');
     $rs['cate_name'] = parent::_getCateName($rs['cate_id']);
     $rs['shop_name'] = parent::_getShopName($rs['shop_id'], 'shop_name');
     $rs['order_counts'] = $rs['order_counts'] * 3;
     ////2015-03-31 新增刷新销量
     $list = explode(',', 'is_delay,gid,cate_id,shop_id,shop_name,goods_name,goods_subtitle,goods_spec,goods_tips,goods_pic,orig_pic,original_price,price_pre,price,goods_desc,order_counts,sale_counts,storage_counts,is_realtime,is_hot,is_new,is_recommend,is_limited,limit_counts');
     foreach ($list as $val) {
         $rs['goodsData'][$val] = $rs[$val];
     }
     $rs['goodsData'] = json_encode($rs['goodsData']);
     if (!$rs['status'] || $rs['status'] == 2) {
         $rs['sale_status'] = 0;
     }
     if ($rs['start_times'] <= TIME) {
         if ($rs['end_times'] < TIME) {
             $rs['sale_status'] = 0;
         } elseif ($rs['end_times'] >= TIME) {
             $rs['sale_status'] = 1;
         }
     } else {
         $rs['sale_status'] = 2;
     }
     $rs['sale_time'] = outTime($rs['start_times']);
     //        z($rs);
     $this->assign(array('id' => $id, 'rs' => $rs, 'vid' => 0));
     $this->display();
 }