Commit aca9130d by 梁建民

js

parent ca1566cc
Showing with 2 additions and 2 deletions
......@@ -32,7 +32,7 @@
<div class="fx_text_three" v-else>分享可额外获得领取机会</div>
</div>
<div class="nav" v-if="aggSample.length">
<van-tabs v-model="active" @click="onClick" :color="color" :swipe-threshold="swipeThreshold" :title-active-color="color" :title-inactive-color="defaultcolor" @change="changeTab">
<van-tabs :ellipsis="false" v-model="active" @click="onClick" :color="color" :swipe-threshold="swipeThreshold" :title-active-color="color" :title-inactive-color="defaultcolor" @change="changeTab">
<van-tab v-for="(v,k) in aggSample" :key="k" :title="v.smaple_class_name" :name="v.smaple_class_id"></van-tab>
</van-tabs>
<div class="sample-search" v-if="layer">
......
......@@ -44,7 +44,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
/***/ (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() {\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(\n \"div\",\n { staticClass: \"banner\" },\n [\n _c(\n \"van-swipe\",\n {\n attrs: {\n autoplay: 3000,\n \"indicator-color\": \"white\",\n height: _vm.bannerHeight\n }\n },\n _vm._l(_vm.getsamplebanner, function(v, index) {\n return _c(\"van-swipe-item\", { key: index }, [\n _c(\n \"a\",\n {\n attrs: {\n href: v.url,\n target: v.window_open > 0 ? \"_blank\" : \"_self\"\n }\n },\n [_c(\"img\", { attrs: { src: v.images, alt: \"\" } })]\n )\n ])\n }),\n 1\n )\n ],\n 1\n ),\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.fxType\n ? _c(\"div\", { staticClass: \"fx_text\" }, [\n _vm.fxType == 1\n ? _c(\"div\", { staticClass: \"fx_text_one\" }, [\n _vm._v(\"\\n 我已邀请好友\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.inviteCount))]),\n _vm._v(\" 人,剩余领取次数\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.applyCount))]),\n _vm._v(\" 次\\n \")\n ])\n : _vm.fxType == 2\n ? _c(\"div\", { staticClass: \"fx_text_two\" }, [\n _vm._v(\"\\n 当前可领取次数为:\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.applyCount))]),\n _vm._v(\" 次,分享可额外获得领取机会\\n \")\n ])\n : _c(\"div\", { staticClass: \"fx_text_three\" }, [\n _vm._v(\"分享可额外获得领取机会\")\n ])\n ])\n : _vm._e(),\n _vm.aggSample.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: { click: _vm.onClick, 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.aggSample, function(v, k) {\n return _c(\"van-tab\", {\n key: k,\n attrs: {\n title: v.smaple_class_name,\n name: v.smaple_class_id\n }\n })\n }),\n 1\n ),\n _vm.layer\n ? _c(\"div\", { staticClass: \"sample-search\" }, [\n _c(\n \"ul\",\n [\n _vm._l(_vm.aggs.aggs, function(item, key, index) {\n return [\n _c(\n \"li\",\n [\n key == \"brand_id\"\n ? [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(\"制造商\")\n ])\n ]\n : key == \"class_id2\"\n ? [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(\"分类筛选\")\n ])\n ]\n : key == \"encap\"\n ? [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(\"封装规格\")\n ])\n ]\n : key == \"packing\"\n ? [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(\"包装筛选\")\n ])\n ]\n : [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(_vm._s(key))\n ])\n ],\n _c(\n \"dl\",\n { staticClass: \"boxsiz\" },\n [\n _vm._l(item.list, function(\n v,\n keys,\n indexs\n ) {\n return [\n _c(\n \"dd\",\n {\n staticClass: \"boxsiz\",\n class: { curr: v.check },\n on: {\n click: function($event) {\n return _vm.screenFn(\n v.id,\n key,\n v.flag\n )\n }\n }\n },\n [\n _vm._v(\n _vm._s(v.name) +\n \"(\" +\n _vm._s(v.num) +\n \")\"\n )\n ]\n )\n ]\n })\n ],\n 2\n )\n ],\n 2\n )\n ]\n })\n ],\n 2\n ),\n _c(\"div\", { staticClass: \"button\" }, [\n _c(\"a\", { staticClass: \"cancel\" }, [_vm._v(\"重置\")]),\n _c(\n \"a\",\n {\n staticClass: \"confirm\",\n on: {\n click: function($event) {\n return _vm.submit()\n }\n }\n },\n [_vm._v(\"确定\")]\n )\n ])\n ])\n : _vm._e()\n ],\n 1\n )\n : _vm._e(),\n _vm.ziYingIndex.data\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.ziYingIndex.data[\"data_list\"], 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_name,\n \"data-src\": v.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(\n \"div\",\n { staticClass: \"fr cb-box van-hairline--bottom\" },\n [\n _c(\"div\", { staticClass: \"title\" }, [\n _vm._v(_vm._s(v.goods_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"类别:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.class_id1_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"品牌:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.brand_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"最大可申请数量:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.sample_max_number) +\n \"\\n \"\n )\n ]),\n _c(\"div\", { staticClass: \"btn-wrap clr\" }, [\n _c(\n \"div\",\n {\n directives: [\n { name: \"shareMask\", rawName: \"v-shareMask\" }\n ],\n staticClass: \"btnw fl\"\n },\n [_vm._v(\"送朋友 \")]\n ),\n _c(\n \"div\",\n {\n staticClass: \"btnx fr\",\n on: {\n click: function($event) {\n return _vm.yaoqing(v)\n }\n }\n },\n [_vm._v(\"领取样品 \")]\n )\n ])\n ]\n )\n ])\n }),\n 0\n )\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }],\n staticClass: \"fix-btns\"\n },\n [_vm._v(\"立即分享\")]\n ),\n _vm.getPop\n ? _c(\"div\", { staticClass: \"get-user-pop\" }, [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\n \"\\n 您已将所有样片机会用完\\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 : _vm._e(),\n _vm.getPops\n ? _c(\"div\", { staticClass: \"get-user-pop\" }, [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\n \"\\n 该样品需要邀请\" +\n _vm._s(_vm.quota) +\n \"个好友才能申请哦\\n \"\n ),\n _c(\"i\", {\n staticClass: \"icon iconfont icon-guanbi\",\n on: {\n click: function($event) {\n _vm.getPops = false\n }\n }\n })\n ]),\n _c(\"h2\", [\n _vm._v(\n \"再邀请\" +\n _vm._s(_vm.quotaNum) +\n \"个好友即可申请该样片,多邀多得\"\n )\n ]),\n _c(\n \"span\",\n { directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }] },\n [_vm._v(\"点击邀请\")]\n )\n ])\n ])\n : _vm._e()\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:%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\" },\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 \"div\",\n { staticClass: \"banner\" },\n [\n _c(\n \"van-swipe\",\n {\n attrs: {\n autoplay: 3000,\n \"indicator-color\": \"white\",\n height: _vm.bannerHeight\n }\n },\n _vm._l(_vm.getsamplebanner, function(v, index) {\n return _c(\"van-swipe-item\", { key: index }, [\n _c(\n \"a\",\n {\n attrs: {\n href: v.url,\n target: v.window_open > 0 ? \"_blank\" : \"_self\"\n }\n },\n [_c(\"img\", { attrs: { src: v.images, alt: \"\" } })]\n )\n ])\n }),\n 1\n )\n ],\n 1\n ),\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.fxType\n ? _c(\"div\", { staticClass: \"fx_text\" }, [\n _vm.fxType == 1\n ? _c(\"div\", { staticClass: \"fx_text_one\" }, [\n _vm._v(\"\\n 我已邀请好友\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.inviteCount))]),\n _vm._v(\" 人,剩余领取次数\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.applyCount))]),\n _vm._v(\" 次\\n \")\n ])\n : _vm.fxType == 2\n ? _c(\"div\", { staticClass: \"fx_text_two\" }, [\n _vm._v(\"\\n 当前可领取次数为:\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.applyCount))]),\n _vm._v(\" 次,分享可额外获得领取机会\\n \")\n ])\n : _c(\"div\", { staticClass: \"fx_text_three\" }, [\n _vm._v(\"分享可额外获得领取机会\")\n ])\n ])\n : _vm._e(),\n _vm.aggSample.length\n ? _c(\n \"div\",\n { staticClass: \"nav\" },\n [\n _c(\n \"van-tabs\",\n {\n attrs: {\n ellipsis: false,\n color: _vm.color,\n \"swipe-threshold\": _vm.swipeThreshold,\n \"title-active-color\": _vm.color,\n \"title-inactive-color\": _vm.defaultcolor\n },\n on: { click: _vm.onClick, 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.aggSample, function(v, k) {\n return _c(\"van-tab\", {\n key: k,\n attrs: {\n title: v.smaple_class_name,\n name: v.smaple_class_id\n }\n })\n }),\n 1\n ),\n _vm.layer\n ? _c(\"div\", { staticClass: \"sample-search\" }, [\n _c(\n \"ul\",\n [\n _vm._l(_vm.aggs.aggs, function(item, key, index) {\n return [\n _c(\n \"li\",\n [\n key == \"brand_id\"\n ? [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(\"制造商\")\n ])\n ]\n : key == \"class_id2\"\n ? [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(\"分类筛选\")\n ])\n ]\n : key == \"encap\"\n ? [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(\"封装规格\")\n ])\n ]\n : key == \"packing\"\n ? [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(\"包装筛选\")\n ])\n ]\n : [\n _c(\"p\", { staticClass: \"tit\" }, [\n _vm._v(_vm._s(key))\n ])\n ],\n _c(\n \"dl\",\n { staticClass: \"boxsiz\" },\n [\n _vm._l(item.list, function(\n v,\n keys,\n indexs\n ) {\n return [\n _c(\n \"dd\",\n {\n staticClass: \"boxsiz\",\n class: { curr: v.check },\n on: {\n click: function($event) {\n return _vm.screenFn(\n v.id,\n key,\n v.flag\n )\n }\n }\n },\n [\n _vm._v(\n _vm._s(v.name) +\n \"(\" +\n _vm._s(v.num) +\n \")\"\n )\n ]\n )\n ]\n })\n ],\n 2\n )\n ],\n 2\n )\n ]\n })\n ],\n 2\n ),\n _c(\"div\", { staticClass: \"button\" }, [\n _c(\"a\", { staticClass: \"cancel\" }, [_vm._v(\"重置\")]),\n _c(\n \"a\",\n {\n staticClass: \"confirm\",\n on: {\n click: function($event) {\n return _vm.submit()\n }\n }\n },\n [_vm._v(\"确定\")]\n )\n ])\n ])\n : _vm._e()\n ],\n 1\n )\n : _vm._e(),\n _vm.ziYingIndex.data\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.ziYingIndex.data[\"data_list\"], 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_name,\n \"data-src\": v.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(\n \"div\",\n { staticClass: \"fr cb-box van-hairline--bottom\" },\n [\n _c(\"div\", { staticClass: \"title\" }, [\n _vm._v(_vm._s(v.goods_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"类别:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.class_id1_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"品牌:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.brand_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"最大可申请数量:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.sample_max_number) +\n \"\\n \"\n )\n ]),\n _c(\"div\", { staticClass: \"btn-wrap clr\" }, [\n _c(\n \"div\",\n {\n directives: [\n { name: \"shareMask\", rawName: \"v-shareMask\" }\n ],\n staticClass: \"btnw fl\"\n },\n [_vm._v(\"送朋友 \")]\n ),\n _c(\n \"div\",\n {\n staticClass: \"btnx fr\",\n on: {\n click: function($event) {\n return _vm.yaoqing(v)\n }\n }\n },\n [_vm._v(\"领取样品 \")]\n )\n ])\n ]\n )\n ])\n }),\n 0\n )\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }],\n staticClass: \"fix-btns\"\n },\n [_vm._v(\"立即分享\")]\n ),\n _vm.getPop\n ? _c(\"div\", { staticClass: \"get-user-pop\" }, [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\n \"\\n 您已将所有样片机会用完\\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 : _vm._e(),\n _vm.getPops\n ? _c(\"div\", { staticClass: \"get-user-pop\" }, [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\n \"\\n 该样品需要邀请\" +\n _vm._s(_vm.quota) +\n \"个好友才能申请哦\\n \"\n ),\n _c(\"i\", {\n staticClass: \"icon iconfont icon-guanbi\",\n on: {\n click: function($event) {\n _vm.getPops = false\n }\n }\n })\n ]),\n _c(\"h2\", [\n _vm._v(\n \"再邀请\" +\n _vm._s(_vm.quotaNum) +\n \"个好友即可申请该样片,多邀多得\"\n )\n ]),\n _c(\n \"span\",\n { directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }] },\n [_vm._v(\"点击邀请\")]\n )\n ])\n ])\n : _vm._e()\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:%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");
/***/ }),
......
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