@ -1,5 +1,5 @@ |
|||||
<!--components/card/index.wxml--> |
<!--components/card/index.wxml--> |
||||
<view class="card tag-class" bindtap="onTap"> |
<view class="card tag-class" bindtap="onTap"> |
||||
<image class="card_logo" src="/images/temp_1.png"/> |
<image class="card_logo" src="{{image.length > 0 ? image : '/images/temp_1.png'}}"/> |
||||
<view class="card_title">橡胶谷园区</view> |
<view class="card_title">{{title}}</view> |
||||
</view> |
</view> |
||||
|
@ -0,0 +1,34 @@ |
|||||
|
// components/empty/index.js
|
||||
|
Component({ |
||||
|
/** |
||||
|
* 组件的属性列表 |
||||
|
*/ |
||||
|
properties: { |
||||
|
loading: { |
||||
|
type: Boolean, |
||||
|
value: true, |
||||
|
}, |
||||
|
empty: { |
||||
|
type: Boolean, |
||||
|
value: false, |
||||
|
}, |
||||
|
message: { |
||||
|
type: Boolean, |
||||
|
value: '页面迷路了!' |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 组件的初始数据 |
||||
|
*/ |
||||
|
data: { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
/** |
||||
|
* 组件的方法列表 |
||||
|
*/ |
||||
|
methods: { |
||||
|
|
||||
|
} |
||||
|
}) |
@ -0,0 +1,4 @@ |
|||||
|
{ |
||||
|
"component": true, |
||||
|
"usingComponents": {} |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
<!--components/empty/index.wxml--> |
||||
|
<view class="empty"> |
||||
|
<view class="empty-loading" wx:if="{{loading && !empty}}"> |
||||
|
<view class="load-indicator">加载中<dot></dot></view> |
||||
|
</view> |
||||
|
<view class="empty-bd" wx:if="{{empty}}"> |
||||
|
<view class="empty-logo">{{message}}</view> |
||||
|
<view class="empty-refresh"></view> |
||||
|
</view> |
||||
|
</view> |
@ -0,0 +1,50 @@ |
|||||
|
/* components/empty/index.wxss */ |
||||
|
|
||||
|
.empty { |
||||
|
position: relative; |
||||
|
width: 100%; |
||||
|
} |
||||
|
|
||||
|
.empty-loading { |
||||
|
position: absolute; |
||||
|
top: 0; |
||||
|
right: 0; |
||||
|
left: 0; |
||||
|
bottom: 0; |
||||
|
} |
||||
|
.empty-bd { |
||||
|
padding: 10px 0; |
||||
|
text-align: center; |
||||
|
font-size: 17px; |
||||
|
color: #888; |
||||
|
} |
||||
|
|
||||
|
.load-indicator { |
||||
|
font-size: 16px; |
||||
|
color: #888; |
||||
|
text-align: center; |
||||
|
} |
||||
|
dot { |
||||
|
display: inline-block; |
||||
|
overflow: hidden; |
||||
|
height: 1em; |
||||
|
line-height: 1; |
||||
|
vertical-align: -.25em; |
||||
|
} |
||||
|
|
||||
|
dot::after { |
||||
|
display: block; |
||||
|
white-space: pre-wrap; |
||||
|
content: "...\A..\A."; |
||||
|
animation: loading 3s infinite step-start both; |
||||
|
} |
||||
|
|
||||
|
@keyframes loading { |
||||
|
33% { |
||||
|
transform: translate3d(0, -2em, 0); |
||||
|
} |
||||
|
|
||||
|
66% { |
||||
|
transform: translate3d(0, -1em, 0); |
||||
|
} |
||||
|
} |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 247 B |
@ -1,5 +1,5 @@ |
|||||
<!--components/image-botton/index.wxml--> |
<!--components/image-botton/index.wxml--> |
||||
<view class="image-button" bindtap="onTap"> |
<view class="image-button" bindtap="onTap"> |
||||
<image class="image-btn-bg" src="images/btn_bg.png"></image> |
<image class="image-btn-bg" src="{{disable ? 'images/btn_bg_disable.png':'images/btn_bg.png'}}"></image> |
||||
{{title}} |
{{title}} |
||||
</view> |
</view> |
||||
|
@ -1,5 +1,5 @@ |
|||||
const config = { |
const config = { |
||||
// api_url: 'https://nei.netease.com/api/apimock/8290e3893033966572547b03f2ef3dbb/', // 服务器地址
|
// api_url: 'http://192.168.42.44:8083/fqsb', // 服务器地址
|
||||
api_url: 'http://121.42.41.42:8092/fqsb' |
api_url: 'http://121.42.41.42:8092/fqsb' |
||||
} |
} |
||||
export { config } |
export { config } |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 34 KiB |
@ -1,7 +1,7 @@ |
|||||
<!--pages/billboards/park/index.wxml--> |
<!--pages/billboards/park/index.wxml--> |
||||
<view class="container"> |
<view class="container"> |
||||
<image bindtap="onClickItem" data-code="park-cbd" class="billboard_item" src="/images/billboard/1.png"></image> |
<image bindtap="onClickItem" data-code="park-cbd" class="billboard_item" src="images/1.png"></image> |
||||
<image bindtap="onClickItem" data-code="park-bhxq" class="billboard_item" src="/images/billboard/2.png"></image> |
<image bindtap="onClickItem" data-code="park-bhxq" class="billboard_item" src="images/2.png"></image> |
||||
<image bindtap="onClickItem" data-code="park-cxzy" class="billboard_item" src="/images/billboard/3.png"></image> |
<image bindtap="onClickItem" data-code="park-cxzy" class="billboard_item" src="images/3.png"></image> |
||||
<image bindtap="onClickItem" data-code="park-lswh" class="billboard_item" src="/images/billboard/3.png"></image> |
<image bindtap="onClickItem" data-code="park-lswh" class="billboard_item" src="images/4.png"></image> |
||||
</view> |
</view> |
||||
|
@ -1,8 +1,11 @@ |
|||||
{ |
{ |
||||
"enablePullDownRefresh": true, |
"enablePullDownRefresh": true, |
||||
|
"backgroundColor": "#f7f7f7", |
||||
|
"backgroundTextStyle": "dark", |
||||
"usingComponents": { |
"usingComponents": { |
||||
"e-swiper": "/components/swiper/index", |
"e-swiper": "/components/swiper/index", |
||||
"e-focus": "/components/focus/index", |
"e-focus": "/components/focus/index", |
||||
"e-cell": "/components/cell/index" |
"e-cell": "/components/cell/index", |
||||
|
"e-empty": "/components/empty/index" |
||||
} |
} |
||||
} |
} |