Commit 609d924b by 梁建民

js

parent 685b335d
...@@ -89,14 +89,14 @@ body { overflow-x: hidden; } ...@@ -89,14 +89,14 @@ body { overflow-x: hidden; }
.slide-bar .kefu { width: 1.053rem; height: 1.053rem; border-radius: 4px; background: rgba(78, 142, 238, 0.8); display: flex; align-items: center; justify-content: center; } .slide-bar .kefu { width: 1.053rem; height: 1.053rem; border-radius: 4px; background: rgba(78, 142, 238, 0.8); display: flex; align-items: center; justify-content: center; }
.slide-bar .kefu .icon-kefu { color: #fff; font-size: 20px; } .slide-bar .kefu .icon-kefu { color: #fff; font-size: 20px; }
.slide-bar .backtop { margin-top: 16px; width: 1.053rem; height: 1.053rem; border-radius: 4px; background: rgba(78, 142, 238, 0.8); display: flex; align-items: center; justify-content: center; } .slide-bar .backtop { margin-top: 16px; width: 1.053rem; height: 1.053rem; border-radius: 4px; background: rgba(78, 142, 238, 0.8); display: flex; align-items: center; justify-content: center; }
.slide-bar .backtop .icon-xiangshang { color: #fff; font-size: 20px; } .slide-bar .backtop .icon-xiangshang1 { color: #fff; font-size: 20px; }
.kefu .t0 { text-align: center; height: 100px; line-height: 100px; } .kefu .t0 { text-align: center; height: 100px; line-height: 100px; }
.kefu .t0 .icon-kefu { font-size: 60px; color: #1080d0; } .kefu .t0 .icon-kefu { font-size: 60px; color: #1080d0; }
.kefu .t1 { padding: 0 10%; margin-bottom: 20px; } .kefu .t1 { padding: 0 10%; margin-bottom: 20px; }
.kefu .t1 a { display: block; height: .6rem; line-height: .6rem; font-size: .24rem; background: #1080d0; color: #fff; text-decoration: none; text-align: center; border: none; } .kefu .t1 a { display: block; height: 33px; line-height: 33px; font-size: 14px; background: #1080d0; color: #fff; text-decoration: none; text-align: center; border: none; }
.kefu .t2 { padding: 0 10%; margin-bottom: 20px; } .kefu .t2 { padding: 0 10%; margin-bottom: 20px; }
.kefu .t2 a { border-color: #e5e5e5; color: #1080d0; border: 1px solid #1080d0; text-decoration: none; text-align: center; display: block; height: .6rem; line-height: .6rem; font-size: .24rem; } .kefu .t2 a { border-color: #e5e5e5; color: #1080d0; border: 1px solid #1080d0; text-decoration: none; text-align: center; display: block; height: 33px; line-height: 33px; font-size: 13px; }
.kefu .t2 a .icon-qq { font-size: .24rem; margin-right: 10px; } .kefu .t2 a .icon-qq { font-size: 13px; margin-right: 10px; }
/*# sourceMappingURL=global.min.css.map */ /*# sourceMappingURL=global.min.css.map */
...@@ -153,7 +153,7 @@ $imgUrl: '../images/'; ...@@ -153,7 +153,7 @@ $imgUrl: '../images/';
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.icon-xiangshang { .icon-xiangshang1 {
color: #fff; color: #fff;
font-size: 20px; font-size: 20px;
} }
...@@ -175,9 +175,9 @@ $imgUrl: '../images/'; ...@@ -175,9 +175,9 @@ $imgUrl: '../images/';
margin-bottom: 20px; margin-bottom: 20px;
a { a {
display: block; display: block;
height: .6rem; height: 33px;
line-height: .6rem; line-height: 33px;
font-size: .24rem; font-size: 14px;
background: #1080d0; background: #1080d0;
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
...@@ -195,11 +195,11 @@ $imgUrl: '../images/'; ...@@ -195,11 +195,11 @@ $imgUrl: '../images/';
text-decoration: none; text-decoration: none;
text-align: center; text-align: center;
display: block; display: block;
height: .6rem; height: 33px;
line-height: .6rem; line-height: 33px;
font-size: .24rem; font-size: 13px;
.icon-qq{ .icon-qq{
font-size: .24rem; font-size: 13px;
margin-right: 10px; margin-right: 10px;
} }
} }
......
...@@ -18,8 +18,8 @@ const mutations = { ...@@ -18,8 +18,8 @@ const mutations = {
const actions = { const actions = {
index({commit}, payload) { index({commit}, payload) {
var params=Util.getParams();
state.loading=true; state.loading=true;
var params=Util.getParams();
Services.index(params).then(function (res) { Services.index(params).then(function (res) {
let data = res.data; let data = res.data;
if (data.err_code == 0) { if (data.err_code == 0) {
......
import {hex_sha1} from '../util/des'; import {hex_sha1} from '../util/des';
import filters from "../filters";
var qs = require('qs'); var qs = require('qs');
...@@ -49,8 +48,16 @@ export default { ...@@ -49,8 +48,16 @@ export default {
* 加密token * 加密token
*/ */
getParams(params) { getParams(params) {
var fwtimes = window.fwtime - Math.floor((new Date().getTime()) / 1000); var fwtimes = window.fwtime - Math.floor((new Date().getTime()) / 1000); //获取服务器时间差
var cache_time = sessionStorage.getItem('fwtimes'); //缓存时间差
if (cache_time) {
var qwertyuiop = Math.floor((new Date().getTime()) / 1000) + cache_time;
} else {
var qwertyuiop = Math.floor((new Date().getTime()) / 1000) + fwtimes; var qwertyuiop = Math.floor((new Date().getTime()) / 1000) + fwtimes;
sessionStorage.setItem('fwtimes', fwtimes);
}
var Yo4teW_gid = getCookie('Yo4teW_gid'); var Yo4teW_gid = getCookie('Yo4teW_gid');
var abb = []; var abb = [];
var abbo = {}; var abbo = {};
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<ul class="boxsiz"> <ul class="boxsiz">
<li class="curr"> <li class="curr">
<a href="/v3?ptag=index-bottomnav"> <a href="/v3?ptag=index-bottomnav">
<i class="iconfont icon-shouye"></i> <i class="iconfont icon-shouye-1"></i>
<p>首页</p> <p>首页</p>
</a> </a>
</li> </li>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</li> </li>
<li> <li>
<a href="/v3/joincart?ptag=index-bottomnav"> <a href="/v3/joincart?ptag=index-bottomnav">
<i class="iconfont icon-gouwuche1"></i> <i class="iconfont icon-gouwuche2"></i>
<p>购物车</p> <p>购物车</p>
<span class="cart boxsiz">{{cartCount>99 ?'99+': cartCount}}</span> <span class="cart boxsiz">{{cartCount>99 ?'99+': cartCount}}</span>
</a> </a>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<i class="iconfont icon-kefu"></i> <i class="iconfont icon-kefu"></i>
</div> </div>
<div class="backtop" v-backTop v-if="show"> <div class="backtop" v-backTop v-if="show">
<i class="iconfont icon-xiangshang"></i> <i class="iconfont icon-xiangshang1"></i>
</div> </div>
<div v-show="flag" ref="kefu"> <div v-show="flag" ref="kefu">
<div class="kefu"> <div class="kefu">
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<a href="tel:0755-88914841" class="but-blue">国内服务电话:0755-88914841</a> <a href="tel:0755-88914841" class="but-blue">国内服务电话:0755-88914841</a>
</p> </p>
<p class="t2"> <p class="t2">
<a target="_blank" href="javascript:void(0)" data-href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzgwMDE1ODQzMl80ODY0NDVfODAwMTU4NDMyXzJf" data-ptag="right-layer" class="but-white kefuio kefuioxk"> <a target="_blank" :href="phpParams.kfqq_xk" data-href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzgwMDE1ODQzMl80ODY0NDVfODAwMTU4NDMyXzJf" data-ptag="right-layer" class="but-white kefuio kefuioxk">
<i class="icon iconfont icon-qq"></i>客服QQ <i class="icon iconfont icon-qq"></i>客服QQ
</a> </a>
</p> </p>
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<script> <script>
import {mapState} from 'vuex'
import Vue from 'vue'; import Vue from 'vue';
import {Dialog} from 'vant'; import {Dialog} from 'vant';
...@@ -39,10 +40,21 @@ ...@@ -39,10 +40,21 @@
show: false show: false
} }
}, },
computed: mapState({
phpParams: state => state.common.phpParams,
}),
created() {
this.getData();
},
mounted() { mounted() {
this.scrollFn(); this.scrollFn();
}, },
methods: { methods: {
getData() {
this.$store.dispatch({
type: 'index'
})
},
scrollFn() { scrollFn() {
var obj = document.querySelector('.container-wrap'), self = this; var obj = document.querySelector('.container-wrap'), self = this;
obj.onscroll = function () { obj.onscroll = function () {
......
...@@ -497,7 +497,7 @@ ...@@ -497,7 +497,7 @@
padding: 0.533rem 0.467rem 0.4rem 0.467rem; padding: 0.533rem 0.467rem 0.4rem 0.467rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: baseline;
.l { .l {
i { i {
width: 3px; width: 3px;
......
<!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/css/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/js/flexible.min.js charset=utf-8></script><script src=//szh5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//szh5static.ichunt.com/css/chunk-577a3da6.e1540a59.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-577a3da6.7fff1d07.js rel=prefetch><link href=//szh5static.ichunt.com/css/app.58a95c3e.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.7940aa9c.js rel=preload as=script><link href=//szh5static.ichunt.com/js/chunk-vendors.c9d5e282.js rel=preload as=script><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//szh5static.ichunt.com/css/app.58a95c3e.css rel=stylesheet></head><body><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=//szh5static.ichunt.com/favicon.ico><link rel=stylesheet href=//szh5static.ichunt.com/static/css/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/js/flexible.min.js charset=utf-8></script><script src=//szh5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//szh5static.ichunt.com/css/chunk-3a0b6fc2.9d949474.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-3a0b6fc2.1bd922b2.js rel=prefetch><link href=//szh5static.ichunt.com/css/app.463ccca8.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.e78b50d1.js rel=preload as=script><link href=//szh5static.ichunt.com/js/chunk-vendors.c9d5e282.js rel=preload as=script><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//szh5static.ichunt.com/css/app.463ccca8.css rel=stylesheet></head><body><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=//szh5static.ichunt.com/js/chunk-vendors.c9d5e282.js></script><script src=//szh5static.ichunt.com/js/app.7940aa9c.js></script></body></html> }</script><script src=//szh5static.ichunt.com/js/chunk-vendors.c9d5e282.js></script><script src=//szh5static.ichunt.com/js/app.e78b50d1.js></script></body></html>
\ No newline at end of file \ 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