Commit 15e8bf7d by 肖康

阿斯达

parent b77ee529
Showing with 74 additions and 159 deletions
......@@ -331,7 +331,7 @@ font[class^="asfgd"] {
}
/**分享样式**/
.share-mask{
position: fixed;bottom:0;top:0;left:0;right:0;background: rgba(0,0,0,0.3);z-index: 999;
position: fixed;bottom:0;top:0;left:0;right:0;background: rgba(0,0,0,0.3);z-index: 9999999;
img{width:90%;float:right;}
}
/**兼容旧版本栅格布局**/
......
......@@ -48,7 +48,9 @@ const actions = {
let data = res.data;
state.loading = false;
if (data.err_code == 0) {
this.state.submitState=true;
state.submitState=true;
}else{
Toast(data.err_msg);
}
}).catch(function (err) {
state.loading = false;
......
<template>
<section class="sample" >
<Header :title="title" :meaushow='meaushow' :bgcolor="bgcolor"></Header>
<wxShare :url="shareurl"></wxShare>
<wxShare ></wxShare>
<div class="banner"></div>
<div class="zititle">
<span>猎芯自营</span>
......@@ -63,7 +63,7 @@
swipeThreshold:4,
active:0,
getPop:false,//获得机会弹窗,没机会时展示
shareurl:"http://www.baidu.com"
}
},
computed: {
......
<template>
<section class="sample-apply" >
<Header :title="title" :meaushow='meaushow' :bgcolor="bgcolor"></Header>
<wxShare ></wxShare>
<van-collapse v-model="activeName" accordion :border="noborder">
<van-collapse-item title="商品信息" name="1" :border="noborder">
<div class="info-con clr">
......@@ -60,7 +61,7 @@
<h3>恭喜获得1次免费申请样品机会<i class="icon iconfont icon-guanbi" @click="getuserf"></i></h3>
<p>样品订单编号:12019071090943</p>
<h2>邀请好友注册可额外获得一次样品申请机会,多邀多得</h2>
<span >点击邀请</span>
<span v-shareMask>点击邀请</span>
<div class="tips">重要提醒:审核结果​​将以短信通知给您</div>
</div>
</div>
......@@ -74,6 +75,7 @@
import Vue from 'vue'
import {mapState} from 'vuex'
import Header from "@/views/common/Header.vue";
import wxShare from "@/views/common/wxShare.vue";
import { Collapse, CollapseItem ,Toast,Loading} from 'vant';
Vue.use(Collapse).use(CollapseItem).use(Toast).use(Loading);
export default {
......
{"h":"9520eeba068a14661f70","c":{"28":true}}
\ No newline at end of file
{"h":"b95903a69dfcfced1f83","c":{"app":true}}
\ No newline at end of file
{"h":"236d0ea6edde812965cf","c":{"28":true}}
\ No newline at end of file
{"h":"966349ed92e956ed13b2","c":{"app":true}}
\ No newline at end of file
{"h":"aa0331ec36287cc88c02","c":{"48":true}}
\ No newline at end of file
{"h":"d1705ba40bcb20fdbd31","c":{"48":true}}
\ No newline at end of file
{"h":"84b9c72b8899081d209e","c":{"28":true}}
\ No newline at end of file
{"h":"64223c2d06ef8ed91876","c":{"28":true}}
\ No newline at end of file
{"h":"128fb48c880125a45ba6","c":{"app":true}}
\ No newline at end of file
webpackHotUpdate(28,{
/***/ "./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"2cbb7265-vue-loader-template\"}!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/templateLoader.js?!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.7.1@vue-loader/lib/index.js?!./src/views/sample/sampleapply.vue?vue&type=template&id=1a044739&scoped=true&":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2cbb7265-vue-loader-template"}!./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!./src/views/sample/sampleapply.vue?vue&type=template&id=1a044739&scoped=true& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"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 () {}\nvar staticRenderFns = []\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvX2NhY2hlLWxvYWRlckAyLjAuMUBjYWNoZS1sb2FkZXIvZGlzdC9janMuanM/e1wiY2FjaGVEaXJlY3RvcnlcIjpcIm5vZGVfbW9kdWxlcy8uY2FjaGUvdnVlLWxvYWRlclwiLFwiY2FjaGVJZGVudGlmaWVyXCI6XCIyY2JiNzI2NS12dWUtbG9hZGVyLXRlbXBsYXRlXCJ9IS4vbm9kZV9tb2R1bGVzL192dWUtbG9hZGVyQDE1LjcuMUB2dWUtbG9hZGVyL2xpYi9sb2FkZXJzL3RlbXBsYXRlTG9hZGVyLmpzPyEuL25vZGVfbW9kdWxlcy9fY2FjaGUtbG9hZGVyQDIuMC4xQGNhY2hlLWxvYWRlci9kaXN0L2Nqcy5qcz8hLi9ub2RlX21vZHVsZXMvX3Z1ZS1sb2FkZXJAMTUuNy4xQHZ1ZS1sb2FkZXIvbGliL2luZGV4LmpzPyEuL3NyYy92aWV3cy9zYW1wbGUvc2FtcGxlYXBwbHkudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTFhMDQ0NzM5JnNjb3BlZD10cnVlJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy92aWV3cy9zYW1wbGUvc2FtcGxlYXBwbHkudnVlPzFhNjgiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIHJlbmRlciA9IGZ1bmN0aW9uICgpIHt9XG52YXIgc3RhdGljUmVuZGVyRm5zID0gW11cblxuZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"2cbb7265-vue-loader-template\"}!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/templateLoader.js?!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?!./node_modules/_vue-loader@15.7.1@vue-loader/lib/index.js?!./src/views/sample/sampleapply.vue?vue&type=template&id=1a044739&scoped=true&\n");
/***/ })
})
\ No newline at end of file
{"h":"b9f92ecc49cde68b4524","c":{"13":true,"48":true}}
\ No newline at end of file
{"h":"96ef6c62005f5a44607a","c":{"app":true}}
\ No newline at end of file
{"h":"541562426da8b19f8052","c":{"48":true}}
\ No newline at end of file
{"h":"d99c923614e45fb20d87","c":{"28":true}}
\ No newline at end of file
{"h":"39e7927d7de1b4641ed4","c":{"28":true}}
\ No newline at end of file
{"h":"745cf6b05e2ae427e2c1","c":{"28":true}}
\ No newline at end of file
{"h":"ecc2837d9e21984ba364","c":{"28":true}}
\ No newline at end of file
{"h":"73753a44e488d6552bc4","c":{"app":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"5c45c7b1fa3ba65ecec4","c":{"28":true}}
\ No newline at end of file
{"h":"2ef5a4eac0f465cc512d","c":{"48":true}}
\ No newline at end of file
{"h":"d846e3d0d8c8fc47e95c","c":{"app":true}}
\ No newline at end of file
{"h":"240e7a6647c42ad64460","c":{"28":true}}
\ No newline at end of file
{"h":"881f631780db402f27d0","c":{"28":true}}
\ No newline at end of file
{"h":"64fe62c6b5130da59f45","c":{"28":true}}
\ No newline at end of file
{"h":"89df769ffc8bdb2d4750","c":{"28":true}}
\ No newline at end of file
{"h":"b27e72bcc7da8eaf1421","c":{"28":true}}
\ No newline at end of file
{"h":"eb7ba77a9789d84688ac","c":{"28":true,"app":true}}
\ No newline at end of file
{"h":"4242b1f84e74d1d0091c","c":{"28":true}}
\ No newline at end of file
{"h":"9c8d5425a0b7f03298ca","c":{"app":true}}
\ No newline at end of file
{"h":"f532ce67ae8e0400ef8a","c":{"28":true}}
\ No newline at end of file
{"h":"361ba42c2cafb6536bc6","c":{"28":false,"app":true}}
\ No newline at end of file
{"h":"6f61e7c0eaf4d3f3c363","c":{"28":true}}
\ No newline at end of file
{"h":"85e5c34741e1d2250e4e","c":{"28":true}}
\ No newline at end of file
{"h":"e13e820fbce8f657b6eb","c":{"28":true}}
\ No newline at end of file
{"h":"1bf234101e098f83809d","c":{"app":true}}
\ No newline at end of file
{"h":"24846179fec08d029c19","c":{"app":true}}
\ No newline at end of file
{"h":"5695354312c7dc642d1d","c":{"28":true}}
\ No newline at end of file
{"h":"36bd2b0544c963cfb93b","c":{"28":true}}
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/sample/sampleapply.js":
/*!*************************************************!*\
!*** ./src/store/modules/sample/sampleapply.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (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.2.3@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.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 addressInfo: \"\",\n submitState: false\n};\nvar mutations = {\n recvlistSample: function recvlistSample(state, payload) {\n state.addressInfo = payload.data.filter(function (item) {\n return item['is_default'] == 1;\n });\n state.addressInfo = state.addressInfo[0];\n }\n};\nvar actions = {\n recvlistSample: function recvlistSample(_ref, payload) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].recvlist().then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n selfSampleCreate: function selfSampleCreate(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n goods_id: payload.goods_id,\n apply_num: payload.apply_num,\n com_name: payload.com_name,\n sample_demand_desc: payload.sample_demand_desc,\n address_id: payload.address_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].selfSampleCreate(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n state.submitState = true;\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});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanM/YTBkZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgVnVlIGZyb20gJ3Z1ZSdcclxuaW1wb3J0IHtUb2FzdH0gZnJvbSAndmFudCc7XHJcbmltcG9ydCB7c2VydmljZXMgYX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ICAgfSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KS5jYXRjaChmdW5jdGlvbiAoZXJyKSB7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9LFxyXG4gICAgc2VsZlNhbXBsZUNyZWF0ZSh7Y29tbWl0fSwgcGF5bG9hZCkge1xyXG4gICAgICAgIHN0YXRlLmxvYWRpbmcgPSB0cnVlO1xyXG4gICAgICAgIHZhciBwYXJhbXMgPSB7XHJcbiAgICAgICAgICAgIGdvb2RzX2lkOiBwYXlsb2FkLmdvb2RzX2lkLFxyXG4gICAgICAgICAgICBhcHBseV9udW06IHBheWxvYWQuYXBwbHlfbnVtLFxyXG4gICAgICAgICAgICBjb21fbmFtZTogcGF5bG9hZC5jb21fbmFtZSxcclxuICAgICAgICAgICAgc2FtcGxlX2RlbWFuZF9kZXNjOiBwYXlsb2FkLnNhbXBsZV9kZW1hbmRfZGVzYyxcclxuICAgICAgICAgICAgYWRkcmVzc19pZDogcGF5bG9hZC5hZGRyZXNzX2lkXHJcblxyXG4gICAgICAgIH1cclxuICAgICAgICBTZXJ2aWNlcy5zZWxmU2FtcGxlQ3JlYXRlKHFzLnN0cmluZ2lmeShwYXJhbXMpKS50aGVuKChyZXMpID0+IHtcclxuICAgICAgICAgICAgbGV0IGRhdGEgPSByZXMuZGF0YTtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG5cclxuICAgICAgICAgICAgaWYgKGRhdGEuZXJyX2NvZGUgPT0gMCkge1xyXG4gICAgICAgICAgICAgICAgc3RhdGUuc3VibWl0U3RhdGU9dHJ1ZTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pLmNhdGNoKGZ1bmN0aW9uIChlcnIpIHtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfSxcclxuXHJcblxyXG59XHJcblxyXG5jb25zdCBnZXR0ZXJzID0ge31cclxuXHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIHN0YXRlLFxyXG4gICAgbXV0YXRpb25zLFxyXG4gICAgYWN0aW9ucyxcclxuICAgIGdldHRlcnNcclxufVxyXG5cclxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBSEE7QUFLQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFFQTtBQUxBO0FBUUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBTEE7QUFRQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBbENBO0FBdUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUpBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/store/modules/sample/sampleapply.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/sample/sampleapply.js":
/*!*************************************************!*\
!*** ./src/store/modules/sample/sampleapply.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (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.2.3@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.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 addressInfo: \"\"\n};\nvar mutations = {\n recvlistSample: function recvlistSample(state, payload) {\n state.addressInfo = payload.data.filter(function (item) {\n return item['is_default'] == 1;\n });\n state.addressInfo = state.addressInfo[0];\n }\n};\nvar actions = {\n recvlistSample: function recvlistSample(_ref, payload) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].recvlist().then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n selfSampleCreate: function selfSampleCreate(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n goods_id: payload.goods_id,\n apply_num: payload.apply_num,\n com_name: payload.com_name,\n sample_demand_desc: payload.sample_demand_desc,\n address_id: payload.address_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].selfSampleCreate(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\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});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWx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xyXG4gICAgICAgICAgICBpZiAoZGF0YS5lcnJfY29kZSA9PSAwKSB7XHJcbiAgICAgICAgICAgICAgICBjb21taXQoe1xyXG4gICAgICAgICAgICAgICAgICAgIHR5cGU6ICdyZWN2bGlzdFNhbXBsZScsXHJcbiAgICAgICAgICAgICAgICAgICAgZGF0YTogZGF0YS5kYXRhXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pLmNhdGNoKGZ1bmN0aW9uIChlcnIpIHtcclxuICAgICAgICB9KTtcclxuICAgIH0sXHJcbiAgICBzZWxmU2FtcGxlQ3JlYXRlKHtjb21taXR9LCBwYXlsb2FkKSB7XHJcbiAgICAgICAgc3RhdGUubG9hZGluZyA9IHRydWU7XHJcbiAgICAgICAgdmFyIHBhcmFtcyA9IHtcclxuICAgICAgICAgICAgZ29vZHNfaWQ6IHBheWxvYWQuZ29vZHNfaWQsXHJcbiAgICAgICAgICAgIGFwcGx5X251bTogcGF5bG9hZC5hcHBseV9udW0sXHJcbiAgICAgICAgICAgIGNvbV9uYW1lOiBwYXlsb2FkLmNvbV9uYW1lLFxyXG4gICAgICAgICAgICBzYW1wbGVfZGVtYW5kX2Rlc2M6IHBheWxvYWQuc2FtcGxlX2RlbWFuZF9kZXNjLFxyXG4gICAgICAgICAgICBhZGRyZXNzX2lkOiBwYXlsb2FkLmFkZHJlc3NfaWRcclxuICAgICAgICAgICAgXHJcbiAgICAgICAgfVxyXG4gICAgICAgIFNlcnZpY2VzLnNlbGZTYW1wbGVDcmVhdGUocXMuc3RyaW5naWZ5KHBhcmFtcykpLnRoZW4oKHJlcykgPT4ge1xyXG4gICAgICAgICAgICBsZXQgZGF0YSA9IHJlcy5kYXRhO1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgICAgIGlmIChkYXRhLmVycl9jb2RlID09IDApIHtcclxuICAgICAgICAgICAgICAgIGNvbW1pdCh7XHJcb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line at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/sample/sampleapply.js":
/*!*************************************************!*\
!*** ./src/store/modules/sample/sampleapply.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, exports) {
eval("throw new Error(\"Module build failed (from ./node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js):\\nSyntaxError: D:\\\\lxWork\\\\h5\\\\src\\\\store\\\\modules\\\\sample\\\\sampleapply.js: Unexpected token (53:27)\\n\\n\\u001b[0m \\u001b[90m 51 | \\u001b[39m state\\u001b[33m.\\u001b[39msubmitState\\u001b[33m=\\u001b[39m\\u001b[36mtrue\\u001b[39m\\u001b[33m;\\u001b[39m\\u001b[0m\\n\\u001b[0m \\u001b[90m 52 | \\u001b[39m }\\u001b[36melse\\u001b[39m{\\u001b[0m\\n\\u001b[0m\\u001b[31m\\u001b[1m>\\u001b[22m\\u001b[39m\\u001b[90m 53 | \\u001b[39m \\u001b[33mToast\\u001b[39m(data\\u001b[33m.\\u001b[39m)\\u001b[33m;\\u001b[39m\\u001b[0m\\n\\u001b[0m \\u001b[90m | \\u001b[39m \\u001b[31m\\u001b[1m^\\u001b[22m\\u001b[39m\\u001b[0m\\n\\u001b[0m \\u001b[90m 54 | \\u001b[39m }\\u001b[0m\\n\\u001b[0m \\u001b[90m 55 | \\u001b[39m })\\u001b[33m.\\u001b[39m\\u001b[36mcatch\\u001b[39m(\\u001b[36mfunction\\u001b[39m (err) {\\u001b[0m\\n\\u001b[0m \\u001b[90m 56 | \\u001b[39m state\\u001b[33m.\\u001b[39mloading \\u001b[33m=\\u001b[39m \\u001b[36mfalse\\u001b[39m\\u001b[33m;\\u001b[39m\\u001b[0m\\n at Object.raise (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:6400:17)\\n at Object.unexpected (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:7728:16)\\n at Object.parseIdentifierName (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:9624:18)\\n at Object.parseIdentifier (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:9598:23)\\n at Object.parseMaybePrivateName (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8962:19)\\n at Object.parseSubscript (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8575:28)\\n at Object.parseSubscripts (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8528:19)\\n at Object.parseExprSubscripts (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8517:17)\\n at Object.parseMaybeUnary (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8487:21)\\n at Object.parseExprOps (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8353:23)\\n at Object.parseMaybeConditional (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8326:23)\\n at Object.parseMaybeAssign (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8273:21)\\n at Object.parseExprListItem (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:9590:18)\\n at Object.parseCallExpressionArguments (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8720:22)\\n at Object.parseSubscript (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8613:29)\\n at Object.parseSubscripts (D:\\\\lxWork\\\\h5\\\\node_modules\\\\_@babel_parser@7.6.2@@babel\\\\parser\\\\lib\\\\index.js:8528:19)\");//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanMuanMiLCJzb3VyY2VzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/store/modules/sample/sampleapply.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/sample/sampleapply.js":
/*!*************************************************!*\
!*** ./src/store/modules/sample/sampleapply.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (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.2.3@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.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 addressInfo: \"\"\n};\nvar mutations = {\n recvlistSample: function recvlistSample(state, payload) {\n state.addressInfo = payload.data.filter(function (item) {\n return item['is_default'] == 1;\n });\n state.addressInfo = state.addressInfo[0];\n }\n};\nvar actions = {\n recvlistSample: function recvlistSample(_ref, payload) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].recvlist().then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n selfSampleCreate: function selfSampleCreate(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n goods_id: payload.goods_id,\n apply_num: payload.apply_num,\n com_name: payload.com_name,\n sample_demand_desc: payload.sample_demand_desc,\n address_id: payload.address_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].selfSampleCreate(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {}\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});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanM/YTBkZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgVnVlIGZyb20gJ3Z1ZSdcclxuaW1wb3J0IHtUb2FzdH0gZnJvbSAndmFudCc7XHJcbmltcG9ydCB7c2VydmljZXMgYXMgU2VydmljZXN9IGZyb20gJy4uLy4uLy4uL2FwaS9pbmRleCdcclxuaW1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QUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUVBO0FBTEE7QUFRQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFMQTtBQVFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQWpDQTtBQXNDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/store/modules/sample/sampleapply.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/sample/sampleapply.js":
/*!*************************************************!*\
!*** ./src/store/modules/sample/sampleapply.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (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.2.3@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.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 addressInfo: \"\",\n submitState: false\n};\nvar mutations = {\n recvlistSample: function recvlistSample(state, payload) {\n state.addressInfo = payload.data.filter(function (item) {\n return item['is_default'] == 1;\n });\n state.addressInfo = state.addressInfo[0];\n }\n};\nvar actions = {\n recvlistSample: function recvlistSample(_ref, payload) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].recvlist().then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n selfSampleCreate: function selfSampleCreate(_ref2, payload) {\n var _this = this;\n\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n goods_id: payload.goods_id,\n apply_num: payload.apply_num,\n com_name: payload.com_name,\n sample_demand_desc: payload.sample_demand_desc,\n address_id: payload.address_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].selfSampleCreate(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n _this.state.submitState = true;\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});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanM/YTBkZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQ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YWxzZTtcclxuICAgICAgICB9KTtcclxuICAgIH0sXHJcblxyXG5cclxufVxyXG5cclxuY29uc3QgZ2V0dGVycyA9IHt9XHJcblxyXG5leHBvcnQgZGVmYXVsdCB7XHJcbiAgICBzdGF0ZSxcclxuICAgIG11dGF0aW9ucyxcclxuICAgIGFjdGlvbnMsXHJcbiAgICBnZXR0ZXJzXHJcbn1cclxuXHJcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUhBO0FBS0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFMQTtBQVFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFMQTtBQVFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFqQ0E7QUFzQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/store/modules/sample/sampleapply.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/sample/sampleapply.js":
/*!*************************************************!*\
!*** ./src/store/modules/sample/sampleapply.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (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.2.3@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.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 addressInfo: \"\",\n submitState: false\n};\nvar mutations = {\n recvlistSample: function recvlistSample(state, payload) {\n state.addressInfo = payload.data.filter(function (item) {\n return item['is_default'] == 1;\n });\n state.addressInfo = state.addressInfo[0];\n }\n};\nvar actions = {\n recvlistSample: function recvlistSample(_ref, payload) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].recvlist().then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n selfSampleCreate: function selfSampleCreate(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n goods_id: payload.goods_id,\n apply_num: payload.apply_num,\n com_name: payload.com_name,\n sample_demand_desc: payload.sample_demand_desc,\n address_id: payload.address_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].selfSampleCreate(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {}\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});//# sourceUR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AgIFNlcnZpY2VzLnJlY3ZsaXN0KCkudGhlbigocmVzKSA9PiB7XHJcbiAgICAgICAgICAgIGxldCBkYXRhID0gcmVzLmRhdGE7XHJcbiAgICAgICAgICAgIHN0YXRlLmxvYWRpbmcgPSBmYWxzZTtcclxuICAgICAgICAgICAgaWYgKGRhdGEuZXJyX2NvZGUgPT0gMCkge1xyXG4gICAgICAgICAgICAgICAgY29tbWl0KHtcclxuICAgICAgICAgICAgICAgICAgICB0eXBlOiAncmVjdmxpc3RTYW1wbGUnLFxyXG4gICAgICAgICAgICAgICAgICAgIGRhdGE6IGRhdGEuZGF0YVxyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KS5jYXRjaChmdW5jdGlvbiAoZXJyKSB7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9LFxyXG4gICAgc2VsZlNhbXBsZUNyZWF0ZSh7Y29tbWl0fSwgcGF5bG9hZCkge1xyXG4gICAgICAgIHN0YXRlLmxvYWRpbmcgPSB0cnVlO1xyXG4gICAgICAgIHZhciBwYXJhbXMgPSB7XHJcbiAgICAgICAgICAgIGdvb2RzX2lkOiBwYXlsb2FkLmdvb2RzX2lkLFxyXG4gICAgICAgICAgICBhcHBseV9udW06IHBheWxvYWQuYXBwbHlfbnVtLFxyXG4gICAgICAgICAgICBjb21fbmFtZTogcGF5bG9hZC5jb21fbmFtZSxcclxuICAgICAgICAgICAgc2FtcGxlX2RlbWFuZF9kZXNjOiBwYXlsb2FkLnNhbXBsZV9kZW1hbmRfZGVzYyxcclxuICAgICAgICAgICAgYWRkcmVzc19pZDogcGF5bG9hZC5hZGRyZXNzX2lkXHJcblxyXG4gICAgICAgIH1cclxuICAgICAgICBTZXJ2aWNlcy5zZWxmU2FtcGxlQ3JlYXRlKHFzLnN0cmluZ2lmeShwYXJhbXMpKS50aGVuKChyZXMpID0+IHtcclxuICAgICAgICAgICAgbGV0IGRhdGEgPSByZXMuZGF0YTtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgICAgICBpZiAoZGF0YS5lcnJfY29kZSA9PSAwKSB7XHJcblxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSkuY2F0Y2goZnVuY3Rpb24gKGVycikge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9LFxyXG5cclxuXHJcbn1cclxuXHJcbmNvbnN0IGdldHRlcnMgPSB7fVxyXG5cclxuZXhwb3J0IGRlZmF1bHQge1xyXG4gICAgc3RhdGUsXHJcbiAgICBtdXRhdGlvbnMsXHJcbiAgICBhY3Rpb25zLFxyXG4gICAgZ2V0dGVyc1xyXG59XHJcblxyXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFIQTtBQUtBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUVBO0FBTEE7QUFRQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFMQTtBQVFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQWpDQTtBQXNDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/store/modules/sample/sampleapply.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/sample/sampleapply.js":
/*!*************************************************!*\
!*** ./src/store/modules/sample/sampleapply.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (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.2.3@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.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 addressInfo: \"\"\n};\nvar mutations = {\n recvlistSample: function recvlistSample(state, payload) {\n state.addressInfo = payload.data.filter(function (item) {\n return item['is_default'] == 1;\n });\n state.addressInfo = state.addressInfo[0];\n }\n};\nvar actions = {\n recvlistSample: function recvlistSample(_ref, payload) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].recvlist().then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n selfSampleCreate: function selfSampleCreate(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n mobile: payload.mobile,\n verify: payload.verify\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].selfSampleCreate(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\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});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanM/YTBkZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgVnVlIGZyb20gJ3Z1ZSdcclxuaW1wb3J0IHtUb2FzdH0gZnJvbSAndmFudCc7XHJcbmltcG9ydCB7c2VydmljZXMgYXMgU2VydmljZXN9IGZyb20gJy4uLy4uLy4uL2FwaS9pbmRleCdcclxuaW1wb3J0IFV0aWwgZnJvbSBcIi4uLy4uLy4uL3V0aWxcIjtcclxuXHJcbnZhciBxcyA9IHJlcXVpcmUoJ3FzJyk7XHJcblxyXG5WdWUudXNlKFRvYXN0KTtcclxuXHJcbmNvbnN0IHN0YXRlID0ge1xyXG4gICAgbG9hZGluZzogZmFsc2UsXHJcbiAgICBhZGRyZXNzSW5mbzpcIlwiLFxyXG59XHJcbmNvbnN0IG11dGF0aW9ucyA9IHtcclxuICAgIHJlY3ZsaXN0U2FtcGxlKHN0YXRlLCBwYXlsb2FkKSB7XHJcbiAgICAgICAgc3RhdGUuYWRkcmVzc0luZm89cGF5bG9hZC5kYXRhLmZpbHRlcihmdW5jdGlvbihpdGVtKXtyZXR1cm4gaXRlbVsnaXNfZGVmYXVsdCddID09IDE7fSk7XHJcbiAgICAgICAgc3RhdGUuYWRkcmVzc0luZm89c3RhdGUuYWRkcmVzc0luZm9bMF07XHJcblxyXG4gICAgfSxcclxufVxyXG5cclxuY29uc3QgYWN0aW9ucyA9IHtcclxuICAgIHJlY3ZsaXN0U2FtcGxlKHtjb21taXR9LCBwYXlsb2FkKSB7XHJcbiAgICAgICAgU2VydmljZXMucmVjdmxpc3QoKS50aGVuKChyZXMpID0+IHtcclxuICAgICAgICAgICAgbGV0IGRhdGEgPSByZXMuZGF0YTtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgICAgICBpZiAoZGF0YS5lcnJfY29kZSA9PSAwKSB7XHJcbiAgICAgICAgICAgICAgICBjb21taXQoe1xyXG4gICAgICAgICAgICAgICAgICAgIHR5cGU6ICdyZWN2bGlzdFNhbXBsZScsXHJcbiAgICAgICAgICAgICAgICAgICAgZGF0YTogZGF0YS5kYXRhXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pLmNhdGNoKGZ1bmN0aW9uIChlcnIpIHtcclxuICAgICAgICB9KTtcclxuICAgIH0sXHJcbiAgICBzZWxmU2FtcGxlQ3JlYXRlKHtjb21taXR9LCBwYXlsb2FkKSB7XHJcbiAgICAgICAgc3RhdGUubG9hZGluZyA9IHRydWU7XHJcbiAgICAgICAgdmFyIHBhcmFtcyA9IHtcclxuICAgICAgICAgICAgbW9iaWxlOiBwYXlsb2FkLm1vYmlsZSxcclxuICAgICAgICAgICAgdmVyaWZ5OiBwYXlsb2FkLnZlcmlmeVxyXG4gICAgICAgIH1cclxuICAgICAgICBTZXJ2aWNlcy5zZWxmU2FtcGxlQ3JlYXRlKHFzLnN0cmluZ2lmeShwYXJhbXMpKS50aGVuKChyZXMpID0+IHtcclxuICAgICAgICAgICAgbGV0IGRhdGEgPSByZXMuZGF0YTtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgICAgICBpZiAoZGF0YS5lcnJfY29kZSA9PSAwKSB7XHJcbiAgICAgICAgICAgICAgICBjb21taXQoe1xyXG4gICAgICAgICAgICAgICAgICAgIHR5cGU6ICdyZWN2bGlzdFNhbXBsZScsXHJcbiAgICAgICAgICAgICAgICAgICAgZGF0YTogZGF0YS5kYXRhXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pLmNhdGNoKGZ1bmN0aW9uIChlcnIpIHtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfSxcclxuXHJcblxyXG59XHJcblxyXG5jb25zdCBnZXR0ZXJzID0ge31cclxuXHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIHN0YXRlLFxyXG4gICAgbXV0YXRpb25zLFxyXG4gICAgYWN0aW9ucyxcclxuICAgIGdldHRlcnNcclxufVxyXG5cclxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFMQTtBQVFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQWhDQTtBQXFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/store/modules/sample/sampleapply.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/sample/sampleapply.js":
/*!*************************************************!*\
!*** ./src/store/modules/sample/sampleapply.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (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.2.3@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.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 addressInfo: \"\",\n submitState: false\n};\nvar mutations = {\n recvlistSample: function recvlistSample(state, payload) {\n state.addressInfo = payload.data.filter(function (item) {\n return item['is_default'] == 1;\n });\n state.addressInfo = state.addressInfo[0];\n }\n};\nvar actions = {\n recvlistSample: function recvlistSample(_ref, payload) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].recvlist().then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n selfSampleCreate: function selfSampleCreate(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n goods_id: payload.goods_id,\n apply_num: payload.apply_num,\n com_name: payload.com_name,\n sample_demand_desc: payload.sample_demand_desc,\n address_id: payload.address_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].selfSampleCreate(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n state.submitState = true;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(data.err_msg);\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});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvc3RvcmUvbW9kdWxlcy9zYW1wbGUvc2FtcGxlYXBwbHkuanM/YTBkZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgVnVlIGZyb20gJ3Z1ZSdcclxuaW1wb3J0IHtUb2FzdH0gZnJvbSAndmFudCc7XHJcbmltcG9ydCB7c2VydmljZXMgYXMgU2VydmljZXN9IGZyb20gJy4uLy4uLy4uL2FwaS9pbmRleCdcclxuaW1wb3J0IFV0aWwgZnJvbSBcIi4uLy4uLy4uL3V0aWxcIjtcclxuXHJcbnZhciBxcyA9IHJlcXVpcmUoJ3FzJyk7XHJcblxyXG5WdWUudXNlKFRvYXN0KTtcclxuXHJcbmNvbnN0IHN0YXRlID0ge1xyXG4gICAgbG9hZGluZzogZmFsc2UsXHJcbiAgICBhZGRyZXNzSW5mbzpcIlwiLFxyXG4gICAgc3VibWl0U3RhdGU6ZmFsc2VcclxufVxyXG5jb25zdCBtdXRhdGlvbnMgPSB7XHJcbiAgICByZWN2bGlzdFNhbXBsZShzdGF0ZSwgcGF5bG9hZCkge1xyXG4gICAgICAgIHN0YXRlLmFkZHJlc3NJbmZvPXBheWxvYWQuZGF0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DQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUxBO0FBUUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFuQ0E7QUF3Q0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/store/modules/sample/sampleapply.js\n");
/***/ })
})
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"390c778f284e59d86434","c":{"28":true}}
\ No newline at end of file
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