| | |
| | | return this.$store.state.gotuGrabOrders; |
| | | }, |
| | | }, |
| | | onLoad: function(options) { |
| | | debugger |
| | | console.log(options) |
| | | if(options.detailData == 0){ |
| | | this.current = 0; |
| | | } |
| | | else{ |
| | | this.current = 1; |
| | | |
| | | }, |
| | | methods: { |
| | | // tabs通知swiper切换 |
| | | tabsChange(index) { |
| | |
| | | <u-grid-item bg-color="transparent" v-for="(item, index) in serviceButton" :key="index"> |
| | | <navigator hover-class="none" class="service-item" @click="goBusinessPage(item.url,index)"> |
| | | <image :src="item.img" mode="widthFix" class="img"></image> |
| | | <u-badge v-if="item.name == '我参与'" count="1" :offset="[20, 20]"></u-badge> |
| | | <u-badge v-if="item.name == '我参与'" :count="cout" :offset="[20, 20]"></u-badge> |
| | | <view class="name">{{ item.name }}</view> |
| | | </navigator> |
| | | </u-grid-item> |
| | |
| | | status: 'loadmore', |
| | | list: 15, |
| | | page: 1, |
| | | cout:1, |
| | | pagesize: 2, |
| | | keyword: '', |
| | | focus: false, |
| | |
| | | serviceButton: [], |
| | | tabbar:this.$store.state.tabbar |
| | | }; |
| | | }, |
| | | onShow() { |
| | | this.getNum(); |
| | | }, |
| | | onLoad() { |
| | | // 后续将改为与后端联动 |
| | |
| | | uni.switchTab({ |
| | | url:url |
| | | }) |
| | | }else{ |
| | | }else if (index==4){ |
| | | uni.navigateTo({ |
| | | url:'../grabOrders/grabOrders?detailData=' + (JSON.stringify(this.cout)) |
| | | }) |
| | | } |
| | | else{ |
| | | console.log("23232"+url+"dasdsada "+index) |
| | | uni.navigateTo({ |
| | | url:url |
| | |
| | | } |
| | | }, |
| | | //获取资讯信息 |
| | | getNum() { |
| | | var that = this; |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + '/taskqd/selectNum', |
| | | method: 'GET', |
| | | data: { |
| | | serid: that.$store.state.UserData.user_id, |
| | | jurisdiction: that.$store.state.UserData.jurisdiction |
| | | }, |
| | | success: (res) => { |
| | | this.cout=res.data.data |
| | | } |
| | | }); |
| | | }, |
| | | //获取资讯信息 |
| | | getArtcilePageList() { |
| | | var that = this; |
| | | uni.request({ |
| | |
| | | this.rainArr = []; |
| | | var that = this; |
| | | uni.request({ |
| | | url: that.$store.state.piAPI + 'energy/list', |
| | | url: that.$store.state.piAPI + '/energy/list', |
| | | method: 'GET', |
| | | data: { |
| | | type: 1, |
| | |
| | | getNowAnergy() { |
| | | var that = this; |
| | | uni.request({ |
| | | url: that.$store.state.piAPI + 'energyTree/selectNum', |
| | | url: that.$store.state.piAPI + '/energyTree/selectNum', |
| | | method: 'GET', |
| | | data: { |
| | | identification: that.$store.state.UserData.user_id |
| | |
| | | getTre() { |
| | | var that = this; |
| | | uni.request({ |
| | | url: that.$store.state.piAPI + 'energy/updateTre', |
| | | url: that.$store.state.piAPI + '/energy/updateTre', |
| | | method: 'POST', |
| | | data: { |
| | | identification: that.$store.state.UserData.user_id |