Commit a0710b64 by 梁建民

js

parent 0b5ffaae
......@@ -17,7 +17,7 @@ Vue.prototype.$http = axios;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.withCredentials = true;
Vue.config.productionTip = true;
Vue.config.productionTip = false;
new Vue({
router,
......
......@@ -51,7 +51,7 @@
<div class="content boxsiz">
<template v-for="(item,count) in index.template">
<!--自营现货-->
<template v-if="item.class == 'temp2'">
<template v-if="item.class == 'temp5'">
<div class="selfshop boxsiz">
<div class="tit boxsiz">
<div class="l">
......@@ -121,7 +121,7 @@
</div>
</template>
<!--联营-->
<template v-else-if="item.class == 'temp1'">
<template v-else-if="item.class == 'temp4'">
<div class="lxshop boxsiz">
<div class="tit boxsiz">
<div class="l">
......@@ -148,7 +148,7 @@
</div>
</template>
<!--积分商城-->
<template v-else-if="item.class == 'temp3'">
<template v-else-if="item.class == 'temp6'">
<div class="jfshop boxsiz">
<div class="tit boxsiz">
<div class="l">
......@@ -180,7 +180,7 @@
</div>
</template>
<!--PCB打板 SMT云工厂 进口报关 平台入驻-->
<template v-else-if="item.class == 'temp4'">
<template v-else-if="item.class == 'temp7'">
<div class="pcb boxsiz">
<div class="tit boxsiz">
<div class="l">
......@@ -255,7 +255,7 @@
import Slide from '@/views/common/Slide.vue';
Vue.use(PullRefresh);
export default {
name: 'index',
computed: mapState({
......@@ -270,14 +270,19 @@
}
},
created() {
this.$store.dispatch({
type: 'index'
})
this.getData();
},
methods: {
getData() {
this.$store.dispatch({
type: 'index'
})
},
onRefresh() {
setTimeout(() => {
this.isLoading = false;
this.$store.dispatch({
type: 'index'
})
}, 500);
},
jump() {
......
<!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=//szh5static.ichunt.com/favicon.ico><link rel=stylesheet href=//szh5static.ichunt.com/static/iconfont.css><script src=get_time.php></script><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js charset=utf-8></script><script src=//szh5static.ichunt.com/static/flexible.min.js charset=utf-8></script><script src=//szh5static.ichunt.com/static/shence.min.js charset=utf-8></script><link href=//szh5static.ichunt.com/css/chunk-4d270c35.32df4f1b.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-4d270c35.fd6c1902.js rel=prefetch><link href=//szh5static.ichunt.com/css/app.49eecd25.css rel=preload as=style><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=preload as=style><link href=//szh5static.ichunt.com/js/app.642b286d.js rel=preload as=script><link href=//szh5static.ichunt.com/js/chunk-vendors.a6cc3c8c.js rel=preload as=script><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//szh5static.ichunt.com/css/app.49eecd25.css rel=stylesheet></head><body><noscript><strong>网站出现了一点小问题,正在修复中.......</strong></noscript><div id=app></div><script>//设置cookie
<!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=//szh5static.ichunt.com/favicon.ico><link rel=stylesheet href=//szh5static.ichunt.com/static/iconfont.css><script src=get_time.php></script><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js charset=utf-8></script><script src=//szh5static.ichunt.com/static/flexible.min.js charset=utf-8></script><script src=//szh5static.ichunt.com/static/shence.min.js charset=utf-8></script><link href=//szh5static.ichunt.com/css/chunk-a08d0444.5baf2370.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-a08d0444.9b52c68f.js rel=prefetch><link href=//szh5static.ichunt.com/css/app.49eecd25.css rel=preload as=style><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=preload as=style><link href=//szh5static.ichunt.com/js/app.4ea9c956.js rel=preload as=script><link href=//szh5static.ichunt.com/js/chunk-vendors.a6cc3c8c.js rel=preload as=script><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//szh5static.ichunt.com/css/app.49eecd25.css rel=stylesheet></head><body><noscript><strong>网站出现了一点小问题,正在修复中.......</strong></noscript><div id=app></div><script>//设置cookie
function SetCookie(name, value, time, domain)//两个参数,一个是cookie的名子,一个是值,一个是天数
{
domain = domain ? ";domain=" + domain : "";
......@@ -219,4 +219,4 @@
user_rank: '0'
});
sensors.quick('autoTrack');
}</script><script src=//szh5static.ichunt.com/js/chunk-vendors.a6cc3c8c.js></script><script src=//szh5static.ichunt.com/js/app.642b286d.js></script></body></html>
\ No newline at end of file
}</script><script src=//szh5static.ichunt.com/js/chunk-vendors.a6cc3c8c.js></script><script src=//szh5static.ichunt.com/js/app.4ea9c956.js></script></body></html>
\ 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