Authored by 郝肖肖

展览票 定义常量

... ... @@ -544,7 +544,18 @@ class CartData
$param['use_yoho_coin'] = $yohoCoin / 100;
}
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(API_URL, $param);
$data = Yohobuy::get(API_URL, $param);
//展览票不显示区域,上面要求的。@高扬、@徐洪云,2016/7/6
if (isset($data['data']) && !empty($data['data']['goods_list'])) {
foreach ($data['data']['goods_list'] as $key => $val) {
$val['size_name'] = ($val['product_skn'] * 1 === EXHIBITION_TICKET ? '' : $val['size_name']);
$data['data']['goods_list'][$key] = $val;
}
}
return $data;
}
/**
... ...
... ... @@ -41,7 +41,19 @@ class OrderData
$param['uid'] = $uid;
$param['order_code'] = $orderCode;
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(API_URL, $param);
$data = Yohobuy::get(API_URL, $param);
//展览票不显示区域,上面要求的。@高扬、@徐洪云,2016/7/6
if (isset($data['data']) && !empty($data['data']['order_goods'])) {
foreach ($data['data']['order_goods'] as $key => $val) {
if ($val['product_skn'] * 1 === EXHIBITION_TICKET) {
$val['size_name'] = '';
}
$data['data']['order_goods'][$key] = $val;
}
}
return $data;
}
/**
... ...
... ... @@ -252,7 +252,14 @@
</a>
<p class="pay-pro-info">
<a href="{{link}}" target="_blank">{{productTitle}}</a>
<span>颜色:{{productColor}} 尺码:{{productSize}}</span>
<span>
{{#if productColor}}
颜色:{{productColor}}
{{/if}}
{{#if productSize}}
尺码:{{productSize}}
{{/if}}
</span>
</p>
</div>
</td>
... ...
... ... @@ -68,7 +68,14 @@
</a>
<p class="pay-pro-info">
<a href="{{link}}" target="_blank">{{productTitle}}</a>
<span>日期:{{productColor}} 区域:{{productSize}}</span>
<span>
{{#if productColor}}
日期:{{productColor}}
{{/if}}
{{#if productSize}}
区域:{{productSize}}
{{/if}}
</span>
</p>
</div>
</td>
... ...
... ... @@ -597,37 +597,40 @@
</div>
</div>
{{/ consultComment}}
<div class="after-service">
<p id="after-service-switch" class="after-service-switch">
<span class="iconfont">&#xe62b;</span>
售后服务
<span class="iconfont triangle">&#xe604;</span>
</p>
<div class="after-service-content info-block">
<div class="block-title">
<span class="title cur">售后服务 AFTER SERVICE</span>
</div>
<div class="img-1"></div>
<div class="img-2"></div>
<div class="text">
<h4>退换货承诺</h4>
<p>自您签收商品7日内可以退货,15日内可以换货,在商品不影响二次销售的情况下,YOHO!BUY 有货将为您办理退换货服务,请在网站提交"退换货"申请。需要说明的是:非质量问题的退换货,来回运费由您承担。</p>
<h4>退换货方式</h4>
<p>
针对国内大中型城市,YOHO!BUY 有货开通了<span class="orange">"上门换货"</span>服务,上门服务区域及费用请联系客服中心;若您所在的区域不在上门换货范围内,请您选择普通快递将商品、内包装、赠品及发货单等一并寄回。质量问题的退换货,目前不支持运费到付款业务,请您先垫付运费寄回。如需退换货,请致电客服电话:400-889-9646
</p>
<h4>退换货邮寄地址</h4>
<p>
南京市江宁区江宁经济技术开发区苏源大道87号YOHO!BUY 有货物流中心东一楼 收件人:YOHO!BUY 有货 邮编:211106
<br>
YOHO!BUY 有货客服热线:400-889-9646  客服邮箱:<a href="mailto:service@yoho.cn">service@yoho.cn</a>
<br>
有疑问请联系我们,我们将为您提供最优质的产品和服务。
</p>
{{#if goodsInfo.virtualGoods}}
<!---虚拟商品-->
{{else}}
<div class="after-service">
<p id="after-service-switch" class="after-service-switch">
<span class="iconfont">&#xe62b;</span>
售后服务
<span class="iconfont triangle">&#xe604;</span>
</p>
<div class="after-service-content info-block">
<div class="block-title">
<span class="title cur">售后服务 AFTER SERVICE</span>
</div>
<div class="img-1"></div>
<div class="img-2"></div>
<div class="text">
<h4>退换货承诺</h4>
<p>自您签收商品7日内可以退货,15日内可以换货,在商品不影响二次销售的情况下,YOHO!BUY 有货将为您办理退换货服务,请在网站提交"退换货"申请。需要说明的是:非质量问题的退换货,来回运费由您承担。</p>
<h4>退换货方式</h4>
<p>
针对国内大中型城市,YOHO!BUY 有货开通了<span class="orange">"上门换货"</span>服务,上门服务区域及费用请联系客服中心;若您所在的区域不在上门换货范围内,请您选择普通快递将商品、内包装、赠品及发货单等一并寄回。质量问题的退换货,目前不支持运费到付款业务,请您先垫付运费寄回。如需退换货,请致电客服电话:400-889-9646
</p>
<h4>退换货邮寄地址</h4>
<p>
南京市江宁区江宁经济技术开发区苏源大道87号YOHO!BUY 有货物流中心东一楼 收件人:YOHO!BUY 有货 邮编:211106
<br>
YOHO!BUY 有货客服热线:400-889-9646  客服邮箱:<a href="mailto:service@yoho.cn">service@yoho.cn</a>
<br>
有疑问请联系我们,我们将为您提供最优质的产品和服务。
</p>
</div>
</div>
</div>
</div>
</div><!--/after-service-->
{{/if}}
<div class="service"></div>
{{#if latestWalk}}
... ...
... ... @@ -57,7 +57,7 @@ class OrderModel
$goods[$gokey]['thumb'] = (isset($goval['goods_image']) && $goval['goods_image']) ? Images::getImageUrl($goval['goods_image'], 100, 100) : '';
$goods[$gokey]['name'] = $goval['product_name'];
$goods[$gokey]['color'] = $goval['color_name'];
$goods[$gokey]['size'] = $goval['size_name'];
$goods[$gokey]['size'] = ($goval['product_skn'] * 1 === EXHIBITION_TICKET) ? '' : $goval['size_name'];
$goods[$gokey]['price'] = $goval['goods_price'];
$buyNum = intval($goval['buy_number']);
$refundNum = intval($goval['refund_num']);
... ...
... ... @@ -1055,7 +1055,7 @@ class ItemModel
}
//默认第一张图片
if($pos == 0) {
if($pos == 0) {
$defaultImage = Images::getImageUrl($value['colorImage'], 420, 560);
}
... ...
... ... @@ -574,19 +574,14 @@ class IndexController extends WebAction
$this->setTitle('填写订单', true, ' | ');
$this->setSimpleHeader();
// $orderEnsure = CartModel::cartPay($uid, 'ordinary', false);
// print_r($orderEnsure);exit;
//产品sku
$productSku = $this->post('productSku', 0);
//购买数量,范围1-4
$buyNumber = $this->post('buyNumber', 0);
//yoho币数量
$yohoCoin = $this->post('yohoCoin', 0);
// 执行加入购物车操作
$orderEnsure = CartModel::filterTicket($uid, $productSku, $buyNumber, $yohoCoin);
// if (empty($orderEnsure)) {
// $this->error();
// }
$this->_view->display('ticket-ensure', array(
'ticketEnsurePage' => true,
... ...
... ... @@ -9,6 +9,8 @@ define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'developer');
define('EXHIBITION_TICKET', 51257528);//展览票skn
#test环境
//define('API_URL', 'http://testapi.yoho.cn:28078/');
//define('SERVICE_URL', 'http://testservice.yoho.cn:28077/');
... ...
... ... @@ -10,6 +10,8 @@ define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'production');
define('EXHIBITION_TICKET', 51257528);//展览票skn
define('API_URL', 'http://api.yoho.yohoops.org/');
define('SERVICE_URL', 'http://service.yoho.yohoops.org/');
define('YOHOBUY_URL', 'http://www.yohobuy.com/');
... ...
... ... @@ -10,6 +10,8 @@ define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'preview');
define('EXHIBITION_TICKET', 51257528);//展览票skn
define('API_URL', 'http://api.yoho.yohoops.org/');
define('SERVICE_URL', 'http://service.yoho.yohoops.org/');
define('YOHOBUY_URL', 'http://www.yohobuy.com/');
... ...
... ... @@ -10,6 +10,8 @@ define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'testing');
define('EXHIBITION_TICKET', 51257528);//展览票skn
define('API_URL', 'http://testapi.yoho.cn:28078/');
define('SERVICE_URL', 'http://testservice.yoho.cn:28077/');
define('YOHOBUY_URL', 'http://www.yohobuy.com/');
... ...
... ... @@ -10,6 +10,8 @@ define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'production');
define('EXHIBITION_TICKET', 51257528);//展览票skn
define('API_URL', 'http://api.yoho.yohoops.org/');
define('SERVICE_URL', 'http://service.yoho.yohoops.org/');
define('YOHOBUY_URL', 'http://www.yohobuy.com/');
... ...