Commit a2315167 by 施宇

11111

parent 0494273d
...@@ -19,7 +19,7 @@ const mutations = { ...@@ -19,7 +19,7 @@ const mutations = {
}, },
goodList(state, payload) { goodList(state, payload) {
let arr = []; let arr = [];
for(let k in payload.data){ for (let k in payload.data) {
arr.push(payload.data[k]) arr.push(payload.data[k])
} }
state.goodList = state.goodList.concat(arr) state.goodList = state.goodList.concat(arr)
...@@ -33,7 +33,7 @@ const actions = { ...@@ -33,7 +33,7 @@ const actions = {
let data = res.data; let data = res.data;
if (data.err_code == 0) { if (data.err_code == 0) {
commit("classListM", { commit("classListM", {
data: data.data, data: data.data || [],
}); });
} else { } else {
commit("classListM", { commit("classListM", {
...@@ -55,7 +55,7 @@ const actions = { ...@@ -55,7 +55,7 @@ const actions = {
if (p == 1) { if (p == 1) {
state.goodList = []; state.goodList = [];
} }
let params ={ let params = {
...payload.data, ...payload.data,
limit: 10, limit: 10,
} }
...@@ -63,8 +63,12 @@ const actions = { ...@@ -63,8 +63,12 @@ const actions = {
state.loading = false; state.loading = false;
let data = res.data; let data = res.data;
if (data.err_code == 0) { if (data.err_code == 0) {
let totalPage = Math.ceil(data.data.total / 10); let totalPage = 0;
if (p == totalPage) { if (data.data.total) {
totalPage = Math.ceil(data.data.total / 10);
}
console.log(totalPage)
if (p == totalPage || !totalPage) {
state.finished = true; state.finished = true;
} }
if (data.data.total) { if (data.data.total) {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<span>猎芯自营</span> <span>猎芯自营</span>
<font>品现货 1片起订 3小时发货</font> <font>品现货 1片起订 3小时发货</font>
</div> </div>
<div class="nav"> <div class="nav" v-if="classList.length">
<van-tabs <van-tabs
v-model="active" v-model="active"
:color="color" :color="color"
...@@ -117,9 +117,11 @@ export default { ...@@ -117,9 +117,11 @@ export default {
this.loadingYp = now; this.loadingYp = now;
}, },
classList(now) { classList(now) {
this.p = 1; if(now.length){
this.classId = now[0].id; this.p = 1;
this.getGoodList(); this.classId = now[0].id;
this.getGoodList();
}
} }
}, },
created() { created() {
......
...@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core ...@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.9@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.9@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/views/common/wxShare.vue */ \"./src/views/common/wxShare.vue\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.5@vant/es/index.js\");\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_5__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Tab\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Tabs\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Lazyload\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"sample\",\n data: function data() {\n return {\n title: \"猎芯网-自营样片\",\n meaushow: true,\n bgcolor: \"#fafafa\",\n color: \"#1080d0\",\n defaultcolor: \"#333\",\n swipeThreshold: 4,\n active: 0,\n getPop: false,\n //获得机会弹窗,没机会时展示\n loadingYp: false,\n p: 1,\n classId: \"\",\n shareUrl: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getCookie(\"Yo4teW_uid\")\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__[\"mapState\"])({\n classList: function classList(state) {\n return state.sample.classList;\n },\n goodList: function goodList(state) {\n return state.sample.goodList;\n },\n finished: function finished(state) {\n return state.sample.finished;\n },\n loading: function loading(state) {\n return state.sample.loading;\n }\n })),\n watch: {\n loading: function loading(now) {\n this.loadingYp = now;\n },\n classList: function classList(now) {\n this.p = 1;\n this.classId = now[0].id;\n this.getGoodList();\n }\n },\n created: function created() {\n this.$store.dispatch({\n type: \"getClasslist\"\n });\n },\n methods: {\n getGoodList: function getGoodList() {\n this.$store.dispatch({\n type: \"getGoodList\",\n data: {\n p: this.p,\n class_id: this.classId\n }\n });\n },\n changeTab: function changeTab(data) {\n this.p = 1;\n this.classId = data;\n this.getGoodList();\n },\n onLoad: function onLoad() {\n this.p++;\n this.getGoodList();\n },\n getuserf: function getuserf() {\n this.getPop = false;\n },\n yaoqing: function yaoqing(id) {\n var loginpta = _util_index__WEBPACK_IMPORTED_MODULE_10__[\"default\"].isLogin() ? true : false;\n var me = this;\n\n if (!loginpta) {\n window.location.href = \"/v3/login?referer=\" + encodeURIComponent(window.location.href);\n return;\n } else {\n var toast = Object(vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"])({\n type: \"loading\",\n message: \"领取中\",\n forbidClick: true,\n duration: 0\n });\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].getUserSampleInfo().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n if (data.data.apply_count != 0) {\n toast.clear();\n me.$router.push({\n path: \"/sampleapply\",\n query: {\n id: id\n }\n });\n } else {\n me.getPop = true;\n }\n } else {\n toast.clear();\n vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"].fail(\"领取失败\");\n }\n }).catch(function (err) {\n toast.clear();\n vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"].fail(\"领取失败\");\n });\n }\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n wxShare: _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n \"van-list\": vant__WEBPACK_IMPORTED_MODULE_11__[\"List\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"); eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.9@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.9@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/views/common/wxShare.vue */ \"./src/views/common/wxShare.vue\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.5@vant/es/index.js\");\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_5__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Tab\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Tabs\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Lazyload\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"sample\",\n data: function data() {\n return {\n title: \"猎芯网-自营样片\",\n meaushow: true,\n bgcolor: \"#fafafa\",\n color: \"#1080d0\",\n defaultcolor: \"#333\",\n swipeThreshold: 4,\n active: 0,\n getPop: false,\n //获得机会弹窗,没机会时展示\n loadingYp: false,\n p: 1,\n classId: \"\",\n shareUrl: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getCookie(\"Yo4teW_uid\")\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__[\"mapState\"])({\n classList: function classList(state) {\n return state.sample.classList;\n },\n goodList: function goodList(state) {\n return state.sample.goodList;\n },\n finished: function finished(state) {\n return state.sample.finished;\n },\n loading: function loading(state) {\n return state.sample.loading;\n }\n })),\n watch: {\n loading: function loading(now) {\n this.loadingYp = now;\n },\n classList: function classList(now) {\n if (now.length) {\n this.p = 1;\n this.classId = now[0].id;\n this.getGoodList();\n }\n }\n },\n created: function created() {\n this.$store.dispatch({\n type: \"getClasslist\"\n });\n },\n methods: {\n getGoodList: function getGoodList() {\n this.$store.dispatch({\n type: \"getGoodList\",\n data: {\n p: this.p,\n class_id: this.classId\n }\n });\n },\n changeTab: function changeTab(data) {\n this.p = 1;\n this.classId = data;\n this.getGoodList();\n },\n onLoad: function onLoad() {\n this.p++;\n this.getGoodList();\n },\n getuserf: function getuserf() {\n this.getPop = false;\n },\n yaoqing: function yaoqing(id) {\n var loginpta = _util_index__WEBPACK_IMPORTED_MODULE_10__[\"default\"].isLogin() ? true : false;\n var me = this;\n\n if (!loginpta) {\n window.location.href = \"/v3/login?referer=\" + encodeURIComponent(window.location.href);\n return;\n } else {\n var toast = Object(vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"])({\n type: \"loading\",\n message: \"领取中\",\n forbidClick: true,\n duration: 0\n });\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].getUserSampleInfo().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n if (data.data.apply_count != 0) {\n toast.clear();\n me.$router.push({\n path: \"/sampleapply\",\n query: {\n id: id\n }\n });\n } else {\n me.getPop = true;\n }\n } else {\n toast.clear();\n vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"].fail(\"领取失败\");\n }\n }).catch(function (err) {\n toast.clear();\n vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"].fail(\"领取失败\");\n });\n }\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n wxShare: _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n \"van-list\": vant__WEBPACK_IMPORTED_MODULE_11__[\"List\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options");
/***/ }), /***/ }),
...@@ -44,7 +44,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * ...@@ -44,7 +44,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"sample\" },\n [\n _c(\"Header\", {\n attrs: {\n title: _vm.title,\n meaushow: _vm.meaushow,\n bgcolor: _vm.bgcolor\n }\n }),\n _c(\"wxShare\", { attrs: { url: _vm.shareUrl } }),\n _c(\"div\", { staticClass: \"banner\" }),\n _c(\n \"div\",\n { staticClass: \"zititle\" },\n [\n _c(\"span\", [_vm._v(\"猎芯自营\")]),\n _c(\"font\", [_vm._v(\"品现货 1片起订 3小时发货\")])\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"nav\" },\n [\n _c(\n \"van-tabs\",\n {\n attrs: {\n color: _vm.color,\n \"swipe-threshold\": _vm.swipeThreshold,\n \"title-active-color\": _vm.color,\n \"title-inactive-color\": _vm.defaultcolor\n },\n on: { change: _vm.changeTab },\n model: {\n value: _vm.active,\n callback: function($$v) {\n _vm.active = $$v\n },\n expression: \"active\"\n }\n },\n _vm._l(_vm.classList, function(v, k) {\n return _c(\"van-tab\", {\n attrs: { title: v.class_name, name: v.id }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"con\" },\n [\n _c(\n \"van-list\",\n {\n attrs: {\n finished: _vm.finished,\n \"finished-text\": \"我是有底线的噢\",\n \"immediate-check\": false\n },\n on: { load: _vm.onLoad },\n model: {\n value: _vm.loadingYp,\n callback: function($$v) {\n _vm.loadingYp = $$v\n },\n expression: \"loadingYp\"\n }\n },\n _vm._l(_vm.goodList, function(v, k) {\n return _c(\"div\", { staticClass: \"con-group clr\" }, [\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"lazy-container\",\n rawName: \"v-lazy-container\",\n value: { selector: \"img\" },\n expression: \"{selector:'img'}\"\n }\n ],\n staticClass: \"fl img-box\"\n },\n [\n _c(\"img\", {\n staticClass: \"lazy img-lazy\",\n attrs: {\n alt: v.goods_info.goods_name,\n \"data-src\": v.goods_info.goods_images,\n \"data-error\":\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\"\n }\n })\n ]\n ),\n _c(\"div\", { staticClass: \"fr cb-box van-hairline--bottom\" }, [\n _c(\"div\", { staticClass: \"title\" }, [\n _vm._v(_vm._s(v.goods_info.goods_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"类别:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.goods_info.class_id1_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"品牌:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.goods_info.brand_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"最大可申请数量:\")]),\n _vm._v(\n \"\\n \" + _vm._s(v.max_number) + \"\\n \"\n )\n ]),\n _c(\n \"div\",\n {\n staticClass: \"btnx\",\n on: {\n click: function($event) {\n return _vm.yaoqing(v.goods_id)\n }\n }\n },\n [_vm._v(\"领取样品\")]\n )\n ])\n ])\n }),\n 0\n )\n ],\n 1\n ),\n _c(\n \"div\",\n {\n directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }],\n staticClass: \"fix-btns\"\n },\n [_vm._v(\"立即分享\")]\n ),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.getPop,\n expression: \"getPop\"\n }\n ],\n staticClass: \"get-user-pop\"\n },\n [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\"\\n 您已将所有样片机会用完\\n \"),\n _c(\"i\", {\n staticClass: \"icon iconfont icon-guanbi\",\n on: { click: _vm.getuserf }\n })\n ]),\n _c(\"h2\", [\n _vm._v(\"邀请好友注册可额外获得一次样品申请机会,多邀多得\")\n ]),\n _c(\n \"span\",\n { directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }] },\n [_vm._v(\"点击邀请\")]\n )\n ])\n ]\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%229bbfdd84-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"); eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"sample\" },\n [\n _c(\"Header\", {\n attrs: {\n title: _vm.title,\n meaushow: _vm.meaushow,\n bgcolor: _vm.bgcolor\n }\n }),\n _c(\"wxShare\", { attrs: { url: _vm.shareUrl } }),\n _c(\"div\", { staticClass: \"banner\" }),\n _c(\n \"div\",\n { staticClass: \"zititle\" },\n [\n _c(\"span\", [_vm._v(\"猎芯自营\")]),\n _c(\"font\", [_vm._v(\"品现货 1片起订 3小时发货\")])\n ],\n 1\n ),\n _vm.classList.length\n ? _c(\n \"div\",\n { staticClass: \"nav\" },\n [\n _c(\n \"van-tabs\",\n {\n attrs: {\n color: _vm.color,\n \"swipe-threshold\": _vm.swipeThreshold,\n \"title-active-color\": _vm.color,\n \"title-inactive-color\": _vm.defaultcolor\n },\n on: { change: _vm.changeTab },\n model: {\n value: _vm.active,\n callback: function($$v) {\n _vm.active = $$v\n },\n expression: \"active\"\n }\n },\n _vm._l(_vm.classList, function(v, k) {\n return _c(\"van-tab\", {\n attrs: { title: v.class_name, name: v.id }\n })\n }),\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n { staticClass: \"con\" },\n [\n _c(\n \"van-list\",\n {\n attrs: {\n finished: _vm.finished,\n \"finished-text\": \"我是有底线的噢\",\n \"immediate-check\": false\n },\n on: { load: _vm.onLoad },\n model: {\n value: _vm.loadingYp,\n callback: function($$v) {\n _vm.loadingYp = $$v\n },\n expression: \"loadingYp\"\n }\n },\n _vm._l(_vm.goodList, function(v, k) {\n return _c(\"div\", { staticClass: \"con-group clr\" }, [\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"lazy-container\",\n rawName: \"v-lazy-container\",\n value: { selector: \"img\" },\n expression: \"{selector:'img'}\"\n }\n ],\n staticClass: \"fl img-box\"\n },\n [\n _c(\"img\", {\n staticClass: \"lazy img-lazy\",\n attrs: {\n alt: v.goods_info.goods_name,\n \"data-src\": v.goods_info.goods_images,\n \"data-error\":\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\"\n }\n })\n ]\n ),\n _c(\"div\", { staticClass: \"fr cb-box van-hairline--bottom\" }, [\n _c(\"div\", { staticClass: \"title\" }, [\n _vm._v(_vm._s(v.goods_info.goods_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"类别:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.goods_info.class_id1_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"品牌:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.goods_info.brand_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"最大可申请数量:\")]),\n _vm._v(\n \"\\n \" + _vm._s(v.max_number) + \"\\n \"\n )\n ]),\n _c(\n \"div\",\n {\n staticClass: \"btnx\",\n on: {\n click: function($event) {\n return _vm.yaoqing(v.goods_id)\n }\n }\n },\n [_vm._v(\"领取样品\")]\n )\n ])\n ])\n }),\n 0\n )\n ],\n 1\n ),\n _c(\n \"div\",\n {\n directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }],\n staticClass: \"fix-btns\"\n },\n [_vm._v(\"立即分享\")]\n ),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.getPop,\n expression: \"getPop\"\n }\n ],\n staticClass: \"get-user-pop\"\n },\n [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\"\\n 您已将所有样片机会用完\\n \"),\n _c(\"i\", {\n staticClass: \"icon iconfont icon-guanbi\",\n on: { click: _vm.getuserf }\n })\n ]),\n _c(\"h2\", [\n _vm._v(\"邀请好友注册可额外获得一次样品申请机会,多邀多得\")\n ]),\n _c(\n \"span\",\n { directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }] },\n [_vm._v(\"点击邀请\")]\n )\n ])\n ]\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%229bbfdd84-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options");
/***/ }), /***/ }),
...@@ -55,18 +55,18 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * ...@@ -55,18 +55,18 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
/*! no static exports found */ /*! no static exports found */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
eval("exports = module.exports = __webpack_require__(/*! ../../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\nexports.i(__webpack_require__(/*! -!../../../node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!../../../node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2!../../assets/css/sample/sample.css */ \"./node_modules/_css-loader@1.0.1@css-loader/index.js?!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js?!./src/assets/css/sample/sample.css\"), \"\");\n\n// module\nexports.push([module.i, \"\\r\\n\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"); eval("exports = module.exports = __webpack_require__(/*! ../../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\nexports.i(__webpack_require__(/*! -!../../../node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!../../../node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2!../../assets/css/sample/sample.min.css */ \"./node_modules/_css-loader@1.0.1@css-loader/index.js?!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js?!./src/assets/css/sample/sample.min.css\"), \"\");\n\n// module\nexports.push([module.i, \"\\r\\n\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options");
/***/ }), /***/ }),
/***/ "./node_modules/_css-loader@1.0.1@css-loader/index.js?!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js?!./src/assets/css/sample/sample.css": /***/ "./node_modules/_css-loader@1.0.1@css-loader/index.js?!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js?!./src/assets/css/sample/sample.min.css":
/*!**************************************************************************************************************************************************************************************************************************************************************!*\ /*!******************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2!./src/assets/css/sample/sample.css ***! !*** ./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2!./src/assets/css/sample/sample.min.css ***!
\**************************************************************************************************************************************************************************************************************************************************************/ \******************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */ /*! no static exports found */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
eval("var escape = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/url/escape.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/url/escape.js\");\nexports = module.exports = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.i, \".sample {\\n padding-bottom: 50px;\\n}\\n.sample .ele {\\n text-overflow: ellipsis;\\n overflow: hidden;\\n white-space: nowrap;\\n}\\n.sample .banner {\\n height: 173px;\\n width: 100%;\\n background: url(\" + escape(__webpack_require__(/*! ../../images/sample/samplebanner.png */ \"./src/assets/images/sample/samplebanner.png\")) + \") no-repeat;\\n background-size: 100% 100%;\\n}\\n.sample .zititle {\\n padding: 15px;\\n}\\n.sample .zititle span {\\n color: #333;\\n font-size: 16px;\\n}\\n.sample .zititle font {\\n font-size: 12px;\\n color: #999;\\n margin-left: 10px;\\n height: 20px;\\n line-height: 20px;\\n}\\n.sample .nav {\\n padding: 0 15px ;\\n}\\n.sample .nav .van-hairline--top-bottom::after {\\n border-width: 0 0 1px 0;\\n}\\n.sample .con .con-group {\\n padding: 15px;\\n padding-bottom: 0px;\\n}\\n.sample .con .con-group .img-box {\\n width: 2.933rem;\\n height: 2.933rem;\\n}\\n.sample .con .con-group .img-box img {\\n width: 100%;\\n height: 100%;\\n}\\n.sample .con .con-group .cb-box {\\n width: 6rem;\\n height: 2.933rem;\\n padding-bottom: 15px;\\n}\\n.sample .con .con-group .cb-box .title {\\n color: #333;\\n font-size: 16px;\\n text-overflow: ellipsis;\\n overflow: hidden;\\n white-space: nowrap;\\n margin-bottom: 0.15rem;\\n}\\n.sample .con .con-group .cb-box p {\\n color: #333;\\n font-size: 12px;\\n text-overflow: ellipsis;\\n overflow: hidden;\\n white-space: nowrap;\\n height: 0.45rem;\\n line-height: 0.45rem;\\n}\\n.sample .con .con-group .cb-box p span {\\n color: #666;\\n}\\n.sample .con .con-group .cb-box .btnx {\\n width: 3.5rem;\\n height: 0.7rem;\\n line-height: 0.7rem;\\n border-radius: 4px;\\n background: #1080d0;\\n color: #fff;\\n text-align: center;\\n cursor: pointer;\\n margin-top: 0.2rem;\\n}\\n@media screen and (max-width: 320px) {\\n.sample .con .con-group .cb-box {\\n width: 5.8rem;\\n height: 2.933rem;\\n}\\n.sample .con .con-group .cb-box .title {\\n margin-bottom: 0.05rem;\\n}\\n}\\n.sample .fix-btns {\\n position: fixed;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n height: 50px;\\n line-height: 50px;\\n color: #fff;\\n font-size: 16px;\\n text-align: center;\\n background: #1080d0;\\n -webkit-box-shadow: 0 0 10px #000;\\n box-shadow: 0 0 10px #000;\\n cursor: pointer;\\n}\\n.sample .get-user-pop .get-user-con {\\n background: #fff;\\n width: 8.667rem;\\n height: 5.52rem;\\n border-radius: 3px;\\n position: fixed;\\n top: 50%;\\n left: 50%;\\n margin-left: -4.3335rem;\\n margin-top: -2.76rem;\\n -webkit-box-shadow: 0 0 20px #e5e5e5;\\n box-shadow: 0 0 20px #e5e5e5;\\n z-index: 99999;\\n}\\n.sample .get-user-pop .get-user-con h3 {\\n color: #ffa200;\\n font-size: 16px;\\n height: 2.027rem;\\n line-height: 2.027rem;\\n text-align: center;\\n}\\n.sample .get-user-pop .get-user-con h3 i {\\n position: relative;\\n float: right;\\n top: -1.4rem;\\n color: #fff;\\n font-size: 20px;\\n}\\n.sample .get-user-pop .get-user-con h2 {\\n color: #000;\\n font-size: 14px;\\n text-align: center;\\n width: 60%;\\n margin: 0 auto;\\n}\\n.sample .get-user-pop .get-user-con span {\\n display: block;\\n cursor: pointer;\\n height: 30px;\\n line-height: 30px;\\n width: 150px;\\n text-align: center;\\n background: #1080d0;\\n color: #fff;\\n font-size: 14px;\\n border-radius: 30px;\\n margin: 0 auto;\\n margin-top: 50px;\\n}\\n.sample .get-user-pop .mask {\\n position: fixed;\\n bottom: 0;\\n top: 0;\\n left: 0;\\n right: 0;\\n background: rgba(0, 0, 0, 0.3);\\n z-index: 999;\\n}\\n\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/assets/css/sample/sample.css?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2"); eval("var escape = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/url/escape.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/url/escape.js\");\nexports = module.exports = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.i, \".sample {padding-bottom: 50px;}.sample .ele{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sample .banner{height:173px;width:100%;background:url(\" + escape(__webpack_require__(/*! ../../images/sample/samplebanner.png */ \"./src/assets/images/sample/samplebanner.png\")) + \") no-repeat;background-size:100% 100%}.sample .zititle{padding:15px}.sample .zititle span{color:#333;font-size:16px}.sample .zititle font{font-size:12px;color:#999;margin-left:10px;height:20px;line-height:20px}.sample .nav{padding:0 15px\\n}.sample .nav .van-hairline--top-bottom::after{border-width:0 0 1px 0}.sample .con .con-group{padding:15px;padding-bottom:0px}.sample .con .con-group .img-box{width:2.933rem;height:2.933rem}.sample .con .con-group .img-box img{width:100%;height:100%}.sample .con .con-group .cb-box{width:6rem;height:2.933rem;padding-bottom:15px}.sample .con .con-group .cb-box .title{color:#333;font-size:16px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-bottom:.15rem}.sample .con .con-group .cb-box p{color:#333;font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:.45rem;line-height:.45rem}.sample .con .con-group .cb-box p span{color:#666}.sample .con .con-group .cb-box .btnx{width:3.5rem;height:.7rem;line-height:.7rem;border-radius:4px;background:#1080d0;color:#fff;text-align:center;cursor:pointer;margin-top:.2rem}@media screen and (max-width:320px){.sample .con .con-group .cb-box{width:5.8rem;height:2.933rem}.sample .con .con-group .cb-box .title{margin-bottom:.05rem}}.sample .fix-btns{position:fixed;left:0;bottom:0;right:0;height:50px;line-height:50px;color:#fff;font-size:16px;text-align:center;background:#1080d0;-webkit-box-shadow:0 0 10px #000;box-shadow:0 0 10px #000;cursor:pointer}.sample .get-user-pop .get-user-con{background:#fff;width:8.667rem;height:5.52rem;border-radius:3px;position:fixed;top:50%;left:50%;margin-left:-4.3335rem;margin-top:-2.76rem;-webkit-box-shadow:0 0 20px #e5e5e5;box-shadow:0 0 20px #e5e5e5;z-index:99999}.sample .get-user-pop .get-user-con h3{color:#ffa200;font-size:16px;height:2.027rem;line-height:2.027rem;text-align:center}.sample .get-user-pop .get-user-con h3 i{position:relative;float:right;top:-1.4rem;color:#fff;font-size:20px}.sample .get-user-pop .get-user-con h2{color:#000;font-size:14px;text-align:center;width:60%;margin:0 auto}.sample .get-user-pop .get-user-con span{display:block;cursor:pointer;height:30px;line-height:30px;width:150px;text-align:center;background:#1080d0;color:#fff;font-size:14px;border-radius:30px;margin:0 auto;margin-top:50px}.sample .get-user-pop .mask{position:fixed;bottom:0;top:0;left:0;right:0;background:rgba(0,0,0,0.3);z-index:999}\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/assets/css/sample/sample.min.css?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2");
/***/ }), /***/ }),
......
...@@ -4254,7 +4254,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_ ...@@ -4254,7 +4254,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.9@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.9@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.5@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_5__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Toast\"]);\nvar state = {\n classList: [],\n goodList: [],\n loading: false,\n finished: false,\n goodCount: 0\n};\nvar mutations = {\n classListM: function classListM(state, payload) {\n state.classList = payload.data;\n },\n goodList: function goodList(state, payload) {\n var arr = [];\n\n for (var k in payload.data) {\n arr.push(payload.data[k]);\n }\n\n state.goodList = state.goodList.concat(arr);\n }\n};\nvar actions = {\n getClasslist: function getClasslist(_ref) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_7__[\"services\"].sampleClassList().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n commit(\"classListM\", {\n data: data.data\n });\n } else {\n commit(\"classListM\", {\n data: []\n });\n }\n }).catch(function (err) {\n commit(\"classListM\", {\n data: []\n });\n });\n },\n getGoodList: function getGoodList(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n state.finished = false;\n var p = payload.data.p;\n\n if (p == 1) {\n state.goodList = [];\n }\n\n var params = _objectSpread({}, payload.data, {\n limit: 10\n });\n\n _api_index__WEBPACK_IMPORTED_MODULE_7__[\"services\"].sampleList(params).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n var totalPage = Math.ceil(data.data.total / 10);\n\n if (p == totalPage) {\n state.finished = true;\n }\n\n if (data.data.total) {\n commit('goodList', {\n data: data.data.data\n });\n }\n } else {\n state.loading = false;\n state.finished = true;\n }\n }).catch(function (err) {\n state.loading = false;\n state.finished = true;\n });\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n actions: actions,\n mutations: mutations\n});\n\n//# sourceURL=webpack:///./src/store/modules/sample/index.js?"); eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.9@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.9@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.5@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_5__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Toast\"]);\nvar state = {\n classList: [],\n goodList: [],\n loading: false,\n finished: false,\n goodCount: 0\n};\nvar mutations = {\n classListM: function classListM(state, payload) {\n state.classList = payload.data;\n },\n goodList: function goodList(state, payload) {\n var arr = [];\n\n for (var k in payload.data) {\n arr.push(payload.data[k]);\n }\n\n state.goodList = state.goodList.concat(arr);\n }\n};\nvar actions = {\n getClasslist: function getClasslist(_ref) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_7__[\"services\"].sampleClassList().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n commit(\"classListM\", {\n data: data.data || []\n });\n } else {\n commit(\"classListM\", {\n data: []\n });\n }\n }).catch(function (err) {\n commit(\"classListM\", {\n data: []\n });\n });\n },\n getGoodList: function getGoodList(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n state.finished = false;\n var p = payload.data.p;\n\n if (p == 1) {\n state.goodList = [];\n }\n\n var params = _objectSpread({}, payload.data, {\n limit: 10\n });\n\n _api_index__WEBPACK_IMPORTED_MODULE_7__[\"services\"].sampleList(params).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n var totalPage = 0;\n\n if (data.data.total) {\n totalPage = Math.ceil(data.data.total / 10);\n }\n\n console.log(totalPage);\n\n if (p == totalPage || !totalPage) {\n state.finished = true;\n }\n\n if (data.data.total) {\n commit('goodList', {\n data: data.data.data\n });\n }\n } else {\n state.loading = false;\n state.finished = true;\n }\n }).catch(function (err) {\n state.loading = false;\n state.finished = true;\n });\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n actions: actions,\n mutations: mutations\n});\n\n//# sourceURL=webpack:///./src/store/modules/sample/index.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