@@ -9,6 +9,7 @@ Page({ | |||||
bannerUrl: imgurl.banner.url, | bannerUrl: imgurl.banner.url, | ||||
loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
bargaincancel: imgurl.bargaincancel.url, | bargaincancel: imgurl.bargaincancel.url, | ||||
wmhome: imgurl.wmhome.url, | |||||
bargainfail: imgurl.bargainfail.url, | bargainfail: imgurl.bargainfail.url, | ||||
bargainsuccess: imgurl.bargainsuccess.url, | bargainsuccess: imgurl.bargainsuccess.url, | ||||
bargaingoods: true, | bargaingoods: true, | ||||
@@ -24,6 +25,11 @@ Page({ | |||||
loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
flag: 'bargaingoods', | flag: 'bargaingoods', | ||||
}, | }, | ||||
goback: function () { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
onLoad: function (options) { | onLoad: function (options) { | ||||
console.log(options) | console.log(options) | ||||
let that = this; | let that = this; | ||||
@@ -1,3 +1,4 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<view class="page" hover-class="none" hover-stop-propagation="false"> | <view class="page" hover-class="none" hover-stop-propagation="false"> | ||||
<view class='top' wx:if="{{bargaingoods&&list.length>0}}"> | <view class='top' wx:if="{{bargaingoods&&list.length>0}}"> | ||||
<view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false"> | <view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false"> | ||||
@@ -506,4 +506,26 @@ page{ | |||||
font-weight:500; | font-weight:500; | ||||
color:rgba(255,253,245,1); | color:rgba(255,253,245,1); | ||||
opacity: 1; | opacity: 1; | ||||
} | |||||
} | |||||
button::after{ border: none; } | |||||
.goback{ | |||||
position: fixed; | |||||
right: 50rpx; | |||||
bottom: 60rpx; | |||||
width:100rpx!important; | |||||
height:100rpx; | |||||
z-index: 100; | |||||
background:rgba(255,255,255,1); | |||||
line-height: 95rpx; | |||||
border:1rpx solid rgba(227,227,227,1); | |||||
border-radius:50%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} |
@@ -1,5 +1,6 @@ | |||||
{ | { | ||||
"navigationBarTitleText": "砍价详情", | "navigationBarTitleText": "砍价详情", | ||||
"navigationBarBackgroundColor":"#FF6F03", | "navigationBarBackgroundColor":"#FF6F03", | ||||
"navigationBarTextStyle": "white", | |||||
"enablePullDownRefresh": true | "enablePullDownRefresh": true | ||||
} | } |
@@ -7,6 +7,8 @@ Page({ | |||||
data: { | data: { | ||||
couponUrl: imgurl.coupon.url, | couponUrl: imgurl.coupon.url, | ||||
linessUrl: imgurl.liness.url, | linessUrl: imgurl.liness.url, | ||||
wmhome: imgurl.wmhome.url, | |||||
wmdiscount: imgurl.wmdiscount.url, | |||||
loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
canTransferred: imgurl.canTransferred.url, | canTransferred: imgurl.canTransferred.url, | ||||
weixinTitle: imgurl.weixinTitle.url, | weixinTitle: imgurl.weixinTitle.url, | ||||
@@ -30,6 +32,11 @@ Page({ | |||||
mystatus: '', | mystatus: '', | ||||
showPage: false | showPage: false | ||||
}, | }, | ||||
goback: function () { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
onShow: function() { | onShow: function() { | ||||
let that = this; | let that = this; | ||||
console.log("onShow") | console.log("onShow") | ||||
@@ -1,3 +1,4 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<view class="market" wx:if="{{showPage}}"> | <view class="market" wx:if="{{showPage}}"> | ||||
<!-- 卡包 我的优惠券 --> | <!-- 卡包 我的优惠券 --> | ||||
<i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll"> | <i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll"> | ||||
@@ -276,4 +276,26 @@ | |||||
width:60rpx; | width:60rpx; | ||||
height:60rpx; | height:60rpx; | ||||
z-index:100; | z-index:100; | ||||
} | |||||
} | |||||
button::after{ border: none; } | |||||
.goback{ | |||||
position: fixed; | |||||
right: 50rpx; | |||||
bottom: 60rpx; | |||||
width:100rpx!important; | |||||
height:100rpx; | |||||
z-index: 100; | |||||
background:rgba(255,255,255,1); | |||||
line-height: 95rpx; | |||||
border:1rpx solid rgba(227,227,227,1); | |||||
border-radius:50%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} |
@@ -8,6 +8,7 @@ Page({ | |||||
couponUrl: imgurl.coupon.url, | couponUrl: imgurl.coupon.url, | ||||
linessUrl: imgurl.liness.url, | linessUrl: imgurl.liness.url, | ||||
loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
wmhome: imgurl.wmhome.url, | |||||
wmgive: imgurl.wmgive.url, | wmgive: imgurl.wmgive.url, | ||||
tabs: [{ | tabs: [{ | ||||
key: 0, | key: 0, | ||||
@@ -49,6 +50,11 @@ Page({ | |||||
index:2 | index:2 | ||||
}) | }) | ||||
}, | }, | ||||
goback: function () { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
//点击跳转到券详情页面 | //点击跳转到券详情页面 | ||||
gotouse: function (e) { | gotouse: function (e) { | ||||
if (this.data.mystatus == '' || this.data.mystatus == 'undefined') { | if (this.data.mystatus == '' || this.data.mystatus == 'undefined') { | ||||
@@ -1,3 +1,4 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<view class="market" wx:if="{{showPage}}"> | <view class="market" wx:if="{{showPage}}"> | ||||
<!-- 券包 我的优惠券 --> | <!-- 券包 我的优惠券 --> | ||||
<i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll"> | <i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll"> | ||||
@@ -4,6 +4,29 @@ | |||||
/* background: #f5f5f5; */ | /* background: #f5f5f5; */ | ||||
} | } | ||||
button::after{ border: none; } | |||||
.goback{ | |||||
position: fixed; | |||||
right: 50rpx; | |||||
bottom: 60rpx; | |||||
width:100rpx!important; | |||||
height:100rpx; | |||||
z-index: 100; | |||||
background:rgba(255,255,255,1); | |||||
line-height: 95rpx; | |||||
border:1rpx solid rgba(227,227,227,1); | |||||
border-radius:50%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} | |||||
.tabs { | .tabs { | ||||
width: 100% !important; | width: 100% !important; | ||||
height: 88rpx; | height: 88rpx; | ||||
@@ -21,6 +21,7 @@ Page({ | |||||
], | ], | ||||
couponUrl: imgurl.coupon.url, | couponUrl: imgurl.coupon.url, | ||||
loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
wmhome: imgurl.wmhome.url, | |||||
canTransferred: imgurl.canTransferred.url, | canTransferred: imgurl.canTransferred.url, | ||||
tabs: [], | tabs: [], | ||||
list: [], | list: [], | ||||
@@ -34,6 +35,11 @@ Page({ | |||||
showPage: false, | showPage: false, | ||||
paramData:null | paramData:null | ||||
}, | }, | ||||
goback: function () { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
onLoad(options) { | onLoad(options) { | ||||
this.getList(0, 1); | this.getList(0, 1); | ||||
if(options.fromId){ | if(options.fromId){ | ||||
@@ -52,7 +58,7 @@ Page({ | |||||
console.log(res) | console.log(res) | ||||
let businessObj = [{ id: 0, title: "全部", type: 1, createDate: 0}]; | let businessObj = [{ id: 0, title: "全部", type: 1, createDate: 0}]; | ||||
that.setData({ | that.setData({ | ||||
tabs: res.data.list.concat(businessObj).sort(compare("createDate")) | |||||
tabs: res.data.concat(businessObj).sort(compare("createDate")) | |||||
}); | }); | ||||
console.log(that.data.tabs) | console.log(that.data.tabs) | ||||
}) | }) | ||||
@@ -1,3 +1,4 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<!-- 折扣卡list页面 --> | <!-- 折扣卡list页面 --> | ||||
<view class='content'> | <view class='content'> | ||||
<view class="market clearfix"> | <view class="market clearfix"> | ||||
@@ -244,4 +244,26 @@ button::after{ border: none; } | |||||
} | } | ||||
.tabss{ | .tabss{ | ||||
padding: 0 30rpx; | padding: 0 30rpx; | ||||
} | |||||
} | |||||
button::after{ border: none; } | |||||
.goback{ | |||||
position: fixed; | |||||
right: 50rpx; | |||||
bottom: 60rpx; | |||||
width:100rpx!important; | |||||
height:100rpx; | |||||
z-index: 100; | |||||
background:rgba(255,255,255,1); | |||||
line-height: 95rpx; | |||||
border:1rpx solid rgba(227,227,227,1); | |||||
border-radius:50%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} |
@@ -204,7 +204,7 @@ Page({ | |||||
// } | // } | ||||
else if (app.globalData.type == 'ml') { | else if (app.globalData.type == 'ml') { | ||||
// 门店 | // 门店 | ||||
wx.redirectTo({ | |||||
wx.switchTab({ | |||||
url: '/pages/index/searchbar/index' | url: '/pages/index/searchbar/index' | ||||
}); | }); | ||||
} else { | } else { | ||||
@@ -9,6 +9,7 @@ Page({ | |||||
* 页面的初始数据 | * 页面的初始数据 | ||||
*/ | */ | ||||
data: { | data: { | ||||
}, | }, | ||||
/** | /** | ||||
* 生命周期函数--监听页面加载 | * 生命周期函数--监听页面加载 | ||||
@@ -216,7 +217,7 @@ Page({ | |||||
}); | }); | ||||
} else if (app.globalData.type == 'ml') { | } else if (app.globalData.type == 'ml') { | ||||
// 门店 | // 门店 | ||||
wx.redirectTo({ | |||||
wx.switchTab({ | |||||
url: '/pages/index/searchbar/index' | url: '/pages/index/searchbar/index' | ||||
}); | }); | ||||
} else { | } else { | ||||
@@ -60,9 +60,8 @@ Page({ | |||||
console.log(res) | console.log(res) | ||||
let businessObj = [{ id: 0, title: "全部", type: 1, createDate:0}]; | let businessObj = [{ id: 0, title: "全部", type: 1, createDate:0}]; | ||||
that.setData({ | that.setData({ | ||||
lists: res.data.list.concat(businessObj).sort(compare("createDate")) | |||||
lists: res.data.concat(businessObj).sort(compare("createDate")) | |||||
}); | }); | ||||
console.log(that.data.lists); | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
@@ -1,3 +1,5 @@ | |||||
{ | { | ||||
"navigationBarTitleText": "品牌门店" | |||||
"navigationBarTitleText": "门店", | |||||
"navigationBarBackgroundColor": "#b2743d", | |||||
"navigationBarTextStyle": "white" | |||||
} | } |
@@ -16,7 +16,7 @@ | |||||
</view> | </view> | ||||
<view class='lists'> | <view class='lists'> | ||||
<view class='posi'> | |||||
<view class='posi' wx:if="{{merchantVoList.length>0}}"> | |||||
<view class='posi_logo' wx:for="{{merchantVoList}}" wx:key="index"> | <view class='posi_logo' wx:for="{{merchantVoList}}" wx:key="index"> | ||||
<view> | <view> | ||||
<image src='{{item.merchantImgUrl}}'></image> | <image src='{{item.merchantImgUrl}}'></image> | ||||
@@ -28,4 +28,7 @@ | |||||
<image bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" /> | <image bindtap='phone' data-merchantLinkPhone='{{item.merchantLinkPhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" /> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class='position' wx:if="{{merchantVoList.length==0}}"> | |||||
暂无数据 | |||||
</view> | |||||
</view> | </view> |
@@ -6,12 +6,12 @@ | |||||
position: fixed; | position: fixed; | ||||
left: 0; | left: 0; | ||||
top: 0; | top: 0; | ||||
border-right: 2rpx solid #efefef; | |||||
border-right: 2rpx solid #b2743d; | |||||
} | } | ||||
.left { | .left { | ||||
border-top: 1rpx solid #efefef; | |||||
border-right: 1rpx solid #efefef; | |||||
border-top: 1rpx solid #b2743d; | |||||
border-right: 1rpx solid #b2743d; | |||||
} | } | ||||
.text-style { | .text-style { | ||||
@@ -25,14 +25,14 @@ | |||||
} | } | ||||
.active1 { | .active1 { | ||||
color: #00c0ff; | |||||
color: #b2743d; | |||||
} | } | ||||
.active { | .active { | ||||
display: block; | display: block; | ||||
width: 50rpx; | width: 50rpx; | ||||
height: 6rpx; | height: 6rpx; | ||||
background: #00c0ff; | |||||
background: #b2743d; | |||||
position: relative; | position: relative; | ||||
left: 43rpx; | left: 43rpx; | ||||
bottom: 30rpx; | bottom: 30rpx; | ||||
@@ -71,6 +71,10 @@ | |||||
margin-bottom: 20rpx; | margin-bottom: 20rpx; | ||||
overflow: hidden; | overflow: hidden; | ||||
} | } | ||||
.position{ | |||||
text-align: center; | |||||
margin-top: 100rpx; | |||||
} | |||||
.posi_logo view:nth-child(1) { | .posi_logo view:nth-child(1) { | ||||
width: 100rpx; | width: 100rpx; | ||||
@@ -128,11 +128,11 @@ Page({ | |||||
}) | }) | ||||
}, | }, | ||||
//搜索门店 | //搜索门店 | ||||
searchbar:function(){ | |||||
wx.navigateTo({ | |||||
url: '/pages/index/searchbar/index', | |||||
}) | |||||
}, | |||||
// searchbar:function(){ | |||||
// wx.switchTab({ | |||||
// url: '/pages/index/searchbar/index', | |||||
// }) | |||||
// }, | |||||
// createQrCode: function(url, canvasId, cavW, cavH) { | // createQrCode: function(url, canvasId, cavW, cavH) { | ||||
// //调用插件中的draw方法,绘制二维码图片 | // //调用插件中的draw方法,绘制二维码图片 | ||||
@@ -7,6 +7,7 @@ Page({ | |||||
data: { | data: { | ||||
dingdanUrl: imgurl.dingdan.url, | dingdanUrl: imgurl.dingdan.url, | ||||
loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
wmhome: imgurl.wmhome.url, | |||||
wmdiscount: imgurl.wmdiscount.url, | wmdiscount: imgurl.wmdiscount.url, | ||||
wmgive: imgurl.wmgive.url, | wmgive: imgurl.wmgive.url, | ||||
tabs: [{ | tabs: [{ | ||||
@@ -30,6 +31,11 @@ Page({ | |||||
page: 1, | page: 1, | ||||
content: "", | content: "", | ||||
}, | }, | ||||
goback: function () { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
onLoad(e) { | onLoad(e) { | ||||
this.getList(e.id, 1); | this.getList(e.id, 1); | ||||
this.setData({ | this.setData({ | ||||
@@ -1,3 +1,4 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<view class="market"> | <view class="market"> | ||||
<i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll"> | <i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll"> | ||||
<i-tab class='i-tab' wx:for="{{tabs}}" wx:key="unique" key="{{item.key}}" title="{{item.name}}"></i-tab> | <i-tab class='i-tab' wx:for="{{tabs}}" wx:key="unique" key="{{item.key}}" title="{{item.name}}"></i-tab> | ||||
@@ -249,3 +249,25 @@ text-overflow: ellipsis; | |||||
vertical-align: middle; | vertical-align: middle; | ||||
margin-right: 10rpx; | margin-right: 10rpx; | ||||
} | } | ||||
button::after{ border: none; } | |||||
.goback{ | |||||
position: fixed; | |||||
right: 50rpx; | |||||
bottom: 60rpx; | |||||
width:100rpx!important; | |||||
height:100rpx; | |||||
z-index: 100; | |||||
background:rgba(255,255,255,1); | |||||
line-height: 95rpx; | |||||
border:1rpx solid rgba(227,227,227,1); | |||||
border-radius:50%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} |
@@ -10,6 +10,7 @@ Page({ | |||||
data: { | data: { | ||||
linesUrl: imgurl.lines.url, | linesUrl: imgurl.lines.url, | ||||
loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
wmhome: imgurl.wmhome.url, | |||||
wmgift: imgurl.wmgift.url, | wmgift: imgurl.wmgift.url, | ||||
list: [], | list: [], | ||||
page: 1, | page: 1, | ||||
@@ -21,6 +22,11 @@ Page({ | |||||
content: "", | content: "", | ||||
showPage:false | showPage:false | ||||
}, | }, | ||||
goback: function () { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
//列表 | //列表 | ||||
getList: function (page) { | getList: function (page) { | ||||
let that = this; | let that = this; | ||||
@@ -1,3 +1,4 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<!-- 限时抢购 查看更多对应的页面 --> | <!-- 限时抢购 查看更多对应的页面 --> | ||||
<view wx:if="{{showPage}}"> | <view wx:if="{{showPage}}"> | ||||
<view wx:for="{{list}}" wx:if="{{item.targetA!='end'&&list.length>0}}" class='flashSaleItemWrap' wx:key="index"> | <view wx:for="{{list}}" wx:if="{{item.targetA!='end'&&list.length>0}}" class='flashSaleItemWrap' wx:key="index"> | ||||
@@ -15,7 +15,28 @@ | |||||
font-size: 26rpx; | font-size: 26rpx; | ||||
color: #999; | color: #999; | ||||
} | } | ||||
button::after{ border: none; } | |||||
.goback{ | |||||
position: fixed; | |||||
right: 50rpx; | |||||
bottom: 60rpx; | |||||
width:100rpx!important; | |||||
height:100rpx; | |||||
z-index: 100; | |||||
background:rgba(255,255,255,1); | |||||
line-height: 95rpx; | |||||
border:1rpx solid rgba(227,227,227,1); | |||||
border-radius:50%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} | |||||
.loading image { | .loading image { | ||||
width: 60rpx; | width: 60rpx; | ||||
height: 60rpx; | height: 60rpx; | ||||
@@ -12,6 +12,7 @@ Page({ | |||||
data: { | data: { | ||||
myspeacialUrl: imgurl.myspeacial.url, | myspeacialUrl: imgurl.myspeacial.url, | ||||
teliconUrl: imgurl.telicon.url, | teliconUrl: imgurl.telicon.url, | ||||
wmhome: imgurl.wmhome.url, | |||||
memberId:"000000" | memberId:"000000" | ||||
}, | }, | ||||
phone: function (e) { | phone: function (e) { | ||||
@@ -50,6 +51,11 @@ Page({ | |||||
}) | }) | ||||
}) | }) | ||||
}, | }, | ||||
goback: function () { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
/** | /** | ||||
* 二维码 | * 二维码 | ||||
*/ | */ | ||||
@@ -1,3 +1,4 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<view class='code'> | <view class='code'> | ||||
<!-- <text style='margin-bottom:20rpx;'>会员码</text> --> | <!-- <text style='margin-bottom:20rpx;'>会员码</text> --> | ||||
<!-- <canvas canvas-id="barcode" id='barcode' /> --> | <!-- <canvas canvas-id="barcode" id='barcode' /> --> | ||||
@@ -106,6 +106,27 @@ Page{ | |||||
width: 300rpx; | width: 300rpx; | ||||
margin: 40rpx auto 20rpx; | margin: 40rpx auto 20rpx; | ||||
} | } | ||||
.goback{ | |||||
position: fixed; | |||||
right: 50rpx; | |||||
bottom: 60rpx; | |||||
width:100rpx!important; | |||||
height:100rpx; | |||||
z-index: 100; | |||||
background:rgba(255,255,255,1); | |||||
line-height: 95rpx; | |||||
border:1rpx solid rgba(227,227,227,1); | |||||
border-radius:50%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} | |||||
.code{ | .code{ | ||||
width: 684rpx; | width: 684rpx; | ||||
background: #fff; | background: #fff; | ||||
@@ -10,6 +10,7 @@ Page({ | |||||
bannerUrl: imgurl.banner.url, | bannerUrl: imgurl.banner.url, | ||||
loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
nodata: imgurl.nodata.url, | nodata: imgurl.nodata.url, | ||||
wmhome: imgurl.wmhome.url, | |||||
spellList: true, | spellList: true, | ||||
myspellList: false, | myspellList: false, | ||||
list: [], | list: [], | ||||
@@ -26,6 +27,11 @@ Page({ | |||||
flag: 'spellList', | flag: 'spellList', | ||||
reloadIf:false | reloadIf:false | ||||
}, | }, | ||||
goback: function () { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
onLoad: function (options) { | onLoad: function (options) { | ||||
let that = this; | let that = this; | ||||
that.getBannerlist(); | that.getBannerlist(); | ||||
@@ -1,3 +1,4 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<view class='content-box' style='{{"padding-bottom:"+(lists.length>0?"200rpx":"0")}}'> | <view class='content-box' style='{{"padding-bottom:"+(lists.length>0?"200rpx":"0")}}'> | ||||
<view class='top' wx:if='{{flag=="spellList"&&list.length>0}}'> | <view class='top' wx:if='{{flag=="spellList"&&list.length>0}}'> | ||||
<view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false"> | <view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false"> | ||||
@@ -290,4 +290,26 @@ image{ | |||||
font-family:PingFang-SC-Medium; | font-family:PingFang-SC-Medium; | ||||
font-weight:500; | font-weight:500; | ||||
color:rgba(0,0,0,1); | color:rgba(0,0,0,1); | ||||
} | |||||
} | |||||
button::after{ border: none; } | |||||
.goback{ | |||||
position: fixed; | |||||
right: 50rpx; | |||||
bottom: 60rpx; | |||||
width:100rpx!important; | |||||
height:100rpx; | |||||
z-index: 100; | |||||
background:rgba(255,255,255,1); | |||||
line-height: 95rpx; | |||||
border:1rpx solid rgba(227,227,227,1); | |||||
border-radius:50%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} |