Authored by 郭成尧

Merge branch 'feature/coupon' of http://git.dev.yoho.cn/web/yohobuywap into feature/coupon

some
... ... @@ -94,3 +94,7 @@ $('.coupon-message-op-rel').on('click', function() {
location.reload();
});
if ($('#noData').length >= 0) {
tip.show('网络异常!');
}
... ...
... ... @@ -53,7 +53,7 @@
<input id="shareTitle" type="hidden" value="{{shareTitle}}">
{{/ share}}
{{#if noData}}
<input id="noData" type="hidden">
{{/if}}
{{/ content}}
</div>
... ...
... ... @@ -37,15 +37,8 @@ class CouponController extends AbstractAction
$uid = $this->getUid();
}
$resource = CouponData::getCouponRousource($receiveData['code'], $uid);
if (isset($resource['code']) && $resource['code'] === 200) {
if (isset($resource['code']) && $resource['code'] == 200) {
$result = CouponFloorProcess::getContent($resource['data']);
}else{
$this->_view->display('index', array(
'content' => array(
'noData' => true,
),
'floorPage' => true
));
}
// 分享
$shareData = CouponFloorProcess::getShare($receiveData['code'], '领券中心');
... ...