Authored by 毕凯

有货币修改

... ... @@ -2378,7 +2378,7 @@
</li>
<li class="item">
<span class="itemdetail float-left">
<a href="http://www.yohobuy.com/home/currency?t=\{\{timestamp\}\}">我的YOHO</a>
<a href="http://www.yohobuy.com/home/currency?t=\{\{timestamp\}\}">我的有货</a>
</span>
<span class="itemnum float-right">\{\{YohocoinCount\}\}</span>
</li>
... ... @@ -2463,7 +2463,7 @@
<span>会员中心</span>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=87" target="_blank">YOHO</a>
<a href="http://www.yohobuy.com/help/?category_id=87" target="_blank">有货</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=91" target="_blank">会员制度</a>
... ... @@ -2506,7 +2506,7 @@
<a href="http://www.yohobuy.com/help/?category_id=109" target="_blank">优惠券</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=111" target="_blank">YOHO币支付</a>
<a href="http://www.yohobuy.com/help/?category_id=111" target="_blank">有货币支付</a>
</p>
</li>
<li class="left">
... ...
... ... @@ -1142,7 +1142,7 @@
}
}
### YOHO
### 有货
{
yohoCoin: {
... ...
... ... @@ -117,6 +117,6 @@
productAmmount: 2000, //商品总价
activeSale: 0, //活动
productAllAmmount: 100, //商品总计金额
getYoho: 1 //yoho
getYoho: 1 //有货
}
}
\ No newline at end of file
... ...
... ... @@ -126,7 +126,7 @@ COMMENT
price: 优惠券价值
desc: 描述信息
9. 选择支付、送货、快递,使用优惠券,使用YOHO币这些操作,重新运算订单数据
9. 选择支付、送货、快递,使用优惠券,使用有货币这些操作,重新运算订单数据
POST:
/cart/index/orderCompute
PARAM:
... ... @@ -134,7 +134,7 @@ PARAM:
int deliveryWay 配送方式,1表示普通快递,2表示顺丰速运
int paymentType 支付方式,1表示在线支付,2表示货到付款
string couponCode 优惠码
mixed yohoCoin 使用的YOHO币数量
mixed yohoCoin 使用的有货币数量
int redEnvelopes 红包, 使用的时候传,不使用时可不传
RESPONSE:
{"code":200,"data":[],"md5":"d751713988987e9331980363e24189ce","message":"操作成功"}
... ... @@ -168,7 +168,7 @@ PARAM:
int paymentType 支付类型ID
string remark 留言
string couponCode 优惠券码
mixed yohoCoin 使用的YOHO币数量或为空
mixed yohoCoin 使用的有货币数量或为空
int isPreContact 送货前是否联系 true:是, false:否
int isPrintPrice 是否打印价格 true:是, false:否
int redEnvelopes 红包, 使用的时候传,不使用时可不传
... ...
... ... @@ -245,7 +245,7 @@
payMode: '',
phone: ''
},
yohoCoinUrl: '', //YOHO币介绍
yohoCoinUrl: '', //有货币介绍
goods: [
{
url: '',
... ... @@ -493,7 +493,7 @@
}
}
## 我的YOHO
## 我的有货
{
meCurrency: {
... ...
... ... @@ -127,7 +127,7 @@
link: '',
num: '2'
}, {
name: '我的YOHO币',
name: '我的有货币',
link: '',
num: '1'
}, {
... ...
... ... @@ -279,7 +279,7 @@ class CartData
* @param int $deliveryWay 配送方式,1表示普通快递,2表示顺丰速运
* @param int $paymentType 支付方式,1表示在线支付,2表示货到付款
* @param string $couponCode 优惠券码
* @param mixed $yohoCoin 使用的YOHO币数量
* @param mixed $yohoCoin 使用的有货币数量
* @param string $skuList 购买限购商品时需要传递的参数
* @return array 接口返回的数据
*/
... ... @@ -371,7 +371,7 @@ class CartData
* @param int $paymentType 支付类型ID
* @param string $remark 留言
* @param string $couponCode 优惠券码
* @param mixed $yohoCoin 使用的YOHO币数量或为空
* @param mixed $yohoCoin 使用的有货币数量或为空
* @param string $skuList 购买限购商品时需要传递的参数
* @param string $qhyUnion 友盟有关信息
* @param string|null $userAgent 联盟过来用户下单时需要的User-Agent信息
... ... @@ -483,7 +483,7 @@ class CartData
* @param int $productSku
* @param int $buyNumber
* @param int $useYohoCoin
* @param int $yohoCoinMode 1:使用yoho币;0:不使用yoho
* @param int $yohoCoinMode 1:使用有货币;0:不使用有货
* @author sefon 2016-7-2 18:12:30
* @return array
*/
... ...
... ... @@ -205,10 +205,10 @@ class UserData
}
/**
* YOHO币总数
* 有货币总数
*
* @param int $uid 用户ID
* @return array YOHO币接口返回的数据
* @return array 有货币接口返回的数据
*/
public static function yohoCoinTotal($uid)
{
... ... @@ -228,13 +228,13 @@ class UserData
}
/**
* YOHO币列表数据
* 有货币列表数据
*
* @param int $uid 用户ID
* @param int $page 第几页,默认1
* @param int $limit 限制读取的数目,默认10
* @param string $type 请求类型 get,post
* @return array YOHO币接口返回的数据
* @return array 有货币接口返回的数据
*/
public static function yohoCoinData($uid, $page = 1, $limit = 10, $type = 'get')
{
... ...
... ... @@ -28,7 +28,7 @@
</head>
<body>
<p>
1、签到可以获得YOHO币奖励哟,YOHO币可以在有货购买商品时折算相应的支付金额呢
1、签到可以获得有货币奖励哟,有货币可以在有货购买商品时折算相应的支付金额呢
</p>
<p>
2、连续的签到7天会获得更多惊喜,一定要坚持哦
... ...
... ... @@ -35,7 +35,7 @@ function init() {
try {
info = JSON.parse(info);
// 2015/12/31 hf: fixes bug to 购物车页面调用该JS, 会导致有YOHO币,值却没有传给服务端. 因此需要再设置一下
// 2015/12/31 hf: fixes bug to 购物车页面调用该JS, 会导致有有货币,值却没有传给服务端. 因此需要再设置一下
//info['yohoCoin'] = $('.coin').data('yoho-coin') || 0;
} catch (e) {
init();
... ...
... ... @@ -46,7 +46,7 @@
<div class="notice-area">
<div class="notice-cont">
<h2>发票须知</h2>
<p>1、发票金额不含优惠券/YOHO币/红包/优惠码/运费,只包含商品实付金额</p>
<p>1、发票金额不含优惠券/有货币/红包/优惠码/运费,只包含商品实付金额</p>
<p>2、电子发票:是税局认可的有效收付款凭证,其法律效力、基本用途及使用规定同纸质发票,如需纸质发票可自行下载打印</p>
</div>
<div class="think-ok">我知道了</div>
... ...
... ... @@ -112,7 +112,7 @@
</li>
{{/if}}
<li class="coin" data-yoho-coin="{{yohoCoin}}">
<span class="title">YOHO币</span>
<span class="title">有货币</span>
{{#if yohoCoin}}
<span class="desc used {{#unless useYohoCoin}}hide{{/unless}}">已抵¥{{useYohoCoin}}</span>
... ... @@ -131,7 +131,7 @@
{{/if}}
{{^}}
<span class="not-used coin-check">
YOHO币可用
有货币可用
</span>
{{/if}}
</li>
... ...
... ... @@ -34,7 +34,7 @@
<div class="yoho-coin">
<ul class="sale-invoice">
<li class="coin" data-yoho-coin="{{yohoCoin}}">
<span class="title">YOHO币</span>
<span class="title">有货币</span>
{{#if yohoCoin}}
<span class="desc used {{#unless useYohoCoin}}hide{{/unless}}">已抵¥{{useYohoCoin}}</span>
... ... @@ -53,7 +53,7 @@
{{/if}}
{{^}}
<span class="not-used coin-check">
YOHO币可用
有货币可用
</span>
{{/if}}
</li>
... ...
... ... @@ -7,7 +7,7 @@
</p>
<p class="info">
<span class="dollar"></span>
YOHO
有货
</p>
<a href="/home/currencyDetail" class="more">查看明细</a>
{{#if notice}}
... ...
... ... @@ -3,27 +3,27 @@
{{# yohoCoin}}
<p class="coin-num">
<em>{{coinNum}}</em>
YOHO
有货
</p>
<section>
<p class="title">YOHO币</p>
<p class="title">有货币</p>
<hr>
<p>
<span class="sub-title">YOHO币是什么,有什么用?</span>
YOHO币是有货商城的虚拟货币,与现金比例1:1,没有任何使用期限,YOHO币可直接用于有货线上购物使用,不可转让他人,不可兑换为现金。使用YOHO币支付的金额不可计入消费金额。
<span class="sub-title">有货币是什么,有什么用?</span>
有货币是有货商城的虚拟货币,与现金比例1:1,没有任何使用期限,有货币可直接用于有货线上购物使用,不可转让他人,不可兑换为现金。使用有货币支付的金额不可计入消费金额。
</p>
<p>
<span class="sub-title">如何查看自己的YOHO币?</span>
<span class="path">登录 > 个人中心 > 我的YOHO币</span>
<span class="sub-title">如何查看自己的有货币?</span>
<span class="path">登录 > 个人中心 > 我的有货币</span>
</p>
<p>
<span class="sub-title">YOHO币如何购买支付?</span>
在购买支付页面输入您要使用的YOHO币金额即可完成支付
<span class="sub-title">有货币如何购买支付?</span>
在购买支付页面输入您要使用的有货币金额即可完成支付
<div class="remark">
<span>※ </span>
如果超过了我们约定的期限的非正常退货,我们将会于您的退款金额中直接扣除赠送YOHO币等值的金额。赠送给您的YOHO币还将保留在您的账户中,敬请谅解。
如果超过了我们约定的期限的非正常退货,我们将会于您的退款金额中直接扣除赠送有货币等值的金额。赠送给您的有货币还将保留在您的账户中,敬请谅解。
</div>
</p>
</section>
... ...
... ... @@ -91,7 +91,7 @@
</a>
<a class="list-item" href="/home/mycurrency">
<span class="iconfont icon">&#xe635;</span>
YOHO
有货
<span class="iconfont num">{{yoho_coin_num}} &#xe604;</span>
</a>
</div>
... ...
... ... @@ -78,7 +78,7 @@
{{#if yohoCoin}}
<p class="dollar">
<span class="bg-dollar"></span>
共返YOHO币:
共返有货币:
<span>{{yohoCoin}}</span>个
</p>
{{/if}}
... ...
... ... @@ -10,10 +10,10 @@
<a href="{{url}}" class="nav-sub-right">{{text}}</a>
{{/shopPage}}
{{#currencyPage}}
<a href="/home/helpDetail?code=20151230-102233&caption=YOHO币介绍" class="iconfont nav-home">&#xe639;</a>
<a href="/home/helpDetail?code=20151230-102233&caption=有货币介绍" class="iconfont nav-home">&#xe639;</a>
{{/currencyPage}}
{{#currencyDetailPage}}
<a href="/home/helpDetail?code=20111130-152530&caption=如何使用YOHO币支付" class="iconfont nav-home">&#xe639;</a>
<a href="/home/helpDetail?code=20111130-152530&caption=如何使用有货币支付" class="iconfont nav-home">&#xe639;</a>
{{/currencyDetailPage}}
{{#navPhone}}
<a href="{{.}}" class="iconfont nav-home">&#xe641;</a>
... ...
... ... @@ -262,15 +262,15 @@ class HomeController extends AbstractAction
}
/**
* YOHO
* 有货
*/
public function mycurrencyAction()
{
// 审判跳转登录页
$this->auditJumpLogin();
$this->setTitle('YOHO币');
$this->setNavHeader('YOHO币', true, false);
$this->setTitle('有货币');
$this->setNavHeader('有货币', true, false);
$currency = UserModel::getYohoCoinData($this->_uid);
// banenr数据
... ... @@ -1227,15 +1227,15 @@ class HomeController extends AbstractAction
}
/**
* YOHO币详情 新版
* 有货币详情 新版
*/
public function currencyDetailAction()
{
// 审判跳转登录页
$this->auditJumpLogin();
$this->setTitle('YOHO币明细');
$this->setNavHeader('YOHO币明细', true, false);
$this->setTitle('有货币明细');
$this->setNavHeader('有货币明细', true, false);
$data = UserModel::getYohoCoinLists($this->_uid, 0, 20);
$this->_view->display('currency-detail', array(
... ... @@ -1248,7 +1248,7 @@ class HomeController extends AbstractAction
}
/**
* YOHO币详情 AJAX
* 有货币详情 AJAX
*/
public function ajaxCurrencyDetailAction()
{
... ...
... ... @@ -231,7 +231,7 @@ class OrderModel
if (isset($orderDetail['data']['promo_code_amount'])) {
$result['promo_code_amount'] = self::filterOrderPrice($orderDetail['data']['promo_code_amount']); // 优惠码
}
$result['yohoCoin'] = $orderDetail['data']['yoho_give_coin']; // YOHO币返回
$result['yohoCoin'] = $orderDetail['data']['yoho_give_coin']; // 有货币返回
$result['price'] = $orderDetail['data']['amount']; // 实付金额
$result['goodsAmount'] = $orderDetail['data']['payment_amount']; // 商品总金额没有人民币符号
$result['orderCount'] = $count; // 订单总件数
... ... @@ -243,7 +243,7 @@ class OrderModel
//修改地址跳转链接
$result['url'] = Helpers::url('/home/addressModify', array('orderCode' => $orderCode, 'relation' => $result['relation']));
}
//相关金额(商品总金额,活动金额,运费,优惠券,YOHO币)
//相关金额(商品总金额,活动金额,运费,优惠券,有货币)
if (isset($orderDetail['data']['promotion_formulas']) && $orderDetail['data']['promotion_formulas']) {
foreach ($orderDetail['data']['promotion_formulas'] as $pricek => $pricev) {
$result['orderBalance'][$pricek] = array('promotion' => $pricev['promotion'], 'account' => $pricev['promotion_amount']);
... ...
... ... @@ -631,14 +631,14 @@ class CartModel
}
/**
* 购物车结算--支付方式和配送方式选择以及是否使用YOHO币接口返回的数据处理
* 购物车结算--支付方式和配送方式选择以及是否使用有货币接口返回的数据处理
*
* @param int $uid 用户ID
* @param string $cartType 购物车类型,ordinary表示普通购物车
* @param int $deliveryWay 配送方式,1表示普通快递,2表示顺丰速运
* @param int $paymentType 支付方式,1表示在线支付,2表示货到付款
* @param string $couponCode 优惠券码
* @param mixed $yohoCoin 使用的YOHO币数量
* @param mixed $yohoCoin 使用的有货币数量
* @param string $skuList 购买限购商品时需要传递的参数
* @return array 接口返回的数据
*/
... ... @@ -750,7 +750,7 @@ class CartModel
* @param int $paymentType 支付类型ID
* @param string $remark 留言
* @param string $couponCode 优惠券码
* @param mixed $yohoCoin 使用的YOHO币数量或为空
* @param mixed $yohoCoin 使用的有货币数量或为空
* @param string $skuList 购买限购商品时需要传递的参数
* @param string $qhyUnio 友盟有关信息
* @param string|null $userAgent 联盟过来用户下单时需要的User-Agent信息
... ... @@ -1035,7 +1035,7 @@ class CartModel
* @param type $deliveryId 配送方式,1表示普通快递,2表示顺丰速运
* @param type $paymentType 支付方式,1表示在线支付,2表示货到付款
* @param type $couponCode 优惠券码
* @param type $yohoCoin 使用的YOHO币数量
* @param type $yohoCoin 使用的有货币数量
* @return type
*/
public static function getPackageInfo($uid, $cartType, $skuList, $orderCode, $sessionKey, $deliveryId, $paymentType, $couponCode, $yohoCoin)
... ...
... ... @@ -437,10 +437,10 @@ class UserModel
}
/**
* 处理YOHO币总数数据
* 处理有货币总数数据
*
* @param int $uid 用户ID
* @return array|mixed 处理之后的YOHO币数据
* @return array|mixed 处理之后的有货币数据
*/
public static function getYohoCoinData($uid)
{
... ... @@ -450,10 +450,10 @@ class UserModel
)
);
// 调用接口获取YOHO
// 调用接口获取有货
$yohoCoin = UserData::yohoCoinTotal($uid);
// 处理YOHO币数据
// 处理有货币数据
if (isset($yohoCoin['data']) && !empty($yohoCoin['data'])) {
$result['yohoCoin']['coinNum'] = $yohoCoin['data']['yohocoin_num'];
$result['yohoCoin']['notice'] = $yohoCoin['data']['notice'];
... ... @@ -507,20 +507,20 @@ class UserModel
}
/**
* 处理YOHO币变化履历数据
* 处理有货币变化履历数据
*
* @param int $uid 用户ID
* @param int $page 当前页
* @param int $limit 一页记录数
* @return array|mixed 处理之后的YOHO币数据
* @return array|mixed 处理之后的有货币数据
*/
public static function getYohoCoinLists($uid, $page, $limit)
{
$result = array();
$data['money'] = '0';
// 调用接口获取YOHO
// 调用接口获取有货
$yohoCoin = UserData::yohoCoinData($uid, $page, $limit, 'post');
// 处理YOHO币数据
// 处理有货币数据
if (isset($yohoCoin['data']) && !empty($yohoCoin['data'])) {
$coinList = $yohoCoin['data']['coinlist'];
... ...
... ... @@ -714,7 +714,7 @@ class IndexController extends AbstractAction
$deliveryId = $this->get('deliveryId', ''); //配送方式,1表示普通快递,2表示顺丰速运
$paymentType = $this->get('paymentType', ''); //支付方式,1表示在线支付,2表示货到付款
$couponCode = $this->get('couponCode', ''); //优惠券码
$yohoCoin = $this->get('yohoCoin', ''); //使用的YOHO币数量
$yohoCoin = $this->get('yohoCoin', ''); //使用的有货币数量
$data = CartModel::getPackageInfo($uid, $cartType, $skuList, $orderCode, $sessionKey, $deliveryId, $paymentType, $couponCode, $yohoCoin);
... ...