123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- const app = getApp();
- Page({
- data: {
- StatusBar: app.globalData.StatusBar,
- CustomBar: app.globalData.CustomBar,
- mytask:[{
- img: "../../img/server/order.png",
- openpath: "/pages/task/lyg/index",
- tab:0,
- text: "任务中心"
- },
- {
- img: "../../img/server/doing.png",
- openpath: "/pages/task/lyg/index",
- tab:1,
- text: "待交付"
- },
- {
- img: "../../img/server/account.png",
- openpath: "/pages/task/lyg/index",
- tab:2,
- text: "已交付"
- },
- {
- img: "../../img/server/history.png",
- openpath: "/pages/task/lyg/index",
- tab:3,
- text: "已完成"
- }
- ],
- server:[
- {
- img: "../../img/server/identify.png",
- openpath: "/pages/tool/identify/index",
- text: "实名认证"
- },
- {
- img: "../../img/server/band.png",
- openpath: "/pages/tool/band/band",
- text: "绑定银行"
- },
- {
- img: "../../img/server/credit.png",
- openpath: "/pages/tool/empty/index",
- text: "营业执照"
- },
- {
- img: "../../img/server/info.png",
- openpath: "/pages/tool/agree/agree",
- text: "电子合同"
- }
-
- ],
- other:[
- {
- img: "../../img/icons/mesopen.png",
- openpath: "/pages/user/info/index",
- text: "我的信息"
- },
- {
- img: "../../img/server/help.png",
- openpath: "/pages/tool/empty/index",
- text: "联系客服"
- },
- {
- img: "../../img/server/more.png",
- openpath: "/pages/tool/empty/index",
- text: "其他更多"
- }
- ]
- },
- selectTag(e){
- let {tab, url} = e.currentTarget.dataset;
- console.log( {tab, url} )
- app.setTaskTab( tab );
- wx.switchTab({
- url: url,
- })
- },
- onLoad: function (options) {
- app.getMakerInfo()
- },
- gotoInfo( ){
- wx.navigateTo({
- url: '/pages/user/info/index',
- })
- },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
- },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
- },
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
- },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
- },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
- },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
- },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
- }
- })
|