From 2ac2b5b24b382152e067b69f95757bef4f33e42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=96?= Date: Mon, 11 Mar 2019 18:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E5=88=B8=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=8A=A0=E8=BD=BD=E5=8F=8A=E6=97=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/spellGroup/spellGroup.js | 4 ++- pages/spellGroup/spellGroup.wxml | 13 +++++++- pages/spellGroup/spellGroup.wxss | 52 ++++++++++++++++++++++++++++++++ utils/imgurl.js | 4 +++ 4 files changed, 71 insertions(+), 2 deletions(-) diff --git a/pages/spellGroup/spellGroup.js b/pages/spellGroup/spellGroup.js index 4d1666f..361dee1 100644 --- a/pages/spellGroup/spellGroup.js +++ b/pages/spellGroup/spellGroup.js @@ -9,6 +9,7 @@ Page({ data: { bannerUrl: imgurl.banner.url, loadingUrl: imgurl.loading.url, + nodata: imgurl.nodata.url, spellList: true, myspellList: false, list: [], @@ -20,7 +21,8 @@ Page({ allow_load: true, // 是否允许继续加载标识 默认 true 允许,false 加载完成 myorder: false, actUrl: imgurl.act.url, - loadingUrl: imgurl.loading.url, + loading:true, + content:'数据正在加载中', flag: 'spellList', }, onLoad: function () { diff --git a/pages/spellGroup/spellGroup.wxml b/pages/spellGroup/spellGroup.wxml index 14f2bd4..842499d 100644 --- a/pages/spellGroup/spellGroup.wxml +++ b/pages/spellGroup/spellGroup.wxml @@ -1,9 +1,17 @@ - + + + + 暂无数据 + + + + 暂无数据 + @@ -67,4 +75,7 @@ 拼团商品 我的拼团 + + {{content}} + \ No newline at end of file diff --git a/pages/spellGroup/spellGroup.wxss b/pages/spellGroup/spellGroup.wxss index a5a5939..42b4bf9 100644 --- a/pages/spellGroup/spellGroup.wxss +++ b/pages/spellGroup/spellGroup.wxss @@ -11,6 +11,20 @@ page { height: auto; padding-bottom: 200rpx; } +.loading { + text-align: center; + height: 80rpx; + line-height: 80rpx; + font-size: 26rpx; + color: #fff; +} + +.loading image { + width: 60rpx; + height: 60rpx; + vertical-align: middle; + margin-right: 10rpx; +} .banner{ margin-bottom: 20rpx; background: none; @@ -240,4 +254,42 @@ image{ font-weight:500; color:rgba(255,50,50,1); line-height:64rpx; +} +.no-data01{ + width: 690rpx; + padding-top: 174rpx; + height: calc(100vh - 460rpx); + background: #fff; + margin: 0 auto; + border-radius:15rpx; + box-sizing: border-box; + margin-top: 320rpx; +} +.no-data{ + width: 690rpx; + padding-top: 174rpx; + height: calc(100vh - 140rpx); + background: #fff; + margin: 0 auto; + border-radius:15rpx; + box-sizing: border-box; +} +.no-data01 image{ + width: 261rpx; + height: 272rpx; + display: block; + margin: 0 auto; +} +.no-data image{ + width: 261rpx; + height: 272rpx; + display: block; + margin: 0 auto; +} +.no-data-text{ + text-align: center; + font-size:34rpx; + font-family:PingFang-SC-Medium; + font-weight:500; + color:rgba(0,0,0,1); } \ No newline at end of file diff --git a/utils/imgurl.js b/utils/imgurl.js index 71ec442..2061840 100644 --- a/utils/imgurl.js +++ b/utils/imgurl.js @@ -388,4 +388,8 @@ module.exports = { 'url': baseUrl + 'home.png', 'name': '返回首页图标' }, + 'nodata': { + 'url': baseUrl + 'nodata.png', + 'name': '拼团暂无数据' + }, } \ No newline at end of file