Browse Source

把静态图改成动态图

master
liaoxinyu 3 years ago
parent
commit
8b65ee43c6
  1. 4
      common/js/api.js
  2. 2
      main.js
  3. BIN
      static/home/300.jpg
  4. BIN
      static/home/loaddata.gif

4
common/js/api.js

@ -1,6 +1,6 @@
// let baseUrl = 'http://192.168.66.221:8000'
// let baseUrl = 'http://192.168.66.16:8084'
let baseUrl = 'https://ggl.xingtongworld.com'
let baseUrl = 'http://192.168.66.16:8084'
// let baseUrl = 'https://ggl.xingtongworld.com'
// baseUrl = 'https://ggl.dingguagua.vip'
// baseUrl = 'https://apps.dingguagua.vip'

2
main.js

@ -4,7 +4,7 @@ import VueLazyload from 'vue-lazyload'
// 添加插件配置
Vue.use(VueLazyload, {
loading: './static/home/300.jpg', // 图片加载过程中显示的占位图
loading: './static/home/loaddata.gif', // 图片加载过程中显示的占位图
error: '/static/home/shibai.png', // 图片加载失败时显示的占位图
attempt: 3 // 尝试加载次数
})

BIN
static/home/300.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
static/home/loaddata.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Loading…
Cancel
Save