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