tangzy
2022-02-19 97f1f946a5fda7acc26caf45cc49bbc7e44e9bff
搜索条件添加
3 files modified
44 ■■■■ changed files
pages/grabOrders/grabOrders.vue 10 ●●●●● patch | view | raw | blame | history
pages/home/home.vue 28 ●●●●● patch | view | raw | blame | history
pages/shengzs/index.vue 6 ●●●● patch | view | raw | blame | history
pages/grabOrders/grabOrders.vue
@@ -110,6 +110,16 @@
      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) {
pages/home/home.vue
@@ -42,7 +42,7 @@
                <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>
@@ -135,6 +135,7 @@
                status: 'loadmore',
                list: 15,
                page: 1,
                cout:1,
                pagesize: 2,
                keyword: '',
                focus: false,
@@ -145,6 +146,9 @@
                serviceButton: [],
                tabbar:this.$store.state.tabbar
            };
        },
        onShow() {
            this.getNum();
        },
        onLoad() {
            // 后续将改为与后端联动
@@ -221,7 +225,12 @@
                    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
@@ -229,6 +238,21 @@
                }
            },
            //获取资讯信息
            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({
pages/shengzs/index.vue
@@ -202,7 +202,7 @@
                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,
@@ -224,7 +224,7 @@
            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
@@ -240,7 +240,7 @@
            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