Commit 1d4f8739 by 无尘

fix: 修改接口调用

parent 4f55ac17
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title></title><link href=css/chunk-006266a2.4b8e5a29.css rel=prefetch><link href=css/chunk-41d0cdd7.c57ad67b.css rel=prefetch><link href=css/chunk-4d446ff8.613edf34.css rel=prefetch><link href=css/chunk-5ea3ec95.732cd13c.css rel=prefetch><link href=css/chunk-6075e5c8.213de925.css rel=prefetch><link href=css/chunk-79d39695.a67484b8.css rel=prefetch><link href=js/chunk-006266a2.b6144737.js rel=prefetch><link href=js/chunk-41d0cdd7.8dfa29f5.js rel=prefetch><link href=js/chunk-4d446ff8.c265c444.js rel=prefetch><link href=js/chunk-5ea3ec95.9582b54e.js rel=prefetch><link href=js/chunk-6075e5c8.9d3c5f68.js rel=prefetch><link href=js/chunk-79d39695.743cf281.js rel=prefetch><link href=css/app.26b754ca.css rel=preload as=style><link href=js/app.db5fbc48.js rel=preload as=script><link href=js/chunk-vendors.63e5230c.js rel=preload as=script><link href=css/app.26b754ca.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.63e5230c.js></script><script src=js/app.db5fbc48.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title></title><link href=css/chunk-006266a2.4b8e5a29.css rel=prefetch><link href=css/chunk-41d0cdd7.c57ad67b.css rel=prefetch><link href=css/chunk-4d446ff8.613edf34.css rel=prefetch><link href=css/chunk-5ea3ec95.732cd13c.css rel=prefetch><link href=css/chunk-6075e5c8.213de925.css rel=prefetch><link href=css/chunk-79d39695.a67484b8.css rel=prefetch><link href=js/chunk-006266a2.5066b888.js rel=prefetch><link href=js/chunk-41d0cdd7.8abce837.js rel=prefetch><link href=js/chunk-4d446ff8.f52bb224.js rel=prefetch><link href=js/chunk-5ea3ec95.5ea59361.js rel=prefetch><link href=js/chunk-6075e5c8.6b05b4c6.js rel=prefetch><link href=js/chunk-79d39695.6fb78189.js rel=prefetch><link href=css/app.26b754ca.css rel=preload as=style><link href=js/app.a7460bc2.js rel=preload as=script><link href=js/chunk-vendors.63e5230c.js rel=preload as=script><link href=css/app.26b754ca.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.63e5230c.js></script><script src=js/app.a7460bc2.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d446ff8"],{"70b5":function(t,a,c){t.exports=c.p+"img/coupon-null-icon.8e2c71ff.png"},"7c4a":function(t,a,c){"use strict";var e=c("e602"),n=c.n(e);n.a},c3a6:function(t,a,c){"use strict";c("68ef")},db31:function(t,a,c){"use strict";c.r(a);var e=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-contain border-box",style:{"min-height":t.$store.state.bodyH+"px"}},[e("div",{staticClass:"card-contain-inner"},t._l(t.cardList,function(a,c){return e("div",{key:c,staticClass:"card-brand-list border-box"},[e("div",{staticClass:"card-brand-title"},[t._v(t._s(a.brandName))]),t._l(a.cardData,function(c,n){return[n<a.showCount?e("div",{key:n,class:["card-list-cell border-box","VOU4"==c.VOU_TYPE?"discount-cell":""]},[e("div",{class:["card-list-cell_top border-box flex","VOU4"==c.VOU_TYPE?"discount-cell":""]},[e("div",{staticClass:"card-list-cell_top_left flex-1"},[t._v(t._s("VOU4"==c.VOU_TYPE?"折扣券":"优惠券"))]),e("div",{staticClass:"card-list-cell_top_right flex-1 text-right"},[t._v(t._s(c.VOUCHERS_NO))])]),e("div",{staticClass:"card-list-arrow"},[e("div",{class:["card-list-arrow_left","VOU4"==c.VOU_TYPE?"discount-cell":""]}),e("div",{class:["card-list-arrow_right","VOU4"==c.VOU_TYPE?"discount-cell":""]})]),e("div",{staticClass:"card-list-cell_body flex flex-align-center flex-pack-center"},[e("div",{class:["card-list-cell_body_left flex-1 flex flex-align-center flex-pack-center font-30","VOU4"==c.VOU_TYPE?"discount-cell":""]},["VOU5"==c.VOU_TYPE?e("span",{staticClass:"font-15 m-t-10"},[t._v("¥")]):t._e(),t._v(t._s("VOU4"==c.VOU_TYPE?c.VOU_DIS+"折":c.AMT_DISCOUNT)+"\n ")]),e("div",{staticClass:"card-list-cell_body_right border-box flex-2"},[e("div",{staticClass:"cell-body_right_cell"}),e("div",{staticClass:"cell-body_right_cell"},[t._v(t._s(c.START_DATE+"--"+c.VALID_DATE))]),e("div",{staticClass:"cell-body_right_cell"})])])]):t._e()]}),a.cardData.length>3&&a.cardData.length>a.showCount?e("div",{staticClass:"show-all font-14 color-848689",on:{click:function(c){t.showAllData(a)}}},[t._v("\n 展开剩余"+t._s(a.cardData.length-3)+"张 "),e("van-icon",{attrs:{name:"arrow-down"}})],1):t._e(),a.cardData.length>3&&a.cardData.length==a.showCount?e("div",{staticClass:"show-all font-14 color-848689",on:{click:function(c){t.showPartData(a)}}},[t._v("\n 收起 "),e("van-icon",{attrs:{name:"arrow-up"}})],1):t._e()],2)}),0),t.cardList.length?t._e():e("div",{staticClass:"no-card-data no-data-contain"},[e("img",{attrs:{src:c("70b5"),alt:"card-no-data"}}),e("p",{staticClass:"font-16 color-848689"},[t._v("你还没有卡券哦")])])])},n=[],s=(c("2fdb"),c("e7e5"),c("d399")),r=(c("6762"),c("c5f6"),c("ac6a"),c("96cf"),c("3b8d")),l=(c("a481"),c("4917"),c("bd86")),i=(c("c3a6"),c("ad06")),o=(c("cadf"),c("551c"),c("097d"),c("0c6d")),d=function(t){return Object(o["b"])("/gicfwh/get-tpn-card-list.json",t)},u={name:"cards",components:Object(l["a"])({},i["a"].name,i["a"]),data:function(){return{cardList:[]}},computed:{},methods:{formatDate:function(t){var a=t.match(/^(\d{4})(\d{2})(\d{2})$/);return a?t.replace(/(\d{4})(\d{2})(\d{2})/g,"$1.$2.$3"):t},showAllData:function(t){t.showCount=t.cardData.length},showPartData:function(t){t.showCount=3},getCardList:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(){var a,c,e,n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return a=this,c={},t.next=4,d(c);case 4:e=t.sent,0==e.errorCode?e.result&&e.result.length&&(n=[],e.result.forEach(function(t){t.START_DATE=a.formatDate(t.START_DATE),t.VALID_DATE=a.formatDate(t.VALID_DATE),t.VOU_DIS=t.VOU_DIS?Number(100*t.VOU_DIS/10).toFixed(2):"",n.includes(t.BRANDNAME)||"Y"!=t.IS_VALID||n.push(t.BRANDNAME)}),n.forEach(function(t){a.cardList.push({brandName:t,showCount:3,cardData:[]})}),e.result.forEach(function(t){a.cardList.forEach(function(a){t.BRANDNAME==a.brandName&&"Y"==t.IS_VALID&&a.cardData.push(t)})})):Object(s["a"])(e.message);case 6:case"end":return t.stop()}},t,this)}));function a(){return t.apply(this,arguments)}return a}()},mounted:function(){this.getCardList()}},_=u,f=(c("7c4a"),c("2877")),h=Object(f["a"])(_,e,n,!1,null,"5a3e00b0",null);h.options.__file="index.vue";a["default"]=h.exports},e602:function(t,a,c){}}]);
//# sourceMappingURL=chunk-4d446ff8.c265c444.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d446ff8"],{"70b5":function(t,a,c){t.exports=c.p+"img/coupon-null-icon.8e2c71ff.png"},"7c4a":function(t,a,c){"use strict";var e=c("e602"),n=c.n(e);n.a},c3a6:function(t,a,c){"use strict";c("68ef")},db31:function(t,a,c){"use strict";c.r(a);var e=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"card-contain border-box",style:{"min-height":t.$store.state.bodyH+"px"}},[e("div",{staticClass:"card-contain-inner"},t._l(t.cardList,function(a,c){return e("div",{key:c,staticClass:"card-brand-list border-box"},[e("div",{staticClass:"card-brand-title"},[t._v(t._s(a.brandName))]),t._l(a.cardData,function(c,n){return[n<a.showCount?e("div",{key:n,class:["card-list-cell border-box","VOU4"==c.VOU_TYPE?"discount-cell":""]},[e("div",{class:["card-list-cell_top border-box flex","VOU4"==c.VOU_TYPE?"discount-cell":""]},[e("div",{staticClass:"card-list-cell_top_left flex-1"},[t._v(t._s("VOU4"==c.VOU_TYPE?"折扣券":"优惠券"))]),e("div",{staticClass:"card-list-cell_top_right flex-1 text-right"},[t._v(t._s(c.VOUCHERS_NO))])]),e("div",{staticClass:"card-list-arrow"},[e("div",{class:["card-list-arrow_left","VOU4"==c.VOU_TYPE?"discount-cell":""]}),e("div",{class:["card-list-arrow_right","VOU4"==c.VOU_TYPE?"discount-cell":""]})]),e("div",{staticClass:"card-list-cell_body flex flex-align-center flex-pack-center"},[e("div",{class:["card-list-cell_body_left flex-1 flex flex-align-center flex-pack-center font-30","VOU4"==c.VOU_TYPE?"discount-cell":""]},["VOU5"==c.VOU_TYPE?e("span",{staticClass:"font-15 m-t-10"},[t._v("¥")]):t._e(),t._v(t._s("VOU4"==c.VOU_TYPE?c.VOU_DIS+"折":c.AMT_DISCOUNT)+"\n ")]),e("div",{staticClass:"card-list-cell_body_right border-box flex-2"},[e("div",{staticClass:"cell-body_right_cell"}),e("div",{staticClass:"cell-body_right_cell"},[t._v(t._s(c.START_DATE+"--"+c.VALID_DATE))]),e("div",{staticClass:"cell-body_right_cell"})])])]):t._e()]}),a.cardData.length>3&&a.cardData.length>a.showCount?e("div",{staticClass:"show-all font-14 color-848689",on:{click:function(c){t.showAllData(a)}}},[t._v("\n 展开剩余"+t._s(a.cardData.length-3)+"张 "),e("van-icon",{attrs:{name:"arrow-down"}})],1):t._e(),a.cardData.length>3&&a.cardData.length==a.showCount?e("div",{staticClass:"show-all font-14 color-848689",on:{click:function(c){t.showPartData(a)}}},[t._v("\n 收起 "),e("van-icon",{attrs:{name:"arrow-up"}})],1):t._e()],2)}),0),t.cardList.length?t._e():e("div",{staticClass:"no-card-data no-data-contain"},[e("img",{attrs:{src:c("70b5"),alt:"card-no-data"}}),e("p",{staticClass:"font-16 color-848689"},[t._v("你还没有卡券哦")])])])},n=[],s=(c("2fdb"),c("e7e5"),c("d399")),r=(c("6762"),c("c5f6"),c("ac6a"),c("96cf"),c("3b8d")),l=(c("a481"),c("4917"),c("bd86")),i=(c("c3a6"),c("ad06")),o=(c("cadf"),c("551c"),c("097d"),c("0c6d")),d=function(t){return Object(o["a"])("/gicfwh/get-tpn-card-list.json",t)},u={name:"cards",components:Object(l["a"])({},i["a"].name,i["a"]),data:function(){return{cardList:[]}},computed:{},methods:{formatDate:function(t){var a=t.match(/^(\d{4})(\d{2})(\d{2})$/);return a?t.replace(/(\d{4})(\d{2})(\d{2})/g,"$1.$2.$3"):t},showAllData:function(t){t.showCount=t.cardData.length},showPartData:function(t){t.showCount=3},getCardList:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(){var a,c,e,n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return a=this,c={},t.next=4,d(c);case 4:e=t.sent,0==e.errorCode?e.result&&e.result.length&&(n=[],e.result.forEach(function(t){t.START_DATE=a.formatDate(t.START_DATE),t.VALID_DATE=a.formatDate(t.VALID_DATE),t.VOU_DIS=t.VOU_DIS?Number(100*t.VOU_DIS/10).toFixed(2):"",n.includes(t.BRANDNAME)||"Y"!=t.IS_VALID||n.push(t.BRANDNAME)}),n.forEach(function(t){a.cardList.push({brandName:t,showCount:3,cardData:[]})}),e.result.forEach(function(t){a.cardList.forEach(function(a){t.BRANDNAME==a.brandName&&"Y"==t.IS_VALID&&a.cardData.push(t)})})):Object(s["a"])(e.message);case 6:case"end":return t.stop()}},t,this)}));function a(){return t.apply(this,arguments)}return a}()},mounted:function(){this.getCardList()}},_=u,f=(c("7c4a"),c("2877")),h=Object(f["a"])(_,e,n,!1,null,"5a3e00b0",null);h.options.__file="index.vue";a["default"]=h.exports},e602:function(t,a,c){}}]);
//# sourceMappingURL=chunk-4d446ff8.f52bb224.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,14 +2,13 @@
* 积分商城 api
*/
import {
getRequest,
postRequest
} from './request';
/* Common */
export const getUserData = data => getRequest('/gicfwh/get-member-info-for-integral', data);
export const getUserData = data => postRequest('/gicfwh/get-member-info-for-integral', data);
export const postTokenData = data => postRequest('/gicfwh/loginForDemo', data);
export const getCardData = data => getRequest('/gicfwh/virtualGoodsList', data);
export const getSignData = data => getRequest('/gicfwh/tpn-member-sign', data);
export const getBrandData = data => getRequest('/gicfwh/virtualGoodsBrand', data);
export const getGoodsData = data => getRequest('/gicfwh/entityGoodsList', data);
export const getCardData = data => postRequest('/gicfwh/virtualGoodsList', data);
export const getSignData = data => postRequest('/gicfwh/tpn-member-sign', data);
export const getBrandData = data => postRequest('/gicfwh/virtualGoodsBrand', data);
export const getGoodsData = data => postRequest('/gicfwh/entityGoodsList', data);
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