Commit 73e40e28 by 肖康

Merge branch 'XK_carB20190624' into Development

parents 5b17b64b 5e504322
......@@ -19,11 +19,13 @@ const mutations = {
const actions = {
ucouponLists({commit}, payload) {
state.loading = true;
var params = {
status:payload.status
}
Services.ucouponLists(qs.stringify(params)).then((res) => {
let data = res.data;
state.loading = false;
if (data.err_code == 0) {
state.lists=data.data;
}else {
......
......@@ -3,7 +3,7 @@
<Header :title="title" ></Header>
<van-tabs @change="tabs" >
<van-tab :title="'未使用('+counts['-1']+')'"></van-tab>
<van-tab :title="'使用记录(('+counts['1']+')'"></van-tab>
<van-tab :title="'使用记录('+counts['1']+')'"></van-tab>
<van-tab :title="'已过期('+counts['-2']+')'"></van-tab>
</van-tabs>
<div class="coupon-box clr coupon-user">
......
......@@ -4025,7 +4025,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.7.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false,\n lists: [],\n counts: {\n \"0\": \"0\",\n \"1\": \"0\",\n \"-2\": \"0\",\n \"-1\": \"0\"\n }\n};\nvar mutations = {};\nvar actions = {\n ucouponLists: function ucouponLists(_ref, payload) {\n var commit = _ref.commit;\n var params = {\n status: payload.status\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].ucouponLists(qs.stringify(params)).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n state.lists = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n ucouponCount: function ucouponCount(_ref2, payload) {\n var commit = _ref2.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].ucouponCount().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n state.counts = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/user/coupon.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.2@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.7.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false,\n lists: [],\n counts: {\n \"0\": \"0\",\n \"1\": \"0\",\n \"-2\": \"0\",\n \"-1\": \"0\"\n }\n};\nvar mutations = {};\nvar actions = {\n ucouponLists: function ucouponLists(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n status: payload.status\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].ucouponLists(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n state.lists = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n ucouponCount: function ucouponCount(_ref2, payload) {\n var commit = _ref2.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].ucouponCount().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n state.counts = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/user/coupon.js?");
/***/ }),
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 sign in to comment