Commit 58f05d90 by 施宇

h5搜索

parent 577b9d07
...@@ -14,7 +14,7 @@ const state = { ...@@ -14,7 +14,7 @@ const state = {
zyOrly: 0, //0代表自营,1代表联营 zyOrly: 0, //0代表自营,1代表联营
zyFilter: false, zyFilter: false,
zyRank: false, zyRank: false,
zyFilterData: {} zyFilterData: {},//过滤数据
} }
const mutations = { const mutations = {
searchList(state, payload) { searchList(state, payload) {
...@@ -32,6 +32,7 @@ const actions = { ...@@ -32,6 +32,7 @@ const actions = {
getZyData({ getZyData({
commit commit
}, payload) { }, payload) {
console.log(payload)
var params = { var params = {
'goods_name/condition': 'liexin', 'goods_name/condition': 'liexin',
com_rank: 1, com_rank: 1,
......
<!DOCTYPE HTML><html lang=zh-CN><head><title></title><meta name=author content=www.ichunt.com><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,user-scalable=no,minimal-ui"><meta http-equiv=Content-Type content="text/html;charset=utf-8"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><meta name=format-detection content="telephone=no"><meta http-equiv=Expires content=-1><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Pragma content=no-cache><meta name=full-screen content=yes><meta name=browsermode content=application><meta name=x5-fullscreen content=true><meta name=x5-page-mode content=app><meta name=description content=猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。><meta name=keywords content=猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,><link rel=icon href=//h5static.ichunt.com/favicon.ico><link rel=stylesheet href=/v3/dist/res/m/css/font/iconfont.css><script src=/h5/view/get_time.php></script><script>var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差</script><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//h5static.ichunt.com/css/chunk-12fa088d.af566868.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1433552d.d1368d40.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-178fc040.398c037f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1acedf28.16c2a686.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-2270c3f3.6c7ec024.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-33b3c771.33dc63c8.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-33c6c73c.2f69d6fc.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-39df84b0.c0f345b7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-49cd095b.500818db.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-4ae3e765.bcecf0d4.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-5a11c6eb.045485d7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-720da9ec.5ae39b63.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-73b3e1a8.d7e46390.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-9f633194.42743190.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-ac3e3c56.b3348642.css rel=prefetch><link href=//h5static.ichunt.com/js/chunk-12fa088d.6d86713a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1433552d.0a222ef5.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-178fc040.e571dbf6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1acedf28.b5b2248f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-2270c3f3.359bd554.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-33b3c771.c4694d3b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-33c6c73c.bcf0954a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-39df84b0.5774d5ad.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-49cd095b.03363915.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-4ae3e765.2a9a5999.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-5a11c6eb.b643cbb0.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-720da9ec.43a7ce12.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-73b3e1a8.85ce7648.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-9f633194.a342f0aa.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-ac3e3c56.ec03c4b0.js rel=prefetch><link href=//h5static.ichunt.com/css/app.b0927897.css rel=preload as=style><link href=//h5static.ichunt.com/css/chunk-vendors.4a9b0375.css rel=preload as=style><link href=//h5static.ichunt.com/js/app.98ff748b.js rel=preload as=script><link href=//h5static.ichunt.com/js/chunk-vendors.0f3ebbbe.js rel=preload as=script><link href=//h5static.ichunt.com/css/chunk-vendors.4a9b0375.css rel=stylesheet><link href=//h5static.ichunt.com/css/app.b0927897.css rel=stylesheet></head><body class=boxsiz><noscript><strong>网站出现了一点小问题,正在紧急修复中.......</strong></noscript><div id=app></div><script>function SetCookie(name, value, time, domain) { <!DOCTYPE HTML><html lang=zh-CN><head><title></title><meta name=author content=www.ichunt.com><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,user-scalable=no,minimal-ui"><meta http-equiv=Content-Type content="text/html;charset=utf-8"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><meta name=format-detection content="telephone=no"><meta http-equiv=Expires content=-1><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Pragma content=no-cache><meta name=full-screen content=yes><meta name=browsermode content=application><meta name=x5-fullscreen content=true><meta name=x5-page-mode content=app><meta name=description content=猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。><meta name=keywords content=猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,><link rel=icon href=//h5static.ichunt.com/favicon.ico><link rel=stylesheet href=/v3/dist/res/m/css/font/iconfont.css><script src=/h5/view/get_time.php></script><script>var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差</script><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//h5static.ichunt.com/css/chunk-12fa088d.af566868.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1433552d.31d0ed91.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-178fc040.398c037f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1acedf28.16c2a686.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-2270c3f3.6c7ec024.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-33b3c771.33dc63c8.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-33c6c73c.2f69d6fc.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-39df84b0.c0f345b7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-49cd095b.500818db.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-4ae3e765.bcecf0d4.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-5a11c6eb.045485d7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-720da9ec.5ae39b63.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-73b3e1a8.d7e46390.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-9f633194.42743190.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-ac3e3c56.b3348642.css rel=prefetch><link href=//h5static.ichunt.com/js/chunk-12fa088d.6d86713a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1433552d.4ce0a292.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-178fc040.e571dbf6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1acedf28.b5b2248f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-2270c3f3.359bd554.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-33b3c771.c4694d3b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-33c6c73c.bcf0954a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-39df84b0.5774d5ad.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-49cd095b.03363915.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-4ae3e765.2a9a5999.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-5a11c6eb.b643cbb0.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-720da9ec.43a7ce12.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-73b3e1a8.85ce7648.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-9f633194.a342f0aa.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-ac3e3c56.ec03c4b0.js rel=prefetch><link href=//h5static.ichunt.com/css/app.b0927897.css rel=preload as=style><link href=//h5static.ichunt.com/css/chunk-vendors.4a9b0375.css rel=preload as=style><link href=//h5static.ichunt.com/js/app.438c1d90.js rel=preload as=script><link href=//h5static.ichunt.com/js/chunk-vendors.0f3ebbbe.js rel=preload as=script><link href=//h5static.ichunt.com/css/chunk-vendors.4a9b0375.css rel=stylesheet><link href=//h5static.ichunt.com/css/app.b0927897.css rel=stylesheet></head><body class=boxsiz><noscript><strong>网站出现了一点小问题,正在紧急修复中.......</strong></noscript><div id=app></div><script>function SetCookie(name, value, time, domain) {
domain = domain ? ";domain=" + domain : ""; domain = domain ? ";domain=" + domain : "";
var Days = time; var Days = time;
var exp = new Date(); var exp = new Date();
...@@ -224,4 +224,4 @@ ...@@ -224,4 +224,4 @@
user_rank: '0' user_rank: '0'
}); });
sensors.quick('autoTrack'); sensors.quick('autoTrack');
}</script><script src=//h5static.ichunt.com/js/chunk-vendors.0f3ebbbe.js></script><script src=//h5static.ichunt.com/js/app.98ff748b.js></script></body></html> }</script><script src=//h5static.ichunt.com/js/chunk-vendors.0f3ebbbe.js></script><script src=//h5static.ichunt.com/js/app.438c1d90.js></script></body></html>
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1433552d"],{"3b79":function(t,s,a){"use strict";var i=a("673c"),n=a.n(i);n.a},4545:function(t,s,a){"use strict";a.r(s);var i=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"search-list"},[a("div",{staticClass:"search-list-header clr"},[a("i",{staticClass:"icon iconfont icon-xiangzuo fl",on:{click:function(s){return t.$router.back()}}}),a("div",{staticClass:"search"},[a("van-icon",{attrs:{name:"search",size:"18px",color:"#666"}}),a("van-field",{ref:"searchInput",attrs:{readonly:"",placeholder:"请输入元器件型号、参数,查找全站库存数据"},model:{value:t.goodsName,callback:function(s){t.goodsName="string"===typeof s?s.trim():s},expression:"goodsName"}})],1),a("Menu")],1),a("div",{staticClass:"search-cont"},[a("ul",{staticClass:"search-tab"},[a("li",{class:0==t.initTab?"act":"",on:{click:function(s){return t.changeInitTab(0)}}},[t._v("自营")]),a("li",{class:1==t.initTab?"act":"",on:{click:function(s){return t.changeInitTab(1)}}},[t._v("联营")])]),a("div",{staticClass:"search-list"},[a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.initTab,expression:"initTab == 0"}],staticClass:"self-ichunt"},[a("div",{staticClass:"search-sift"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.zyRank,expression:"zyRank"}],staticClass:"title-cut"},[a("p",{staticClass:"fr self-rank act"},[a("van-icon",{attrs:{name:"checked",color:"#1080d0"}}),a("span",{staticClass:"font"},[t._v("仅显示有货")])],1),a("ul",{staticClass:"total-rank"},[a("li",{class:{act:0==t.zyRankInit}},[t._v("综合")]),a("li",{class:{act:1==t.zyRankInit}},[t._v("\n 库存\n "),t._m(0)]),t._m(1)])]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.zyFilter,expression:"zyFilter"}],staticClass:"sift-box self-sift"},[t._m(2),t._m(3),t._m(4),t._m(5)])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.initTab,expression:"initTab == 1"}],staticClass:"pool-ichunt"},[t._m(6)])])])])},n=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",[a("i",{staticClass:"icon-top"}),a("i",{staticClass:"icon-bot"})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("li",{staticClass:"single rank-2"},[t._v("\n 价格\n "),a("span",[a("i",{staticClass:"icon-top"}),a("i",{staticClass:"icon-bot"})])])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("dl",{staticClass:"sift-class"},[a("dt",[t._v("\n 分类筛选\n "),a("i",{staticClass:"icon iconfont icon-xiangxia"})]),a("dd",{staticClass:"list-single"},[a("span",{staticClass:"shuzu",staticStyle:{display:":none"}}),a("ul",{staticClass:"clr sift-ul"},[a("li",[a("i",{staticClass:"fr iconfont icon-gou1"}),a("span",[t._v("贴片电容")])])]),a("div",{staticClass:"button"},[a("a",{staticClass:"but font cancel",attrs:{href:"#"}},[t._v("重置")]),a("a",{staticClass:"but-blue confirm",attrs:{href:"#"}},[t._v("确定")])])])])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("dl",{staticClass:"sift-brand"},[a("dt",[t._v("\n 制造商\n "),a("i",{staticClass:"icon iconfont icon-xiangxia"})]),a("dd",{staticClass:"list-single"},[a("span",{staticClass:"shuzu",staticStyle:{display:":none"}}),a("ul",{staticClass:"clr sift-ul"},[a("li",[a("i",{staticClass:"fr iconfont icon-gou1"}),a("span",[t._v("YAGEO(国巨)")])])]),a("div",{staticClass:"button"},[a("a",{staticClass:"cancel",attrs:{href:"#"}},[t._v("重置")]),a("a",{staticClass:"confirm",attrs:{href:"#"}},[t._v("确定")])])])])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("dl",{staticClass:"sift-encap"},[a("dt",[t._v("\n 封装规格\n "),a("i",{staticClass:"icon iconfont icon-xiangxia"})]),a("dd",{staticClass:"list-single"},[a("span",{staticClass:"shuzu",staticStyle:{display:":none"}}),a("ul",{staticClass:"clr sift-ul"},[a("li",[a("i",{staticClass:"fr iconfont icon-gou1"}),a("span",[t._v("0805")])])]),a("div",{staticClass:"button"},[a("a",{staticClass:"but font cancel",attrs:{href:"#"}},[t._v("重置")]),a("a",{staticClass:"but-blue confirm",attrs:{href:"#"}},[t._v("确定")])])])])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("dl",{staticClass:"sift-packing"},[a("dt",[t._v("\n 包装筛选\n "),a("i",{staticClass:"icon iconfont icon-xiangxia"})]),a("dd",{staticClass:"list-single"},[a("span",{staticClass:"shuzu",staticStyle:{display:":none"}}),a("ul",{staticClass:"clr sift-ul"},[a("li",[a("i",{staticClass:"fr iconfont icon-gou1"}),a("span",[t._v("圆盘")])])]),a("div",{staticClass:"button"},[a("a",{staticClass:"but font cancel",attrs:{href:"#"}},[t._v("重置")]),a("a",{staticClass:"but-blue confirm",attrs:{href:"#"}},[t._v("确定")])])])])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"search-sift"},[a("div",{staticClass:"title-cut"},[a("p",{staticClass:"fr self-rank act"},[a("i",{staticClass:"icon iconfont icon-xuanzhongqian"}),a("span",{staticClass:"font"},[t._v("仅显示有货")])]),a("ul",{staticClass:"total-rank"},[a("li",{staticClass:"com-rank act"},[t._v("综合")]),a("li",{staticClass:"stock rank-2"},[t._v("\n 库存\n "),a("span",[a("i",{staticClass:"icon-top"}),a("i",{staticClass:"icon-bot"})])]),a("li",{staticClass:"single rank-2"},[t._v("\n 价格\n "),a("span",[a("i",{staticClass:"icon-top"}),a("i",{staticClass:"icon-bot"})])])])]),a("div",{staticClass:"sift-box pool-sift"},[a("dl",{staticClass:"p_act"},[a("dt",[t._v("\n 全部供应商\n "),a("i",{staticClass:"icon iconfont icon-xiangxia"})]),a("dd",{staticStyle:{display:"block"}},[a("span",{staticClass:"shuzu",staticStyle:{display:":none"}}),a("ul",{staticClass:"clear sift-ul"},[a("li",[a("i",{staticClass:"fr iconfont icon-gou1"}),a("span",[t._v("future")])]),a("li",[a("i",{staticClass:"fr iconfont icon-gou1"}),a("span",[t._v("element14")])]),a("li",[a("i",{staticClass:"fr iconfont icon-gou1"}),a("span",[t._v("chip1stop")])]),a("li",[a("i",{staticClass:"fr iconfont icon-gou1"}),a("span",[t._v("verical")])])]),a("div",{staticClass:"button"},[a("a",{staticClass:"but font cancel",attrs:{href:"#"}},[t._v("重置")]),a("a",{staticClass:"but-blue confirm",attrs:{href:"#"}},[t._v("确定")])])])])]),a("div",{staticClass:"pool-search-top"})])}],c=a("3f47"),l=a("a4c0"),o=a("7272"),e=a("52c1"),r={name:"searchList",components:{"van-field":l["b"],"van-icon":l["c"],Menu:o["a"]},data:function(){return{goodsName:"",initTab:0,zyFilterInit:0,zyRankInit:0}},created:function(){var t=decodeURIComponent(this.$route.query.k);document.title=t+"采购_猎芯网最新报价",this.goodsName=t,this.$store.dispatch({type:"getZyData"})},computed:Object(c["a"])({},Object(e["b"])({zyOrly:function(t){return t.searchlist.zyOrly},zyFilter:function(t){return t.searchlist.zyFilter},zyRank:function(t){return t.searchlist.zyRank}})),watch:{zyOrly:function(t){this.initTab=t}},methods:{changeInitTab:function(t){this.initTab=t}}},u=r,f=(a("5325"),a("17cc")),v=Object(f["a"])(u,i,n,!1,null,null,null);s["default"]=v.exports},5325:function(t,s,a){"use strict";var i=a("7a5d"),n=a.n(i);n.a},"673c":function(t,s,a){},7272:function(t,s,a){"use strict";var i=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[t.flag?a("div",{staticClass:"menu-fade",on:{click:function(s){t.flag=!1}}}):t._e(),a("div",{staticClass:"menu clr"},[a("b",{staticClass:"iconfont icon-liedanbiao fr",style:{color:t.color},on:{click:function(s){t.flag=!t.flag}}}),t.flag?a("div",[a("i",{staticClass:"popover-arrow"}),t._m(0)]):t._e()])])},n=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ul",{staticClass:"menu-view"},[a("li",[a("a",{attrs:{href:"/v3?ptag=selfshop-topnav"}},[a("i",{staticClass:"icon iconfont icon-shouye"}),t._v("首页")])]),a("li",[a("a",{attrs:{href:"/v3/lxshop?ptag=selfshop-topnav"}},[a("i",{staticClass:"icon iconfont icon-lianying"}),t._v("联营商城")])]),a("li",[a("a",{attrs:{href:"/v3/xianhuo?ptag=selfshop-topnav"}},[a("i",{staticClass:"icon iconfont icon-liexinziying"}),t._v("自营现货")])]),a("li",[a("a",{attrs:{href:"/v3/brand/map?ptag=selfshop-topnav"}},[a("i",{staticClass:"icon iconfont icon-pinpai"}),t._v("品牌之家")])]),a("li",{staticClass:"mui-table-view-cell "},[a("a",{staticClass:"zytabgo",attrs:{href:"/v3/joincart?ptag=selfshop-topnav"}},[a("i",{staticClass:"icon iconfont icon-gouwuche1"}),t._v("购物车")])]),a("li",[a("a",{attrs:{href:"/v3/user?ptag=selfshop-topnav"}},[a("i",{staticClass:"icon iconfont icon-huiyuanzhongxin"}),t._v("会员中心")])])])}],c={name:"menus",props:{color:{type:String,default:"#666"}},data:function(){return{flag:!1}}},l=c,o=(a("3b79"),a("17cc")),e=Object(o["a"])(l,i,n,!1,null,null,null);s["a"]=e.exports},"7a5d":function(t,s,a){}}]);
\ 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