Skip to content

Commit

Permalink
修改完美构建及代码
Browse files Browse the repository at this point in the history
  • Loading branch information
vvchen committed May 23, 2017
1 parent 8aa0ff3 commit fc90dd7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ router.beforeEach((to, from, next) => {

router.afterEach((to, form) => {
// 百度统计单页面pv量
_hmt.push(['_trackPageview', location.href]);
_hmt.push(['_trackPageview', to.path]);

// 公共底部延迟显示
setTimeout(() => { _app.showFooter = true }, 300)
Expand Down
12 changes: 6 additions & 6 deletions src/service/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Message } from 'element-ui'
!(function () {
// 引入api地址配置
var API_ADDRESS = '/webapi/v2'
// var API_ADDRESS = '/mock'
var API_ADDRESS2 = '/mock'

var Api = {}
Api.install = function (Vue, options) {
Expand Down Expand Up @@ -59,28 +59,28 @@ import { Message } from 'element-ui'
},

topCarousel: function () {
return Vue.axios.get(`${API_ADDRESS}/indexBanner.json`, {
return Vue.axios.get(`${API_ADDRESS2}/indexBanner.json`, {
apiName: '获取首页顶部banner'
})
},

expertStyle: function () {
return Vue.axios.get(`${API_ADDRESS}/advantageExpertInfo.json`, {
return Vue.axios.get(`${API_ADDRESS2}/advantageExpertInfo.json`, {
apiName: '获取专家风采数据'
})
},

expertStyleBanner: function () {
return Vue.axios.get(`${API_ADDRESS}/betweenExpertBanner.json`)
return Vue.axios.get(`${API_ADDRESS2}/betweenExpertBanner.json`)
},

expertList: function () {
return Vue.axios.get(`${API_ADDRESS}/indexIndustryExp.json`)
return Vue.axios.get(`${API_ADDRESS2}/indexIndustryExp.json`)
},

// 底部轮播
bottomCarousel: function () {
return Vue.axios.get(`${API_ADDRESS}/indexBannerBottom.json`)
return Vue.axios.get(`${API_ADDRESS2}/indexBannerBottom.json`)
},

technicianList: function (offset = 0, limit = 8) {
Expand Down
27 changes: 27 additions & 0 deletions src/vendor_52d3196af34d31c412d3.dll.js

Large diffs are not rendered by default.

0 comments on commit fc90dd7

Please sign in to comment.