app.globalData.nowPage = page; | app.globalData.nowPage = page; | ||||
if (page == '1') { | if (page == '1') { | ||||
wx.reLaunch({ | wx.reLaunch({ | ||||
url: '../index/index' | |||||
url: '/pages/index/index' | |||||
}) | }) | ||||
} else if (page == '2'){ | } else if (page == '2'){ | ||||
wx.reLaunch({ | wx.reLaunch({ | ||||
url: '../star/star' | |||||
url: '/pages/star/star' | |||||
}) | }) | ||||
} else if (page == '3'){ | } else if (page == '3'){ | ||||
// wx.showToast({ | // wx.showToast({ | ||||
// icon:'none' | // icon:'none' | ||||
// }) | // }) | ||||
wx.reLaunch({ | wx.reLaunch({ | ||||
url: '../luckyStar/luckyStar' | |||||
url: '/pages/luckyStar/luckyStar' | |||||
}) | }) | ||||
} else if (page == '4'){ | } else if (page == '4'){ | ||||
wx.reLaunch({ | wx.reLaunch({ | ||||
url: '../myCenter/myCenter' | |||||
url: '/pages/myCenter/myCenter' | |||||
}) | }) | ||||
} | } | ||||
} | } |
* 生命周期函数--监听页面加载 | * 生命周期函数--监听页面加载 | ||||
*/ | */ | ||||
onLoad: function (options) { | onLoad: function (options) { | ||||
app.globalData.nowPage = 2; | |||||
if (app.globalData.userMobile) { | if (app.globalData.userMobile) { | ||||
this.setData({ | this.setData({ | ||||
getMobileBtnShow: false, | getMobileBtnShow: false, |
<view bindtap="selectTask" data-type='1' class="taskText {{taskNow==1?'taskText2':''}}">每日任务</view> | <view bindtap="selectTask" data-type='1' class="taskText {{taskNow==1?'taskText2':''}}">每日任务</view> | ||||
<view bindtap="selectTask" data-type='2' class="taskText {{taskNow==2?'taskText2':''}}">星探任务</view> | <view bindtap="selectTask" data-type='2' class="taskText {{taskNow==2?'taskText2':''}}">星探任务</view> | ||||
</view> | </view> | ||||
<image class="newImages2-59" wx:if="{{taskNow==1}}" src="{{imgUrl+'/newImages2/59.png?v=001'}}"></image> | |||||
<image class="newImages2-59" wx:if="{{taskNow==1}}" src="{{imgUrl+'/newImages2/75.png?v=001'}}"></image> | |||||
<view class="taskDetailFrame" wx:if="{{taskNow==1}}"> | <view class="taskDetailFrame" wx:if="{{taskNow==1}}"> | ||||
<view class="taskDetailGroup" wx:for="{{taskList}}" wx:key="id"> | <view class="taskDetailGroup" wx:for="{{taskList}}" wx:key="id"> | ||||
<view class="taskName">{{item.fullName}}</view> | <view class="taskName">{{item.fullName}}</view> |
position: relative; | position: relative; | ||||
width:147rpx; | width:147rpx; | ||||
height:147rpx; | height:147rpx; | ||||
border: 1rpx solid #355485; | |||||
border: 2rpx solid #355485; | |||||
border-radius: 10rpx; | border-radius: 10rpx; | ||||
display: flex; | display: flex; | ||||
align-items: center; | align-items: center; | ||||
position: absolute; | position: absolute; | ||||
left: 0; | left: 0; | ||||
bottom: 0; | bottom: 0; | ||||
top: 184rpx; | |||||
top: 194rpx; | |||||
width: 750rpx; | width: 750rpx; | ||||
height: 405rpx; | |||||
height: 395rpx; | |||||
overflow-y: auto; | overflow-y: auto; | ||||
} | } | ||||
.recordText{ | .recordText{ | ||||
height: 50rpx; | height: 50rpx; | ||||
} | } | ||||
.newImages2-59{ | .newImages2-59{ | ||||
width: 270rpx; | |||||
height: 19rpx; | |||||
width: 568rpx; | |||||
height: 74rpx; | |||||
margin: 0 auto; | margin: 0 auto; | ||||
margin-top: 61rpx; | |||||
margin-top: 25rpx; | |||||
margin-bottom: 20rpx; | margin-bottom: 20rpx; | ||||
} | } |
/** | /** | ||||
* 生命周期函数--监听页面加载 | * 生命周期函数--监听页面加载 | ||||
*/ | */ | ||||
onLoad: function(options) { | |||||
onLoad: function (options) { | |||||
app.globalData.nowPage = 2; | |||||
}, | }, | ||||
/** | /** |