Commit 4d643d38 authored by christ's avatar christ

share

parent 45213edc
......@@ -58,7 +58,14 @@ class IndexController extends \Our\Controller_Abstract {
//"freeShippingPrice": 0
//}';
$paramsStr=json_decode($paramsStr,true);
if($paramsStr['type']==\Our\ApiConst::shareGoods || $paramsStr['type']==\Our\ApiConst::shareGroup){
$begin=strtotime($paramsStr['storeStartTime']);
$end=strtotime($paramsStr['storeCloseTime']);
if($begin>=$end){
$paramsStr['storeCloseTime']=date('H:i',$end+\Our\ApiConst::oneDaySecond);
}
}
$this->_view->assign("params", $paramsStr);
if($paramsStr['type']==\Our\ApiConst::sharePlat){
$this->_view->display('index/plat.phtml');
......@@ -67,6 +74,7 @@ class IndexController extends \Our\Controller_Abstract {
$this->_view->display('index/store.phtml');
}
if($paramsStr['type']==\Our\ApiConst::shareGoods || $paramsStr['type']==\Our\ApiConst::shareGroup){
$this->_view->display('index/goods.phtml');
}
if($paramsStr['type']==\Our\ApiConst::shareSaler){
......
......@@ -67,6 +67,9 @@ class ShareServiceModel extends \Business\AbstractModel
$data['sellerDistribution']=$store['seller_distribution'];
$data['startShippingPrice']=$store['start_shipping_price'];
$data['freeShippingPrice']=$store['free_shipping_price'];
$data['storeStartTime']=$store['store_start_time'];
$data['storeCloseTime']=$store['store_close_time'];
}
}
......
......@@ -121,7 +121,7 @@
<p class="follow">关注</p>
<div class="shop-name"><?php echo $params['storeName'];?></div>
</div>
<p class="time">营业时间:<?php echo $params['storeWorkingtime'];?></p>
<p class="time">营业时间:<?php echo $params['storeStartTime'].'-'.$params['storeCloseTime'];?></p>
<div class="tag">
<?php echo $params['buyerDistribution']?'<p>支持自提</p>':'';?>
<?php echo $params['sellerDistribution']?'<p>商家配送</p>':'';?>
......
......@@ -121,7 +121,7 @@
<p class="follow">关注</p>
<div class="shop-name"><?php echo $params['storeName'];?></div>
</div>
<p class="time">营业时间:<?php echo $params['storeWorkingtime'];?></p>
<p class="time">营业时间:<?php echo $params['storeStartTime'].'-'.$params['storeCloseTime'];?></p>
<div class="tag">
<?php echo $params['buyerDistribution']?'<p>支持自提</p>':'';?>
<?php echo $params['sellerDistribution']?'<p>商家配送</p>':'';?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment