Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bcf9474e
authored
Jan 15, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
b26c75cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
src/views/sample/sampleapply.vue
view/19.js
src/views/sample/sampleapply.vue
View file @
bcf9474e
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<h3><span
class=
"f-red"
>
*
</span>
公司/机构/学校名称
</h3>
<h3><span
class=
"f-red"
>
*
</span>
公司/机构/学校名称
</h3>
<input
type=
"text"
v-model=
"com_name"
placeholder=
"
请输入单位名称
"
/>
<input
type=
"text"
v-model=
"com_name"
placeholder=
"
深圳市猎芯科技有限公司
"
/>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<h3>
项目需求描述
</h3>
<h3>
项目需求描述
</h3>
...
@@ -150,10 +150,7 @@
...
@@ -150,10 +150,7 @@
},
},
submitS
()
{
submitS
()
{
var
self
=
this
;
var
self
=
this
;
if
(
!
this
.
apply_num
)
{
Toast
(
"请输入申请数量"
);
return
;
}
if
(
!
this
.
com_name
)
{
if
(
!
this
.
com_name
)
{
Toast
(
"请输入单位名称"
);
Toast
(
"请输入单位名称"
);
return
;
return
;
...
...
view/19.js
View file @
bcf9474e
...
@@ -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.11@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.11@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.11@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.11@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.7.7@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.2@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 vant__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.4.1@vant/es/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/index */ \"./src/util/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(Object(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(Object(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\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_5__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_9__[\"Collapse\"]).use(vant__WEBPACK_IMPORTED_MODULE_9__[\"CollapseItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_9__[\"Toast\"]).use(vant__WEBPACK_IMPORTED_MODULE_9__[\"Loading\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'sampleapply',\n data: function data() {\n return {\n title: \"样片申请\",\n meaushow: true,\n bgcolor: '#fafafa',\n color: '#1080d0',\n activeName: '1',\n noborder: false,\n successPop: false,\n //申请成功弹窗显示\n goods_id: this.$route.query.id,\n apply_num: \"\",\n com_name: \"\",\n sample_demand_desc: \"\",\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 loading: function loading(state) {\n return state.sampleapply.loading;\n },\n addressInfo: function addressInfo(state) {\n return state.sampleapply.addressInfo;\n },\n ypGoodDetail: function ypGoodDetail(state) {\n return state.sampleapply.ypGoodDetail;\n },\n submitState: function submitState(state) {\n return state.sampleapply.submitState;\n },\n ordernum: function ordernum(state) {\n return state.sampleapply.ordernum;\n }\n })),\n watch: {\n submitState: function submitState(val) {\n if (val) {\n this.successPop = true;\n }\n },\n apply_num: function apply_num(val) {\n var num = this.ypGoodDetail.max_number;\n\n if (!num) {\n this.apply_num = 1;\n } else if (val > num) {\n this.apply_num = num;\n }\n }\n },\n created: function created() {\n this.$store.dispatch({\n type: \"getDetailYp\",\n data: {\n id: this.goods_id\n }\n });\n this.$store.dispatch({\n type: 'recvlistSample'\n });\n },\n methods: {\n toUrl: function toUrl() {\n window.location.href = '/h5/view/#/sample';\n },\n getuserf: function getuserf() {\n this.successPop = false;\n window.location.href = '/v3/user/order';\n },\n submitS: function submitS() {\n var self = this;\n\n if (!this.
apply_num) {\n Object(vant__WEBPACK_IMPORTED_MODULE_9__[\"Toast\"])(\"请输入申请数量\");\n return;\n }\n\n if (!this.
com_name) {\n Object(vant__WEBPACK_IMPORTED_MODULE_9__[\"Toast\"])(\"请输入单位名称\");\n return;\n }\n\n this.$store.dispatch({\n type: 'selfSampleCreate',\n goods_id: self.goods_id,\n apply_num: self.apply_num,\n com_name: self.com_name,\n sample_demand_desc: self.sample_demand_desc,\n address_id: self.addressInfo.address_id\n });\n },\n addressSample: function addressSample(adderssId) {\n window.location.href = '/h5/view/#/userAddress?points=' + adderssId;\n },\n adderssAdd: function adderssAdd() {\n window.location.href = '/h5/view/#/userAddress?fp=5';\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 }\n});\n\n//# sourceURL=webpack:///./src/views/sample/sampleapply.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.8.3@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.11@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.11@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.11@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.11@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.7.7@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.2@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 vant__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.4.1@vant/es/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/index */ \"./src/util/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(Object(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(Object(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\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_5__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_9__[\"Collapse\"]).use(vant__WEBPACK_IMPORTED_MODULE_9__[\"CollapseItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_9__[\"Toast\"]).use(vant__WEBPACK_IMPORTED_MODULE_9__[\"Loading\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'sampleapply',\n data: function data() {\n return {\n title: \"样片申请\",\n meaushow: true,\n bgcolor: '#fafafa',\n color: '#1080d0',\n activeName: '1',\n noborder: false,\n successPop: false,\n //申请成功弹窗显示\n goods_id: this.$route.query.id,\n apply_num: \"\",\n com_name: \"\",\n sample_demand_desc: \"\",\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 loading: function loading(state) {\n return state.sampleapply.loading;\n },\n addressInfo: function addressInfo(state) {\n return state.sampleapply.addressInfo;\n },\n ypGoodDetail: function ypGoodDetail(state) {\n return state.sampleapply.ypGoodDetail;\n },\n submitState: function submitState(state) {\n return state.sampleapply.submitState;\n },\n ordernum: function ordernum(state) {\n return state.sampleapply.ordernum;\n }\n })),\n watch: {\n submitState: function submitState(val) {\n if (val) {\n this.successPop = true;\n }\n },\n apply_num: function apply_num(val) {\n var num = this.ypGoodDetail.max_number;\n\n if (!num) {\n this.apply_num = 1;\n } else if (val > num) {\n this.apply_num = num;\n }\n }\n },\n created: function created() {\n this.$store.dispatch({\n type: \"getDetailYp\",\n data: {\n id: this.goods_id\n }\n });\n this.$store.dispatch({\n type: 'recvlistSample'\n });\n },\n methods: {\n toUrl: function toUrl() {\n window.location.href = '/h5/view/#/sample';\n },\n getuserf: function getuserf() {\n this.successPop = false;\n window.location.href = '/v3/user/order';\n },\n submitS: function submitS() {\n var self = this;\n\n if (!this.com_name) {\n Object(vant__WEBPACK_IMPORTED_MODULE_9__[\"Toast\"])(\"请输入单位名称\");\n return;\n }\n\n this.$store.dispatch({\n type: 'selfSampleCreate',\n goods_id: self.goods_id,\n apply_num: self.apply_num,\n com_name: self.com_name,\n sample_demand_desc: self.sample_demand_desc,\n address_id: self.addressInfo.address_id\n });\n },\n addressSample: function addressSample(adderssId) {\n window.location.href = '/h5/view/#/userAddress?points=' + adderssId;\n },\n adderssAdd: function adderssAdd() {\n window.location.href = '/h5/view/#/userAddress?fp=5';\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 }\n});\n\n//# sourceURL=webpack:///./src/views/sample/sampleapply.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.8.3@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-apply\" },\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(\n \"van-collapse\",\n {\n attrs: { accordion: \"\", border: _vm.noborder },\n model: {\n value: _vm.activeName,\n callback: function($$v) {\n _vm.activeName = $$v\n },\n expression: \"activeName\"\n }\n },\n [\n _c(\n \"van-collapse-item\",\n { attrs: { title: \"商品信息\", name: \"1\", border: _vm.noborder } },\n [\n _c(\"div\", { staticClass: \"info-con clr\" }, [\n _c(\"div\", { staticClass: \"fl img-box\" }, [\n _c(\"img\", {\n attrs: {\n src:\n _vm.ypGoodDetail.goods_images ||\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\",\n alt: \"\"\n }\n })\n ]),\n _vm.ypGoodDetail.goods_info\n ? _c(\"div\", { staticClass: \"fr cb-box\" }, [\n _c(\"div\", { staticClass: \"title\" }, [\n _vm._v(_vm._s(_vm.ypGoodDetail.goods_info.goods_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"类别:\")]),\n _vm._v(\n \" \" +\n _vm._s(_vm.ypGoodDetail.goods_info.class_id1_name)\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"品牌:\")]),\n _vm._v(_vm._s(_vm.ypGoodDetail.goods_info.brand_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"最大可申请数量:\")]),\n _vm._v(_vm._s(_vm.ypGoodDetail.max_number || 1))\n ])\n ])\n : _vm._e()\n ]),\n _vm.ypGoodDetail.goods_info\n ? _c(\"div\", { staticClass: \"info-detail\" }, [\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"型号: \")]),\n _vm._v(_vm._s(_vm.ypGoodDetail.goods_info.sku_name))\n ]),\n _c(\"p\", { staticClass: \"canshudetail\" }, [\n _c(\"span\", [_vm._v(\"参数描述: \")]),\n _vm._v(\n \"\\n \" +\n _vm._s(_vm.ypGoodDetail.goods_info.sku_name) +\n \"由\" +\n _vm._s(_vm.ypGoodDetail.goods_info.brand_name) +\n \"设计生产制造,在猎芯网自营现货销售。\" +\n _vm._s(_vm.ypGoodDetail.goods_info.goods_name) +\n \"的封装/规格参数为:\" +\n _vm._s(_vm.ypGoodDetail.goods_info.encap) +\n \";您可以选择下载\" +\n _vm._s(_vm.ypGoodDetail.goods_info.sku_name) +\n \"中文资料等数据手册功能说明书,资料中有\" +\n _vm._s(_vm.ypGoodDetail.goods_info.class_id1_name) +\n \"、\" +\n _vm._s(_vm.ypGoodDetail.goods_info.class_id2_name) +\n \"详细使用方法及教程。\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"需邀请好友人数: \")]),\n _vm._v(_vm._s(_vm.ypGoodDetail.quota))\n ])\n ])\n : _vm._e()\n ]\n )\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"form-info\" }, [\n _vm.addressInfo\n ? _c(\n \"div\",\n {\n staticClass: \"form-group adderss-sample\",\n on: {\n click: function($event) {\n return _vm.addressSample(_vm.addressInfo.address_id)\n }\n }\n },\n [\n _c(\"h3\", [\n _c(\"p\", [\n _vm._v(\n _vm._s(_vm.addressInfo.consignee) +\n \" \" +\n _vm._s(_vm.addressInfo.mobile)\n )\n ]),\n _c(\"p\", [\n _vm._v(\n _vm._s(\n _vm.addressInfo.province_val +\n \" \" +\n _vm.addressInfo.district_val +\n \" \" +\n _vm.addressInfo.city_val +\n \" \" +\n _vm.addressInfo.detail_address\n )\n )\n ]),\n _c(\"span\", {\n staticClass: \"fr icon iconfont icon-xiangyoujiankuohao\"\n })\n ])\n ]\n )\n : _c(\n \"div\",\n { staticClass: \"form-group by\", on: { click: _vm.adderssAdd } },\n [_vm._m(0)]\n ),\n _c(\"div\", { staticClass: \"form-group\" }, [\n _vm._m(1),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.com_name,\n expression: \"com_name\"\n }\n ],\n attrs: { type: \"text\", placeholder: \"
请输入单位名称
\" },\n domProps: { value: _vm.com_name },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.com_name = $event.target.value\n }\n }\n })\n ]),\n _c(\"div\", { staticClass: \"form-group\" }, [\n _c(\"h3\", [_vm._v(\" 项目需求描述\")]),\n _c(\"textarea\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.sample_demand_desc,\n expression: \"sample_demand_desc\"\n }\n ],\n staticClass: \"placeh\",\n attrs: {\n name: \"\",\n placeholder:\n \"“参考描述:例1、无人机项目研发需要 例2、运动相机新方案验证需要 例3、毕业设计激光测距项目需要”\"\n },\n domProps: { value: _vm.sample_demand_desc },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.sample_demand_desc = $event.target.value\n }\n }\n })\n ]),\n _vm._m(2),\n _c(\"div\", { staticClass: \"line\" })\n ]),\n _c(\"div\", { staticClass: \"fix-btns\", on: { click: _vm.submitS } }, [\n _vm._v(\"确认提交\")\n ]),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.successPop,\n expression: \"successPop\"\n }\n ],\n staticClass: \"submit-success-pop\"\n },\n [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\"样片领取成功\"),\n _c(\"i\", {\n staticClass: \"icon iconfont icon-guanbi\",\n on: { click: _vm.getuserf }\n })\n ]),\n _c(\"h2\", [_vm._v(_vm._s(_vm.ypGoodDetail.goods_info.sku_name))]),\n _c(\"div\", { staticClass: \"txt\" }, [\n _c(\"span\", [\n _vm._v(\n \"类别:\" + _vm._s(_vm.ypGoodDetail.goods_info.class_id1_name)\n )\n ]),\n _c(\"span\", [\n _vm._v(\n \"品牌:\" + _vm._s(_vm.ypGoodDetail.goods_info.brand_name)\n )\n ])\n ]),\n _c(\"div\", { staticClass: \"share-btn-wrap\" }, [\n _c(\"span\", { staticClass: \"l\", on: { click: _vm.toUrl } }, [\n _vm._v(\"继续领取\")\n ]),\n _c(\n \"span\",\n {\n directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }],\n staticClass: \"r\"\n },\n [_vm._v(\"给好友送免费样片\")]\n )\n ]),\n _vm._m(3)\n ])\n ]\n ),\n _vm.loading\n ? _c(\"van-loading\", {\n staticClass: \"loading-background\",\n attrs: { type: \"spinner\", color: \"#000\" }\n })\n : _vm._e()\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"h3\", [\n _vm._v(\"新增收货地址 \"),\n _c(\"span\", { staticClass: \"fr icon iconfont icon-xiangyoujiankuohao\" })\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"h3\", [\n _c(\"span\", { staticClass: \"f-red\" }, [_vm._v(\"*\")]),\n _vm._v(\"公司/机构/学校名称\")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"form-group by\" }, [\n _c(\"h3\", [\n _vm._v(\"运费信息 \"),\n _c(\"span\", { staticClass: \"fr\" }, [_vm._v(\"包邮\")])\n ])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"tips\" }, [\n _c(\"em\", [_vm._v(\"*\")]),\n _vm._v(\"快递预计1-个工作日内送达,请耐心等待\")\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/sample/sampleapply.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22e2764c3a-vue-loader-template%22%7D!./node_modules/_vue-loader@15.8.3@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.8.3@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-apply\" },\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(\n \"van-collapse\",\n {\n attrs: { accordion: \"\", border: _vm.noborder },\n model: {\n value: _vm.activeName,\n callback: function($$v) {\n _vm.activeName = $$v\n },\n expression: \"activeName\"\n }\n },\n [\n _c(\n \"van-collapse-item\",\n { attrs: { title: \"商品信息\", name: \"1\", border: _vm.noborder } },\n [\n _c(\"div\", { staticClass: \"info-con clr\" }, [\n _c(\"div\", { staticClass: \"fl img-box\" }, [\n _c(\"img\", {\n attrs: {\n src:\n _vm.ypGoodDetail.goods_images ||\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\",\n alt: \"\"\n }\n })\n ]),\n _vm.ypGoodDetail.goods_info\n ? _c(\"div\", { staticClass: \"fr cb-box\" }, [\n _c(\"div\", { staticClass: \"title\" }, [\n _vm._v(_vm._s(_vm.ypGoodDetail.goods_info.goods_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"类别:\")]),\n _vm._v(\n \" \" +\n _vm._s(_vm.ypGoodDetail.goods_info.class_id1_name)\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"品牌:\")]),\n _vm._v(_vm._s(_vm.ypGoodDetail.goods_info.brand_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"最大可申请数量:\")]),\n _vm._v(_vm._s(_vm.ypGoodDetail.max_number || 1))\n ])\n ])\n : _vm._e()\n ]),\n _vm.ypGoodDetail.goods_info\n ? _c(\"div\", { staticClass: \"info-detail\" }, [\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"型号: \")]),\n _vm._v(_vm._s(_vm.ypGoodDetail.goods_info.sku_name))\n ]),\n _c(\"p\", { staticClass: \"canshudetail\" }, [\n _c(\"span\", [_vm._v(\"参数描述: \")]),\n _vm._v(\n \"\\n \" +\n _vm._s(_vm.ypGoodDetail.goods_info.sku_name) +\n \"由\" +\n _vm._s(_vm.ypGoodDetail.goods_info.brand_name) +\n \"设计生产制造,在猎芯网自营现货销售。\" +\n _vm._s(_vm.ypGoodDetail.goods_info.goods_name) +\n \"的封装/规格参数为:\" +\n _vm._s(_vm.ypGoodDetail.goods_info.encap) +\n \";您可以选择下载\" +\n _vm._s(_vm.ypGoodDetail.goods_info.sku_name) +\n \"中文资料等数据手册功能说明书,资料中有\" +\n _vm._s(_vm.ypGoodDetail.goods_info.class_id1_name) +\n \"、\" +\n _vm._s(_vm.ypGoodDetail.goods_info.class_id2_name) +\n \"详细使用方法及教程。\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"需邀请好友人数: \")]),\n _vm._v(_vm._s(_vm.ypGoodDetail.quota))\n ])\n ])\n : _vm._e()\n ]\n )\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"form-info\" }, [\n _vm.addressInfo\n ? _c(\n \"div\",\n {\n staticClass: \"form-group adderss-sample\",\n on: {\n click: function($event) {\n return _vm.addressSample(_vm.addressInfo.address_id)\n }\n }\n },\n [\n _c(\"h3\", [\n _c(\"p\", [\n _vm._v(\n _vm._s(_vm.addressInfo.consignee) +\n \" \" +\n _vm._s(_vm.addressInfo.mobile)\n )\n ]),\n _c(\"p\", [\n _vm._v(\n _vm._s(\n _vm.addressInfo.province_val +\n \" \" +\n _vm.addressInfo.district_val +\n \" \" +\n _vm.addressInfo.city_val +\n \" \" +\n _vm.addressInfo.detail_address\n )\n )\n ]),\n _c(\"span\", {\n staticClass: \"fr icon iconfont icon-xiangyoujiankuohao\"\n })\n ])\n ]\n )\n : _c(\n \"div\",\n { staticClass: \"form-group by\", on: { click: _vm.adderssAdd } },\n [_vm._m(0)]\n ),\n _c(\"div\", { staticClass: \"form-group\" }, [\n _vm._m(1),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.com_name,\n expression: \"com_name\"\n }\n ],\n attrs: { type: \"text\", placeholder: \"
深圳市猎芯科技有限公司
\" },\n domProps: { value: _vm.com_name },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.com_name = $event.target.value\n }\n }\n })\n ]),\n _c(\"div\", { staticClass: \"form-group\" }, [\n _c(\"h3\", [_vm._v(\" 项目需求描述\")]),\n _c(\"textarea\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.sample_demand_desc,\n expression: \"sample_demand_desc\"\n }\n ],\n staticClass: \"placeh\",\n attrs: {\n name: \"\",\n placeholder:\n \"“参考描述:例1、无人机项目研发需要 例2、运动相机新方案验证需要 例3、毕业设计激光测距项目需要”\"\n },\n domProps: { value: _vm.sample_demand_desc },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.sample_demand_desc = $event.target.value\n }\n }\n })\n ]),\n _vm._m(2),\n _c(\"div\", { staticClass: \"line\" })\n ]),\n _c(\"div\", { staticClass: \"fix-btns\", on: { click: _vm.submitS } }, [\n _vm._v(\"确认提交\")\n ]),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.successPop,\n expression: \"successPop\"\n }\n ],\n staticClass: \"submit-success-pop\"\n },\n [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\"样片领取成功\"),\n _c(\"i\", {\n staticClass: \"icon iconfont icon-guanbi\",\n on: { click: _vm.getuserf }\n })\n ]),\n _c(\"h2\", [_vm._v(_vm._s(_vm.ypGoodDetail.goods_info.sku_name))]),\n _c(\"div\", { staticClass: \"txt\" }, [\n _c(\"span\", [\n _vm._v(\n \"类别:\" + _vm._s(_vm.ypGoodDetail.goods_info.class_id1_name)\n )\n ]),\n _c(\"span\", [\n _vm._v(\n \"品牌:\" + _vm._s(_vm.ypGoodDetail.goods_info.brand_name)\n )\n ])\n ]),\n _c(\"div\", { staticClass: \"share-btn-wrap\" }, [\n _c(\"span\", { staticClass: \"l\", on: { click: _vm.toUrl } }, [\n _vm._v(\"继续领取\")\n ]),\n _c(\n \"span\",\n {\n directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }],\n staticClass: \"r\"\n },\n [_vm._v(\"给好友送免费样片\")]\n )\n ]),\n _vm._m(3)\n ])\n ]\n ),\n _vm.loading\n ? _c(\"van-loading\", {\n staticClass: \"loading-background\",\n attrs: { type: \"spinner\", color: \"#000\" }\n })\n : _vm._e()\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"h3\", [\n _vm._v(\"新增收货地址 \"),\n _c(\"span\", { staticClass: \"fr icon iconfont icon-xiangyoujiankuohao\" })\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"h3\", [\n _c(\"span\", { staticClass: \"f-red\" }, [_vm._v(\"*\")]),\n _vm._v(\"公司/机构/学校名称\")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"form-group by\" }, [\n _c(\"h3\", [\n _vm._v(\"运费信息 \"),\n _c(\"span\", { staticClass: \"fr\" }, [_vm._v(\"包邮\")])\n ])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"tips\" }, [\n _c(\"em\", [_vm._v(\"*\")]),\n _vm._v(\"快递预计1-个工作日内送达,请耐心等待\")\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/sample/sampleapply.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22e2764c3a-vue-loader-template%22%7D!./node_modules/_vue-loader@15.8.3@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.8.3@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment