|
|
@@ -118,8 +118,8 @@ function checkHandleRequest() {
|
|
|
handleAppVersionInfo();
|
|
|
break;
|
|
|
case 'A3341M039':
|
|
|
- // 上报地理位置进行检查是否可以领取 =>4
|
|
|
- handleCouponLocationCheck();
|
|
|
+ // 查看附近适用门店 =>4
|
|
|
+ handleCouponApplicableStores();
|
|
|
break;
|
|
|
case 'A3341S029':
|
|
|
// 上报行政区划代码 => 6
|
|
|
@@ -206,7 +206,7 @@ function handleAppVersionInfo(){
|
|
|
retBody = rspParams;
|
|
|
}
|
|
|
|
|
|
-function handleCouponLocationCheck(){
|
|
|
+function handleCouponApplicableStores(){
|
|
|
let reqbody = lk.getRequestBody();
|
|
|
let reqParams = JSON.parse(reqbody);
|
|
|
// let simpleReqData = {
|
|
|
@@ -356,6 +356,29 @@ function handleCommonCoupon(){
|
|
|
drawCntDescText += `库存:${detail.Cmdty_Srpls_Num}/${surplusStock}`;
|
|
|
drawCntDescText += `\n限制领取数量:${rspData.PERSON_GET_LIMIT}`;
|
|
|
detail.Drw_Cnt_Dsc = drawCntDescText;
|
|
|
+
|
|
|
+ let descInfoList = detail.LIST3;
|
|
|
+ if(descInfoList){
|
|
|
+ let tmpDict = {};
|
|
|
+ for(let i=0; i < descInfoList.length; i++){
|
|
|
+ const info = descInfoList[i];
|
|
|
+ const key = info.DATA_TYPE_EDD;
|
|
|
+ tmpDict[key] = info;
|
|
|
+ }
|
|
|
+ if(tmpDict['03']){
|
|
|
+ drawTmDescText = `${tmpDict['03']}\n`;
|
|
|
+ drawTmDescText += `今日领取时间:${lk.formatDate(actStartDate, "HH:mm:ss")}\n`;
|
|
|
+ drawTmDescText += `当前系统时间:${newTimeStamp}`;
|
|
|
+ tmpDict['03'].Rght_Cntnt = drawTmDescText;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(tmpDict['04']){
|
|
|
+ drawCntDescText = `${tmpDict['04']}`;
|
|
|
+ drawCntDescText += `库存:${detail.Cmdty_Srpls_Num}/${surplusStock}`;
|
|
|
+ drawCntDescText += `\n限制领取数量:${rspData.PERSON_GET_LIMIT}`;
|
|
|
+ tmpDict['04'].Rght_Cntnt = drawCntDescText;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if(detail){
|