@@ -1,396 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="AppNewFarmerBank">
 | 
			
		||||
    <div class="swiper-content">
 | 
			
		||||
      <img src="https://cdn.cunwuyun.cn/fengdu/img-gongdeyinhang.png" alt="">
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="welcome">
 | 
			
		||||
      <div class="welcome-user">
 | 
			
		||||
        <span class="name">{{ user.realName || user.nickName }}</span>,
 | 
			
		||||
        <span v-if="!user.idNumber">欢迎来到功德银行!</span>
 | 
			
		||||
        <span v-else>欢迎进入{{ user.areaName }}!</span>
 | 
			
		||||
        
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="signin" @click="toPages('./signIn',status)">{{ status==1? '已签到':'签到' }}</div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="card-list">
 | 
			
		||||
      <div class="jfsq" @click="toPages('./integralApply')">
 | 
			
		||||
        <p>积分申请</p>
 | 
			
		||||
        <h4>好事自荐得积分</h4>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="jsrw" @click="toPages('./integralTask')">
 | 
			
		||||
        <p>积分任务</p>
 | 
			
		||||
        <h4>完成任务得积分</h4>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="jfph" @click="toPages('./integralRank')">
 | 
			
		||||
        <p>积分排行</p>
 | 
			
		||||
        <h4>社区荣誉榜</h4>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="jfsc" @click="toPages('/mods/AppRedemptionPoints/AppRedemptionPoints')">
 | 
			
		||||
        <p>积分商城</p>
 | 
			
		||||
        <h4>兑换得好物</h4>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="jfgs" @click="toPages('/mods/AppRedemptionPoints/pointsPublicity')">
 | 
			
		||||
        <p>积分公示</p>
 | 
			
		||||
        <h4>积分获取规则</h4>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="wdjf" @click="toPages('/pages/AppMine/myIntegral')">
 | 
			
		||||
        <p>我的积分</p>
 | 
			
		||||
        <h4>积分获取一目了然</h4>
 | 
			
		||||
      </div> 
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="handpick" v-if="list.length">
 | 
			
		||||
      <div class="title">
 | 
			
		||||
        <h1>精选动态</h1>
 | 
			
		||||
        <div class="more" v-if="allList.length > 3" @click="$linkTo('./handpick')">
 | 
			
		||||
          <span>更多</span>
 | 
			
		||||
          <u-icon name="arrow-right" color="#687DA6" size="28"></u-icon>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="list" v-if="list.length">
 | 
			
		||||
        <div class="card" v-for="(item,index) in list" :key="index" @click="$linkTo(`./pickDetail?id=${item.id}`)">
 | 
			
		||||
          <div class="title-info" v-if="item.girdName">
 | 
			
		||||
            {{item.girdName}}
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="top">
 | 
			
		||||
            <div class="left" >
 | 
			
		||||
              <div class="type-info">{{item.createUserName}}<span>{{item.title}}</span></div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="right" @click.stop="upCount(item.id,index)">
 | 
			
		||||
              <img :src="item.upStatus==0? 'https://cdn.cunwuyun.cn/wxmp/fengdu/zan.png':'https://cdn.cunwuyun.cn/wxmp/fengdu/zan-active.png'" alt="">
 | 
			
		||||
              <span>{{ item.upCount || 0 }}</span><span v-if="item.upCount > 99">+</span>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <p class="content-info">{{item.content}}</p>
 | 
			
		||||
          <div class="imgs" v-if="item.images.length">
 | 
			
		||||
            <image v-for="(img, i) in item.images" :key="i" class="banner" :src="img.url"/>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="imgs" v-if="!item.images.length && item.videos.length">
 | 
			
		||||
            <image v-for="(video, ins) in item.videos" :key="ins" class="banner" :src="video.facePicture.toString()"/>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { mapState } from 'vuex'
 | 
			
		||||
export default {
 | 
			
		||||
  name: "AppNewFarmerBank",
 | 
			
		||||
  appName: "功德银行",
 | 
			
		||||
  data() { 
 | 
			
		||||
    return {
 | 
			
		||||
      status: null,
 | 
			
		||||
      current: 1,
 | 
			
		||||
      list: [],
 | 
			
		||||
      allList: [],
 | 
			
		||||
      flag: false,
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user'])
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getList(moduleId) {
 | 
			
		||||
      this.$instance.post(`/app/appcontentinfo/list-web`,null,{
 | 
			
		||||
        params: {
 | 
			
		||||
          moduleId: moduleId,
 | 
			
		||||
          current: this.current,
 | 
			
		||||
          girdId: this.user.girdId,
 | 
			
		||||
          containContent: true,
 | 
			
		||||
        }
 | 
			
		||||
      }).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          this.allList = res.data.records
 | 
			
		||||
          let newList = res.data.records.length > 3 ? res.data.records.slice(0,3) : res.data.records
 | 
			
		||||
          let mapList = newList.map(e=> {
 | 
			
		||||
            
 | 
			
		||||
            return {
 | 
			
		||||
              ...e,
 | 
			
		||||
              images: e?.files.filter(i => (i.postfix == '.jpg' || i.postfix == '.jpeg' || i.postfix == '.png')),
 | 
			
		||||
              videos: e?.files.filter(i => (i.postfix == '.mp4' || i.postfix == '.MP4')),
 | 
			
		||||
            }
 | 
			
		||||
          })
 | 
			
		||||
          this.list = mapList.map(v=> {
 | 
			
		||||
            return {
 | 
			
		||||
              ...v,
 | 
			
		||||
              images: v.images.length > 3? v.images.slice(0, 3) : v.images,
 | 
			
		||||
              videos: v.videos.length > 3? v.videos.slice(0, 3) : v.videos,
 | 
			
		||||
              upStatus: 0
 | 
			
		||||
            }
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    handleBannerClick() {
 | 
			
		||||
      
 | 
			
		||||
    },
 | 
			
		||||
    // 点赞
 | 
			
		||||
    upCount(id,index) {
 | 
			
		||||
      if (this.flag) return
 | 
			
		||||
 | 
			
		||||
      this.flag = true
 | 
			
		||||
      this.$instance.post(`/app/appcontentinfo/supportById?id=${id}`).then(res=> {
 | 
			
		||||
        if(res?.code==0) {
 | 
			
		||||
          this.flag = false
 | 
			
		||||
          this.list[index].upStatus = 1
 | 
			
		||||
          this.$u.toast(`点赞成功`)
 | 
			
		||||
        }
 | 
			
		||||
      }).finally(() => this.flag = false)
 | 
			
		||||
    },
 | 
			
		||||
    toPages(url,status) {
 | 
			
		||||
      if(!this.user.idNumber) {
 | 
			
		||||
        this.$dialog.confirm({
 | 
			
		||||
          content: '您只有完成信息认证后,才可进行相关操作。',
 | 
			
		||||
          confirmText: '去认证'
 | 
			
		||||
        }).then(() => { 
 | 
			
		||||
          this.$linkTo('/pages/AppMine/userInfo')
 | 
			
		||||
        }).catch(() => {
 | 
			
		||||
        })
 | 
			
		||||
      } else {
 | 
			
		||||
        if(!status) {
 | 
			
		||||
          this.$linkTo(url)
 | 
			
		||||
        } else {
 | 
			
		||||
          // 停留
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    getStatus() {
 | 
			
		||||
      this.$instance.post(`/app/appwechatsigninfo/checkSign`).then(res=> {
 | 
			
		||||
        if(res?.data !== null) {
 | 
			
		||||
          this.status = 1
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    getModule() {
 | 
			
		||||
      this.$instance.post(`/app/appintegraluserapply/queryModuleByName`).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          this.getList(res.data)
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
  },
 | 
			
		||||
  onShow() {
 | 
			
		||||
    this.getStatus()
 | 
			
		||||
    this.getModule()
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.AppNewFarmerBank {
 | 
			
		||||
  padding-bottom: 20px;
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  .swiper-content {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 332px;
 | 
			
		||||
    padding: 32px 32px 0;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    img {
 | 
			
		||||
      width: 100%;
 | 
			
		||||
      height: 100%;
 | 
			
		||||
      border-radius: 16px;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .welcome {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 120px;
 | 
			
		||||
    padding: 0 32px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    .signin {
 | 
			
		||||
      width: 104px;
 | 
			
		||||
      height: 52px;
 | 
			
		||||
      line-height: 52px;
 | 
			
		||||
      border: 2px solid #2D7DFF;
 | 
			
		||||
      border-radius: 40px;
 | 
			
		||||
      color: #2D7DFF;
 | 
			
		||||
      text-align: center;
 | 
			
		||||
      font-size: 22px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
    }
 | 
			
		||||
    .welcome-user {
 | 
			
		||||
      width: calc(100% - 60px);
 | 
			
		||||
      font-size: 30px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
      font-family: "PingFang SC";
 | 
			
		||||
      .name {
 | 
			
		||||
        color: #2D7DFF;
 | 
			
		||||
        font-weight: 500;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .card-list {
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    padding: 0 32px;
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-wrap: wrap;
 | 
			
		||||
    .jfsq {
 | 
			
		||||
      background: url('https://cdn.cunwuyun.cn/fengdu/img-jifenshenqing.png') no-repeat ;
 | 
			
		||||
      color: #DF863E;
 | 
			
		||||
    }
 | 
			
		||||
    .jsrw {
 | 
			
		||||
      background: url('https://cdn.cunwuyun.cn/fengdu/img-jifenrenwu.png') no-repeat;
 | 
			
		||||
      color: #2D7DFF;
 | 
			
		||||
    }
 | 
			
		||||
    .jfph {
 | 
			
		||||
      background: url('https://cdn.cunwuyun.cn/fengdu/img-jifenpaihang.png') no-repeat;
 | 
			
		||||
      color: #338A77;
 | 
			
		||||
    }
 | 
			
		||||
    .jfsc {
 | 
			
		||||
      background: url('https://cdn.cunwuyun.cn/fengdu/img-jifenshangcheng.png') no-repeat;
 | 
			
		||||
      color: #D9606E;
 | 
			
		||||
    }
 | 
			
		||||
    .jfgs {
 | 
			
		||||
      background: url('https://cdn.cunwuyun.cn/fengdu/img-jifengongshi.png') no-repeat;
 | 
			
		||||
      color: #484899;
 | 
			
		||||
    }
 | 
			
		||||
    .wdjf {
 | 
			
		||||
      background: url('https://cdn.cunwuyun.cn/fengdu/img-wodejifen.png') no-repeat;
 | 
			
		||||
      color: #DA9A07;
 | 
			
		||||
    }
 | 
			
		||||
    & > div:nth-child(2n+1) {
 | 
			
		||||
      margin-right: 30px;
 | 
			
		||||
    } 
 | 
			
		||||
 | 
			
		||||
    div {
 | 
			
		||||
      background-size: 100% 100%;
 | 
			
		||||
      width: 328px;
 | 
			
		||||
      height: 144px;
 | 
			
		||||
      margin-bottom: 32px;
 | 
			
		||||
      padding: 28px 32px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      p {
 | 
			
		||||
        font-size: 30px;
 | 
			
		||||
        font-weight: 600;
 | 
			
		||||
      }
 | 
			
		||||
      h4 {
 | 
			
		||||
        font-size: 20px;
 | 
			
		||||
        font-weight: 400;
 | 
			
		||||
        margin-top: 8px;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .handpick {
 | 
			
		||||
    padding: 0 32px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    .title {
 | 
			
		||||
      margin: 32px 0;
 | 
			
		||||
      display: flex;
 | 
			
		||||
      justify-content: space-between;
 | 
			
		||||
      align-items: center;
 | 
			
		||||
      h1 {
 | 
			
		||||
        font-size: 34px;
 | 
			
		||||
        font-weight: 500;
 | 
			
		||||
      }
 | 
			
		||||
      .more {
 | 
			
		||||
        width: 200px;
 | 
			
		||||
        color: #687DA6;
 | 
			
		||||
        font-size: 28px;
 | 
			
		||||
        font-weight: 400;
 | 
			
		||||
        text-align: right;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .list {
 | 
			
		||||
      .card {
 | 
			
		||||
        margin-bottom: 24px;
 | 
			
		||||
        padding: 32px 24px;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        background: #FFF;
 | 
			
		||||
        border-radius: 12px;
 | 
			
		||||
        .title-info {
 | 
			
		||||
          font-family: PingFangSC-SNaNpxibold;
 | 
			
		||||
          font-weight: 600;
 | 
			
		||||
          font-size: 34px;
 | 
			
		||||
          color: #333;
 | 
			
		||||
          letter-spacing: 0;
 | 
			
		||||
          line-height: 40px;
 | 
			
		||||
          margin-bottom: 16px;
 | 
			
		||||
        }
 | 
			
		||||
        .type-info {
 | 
			
		||||
          font-family: PingFangSC-Regular;
 | 
			
		||||
          font-size: 34px;
 | 
			
		||||
          color: #687DA6;
 | 
			
		||||
          line-height: 40px;
 | 
			
		||||
          span {
 | 
			
		||||
            display: inline-block;
 | 
			
		||||
            font-family: PingFangSC-Regular;
 | 
			
		||||
            font-size: 26px;
 | 
			
		||||
            color: #666;
 | 
			
		||||
            line-height: 40px;
 | 
			
		||||
            margin-left: 20px;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
        .top {
 | 
			
		||||
          display: flex;
 | 
			
		||||
          justify-content: space-between;
 | 
			
		||||
          margin-bottom: 28px;
 | 
			
		||||
          .left {
 | 
			
		||||
            width: calc(100% - 100px);
 | 
			
		||||
            p {
 | 
			
		||||
              overflow:hidden; 
 | 
			
		||||
              text-overflow: ellipsis;
 | 
			
		||||
              display: -webkit-box;
 | 
			
		||||
              -webkit-box-orient: vertical;
 | 
			
		||||
              -webkit-line-clamp: 2;
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
          .right {
 | 
			
		||||
            width: 100px;
 | 
			
		||||
            text-align: right;
 | 
			
		||||
            img {
 | 
			
		||||
              width: 40px;
 | 
			
		||||
              height: 40px;
 | 
			
		||||
              vertical-align: bottom;
 | 
			
		||||
            }
 | 
			
		||||
            span {
 | 
			
		||||
              font-size: 28px;
 | 
			
		||||
              font-weight: 400;
 | 
			
		||||
              color: #687DA6;
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
        .content-info {
 | 
			
		||||
          word-break: break-all;
 | 
			
		||||
          text-overflow: ellipsis;
 | 
			
		||||
          display: -webkit-box;
 | 
			
		||||
          -webkit-box-orient: vertical;
 | 
			
		||||
          -webkit-line-clamp: 2;
 | 
			
		||||
          overflow: hidden;
 | 
			
		||||
          font-family: PingFangSC-Regular;
 | 
			
		||||
          font-size: 28px;
 | 
			
		||||
          color: #333;
 | 
			
		||||
          line-height: 42px;
 | 
			
		||||
          margin-bottom: 24px;
 | 
			
		||||
        }
 | 
			
		||||
        .imgs {
 | 
			
		||||
          display: flex;
 | 
			
		||||
          flex-wrap: wrap;
 | 
			
		||||
          background: #FFF;
 | 
			
		||||
 | 
			
		||||
          image,
 | 
			
		||||
          video {
 | 
			
		||||
            width: 200px;
 | 
			
		||||
            height: 200px;
 | 
			
		||||
            margin: 0 12px 0 0;
 | 
			
		||||
          }
 | 
			
		||||
          image:nth-child(3n + 0),
 | 
			
		||||
          video:nth-child(3n + 0) {
 | 
			
		||||
            margin: 0;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,199 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="handpick">
 | 
			
		||||
    <div class="list" v-for="(item,index) in list" :key="index" @click="$linkTo(`./pickDetail?id=${item.id}`)">
 | 
			
		||||
      <div class="title-info" v-if="item.girdName">
 | 
			
		||||
        {{item.girdName}}
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="top">
 | 
			
		||||
        <div class="left" >
 | 
			
		||||
          <div class="type-info">{{item.createUserName}}<span>{{item.title}}</span></div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="right" @click.stop="upCount(item.id, index)">
 | 
			
		||||
          <img :src="item.upStatus == 0 ? 'https://cdn.cunwuyun.cn/wxmp/fengdu/zan.png' : 'https://cdn.cunwuyun.cn/wxmp/fengdu/zan-active.png'" alt="">
 | 
			
		||||
          <span>{{ item.upCount || 0 }}</span><span v-if="item.upCount > 99">+</span>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <p class="content-info">{{item.content}}</p>
 | 
			
		||||
      <div class="imgs" v-if="item.images.length">
 | 
			
		||||
        <image v-for="(img, i) in item.images" :key="i" class="banner" :src="img.url"/>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="imgs" v-if="!item.images.length && item.videos.length">
 | 
			
		||||
        <image v-for="(video, i) in item.videos" :key="i" class="banner" :src="video.facePicture.toString()"/>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { mapState } from 'vuex'
 | 
			
		||||
export default {
 | 
			
		||||
  name: "handpick",
 | 
			
		||||
  appName: "精选动态",
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user'])
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      list: [],
 | 
			
		||||
      flag: false,
 | 
			
		||||
      current: 1,
 | 
			
		||||
      moduleId: ''
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getModule() {
 | 
			
		||||
      this.$instance.post(`/app/appintegraluserapply/queryModuleByName`).then(res => {
 | 
			
		||||
        if (res?.data) {
 | 
			
		||||
          this.moduleId = res.data
 | 
			
		||||
          this.getList()
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    getList() {
 | 
			
		||||
      this.$instance.post(`/app/appcontentinfo/list-web`, null, {
 | 
			
		||||
        params: {
 | 
			
		||||
          moduleId: this.moduleId,
 | 
			
		||||
          current: this.current,
 | 
			
		||||
          girdId: this.user.girdId,
 | 
			
		||||
          containContent: true,
 | 
			
		||||
        }
 | 
			
		||||
      }).then(res => {
 | 
			
		||||
        if (res?.data) {
 | 
			
		||||
          this.allList = res.data.records
 | 
			
		||||
          let newList = this.current==1? res.data.records : [...this.list, ...res.data.records]
 | 
			
		||||
          let mapList = newList.map(e => {
 | 
			
		||||
            return {
 | 
			
		||||
              ...e,
 | 
			
		||||
              images: e?.files.filter(i => (i.postfix == '.jpg' || i.postfix == '.jpeg' || i.postfix == '.png')),
 | 
			
		||||
              videos: e?.files.filter(i => (i.postfix == '.mp4' || i.postfix == '.MP4')),
 | 
			
		||||
            }
 | 
			
		||||
          })
 | 
			
		||||
          this.list = mapList.map(v => {
 | 
			
		||||
            return {
 | 
			
		||||
              ...v,
 | 
			
		||||
              images: v.images.length > 3 ? v.images.slice(0, 3) : v.images,
 | 
			
		||||
              videos: v.videos.length > 3 ? v.videos.slice(0, 3) : v.videos,
 | 
			
		||||
              upStatus: 0
 | 
			
		||||
            }
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    // 点赞
 | 
			
		||||
    upCount(id,index) {
 | 
			
		||||
      if (this.flag) return
 | 
			
		||||
 | 
			
		||||
      this.flag = true
 | 
			
		||||
      this.$instance.post(`/app/appcontentinfo/supportById?id=${id}`).then(res => {
 | 
			
		||||
        if (res?.code == 0) {
 | 
			
		||||
          this.flag = false
 | 
			
		||||
          this.list[index].upStatus = 1
 | 
			
		||||
          this.$u.toast(`点赞成功`)
 | 
			
		||||
        }
 | 
			
		||||
      }).finally(() => this.flag = false)
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  onShow() {
 | 
			
		||||
    this.getModule()
 | 
			
		||||
  },
 | 
			
		||||
  onReachBottom() {
 | 
			
		||||
    this.current++
 | 
			
		||||
    this.getList()
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.handpick {
 | 
			
		||||
  padding: 24px 32px;
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  .list {
 | 
			
		||||
    padding: 32px 24px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    border-radius: 12px;
 | 
			
		||||
    margin-bottom: 24px;
 | 
			
		||||
    .title-info {
 | 
			
		||||
      font-family: PingFangSC-SNaNpxibold;
 | 
			
		||||
      font-weight: 600;
 | 
			
		||||
      font-size: 34px;
 | 
			
		||||
      color: #333;
 | 
			
		||||
      letter-spacing: 0;
 | 
			
		||||
      line-height: 40px;
 | 
			
		||||
      margin-bottom: 16px;
 | 
			
		||||
    }
 | 
			
		||||
    .type-info {
 | 
			
		||||
      font-family: PingFangSC-Regular;
 | 
			
		||||
      font-size: 34px;
 | 
			
		||||
      color: #687DA6;
 | 
			
		||||
      line-height: 40px;
 | 
			
		||||
      span {
 | 
			
		||||
        display: inline-block;
 | 
			
		||||
        font-family: PingFangSC-Regular;
 | 
			
		||||
        font-size: 26px;
 | 
			
		||||
        color: #666;
 | 
			
		||||
        line-height: 40px;
 | 
			
		||||
        margin-left: 20px;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    .top {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      justify-content: space-between;
 | 
			
		||||
      margin-bottom: 28px;
 | 
			
		||||
      .left {
 | 
			
		||||
        width: calc(100% - 100px);
 | 
			
		||||
        p {
 | 
			
		||||
          overflow:hidden; 
 | 
			
		||||
          text-overflow: ellipsis;
 | 
			
		||||
          display: -webkit-box;
 | 
			
		||||
          -webkit-box-orient: vertical;
 | 
			
		||||
          -webkit-line-clamp: 2;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      .right {
 | 
			
		||||
        width: 100px;
 | 
			
		||||
        text-align: right;
 | 
			
		||||
        img {
 | 
			
		||||
          width: 40px;
 | 
			
		||||
          height: 40px;
 | 
			
		||||
          vertical-align: bottom;
 | 
			
		||||
        }
 | 
			
		||||
        span {
 | 
			
		||||
          font-size: 28px;
 | 
			
		||||
          font-weight: 400;
 | 
			
		||||
          color: #687DA6;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    .content-info {
 | 
			
		||||
      word-break: break-all;
 | 
			
		||||
      text-overflow: ellipsis;
 | 
			
		||||
      display: -webkit-box;
 | 
			
		||||
      -webkit-box-orient: vertical;
 | 
			
		||||
      -webkit-line-clamp: 2;
 | 
			
		||||
      overflow: hidden;
 | 
			
		||||
      font-family: PingFangSC-Regular;
 | 
			
		||||
      font-size: 28px;
 | 
			
		||||
      color: #333;
 | 
			
		||||
      line-height: 42px;
 | 
			
		||||
      margin-bottom: 24px;
 | 
			
		||||
    }
 | 
			
		||||
    .imgs {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      flex-wrap: wrap;
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
 | 
			
		||||
      image,
 | 
			
		||||
      video {
 | 
			
		||||
        width: 200px;
 | 
			
		||||
        height: 200px;
 | 
			
		||||
        margin: 0 12px 0 0;
 | 
			
		||||
      }
 | 
			
		||||
      image:nth-child(3n + 0),
 | 
			
		||||
      video:nth-child(3n + 0) {
 | 
			
		||||
        margin: 0;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,225 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="integralAdd">
 | 
			
		||||
    <div class="item">
 | 
			
		||||
      <div class="left">事件类型</div>
 | 
			
		||||
      <AiSelect class="right" :list="dictList" v-model="form.applyItemId"></AiSelect>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="items">
 | 
			
		||||
      <p>详情描述</p>
 | 
			
		||||
      <textarea v-model="form.content" :maxlength="300" placeholder="请输入详细描述..."></textarea>
 | 
			
		||||
      <div class="tips">{{ form.content.length }}/300</div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="items">
 | 
			
		||||
      <p>上传图片</p>
 | 
			
		||||
      <div class="upload">
 | 
			
		||||
        <AiUploader :def.sync="form.images" placeholder="上传图片" type="image" :limit="9" multiple></AiUploader>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="tips left">可上传图片,最多上传9张。</div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="items">
 | 
			
		||||
      <p>上传视频</p>
 | 
			
		||||
      <div class="upload">
 | 
			
		||||
        <AiUploader :def.sync="form.videos" placeholder="上传视频" type="video" :limit="9" multiple :size="30 * 1024 * 1024"></AiUploader>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="tips left">可上传视频,最大30M。</div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="item">
 | 
			
		||||
      <div class="left">所属网格</div>
 | 
			
		||||
      <AiPagePicker type="gird" v-model="form.girdId" :params="{ formType: 2 }" @select="handleSelectGrid" nodeKey="id">
 | 
			
		||||
        <AiMore v-model="form.girdName"/>
 | 
			
		||||
      </AiPagePicker>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="btn-wrapper">
 | 
			
		||||
      <div class="btn" hover-class="text-hover" @click="submit">提交申请</div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import {mapActions, mapState} from "vuex";
 | 
			
		||||
export default {
 | 
			
		||||
  name: "integralAdd",
 | 
			
		||||
  appName: '积分申请',
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      form: {
 | 
			
		||||
        applyItemId: '',
 | 
			
		||||
        applyIntegral: '',
 | 
			
		||||
        applyItemName: '',
 | 
			
		||||
        content: '',
 | 
			
		||||
        files: [],
 | 
			
		||||
        images: [],
 | 
			
		||||
        videos: [],
 | 
			
		||||
        girdId: '',
 | 
			
		||||
        girdName: '',
 | 
			
		||||
      },
 | 
			
		||||
      list: [],
 | 
			
		||||
      dictList: [],
 | 
			
		||||
      flag: false,
 | 
			
		||||
      id: '',
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user']),
 | 
			
		||||
  },
 | 
			
		||||
  onLoad(o) {
 | 
			
		||||
    if(o.id) {
 | 
			
		||||
      this.id = o.id
 | 
			
		||||
      this.getDetail()
 | 
			
		||||
    }
 | 
			
		||||
    this.$dict.load(['clapEventStatus'])
 | 
			
		||||
    this.getAuth()
 | 
			
		||||
    this.form.girdId = this.user.girdId
 | 
			
		||||
    this.form.girdName = this.user.girdName
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
    'form.applyItemId'(v) {
 | 
			
		||||
      if(v) {
 | 
			
		||||
        this.form.applyItemName = this.list.filter(e=> (e.id==v))[0].ruleName
 | 
			
		||||
        this.form.applyIntegral = this.list.filter(e => (e.id == v))[0].integral
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    ...mapActions(['getUserInfo']),
 | 
			
		||||
    submit() {
 | 
			
		||||
      if(this.flag) return
 | 
			
		||||
 | 
			
		||||
      if (!this.form.applyItemId) {
 | 
			
		||||
        return this.$u.toast('请选择事件类型')
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (!this.form.content) {
 | 
			
		||||
        return this.$u.toast('请输入详细描述')
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if ((this.form.images.length + this.form.videos.length) > 9) {
 | 
			
		||||
        return this.$u.toast('图片和视频不得超过9个')
 | 
			
		||||
      } else {
 | 
			
		||||
        this.form.files = [...this.form.images,...this.form.videos]
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (!this.form.girdId) {
 | 
			
		||||
        return this.$u.toast('请选择所属网格')
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      this.flag = true
 | 
			
		||||
      this.$instance.post(`/app/appintegraluserapply/addOrUpdate`,{
 | 
			
		||||
        ...this.form
 | 
			
		||||
      }).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          this.$u.toast('提交成功')
 | 
			
		||||
          uni.$emit('edit')
 | 
			
		||||
          setTimeout(()=> {
 | 
			
		||||
            uni.navigateBack()
 | 
			
		||||
          },500)
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    // 事件类型
 | 
			
		||||
    getType() {
 | 
			
		||||
      this.$instance.post(`/app/appintegralrule/listByFdAndGirdInfo`).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          this.list = res.data
 | 
			
		||||
          this.dictList = res.data.map(v => {
 | 
			
		||||
            return {
 | 
			
		||||
              value: v.id,
 | 
			
		||||
              label: v.ruleName
 | 
			
		||||
            }
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    handleSelectGrid(v) {
 | 
			
		||||
      this.form.girdName = v.girdName
 | 
			
		||||
      this.form.girdId = v.girdId
 | 
			
		||||
    },
 | 
			
		||||
    getDetail() {
 | 
			
		||||
      this.$instance.post(`/app/appintegraluserapply/queryDetailById?id=${this.id}`).then(res => {
 | 
			
		||||
        if (res?.data) {
 | 
			
		||||
          this.form = res.data
 | 
			
		||||
          this.form.images = res.data.files.filter(e => (['jpeg', 'jpg', 'png'].includes(e.postfix.split('.')[1])))
 | 
			
		||||
          this.form.videos = res.data.files.filter(e => (['mp4', 'MOV'].includes(e.postfix.split('.')[1])))
 | 
			
		||||
          this.form.files = []
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    getAuth() {
 | 
			
		||||
      this.$nextTick(() => {
 | 
			
		||||
        this.getUserInfo('qujing')
 | 
			
		||||
        this.getType()
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.integralAdd {
 | 
			
		||||
  padding: 24px 0 120px 0;
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  .item {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    display: flex;
 | 
			
		||||
    justify-content: space-between;
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    padding: 24px 32px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    margin-bottom: 24px;
 | 
			
		||||
    .left {
 | 
			
		||||
      width: 250px;;
 | 
			
		||||
    }
 | 
			
		||||
    .right {
 | 
			
		||||
      width: calc(100% - 200px);
 | 
			
		||||
      text-align: right;
 | 
			
		||||
    }
 | 
			
		||||
    ::v-deep .AiSelect {
 | 
			
		||||
      float: right;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  .items {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    margin-bottom: 24px;
 | 
			
		||||
    p {
 | 
			
		||||
      padding: 24px 32px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      border: 1px solid #EEEEEE;
 | 
			
		||||
    }
 | 
			
		||||
    textarea {
 | 
			
		||||
      padding: 24px 32px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      width: 100%;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .tips {
 | 
			
		||||
      padding: 12px 32px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      text-align: right;
 | 
			
		||||
      color: #999999;
 | 
			
		||||
      font-size: 24px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
    }
 | 
			
		||||
    .left {
 | 
			
		||||
      text-align: left;
 | 
			
		||||
    }
 | 
			
		||||
    .upload {
 | 
			
		||||
      padding: 24px 32px 0 32px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::v-deep .btn-wrapper {
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::v-deep .btn-wrapper .btn {
 | 
			
		||||
    height: 80px;
 | 
			
		||||
    line-height: 80px;
 | 
			
		||||
    border-radius: 40px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,125 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="integralApply">
 | 
			
		||||
    <div class="card-list" v-if="list.length">
 | 
			
		||||
      <div class="card" v-for="(item,index) in list" :key="index" @click="$linkTo(`./integralDetail?id=${item.id}`)">
 | 
			
		||||
        <div class="left">
 | 
			
		||||
          <div class="title">{{ item.applyItemName }}</div>
 | 
			
		||||
          <div class="time">{{ item.createTime.slice(0,16) }}</div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="right">
 | 
			
		||||
          <div class="integral">+{{ item.applyIntegral }}</div>
 | 
			
		||||
          <div class="status" :class="item.status==0? 'status0':item.status==1? 'status1':'status2'">{{ $dict.getLabel('appIntegralApplyEventStatus',item.status) }}</div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <AiEmpty :description="`暂无数据`" class="emptyWrap" v-else/>
 | 
			
		||||
    <div class="btn-wrapper">
 | 
			
		||||
      <div class="btn" hover-class="text-hover" @click="toAdd">积分申请</div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
export default {
 | 
			
		||||
  name: "integralApply",
 | 
			
		||||
  appName: "积分申请",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      current: 1,
 | 
			
		||||
      list: [],
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    toAdd() {
 | 
			
		||||
      this.$linkTo('./integralAdd')
 | 
			
		||||
    },
 | 
			
		||||
    getList() {
 | 
			
		||||
      this.$instance.post(`/app/appintegraluserapply/listByAppletUser`,null,{
 | 
			
		||||
        params: {
 | 
			
		||||
          current: this.current,
 | 
			
		||||
          size: 10
 | 
			
		||||
        }
 | 
			
		||||
      }).then(res => {
 | 
			
		||||
        if (res?.data) {
 | 
			
		||||
          this.list = this.current==1 ? res.data.records: [...this.list, ...res.data.records]
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  onShow() {
 | 
			
		||||
    this.$dict.load('appIntegralApplyEventStatus').then(()=> {
 | 
			
		||||
      this.getList()
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  onReachBottom() {
 | 
			
		||||
    this.current++ 
 | 
			
		||||
    this.getList()
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.integralApply {
 | 
			
		||||
  padding: 24px 0 130px 0;
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
 | 
			
		||||
  .card-list {
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    .card {
 | 
			
		||||
      padding: 32px 40px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      border-bottom: 1px solid #EEEEEE;
 | 
			
		||||
      display: flex;
 | 
			
		||||
      align-items: center;
 | 
			
		||||
      .left {
 | 
			
		||||
        width: calc(100% - 200px);
 | 
			
		||||
        .title {
 | 
			
		||||
          font-size: 32px;
 | 
			
		||||
          font-weight: 600;
 | 
			
		||||
        }
 | 
			
		||||
        .time {
 | 
			
		||||
          font-size: 28px;
 | 
			
		||||
          font-weight: 400;
 | 
			
		||||
          color: #666666;
 | 
			
		||||
          margin-top: 8px;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      .right {
 | 
			
		||||
        width: 200px;
 | 
			
		||||
        text-align: right;
 | 
			
		||||
        .integral {
 | 
			
		||||
          font-size: 38px;
 | 
			
		||||
          font-weight: 600;
 | 
			
		||||
        }
 | 
			
		||||
        .status {
 | 
			
		||||
          font-size: 28px;
 | 
			
		||||
          font-weight: 400;
 | 
			
		||||
          margin-top: 8px;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .status0 {
 | 
			
		||||
          color: #FF9A40;
 | 
			
		||||
        }
 | 
			
		||||
        .status1 {
 | 
			
		||||
          color: #5AAD6A;
 | 
			
		||||
        }
 | 
			
		||||
        .status2 {
 | 
			
		||||
          color: #CD413A;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::v-deep .btn-wrapper {
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::v-deep .btn-wrapper .btn {
 | 
			
		||||
    height: 80px;
 | 
			
		||||
    line-height: 80px;
 | 
			
		||||
    border-radius: 40px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,158 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="integralDetail">
 | 
			
		||||
    <div class="detail">
 | 
			
		||||
      <div class="title">
 | 
			
		||||
        <h1>{{ info.applyItemName }}</h1>
 | 
			
		||||
        <p :class="info.status==0?'status0':info.status==1?'status1':'status2'">{{ $dict.getLabel('appIntegralApplyEventStatus', info.status) }}</p>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="content">{{ info.content }}</div>
 | 
			
		||||
      <div class="imgs" v-if="images.length">
 | 
			
		||||
        <image v-for="(img, i) in images" @click="preview(img.url,images)" :key="i" class="banner" :src="img.url"/>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="imgs" v-if="videos.length">
 | 
			
		||||
        <video v-for="(video, ins) in videos" :key="ins" class="file-img" :src="video.url"/>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
      <div class="refuse" v-if="info.status == 2">
 | 
			
		||||
        <p><span></span>未通过理由</p>
 | 
			
		||||
        <div class="desc">{{ info.auditDesc }}</div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="btn-wrapper" v-if="info.status==2">
 | 
			
		||||
      <div class="btn" hover-class="text-hover" @click="$linkTo(`./integralAdd?id=${info.id}`)">修改</div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
export default {
 | 
			
		||||
  name: "integralDetail",
 | 
			
		||||
  appName: "积分申请详情",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      id: '',
 | 
			
		||||
      info: {},
 | 
			
		||||
      images: [],
 | 
			
		||||
      videos: [],
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getDetail() {
 | 
			
		||||
      this.$instance.post(`/app/appintegraluserapply/queryDetailById?id=${this.id}`).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          this.info = res.data
 | 
			
		||||
          this.images = res.data.files.filter(e=> (['jpeg','jpg','png'].includes(e.postfix.split('.')[1])))
 | 
			
		||||
          this.videos = res.data.files.filter(e => (['mp4', 'MOV'].includes(e.postfix.split('.')[1])))
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    preview(url, imgs) {
 | 
			
		||||
      uni.previewImage({
 | 
			
		||||
        urls: imgs.map((v) => v.url),
 | 
			
		||||
        current: url,
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  onLoad(o) {
 | 
			
		||||
    this.id = o.id
 | 
			
		||||
    this.getDetail()
 | 
			
		||||
    uni.$on('edit',()=> {
 | 
			
		||||
      this.getDetail()
 | 
			
		||||
    })
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.integralDetail {
 | 
			
		||||
  padding: 24px 0 120px 0;
 | 
			
		||||
 | 
			
		||||
  .detail {
 | 
			
		||||
    .title {
 | 
			
		||||
      padding: 32px 32px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      display: flex;
 | 
			
		||||
      justify-content: space-between;
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
      h1 {
 | 
			
		||||
        font-size: 34px;
 | 
			
		||||
        font-weight: 600;
 | 
			
		||||
      }
 | 
			
		||||
      p {
 | 
			
		||||
        font-size: 28px;
 | 
			
		||||
        font-weight: 400;
 | 
			
		||||
      }
 | 
			
		||||
      .status0 {
 | 
			
		||||
        color: #FF9A40;
 | 
			
		||||
      }
 | 
			
		||||
      .status1 {
 | 
			
		||||
        color: #5AAD6A;
 | 
			
		||||
      }
 | 
			
		||||
      .status2 {
 | 
			
		||||
        color: #CD413A;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    .content {
 | 
			
		||||
      font-size: 28px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
      padding: 0 32px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
    }
 | 
			
		||||
    .imgs {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      flex-wrap: wrap;
 | 
			
		||||
      padding: 20px 32px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
 | 
			
		||||
      image,
 | 
			
		||||
      video {
 | 
			
		||||
        width: 226px;
 | 
			
		||||
        height: 226px;
 | 
			
		||||
        margin: 0 4px 4px 0;
 | 
			
		||||
      }
 | 
			
		||||
      image:nth-child(3n + 0),
 | 
			
		||||
      video:nth-child(3n + 0) {
 | 
			
		||||
        margin: 0;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    .refuse {
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
      padding: 32px 32px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      margin-top: 24px;
 | 
			
		||||
      p {
 | 
			
		||||
        margin-bottom: 32px;
 | 
			
		||||
        font-size: 30px;
 | 
			
		||||
        font-weight: 400;
 | 
			
		||||
        color: #333333;
 | 
			
		||||
        span {
 | 
			
		||||
          display: inline-block;
 | 
			
		||||
          width: 12px;
 | 
			
		||||
          height: 12px;
 | 
			
		||||
          background: #CD413A;
 | 
			
		||||
          border-radius: 50%;
 | 
			
		||||
          margin-right: 8px;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      .desc {
 | 
			
		||||
        font-size: 28px;
 | 
			
		||||
        font-weight: 400;
 | 
			
		||||
        color: #666666;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::v-deep .btn-wrapper {
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::v-deep .btn-wrapper .btn {
 | 
			
		||||
    height: 80px;
 | 
			
		||||
    line-height: 80px;
 | 
			
		||||
    border-radius: 40px;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,418 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="integralRank" v-if="pageShow">
 | 
			
		||||
    <div class="credit-points">
 | 
			
		||||
      <div class="fixed-top">
 | 
			
		||||
        <div class="header-tab">
 | 
			
		||||
          <div class="tab-item" :class="{ active: tabIndex == index }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index)">{{ item }}<span
 | 
			
		||||
              class="active-line" v-if="tabIndex == index"></span></div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="rank">
 | 
			
		||||
        <div class="header-content" v-if="userInfo.length">
 | 
			
		||||
          <div class="item">
 | 
			
		||||
            <span class="item-num">{{ inx + 1 }}</span>
 | 
			
		||||
            <image :src="userInfo[0].avatar_url" alt="" class="user-img mar-b4" v-if="userInfo[0].avatar_url" />
 | 
			
		||||
            <div class="user-name-bg mar-b4 mar-r24" v-else>{{ formatName(userInfo[0].name) }}</div>
 | 
			
		||||
            <span class="item-name">{{ userInfo[0].name }}</span>
 | 
			
		||||
            <span class="item-point">{{ userInfo[0].integral }}</span>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="faultage"></div>
 | 
			
		||||
        <div>
 | 
			
		||||
          <div class="ranking-content" v-if="list && list.length">
 | 
			
		||||
            <div class="item" v-if="list.length > 1">
 | 
			
		||||
              <img src="https://cdn.cunwuyun.cn/dvcp/credit/2.png" alt="" class="top-img">
 | 
			
		||||
              <img :src="list[1].avatar_url" alt="" class="user-img mar-b4" v-if="list[1].avatar_url">
 | 
			
		||||
              <div class="user-name-bg mar-b4" v-else>{{ formatName(list[1].name) }}</div>
 | 
			
		||||
              <p class="user-name mar-b8">{{ list[1].name }}</p>
 | 
			
		||||
              <p class="item-num">{{ list[1].integral }}</p>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="item-top item" v-if="list.length > 0">
 | 
			
		||||
              <img src="https://cdn.cunwuyun.cn/dvcp/credit/1.png" alt="" class="top-img-one">
 | 
			
		||||
              <img :src="list[0].avatar_url" alt="" class="user-img mar-b4" v-if="list[0].avatar_url">
 | 
			
		||||
              <div class="user-name-bg mar-b4" v-else>{{ formatName(list[0].name) }}</div>
 | 
			
		||||
              <p class="user-name mar-b8">{{ list[0].name }}</p>
 | 
			
		||||
              <p class="item-num">{{ list[0].integral }}</p>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="item" v-if="list.length > 2">
 | 
			
		||||
              <img src="https://cdn.cunwuyun.cn/dvcp/credit/3.png" alt="" class="top-img">
 | 
			
		||||
              <img :src="list[2].avatar_url" alt="" class="user-img mar-b4" v-if="list[2].avatar_url">
 | 
			
		||||
              <div class="user-name-bg mar-b4" v-else>{{ formatName(list[2].name) }}</div>
 | 
			
		||||
              <p class="user-name mar-b8">{{ list[2].name }}</p>
 | 
			
		||||
              <p class="item-num">{{ list[2].integral }}</p>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="ranking-list" v-if="list && list.length">
 | 
			
		||||
            <div class="item" v-for="(item, index) in list" :key="index" v-if="index > 2">
 | 
			
		||||
              <span class="item-num">{{ index+1 }}</span>
 | 
			
		||||
              <img :src="item.avatar_url" alt="" class="user-img mar-b4" v-if="item.avatar_url">
 | 
			
		||||
              <div class="user-name-bg mar-b4 mar-r24" v-else>{{ formatName(item.name) }}</div>
 | 
			
		||||
              <span class="item-name">{{ item.name }}</span>
 | 
			
		||||
              <span class="item-point">{{ item.integral }}</span>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
import { mapState } from 'vuex'
 | 
			
		||||
export default {
 | 
			
		||||
  name: "integralRank",
 | 
			
		||||
  appName: "积分排行",
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user', 'token'])
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      tabList: ['总榜','月榜','周榜'],
 | 
			
		||||
      tabIndex: 0,
 | 
			
		||||
      current: 1,
 | 
			
		||||
      userInfo: {},
 | 
			
		||||
      inx: 0,
 | 
			
		||||
      pageShow: false,
 | 
			
		||||
      list: []
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    this.getList()
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user', 'token'])
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    tabClick(index) {
 | 
			
		||||
      this.tabIndex = index
 | 
			
		||||
      this.getList()
 | 
			
		||||
    },
 | 
			
		||||
    getList() {// 积分排行
 | 
			
		||||
      this.list = {}
 | 
			
		||||
      var url = `/app/appintegraluser/integralSortFD?type=${this.tabIndex}&size=50&areaId=${this.user.areaId}`  //积分排行  
 | 
			
		||||
      this.$instance.post(url).then(res => {
 | 
			
		||||
        if (res.code === 0) {
 | 
			
		||||
          this.list = res.data.map(e=> ({...e, index: e.index}))
 | 
			
		||||
          this.userInfo = res.data.filter(e => e.open_id === this.user.openId)
 | 
			
		||||
          this.inx = res.data.findIndex(e=> e.open_id == this.user.openId)
 | 
			
		||||
          this.pageShow = true
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    formatName(name) {
 | 
			
		||||
      if (name == undefined) {
 | 
			
		||||
        return
 | 
			
		||||
      }
 | 
			
		||||
      return name.substr(name.length - 2, name.length > 2 ? (name.length - 1) : name.length)
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  onReachBottom() {
 | 
			
		||||
    // if (this.list.length < 50) {
 | 
			
		||||
    //   this.current++;
 | 
			
		||||
    //   this.getList()
 | 
			
		||||
    // }
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
<style scoped lang="scss">
 | 
			
		||||
@import "~dvcp-wui/common";
 | 
			
		||||
 | 
			
		||||
.integralRank {
 | 
			
		||||
  width: 100vw;
 | 
			
		||||
  overflow-x: hidden;
 | 
			
		||||
  background-color: #f3f6f9;
 | 
			
		||||
 | 
			
		||||
  ::v-deep .header-tab {
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    .tab-item {
 | 
			
		||||
      color: #222222;
 | 
			
		||||
      font-size: 30px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
    }
 | 
			
		||||
    .active {
 | 
			
		||||
      font-size: 34px;
 | 
			
		||||
      font-weight: 500;
 | 
			
		||||
    }
 | 
			
		||||
    .active-line {
 | 
			
		||||
      background: #2D7DFF;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .fixed-top {
 | 
			
		||||
    z-index: 999;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .rank {
 | 
			
		||||
    width: 100vw;
 | 
			
		||||
    overflow-x: hidden;
 | 
			
		||||
    height: calc(100% - 136px);
 | 
			
		||||
    margin-top: 96px;
 | 
			
		||||
 | 
			
		||||
    .header-content {
 | 
			
		||||
      .item {
 | 
			
		||||
        width: 100%;
 | 
			
		||||
        height: 120px;
 | 
			
		||||
        line-height: 120px;
 | 
			
		||||
        background: #FFF;
 | 
			
		||||
        padding: 0 64px;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        border: 4px solid #2d7dffff;
 | 
			
		||||
 | 
			
		||||
        .item-num {
 | 
			
		||||
          display: inline-block;
 | 
			
		||||
          width: 68px;
 | 
			
		||||
          height: 112px;
 | 
			
		||||
          line-height: 112px;
 | 
			
		||||
          color: #858594;
 | 
			
		||||
          font-size: 28px;
 | 
			
		||||
          vertical-align: top;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        .user-img {
 | 
			
		||||
          margin-right: 24px;
 | 
			
		||||
          vertical-align: middle;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .item-name {
 | 
			
		||||
          color: #333;
 | 
			
		||||
          font-size: 30px;
 | 
			
		||||
          display: inline-block;
 | 
			
		||||
          width: 240px;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .item-point {
 | 
			
		||||
          display: inline-block;
 | 
			
		||||
          width: calc(100% - 420px);
 | 
			
		||||
          text-align: right;
 | 
			
		||||
          font-size: 30px;
 | 
			
		||||
          font-family: PingFangSC-Medium, PingFang SC;
 | 
			
		||||
          font-weight: 500;
 | 
			
		||||
          color: #333;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .mar-r24 {
 | 
			
		||||
          margin-right: 24px;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .faultage {
 | 
			
		||||
      width: 100%;
 | 
			
		||||
      height: 32px;
 | 
			
		||||
      background: #f3f5f7;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ranking-content {
 | 
			
		||||
      padding: 94px 30px 0;
 | 
			
		||||
      background: #fff;
 | 
			
		||||
 | 
			
		||||
      .item {
 | 
			
		||||
        display: inline-block;
 | 
			
		||||
        width: 216px;
 | 
			
		||||
        box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.12);
 | 
			
		||||
        border-radius: 12px;
 | 
			
		||||
        padding: 40px 0 76px 0;
 | 
			
		||||
        text-align: center;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        position: relative;
 | 
			
		||||
 | 
			
		||||
        .user-name {
 | 
			
		||||
          font-size: 30px;
 | 
			
		||||
          font-family: PingFang-SC-Medium, PingFang-SC;
 | 
			
		||||
          font-weight: 500;
 | 
			
		||||
          color: #333;
 | 
			
		||||
          line-height: 42px;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .item-num {
 | 
			
		||||
          font-size: 46px;
 | 
			
		||||
          font-weight: 6000;
 | 
			
		||||
          color: #2C51CE;
 | 
			
		||||
          line-height: 54px;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .top-img {
 | 
			
		||||
          width: 100%;
 | 
			
		||||
          height: 34px;
 | 
			
		||||
          position: absolute;
 | 
			
		||||
          top: -11px;
 | 
			
		||||
          left: 0;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .item-top {
 | 
			
		||||
        margin: -46px 20px 0;
 | 
			
		||||
        vertical-align: top;
 | 
			
		||||
        height: 370px;
 | 
			
		||||
 | 
			
		||||
        .user-img {
 | 
			
		||||
          width: 104px;
 | 
			
		||||
          height: 104px;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .user-name-bg {
 | 
			
		||||
          width: 104px;
 | 
			
		||||
          height: 104px;
 | 
			
		||||
          border-radius: 50%;
 | 
			
		||||
          background-color: #4E8EEE;
 | 
			
		||||
          font-size: 28px;
 | 
			
		||||
          line-height: 104px;
 | 
			
		||||
          text-align: center;
 | 
			
		||||
          color: #fff;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .top-img-one {
 | 
			
		||||
          width: 100%;
 | 
			
		||||
          position: absolute;
 | 
			
		||||
          top: -22px;
 | 
			
		||||
          left: 0;
 | 
			
		||||
          height: 46px;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ranking-list {
 | 
			
		||||
      background-color: #fff;
 | 
			
		||||
 | 
			
		||||
      .item {
 | 
			
		||||
        width: 100%;
 | 
			
		||||
        height: 120px;
 | 
			
		||||
        line-height: 120px;
 | 
			
		||||
        background: #FFF;
 | 
			
		||||
        padding: 0 64px;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
 | 
			
		||||
        .item-num {
 | 
			
		||||
          display: inline-block;
 | 
			
		||||
          width: 68px;
 | 
			
		||||
          color: #858594;
 | 
			
		||||
          font-size: 28px;
 | 
			
		||||
          vertical-align: top;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .user-img {
 | 
			
		||||
          margin-right: 24px;
 | 
			
		||||
          vertical-align: middle;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .item-name {
 | 
			
		||||
          color: #333;
 | 
			
		||||
          font-size: 30px;
 | 
			
		||||
          display: inline-block;
 | 
			
		||||
          width: 240px;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .item-point {
 | 
			
		||||
          display: inline-block;
 | 
			
		||||
          width: 210px;
 | 
			
		||||
          text-align: right;
 | 
			
		||||
          font-size: 30px;
 | 
			
		||||
          font-family: PingFangSC-Medium, PingFang SC;
 | 
			
		||||
          font-weight: 500;
 | 
			
		||||
          color: #333;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .mar-r24 {
 | 
			
		||||
          margin-right: 24px;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    .user-img {
 | 
			
		||||
      width: 80px;
 | 
			
		||||
      height: 80px;
 | 
			
		||||
      border-radius: 50%;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .user-name-bg {
 | 
			
		||||
      display: inline-block;
 | 
			
		||||
      width: 80px;
 | 
			
		||||
      height: 80px;
 | 
			
		||||
      border-radius: 50%;
 | 
			
		||||
      background-color: #4E8EEE;
 | 
			
		||||
      font-size: 28px;
 | 
			
		||||
      line-height: 80px;
 | 
			
		||||
      text-align: center;
 | 
			
		||||
      color: #fff;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .mar-b4 {
 | 
			
		||||
      margin-bottom: 8px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .mar-b8 {
 | 
			
		||||
      margin-bottom: 16px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .detail-content {
 | 
			
		||||
      width: 690px;
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
      border-radius: 16px;
 | 
			
		||||
      margin: 0 0 0 32px;
 | 
			
		||||
      padding: 30px 30px 94px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
 | 
			
		||||
      .title {
 | 
			
		||||
        font-size: 34px;
 | 
			
		||||
        font-family: PingFangSC-Medium, PingFang SC;
 | 
			
		||||
        font-weight: 500;
 | 
			
		||||
        color: #333;
 | 
			
		||||
        line-height: 48px;
 | 
			
		||||
        margin-bottom: 30px;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .item {
 | 
			
		||||
        padding: 34px 0 32px 0;
 | 
			
		||||
        border-bottom: 2px solid #ddd;
 | 
			
		||||
        display: flex;
 | 
			
		||||
 | 
			
		||||
        .item-info {
 | 
			
		||||
          width: 500px;
 | 
			
		||||
 | 
			
		||||
          p {
 | 
			
		||||
            word-break: break-all;
 | 
			
		||||
            font-size: 32px;
 | 
			
		||||
            font-family: PingFangSC-Regular, PingFang SC;
 | 
			
		||||
            font-weight: 400;
 | 
			
		||||
            color: #333;
 | 
			
		||||
            line-height: 44px;
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          span {
 | 
			
		||||
            display: inline-block;
 | 
			
		||||
            margin-top: 8px;
 | 
			
		||||
            font-size: 24px;
 | 
			
		||||
            font-family: PingFangSC-Regular, PingFang SC;
 | 
			
		||||
            font-weight: 400;
 | 
			
		||||
            color: #999;
 | 
			
		||||
            line-height: 34px;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .item-num {
 | 
			
		||||
          width: calc(100% - 500px);
 | 
			
		||||
          text-align: right;
 | 
			
		||||
          font-size: 36px;
 | 
			
		||||
          font-family: PingFangSC-Semibold, PingFang SC;
 | 
			
		||||
          font-weight: 600;
 | 
			
		||||
          line-height: 50px;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .color-0 {
 | 
			
		||||
      color: #2C51CE !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .color-1 {
 | 
			
		||||
      color: #E6736E !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .fixed-top {
 | 
			
		||||
      z-index: 999;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,206 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="integralTask">
 | 
			
		||||
    <div class="fix-top">
 | 
			
		||||
      <div class="img-bg">
 | 
			
		||||
        <img src="https://cdn.cunwuyun.cn/fengdu/img-jifenlist.png" alt="">
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="title">任务大厅</div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="card-list" v-if="list.length">
 | 
			
		||||
      <div class="card" v-for="(item,index) in list" :key="index" @click="$linkTo('./taskDetail?id='+item.id)">
 | 
			
		||||
        <h4>{{ item.title }}</h4>
 | 
			
		||||
        <p>
 | 
			
		||||
          <span>{{ item.detail }}</span>
 | 
			
		||||
        </p>
 | 
			
		||||
        <div class="imgs" v-if="item.files">
 | 
			
		||||
          <image mode="aspectFill" v-for="(e, i) in item.files" :key="i" :src="e.url"/>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="time">
 | 
			
		||||
          <div class="goin" v-if="item.intoBegintime && item.intoEndtime">
 | 
			
		||||
            <img src="https://cdn.cunwuyun.cn/fengdu/ic-jinchangshijian.png" alt="">
 | 
			
		||||
            <div class="label">{{ item.type == 0 ? '进场时间:' : '报名时间:' }}</div>
 | 
			
		||||
            <div class="value">{{ item.intoBegintime.substring(0, 16)}} 至 {{ item.intoEndtime.substring(0, 16) }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="exit" v-if="item.exitBegintime && item.exitEndtime && item.type == 0">
 | 
			
		||||
            <img src="https://cdn.cunwuyun.cn/fengdu/ic-lichangshijian.png" alt="">
 | 
			
		||||
            <div class="label">离场时间:</div>
 | 
			
		||||
            <div class="value">{{ item.exitBegintime.substring(0, 16) }} 至 {{ item.exitEndtime.substring(0, 16) }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="type">
 | 
			
		||||
            <img src="https://cdn.cunwuyun.cn/fengdu/ic-renwuleixing.png" alt="">
 | 
			
		||||
            <div class="label">任务类型:</div>
 | 
			
		||||
            <div class="value">{{ $dict.getLabel('fdIntegralTaskType', item.type) }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <AiEmpty :description="`暂无任务`" class="emptyWrap" v-else/>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { mapState } from 'vuex'
 | 
			
		||||
export default {
 | 
			
		||||
  name: 'integralTask',
 | 
			
		||||
  appName: '积分任务',
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      list: [],
 | 
			
		||||
      current: 1,
 | 
			
		||||
      files: [],
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user', 'token'])
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getList() {
 | 
			
		||||
      this.$instance.post('/app/appintegraltask/list',null,{
 | 
			
		||||
        params: {
 | 
			
		||||
          current: this.current,
 | 
			
		||||
          status: 1,
 | 
			
		||||
        }
 | 
			
		||||
      }).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          const arr = res.data.records.map(e => {
 | 
			
		||||
            return {
 | 
			
		||||
              ...e,
 | 
			
		||||
              files: e.files.length > 3 ? e.files.slice(0, 3) : e.files
 | 
			
		||||
            }
 | 
			
		||||
          })
 | 
			
		||||
          this.$nextTick(()=> {
 | 
			
		||||
            this.list = this.current > 1 ? [...this.list, ...arr] : arr
 | 
			
		||||
          })
 | 
			
		||||
          
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  onShow() {
 | 
			
		||||
    uni.setNavigationBarTitle({
 | 
			
		||||
      title: '积分任务'
 | 
			
		||||
    });
 | 
			
		||||
    this.$dict.load(['fdIntegralTaskType']).then(() => {
 | 
			
		||||
      this.getList()
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  onReachBottom() {
 | 
			
		||||
    this.current++
 | 
			
		||||
    this.getList()
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.integralTask {
 | 
			
		||||
  padding-top: 292px;
 | 
			
		||||
  .fix-top {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    position: fixed;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    z-index: 999;
 | 
			
		||||
    .img-bg {
 | 
			
		||||
      width: 100%;
 | 
			
		||||
      height: 216px;
 | 
			
		||||
      img {
 | 
			
		||||
        width: 100%;
 | 
			
		||||
        height: 100%;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    .title {
 | 
			
		||||
      font-size: 34px;
 | 
			
		||||
      font-weight: 500;
 | 
			
		||||
      color: #222222;
 | 
			
		||||
      padding: 32px 32px 0;
 | 
			
		||||
      background: #f3f5f7;
 | 
			
		||||
      z-index: 999;
 | 
			
		||||
      opacity: 1;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .card-list {
 | 
			
		||||
    padding: 24px 32px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    .card {
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
      color: #333333;
 | 
			
		||||
      border-radius: 16px;
 | 
			
		||||
      margin-bottom: 24px;
 | 
			
		||||
      h4 {
 | 
			
		||||
        padding: 24px 24px 0;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        font-size: 34px;
 | 
			
		||||
        font-weight: 500;
 | 
			
		||||
        overflow: hidden;
 | 
			
		||||
        text-overflow: ellipsis;
 | 
			
		||||
        white-space: nowrap;
 | 
			
		||||
      }
 | 
			
		||||
      p {
 | 
			
		||||
        padding: 16px 24px;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        font-size: 28px;
 | 
			
		||||
        font-weight: 400;
 | 
			
		||||
        span {
 | 
			
		||||
          overflow: hidden; 
 | 
			
		||||
          text-overflow: ellipsis;
 | 
			
		||||
          display: -webkit-box;
 | 
			
		||||
          -webkit-box-orient: vertical; 
 | 
			
		||||
          -webkit-line-clamp: 2;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      .imgs {
 | 
			
		||||
        display: flex;
 | 
			
		||||
        align-items: center;
 | 
			
		||||
        flex-wrap: wrap;
 | 
			
		||||
        padding: 16px 24px;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
 | 
			
		||||
        image {
 | 
			
		||||
          height: 208px;
 | 
			
		||||
          width: 33.33%;
 | 
			
		||||
          padding-right: 12px;
 | 
			
		||||
          margin-bottom: 12px;
 | 
			
		||||
          box-sizing: border-box;
 | 
			
		||||
 | 
			
		||||
          &:nth-of-type(3n) {
 | 
			
		||||
            padding-right: 0;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .time {
 | 
			
		||||
        padding: 0 24px 24px;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        border-top: 2px solid #EEEEEE;
 | 
			
		||||
        & > div {
 | 
			
		||||
          margin-top: 16px;
 | 
			
		||||
        }
 | 
			
		||||
        .goin,
 | 
			
		||||
        .exit,
 | 
			
		||||
        .type {
 | 
			
		||||
          display: flex;
 | 
			
		||||
          img {
 | 
			
		||||
            width: 30px;
 | 
			
		||||
            height: 30px;
 | 
			
		||||
            align-self: center;
 | 
			
		||||
          }
 | 
			
		||||
          .label {
 | 
			
		||||
            font-size: 24px;
 | 
			
		||||
            font-weight: 400;
 | 
			
		||||
            color: #666666;
 | 
			
		||||
            align-self: center;
 | 
			
		||||
            width: 130px;
 | 
			
		||||
          }
 | 
			
		||||
          .value {
 | 
			
		||||
            color: #333333;
 | 
			
		||||
            font-size: 24px;
 | 
			
		||||
            font-weight: 400;
 | 
			
		||||
            width: calc(100% - 160px);
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,750 +0,0 @@
 | 
			
		||||
var ERROR_CONF = {
 | 
			
		||||
  KEY_ERR: 311,
 | 
			
		||||
  KEY_ERR_MSG: 'key格式错误',
 | 
			
		||||
  PARAM_ERR: 310,
 | 
			
		||||
  PARAM_ERR_MSG: '请求参数信息有误',
 | 
			
		||||
  SYSTEM_ERR: 600,
 | 
			
		||||
  SYSTEM_ERR_MSG: '系统错误',
 | 
			
		||||
  WX_ERR_CODE: 1000,
 | 
			
		||||
  WX_OK_CODE: 200
 | 
			
		||||
};
 | 
			
		||||
var BASE_URL = 'https://apis.map.qq.com/ws/';
 | 
			
		||||
var URL_SEARCH = BASE_URL + 'place/v1/search';
 | 
			
		||||
var URL_SUGGESTION = BASE_URL + 'place/v1/suggestion';
 | 
			
		||||
var URL_GET_GEOCODER = BASE_URL + 'geocoder/v1/';
 | 
			
		||||
var URL_CITY_LIST = BASE_URL + 'district/v1/list';
 | 
			
		||||
var URL_AREA_LIST = BASE_URL + 'district/v1/getchildren';
 | 
			
		||||
var URL_DISTANCE = BASE_URL + 'distance/v1/';
 | 
			
		||||
var URL_DIRECTION = BASE_URL + 'direction/v1/';
 | 
			
		||||
var MODE = {driving: 'driving', transit: 'transit'};
 | 
			
		||||
var EARTH_RADIUS = 6378136.49;
 | 
			
		||||
var Utils = {
 | 
			
		||||
  safeAdd(x, y) {
 | 
			
		||||
    var lsw = (x & 0xffff) + (y & 0xffff);
 | 
			
		||||
    var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
 | 
			
		||||
    return (msw << 16) | (lsw & 0xffff)
 | 
			
		||||
  }, bitRotateLeft(num, cnt) {
 | 
			
		||||
    return (num << cnt) | (num >>> (32 - cnt))
 | 
			
		||||
  }, md5cmn(q, a, b, x, s, t) {
 | 
			
		||||
    return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(a, q), this.safeAdd(x, t)), s), b)
 | 
			
		||||
  }, md5ff(a, b, c, d, x, s, t) {
 | 
			
		||||
    return this.md5cmn((b & c) | (~b & d), a, b, x, s, t)
 | 
			
		||||
  }, md5gg(a, b, c, d, x, s, t) {
 | 
			
		||||
    return this.md5cmn((b & d) | (c & ~d), a, b, x, s, t)
 | 
			
		||||
  }, md5hh(a, b, c, d, x, s, t) {
 | 
			
		||||
    return this.md5cmn(b ^ c ^ d, a, b, x, s, t)
 | 
			
		||||
  }, md5ii(a, b, c, d, x, s, t) {
 | 
			
		||||
    return this.md5cmn(c ^ (b | ~d), a, b, x, s, t)
 | 
			
		||||
  }, binlMD5(x, len) {
 | 
			
		||||
    x[len >> 5] |= 0x80 << (len % 32);
 | 
			
		||||
    x[((len + 64) >>> 9 << 4) + 14] = len;
 | 
			
		||||
    var i;
 | 
			
		||||
    var olda;
 | 
			
		||||
    var oldb;
 | 
			
		||||
    var oldc;
 | 
			
		||||
    var oldd;
 | 
			
		||||
    var a = 1732584193;
 | 
			
		||||
    var b = -271733879;
 | 
			
		||||
    var c = -1732584194;
 | 
			
		||||
    var d = 271733878;
 | 
			
		||||
    for (i = 0; i < x.length; i += 16) {
 | 
			
		||||
      olda = a;
 | 
			
		||||
      oldb = b;
 | 
			
		||||
      oldc = c;
 | 
			
		||||
      oldd = d;
 | 
			
		||||
      a = this.md5ff(a, b, c, d, x[i], 7, -680876936);
 | 
			
		||||
      d = this.md5ff(d, a, b, c, x[i + 1], 12, -389564586);
 | 
			
		||||
      c = this.md5ff(c, d, a, b, x[i + 2], 17, 606105819);
 | 
			
		||||
      b = this.md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
 | 
			
		||||
      a = this.md5ff(a, b, c, d, x[i + 4], 7, -176418897);
 | 
			
		||||
      d = this.md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
 | 
			
		||||
      c = this.md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
 | 
			
		||||
      b = this.md5ff(b, c, d, a, x[i + 7], 22, -45705983);
 | 
			
		||||
      a = this.md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
 | 
			
		||||
      d = this.md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
 | 
			
		||||
      c = this.md5ff(c, d, a, b, x[i + 10], 17, -42063);
 | 
			
		||||
      b = this.md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
 | 
			
		||||
      a = this.md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
 | 
			
		||||
      d = this.md5ff(d, a, b, c, x[i + 13], 12, -40341101);
 | 
			
		||||
      c = this.md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
 | 
			
		||||
      b = this.md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
 | 
			
		||||
      a = this.md5gg(a, b, c, d, x[i + 1], 5, -165796510);
 | 
			
		||||
      d = this.md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
 | 
			
		||||
      c = this.md5gg(c, d, a, b, x[i + 11], 14, 643717713);
 | 
			
		||||
      b = this.md5gg(b, c, d, a, x[i], 20, -373897302);
 | 
			
		||||
      a = this.md5gg(a, b, c, d, x[i + 5], 5, -701558691);
 | 
			
		||||
      d = this.md5gg(d, a, b, c, x[i + 10], 9, 38016083);
 | 
			
		||||
      c = this.md5gg(c, d, a, b, x[i + 15], 14, -660478335);
 | 
			
		||||
      b = this.md5gg(b, c, d, a, x[i + 4], 20, -405537848);
 | 
			
		||||
      a = this.md5gg(a, b, c, d, x[i + 9], 5, 568446438);
 | 
			
		||||
      d = this.md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
 | 
			
		||||
      c = this.md5gg(c, d, a, b, x[i + 3], 14, -187363961);
 | 
			
		||||
      b = this.md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
 | 
			
		||||
      a = this.md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
 | 
			
		||||
      d = this.md5gg(d, a, b, c, x[i + 2], 9, -51403784);
 | 
			
		||||
      c = this.md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
 | 
			
		||||
      b = this.md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
 | 
			
		||||
      a = this.md5hh(a, b, c, d, x[i + 5], 4, -378558);
 | 
			
		||||
      d = this.md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
 | 
			
		||||
      c = this.md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
 | 
			
		||||
      b = this.md5hh(b, c, d, a, x[i + 14], 23, -35309556);
 | 
			
		||||
      a = this.md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
 | 
			
		||||
      d = this.md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
 | 
			
		||||
      c = this.md5hh(c, d, a, b, x[i + 7], 16, -155497632);
 | 
			
		||||
      b = this.md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
 | 
			
		||||
      a = this.md5hh(a, b, c, d, x[i + 13], 4, 681279174);
 | 
			
		||||
      d = this.md5hh(d, a, b, c, x[i], 11, -358537222);
 | 
			
		||||
      c = this.md5hh(c, d, a, b, x[i + 3], 16, -722521979);
 | 
			
		||||
      b = this.md5hh(b, c, d, a, x[i + 6], 23, 76029189);
 | 
			
		||||
      a = this.md5hh(a, b, c, d, x[i + 9], 4, -640364487);
 | 
			
		||||
      d = this.md5hh(d, a, b, c, x[i + 12], 11, -421815835);
 | 
			
		||||
      c = this.md5hh(c, d, a, b, x[i + 15], 16, 530742520);
 | 
			
		||||
      b = this.md5hh(b, c, d, a, x[i + 2], 23, -995338651);
 | 
			
		||||
      a = this.md5ii(a, b, c, d, x[i], 6, -198630844);
 | 
			
		||||
      d = this.md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
 | 
			
		||||
      c = this.md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
 | 
			
		||||
      b = this.md5ii(b, c, d, a, x[i + 5], 21, -57434055);
 | 
			
		||||
      a = this.md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
 | 
			
		||||
      d = this.md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
 | 
			
		||||
      c = this.md5ii(c, d, a, b, x[i + 10], 15, -1051523);
 | 
			
		||||
      b = this.md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
 | 
			
		||||
      a = this.md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
 | 
			
		||||
      d = this.md5ii(d, a, b, c, x[i + 15], 10, -30611744);
 | 
			
		||||
      c = this.md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
 | 
			
		||||
      b = this.md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
 | 
			
		||||
      a = this.md5ii(a, b, c, d, x[i + 4], 6, -145523070);
 | 
			
		||||
      d = this.md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
 | 
			
		||||
      c = this.md5ii(c, d, a, b, x[i + 2], 15, 718787259);
 | 
			
		||||
      b = this.md5ii(b, c, d, a, x[i + 9], 21, -343485551);
 | 
			
		||||
      a = this.safeAdd(a, olda);
 | 
			
		||||
      b = this.safeAdd(b, oldb);
 | 
			
		||||
      c = this.safeAdd(c, oldc);
 | 
			
		||||
      d = this.safeAdd(d, oldd)
 | 
			
		||||
    }
 | 
			
		||||
    return [a, b, c, d]
 | 
			
		||||
  }, binl2rstr(input) {
 | 
			
		||||
    var i;
 | 
			
		||||
    var output = '';
 | 
			
		||||
    var length32 = input.length * 32;
 | 
			
		||||
    for (i = 0; i < length32; i += 8) {
 | 
			
		||||
      output += String.fromCharCode((input[i >> 5] >>> (i % 32)) & 0xff)
 | 
			
		||||
    }
 | 
			
		||||
    return output
 | 
			
		||||
  }, rstr2binl(input) {
 | 
			
		||||
    var i;
 | 
			
		||||
    var output = [];
 | 
			
		||||
    output[(input.length >> 2) - 1] = undefined;
 | 
			
		||||
    for (i = 0; i < output.length; i += 1) {
 | 
			
		||||
      output[i] = 0
 | 
			
		||||
    }
 | 
			
		||||
    var length8 = input.length * 8;
 | 
			
		||||
    for (i = 0; i < length8; i += 8) {
 | 
			
		||||
      output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << (i % 32)
 | 
			
		||||
    }
 | 
			
		||||
    return output
 | 
			
		||||
  }, rstrMD5(s) {
 | 
			
		||||
    return this.binl2rstr(this.binlMD5(this.rstr2binl(s), s.length * 8))
 | 
			
		||||
  }, rstrHMACMD5(key, data) {
 | 
			
		||||
    var i;
 | 
			
		||||
    var bkey = this.rstr2binl(key);
 | 
			
		||||
    var ipad = [];
 | 
			
		||||
    var opad = [];
 | 
			
		||||
    var hash;
 | 
			
		||||
    ipad[15] = opad[15] = undefined;
 | 
			
		||||
    if (bkey.length > 16) {
 | 
			
		||||
      bkey = this.binlMD5(bkey, key.length * 8)
 | 
			
		||||
    }
 | 
			
		||||
    for (i = 0; i < 16; i += 1) {
 | 
			
		||||
      ipad[i] = bkey[i] ^ 0x36363636;
 | 
			
		||||
      opad[i] = bkey[i] ^ 0x5c5c5c5c
 | 
			
		||||
    }
 | 
			
		||||
    hash = this.binlMD5(ipad.concat(this.rstr2binl(data)), 512 + data.length * 8);
 | 
			
		||||
    return this.binl2rstr(this.binlMD5(opad.concat(hash), 512 + 128))
 | 
			
		||||
  }, rstr2hex(input) {
 | 
			
		||||
    var hexTab = '0123456789abcdef';
 | 
			
		||||
    var output = '';
 | 
			
		||||
    var x;
 | 
			
		||||
    var i;
 | 
			
		||||
    for (i = 0; i < input.length; i += 1) {
 | 
			
		||||
      x = input.charCodeAt(i);
 | 
			
		||||
      output += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f)
 | 
			
		||||
    }
 | 
			
		||||
    return output
 | 
			
		||||
  }, str2rstrUTF8(input) {
 | 
			
		||||
    return unescape(encodeURIComponent(input))
 | 
			
		||||
  }, rawMD5(s) {
 | 
			
		||||
    return this.rstrMD5(this.str2rstrUTF8(s))
 | 
			
		||||
  }, hexMD5(s) {
 | 
			
		||||
    return this.rstr2hex(this.rawMD5(s))
 | 
			
		||||
  }, rawHMACMD5(k, d) {
 | 
			
		||||
    return this.rstrHMACMD5(this.str2rstrUTF8(k), str2rstrUTF8(d))
 | 
			
		||||
  }, hexHMACMD5(k, d) {
 | 
			
		||||
    return this.rstr2hex(this.rawHMACMD5(k, d))
 | 
			
		||||
  }, md5(string, key, raw) {
 | 
			
		||||
    if (!key) {
 | 
			
		||||
      if (!raw) {
 | 
			
		||||
        return this.hexMD5(string)
 | 
			
		||||
      }
 | 
			
		||||
      return this.rawMD5(string)
 | 
			
		||||
    }
 | 
			
		||||
    if (!raw) {
 | 
			
		||||
      return this.hexHMACMD5(key, string)
 | 
			
		||||
    }
 | 
			
		||||
    return this.rawHMACMD5(key, string)
 | 
			
		||||
  }, getSig(requestParam, sk, feature, mode) {
 | 
			
		||||
    var sig = null;
 | 
			
		||||
    var requestArr = [];
 | 
			
		||||
    Object.keys(requestParam).sort().forEach(function (key) {
 | 
			
		||||
      requestArr.push(key + '=' + requestParam[key])
 | 
			
		||||
    });
 | 
			
		||||
    if (feature == 'search') {
 | 
			
		||||
      sig = '/ws/place/v1/search?' + requestArr.join('&') + sk
 | 
			
		||||
    }
 | 
			
		||||
    if (feature == 'suggest') {
 | 
			
		||||
      sig = '/ws/place/v1/suggestion?' + requestArr.join('&') + sk
 | 
			
		||||
    }
 | 
			
		||||
    if (feature == 'reverseGeocoder') {
 | 
			
		||||
      sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk
 | 
			
		||||
    }
 | 
			
		||||
    if (feature == 'geocoder') {
 | 
			
		||||
      sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk
 | 
			
		||||
    }
 | 
			
		||||
    if (feature == 'getCityList') {
 | 
			
		||||
      sig = '/ws/district/v1/list?' + requestArr.join('&') + sk
 | 
			
		||||
    }
 | 
			
		||||
    if (feature == 'getDistrictByCityId') {
 | 
			
		||||
      sig = '/ws/district/v1/getchildren?' + requestArr.join('&') + sk
 | 
			
		||||
    }
 | 
			
		||||
    if (feature == 'calculateDistance') {
 | 
			
		||||
      sig = '/ws/distance/v1/?' + requestArr.join('&') + sk
 | 
			
		||||
    }
 | 
			
		||||
    if (feature == 'direction') {
 | 
			
		||||
      sig = '/ws/direction/v1/' + mode + '?' + requestArr.join('&') + sk
 | 
			
		||||
    }
 | 
			
		||||
    sig = this.md5(sig);
 | 
			
		||||
    return sig
 | 
			
		||||
  }, location2query(data) {
 | 
			
		||||
    if (typeof data == 'string') {
 | 
			
		||||
      return data
 | 
			
		||||
    }
 | 
			
		||||
    var query = '';
 | 
			
		||||
    for (var i = 0; i < data.length; i++) {
 | 
			
		||||
      var d = data[i];
 | 
			
		||||
      if (!!query) {
 | 
			
		||||
        query += ';'
 | 
			
		||||
      }
 | 
			
		||||
      if (d.location) {
 | 
			
		||||
        query = query + d.location.lat + ',' + d.location.lng
 | 
			
		||||
      }
 | 
			
		||||
      if (d.latitude && d.longitude) {
 | 
			
		||||
        query = query + d.latitude + ',' + d.longitude
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    return query
 | 
			
		||||
  }, rad(d) {
 | 
			
		||||
    return d * Math.PI / 180.0
 | 
			
		||||
  }, getEndLocation(location) {
 | 
			
		||||
    var to = location.split(';');
 | 
			
		||||
    var endLocation = [];
 | 
			
		||||
    for (var i = 0; i < to.length; i++) {
 | 
			
		||||
      endLocation.push({lat: parseFloat(to[i].split(',')[0]), lng: parseFloat(to[i].split(',')[1])})
 | 
			
		||||
    }
 | 
			
		||||
    return endLocation
 | 
			
		||||
  }, getDistance(latFrom, lngFrom, latTo, lngTo) {
 | 
			
		||||
    var radLatFrom = this.rad(latFrom);
 | 
			
		||||
    var radLatTo = this.rad(latTo);
 | 
			
		||||
    var a = radLatFrom - radLatTo;
 | 
			
		||||
    var b = this.rad(lngFrom) - this.rad(lngTo);
 | 
			
		||||
    var distance = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLatFrom) * Math.cos(radLatTo) * Math.pow(Math.sin(b / 2), 2)));
 | 
			
		||||
    distance = distance * EARTH_RADIUS;
 | 
			
		||||
    distance = Math.round(distance * 10000) / 10000;
 | 
			
		||||
    return parseFloat(distance.toFixed(0))
 | 
			
		||||
  }, getWXLocation(success, fail, complete) {
 | 
			
		||||
    wx.getLocation({type: 'gcj02', success: success, fail: fail, complete: complete})
 | 
			
		||||
  }, getLocationParam(location) {
 | 
			
		||||
    if (typeof location == 'string') {
 | 
			
		||||
      var locationArr = location.split(',');
 | 
			
		||||
      if (locationArr.length === 2) {
 | 
			
		||||
        location = {latitude: location.split(',')[0], longitude: location.split(',')[1]}
 | 
			
		||||
      } else {
 | 
			
		||||
        location = {}
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    return location
 | 
			
		||||
  }, polyfillParam(param) {
 | 
			
		||||
    param.success = param.success || function () {
 | 
			
		||||
    };
 | 
			
		||||
    param.fail = param.fail || function () {
 | 
			
		||||
    };
 | 
			
		||||
    param.complete = param.complete || function () {
 | 
			
		||||
    }
 | 
			
		||||
  }, checkParamKeyEmpty(param, key) {
 | 
			
		||||
    if (!param[key]) {
 | 
			
		||||
      var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + key + '参数格式有误');
 | 
			
		||||
      param.fail(errconf);
 | 
			
		||||
      param.complete(errconf);
 | 
			
		||||
      return true
 | 
			
		||||
    }
 | 
			
		||||
    return false
 | 
			
		||||
  }, checkKeyword(param) {
 | 
			
		||||
    return !this.checkParamKeyEmpty(param, 'keyword')
 | 
			
		||||
  }, checkLocation(param) {
 | 
			
		||||
    var location = this.getLocationParam(param.location);
 | 
			
		||||
    if (!location || !location.latitude || !location.longitude) {
 | 
			
		||||
      var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + ' location参数格式有误');
 | 
			
		||||
      param.fail(errconf);
 | 
			
		||||
      param.complete(errconf);
 | 
			
		||||
      return false
 | 
			
		||||
    }
 | 
			
		||||
    return true
 | 
			
		||||
  }, buildErrorConfig(errCode, errMsg) {
 | 
			
		||||
    return {status: errCode, message: errMsg}
 | 
			
		||||
  }, handleData(param, data, feature) {
 | 
			
		||||
    if (feature == 'search') {
 | 
			
		||||
      var searchResult = data.data;
 | 
			
		||||
      var searchSimplify = [];
 | 
			
		||||
      for (var i = 0; i < searchResult.length; i++) {
 | 
			
		||||
        searchSimplify.push({
 | 
			
		||||
          id: searchResult[i].id || null,
 | 
			
		||||
          title: searchResult[i].title || null,
 | 
			
		||||
          latitude: searchResult[i].location && searchResult[i].location.lat || null,
 | 
			
		||||
          longitude: searchResult[i].location && searchResult[i].location.lng || null,
 | 
			
		||||
          address: searchResult[i].address || null,
 | 
			
		||||
          category: searchResult[i].category || null,
 | 
			
		||||
          tel: searchResult[i].tel || null,
 | 
			
		||||
          adcode: searchResult[i].ad_info && searchResult[i].ad_info.adcode || null,
 | 
			
		||||
          city: searchResult[i].ad_info && searchResult[i].ad_info.city || null,
 | 
			
		||||
          district: searchResult[i].ad_info && searchResult[i].ad_info.district || null,
 | 
			
		||||
          province: searchResult[i].ad_info && searchResult[i].ad_info.province || null
 | 
			
		||||
        })
 | 
			
		||||
      }
 | 
			
		||||
      param.success(data, {searchResult: searchResult, searchSimplify: searchSimplify})
 | 
			
		||||
    } else if (feature == 'suggest') {
 | 
			
		||||
      var suggestResult = data.data;
 | 
			
		||||
      var suggestSimplify = [];
 | 
			
		||||
      for (var i = 0; i < suggestResult.length; i++) {
 | 
			
		||||
        suggestSimplify.push({
 | 
			
		||||
          adcode: suggestResult[i].adcode || null,
 | 
			
		||||
          address: suggestResult[i].address || null,
 | 
			
		||||
          category: suggestResult[i].category || null,
 | 
			
		||||
          city: suggestResult[i].city || null,
 | 
			
		||||
          district: suggestResult[i].district || null,
 | 
			
		||||
          id: suggestResult[i].id || null,
 | 
			
		||||
          latitude: suggestResult[i].location && suggestResult[i].location.lat || null,
 | 
			
		||||
          longitude: suggestResult[i].location && suggestResult[i].location.lng || null,
 | 
			
		||||
          province: suggestResult[i].province || null,
 | 
			
		||||
          title: suggestResult[i].title || null,
 | 
			
		||||
          type: suggestResult[i].type || null
 | 
			
		||||
        })
 | 
			
		||||
      }
 | 
			
		||||
      param.success(data, {suggestResult: suggestResult, suggestSimplify: suggestSimplify})
 | 
			
		||||
    } else if (feature == 'reverseGeocoder') {
 | 
			
		||||
      var reverseGeocoderResult = data.result;
 | 
			
		||||
      var reverseGeocoderSimplify = {
 | 
			
		||||
        address: reverseGeocoderResult.address || null,
 | 
			
		||||
        latitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lat || null,
 | 
			
		||||
        longitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lng || null,
 | 
			
		||||
        adcode: reverseGeocoderResult.ad_info && reverseGeocoderResult.ad_info.adcode || null,
 | 
			
		||||
        city: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.city || null,
 | 
			
		||||
        district: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.district || null,
 | 
			
		||||
        nation: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.nation || null,
 | 
			
		||||
        province: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.province || null,
 | 
			
		||||
        street: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street || null,
 | 
			
		||||
        street_number: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street_number || null,
 | 
			
		||||
        recommend: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.recommend || null,
 | 
			
		||||
        rough: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.rough || null
 | 
			
		||||
      };
 | 
			
		||||
      if (reverseGeocoderResult.pois) {
 | 
			
		||||
        var pois = reverseGeocoderResult.pois;
 | 
			
		||||
        var poisSimplify = [];
 | 
			
		||||
        for (var i = 0; i < pois.length; i++) {
 | 
			
		||||
          poisSimplify.push({
 | 
			
		||||
            id: pois[i].id || null,
 | 
			
		||||
            title: pois[i].title || null,
 | 
			
		||||
            latitude: pois[i].location && pois[i].location.lat || null,
 | 
			
		||||
            longitude: pois[i].location && pois[i].location.lng || null,
 | 
			
		||||
            address: pois[i].address || null,
 | 
			
		||||
            category: pois[i].category || null,
 | 
			
		||||
            adcode: pois[i].ad_info && pois[i].ad_info.adcode || null,
 | 
			
		||||
            city: pois[i].ad_info && pois[i].ad_info.city || null,
 | 
			
		||||
            district: pois[i].ad_info && pois[i].ad_info.district || null,
 | 
			
		||||
            province: pois[i].ad_info && pois[i].ad_info.province || null
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
        param.success(data, {
 | 
			
		||||
          reverseGeocoderResult: reverseGeocoderResult,
 | 
			
		||||
          reverseGeocoderSimplify: reverseGeocoderSimplify,
 | 
			
		||||
          pois: pois,
 | 
			
		||||
          poisSimplify: poisSimplify
 | 
			
		||||
        })
 | 
			
		||||
      } else {
 | 
			
		||||
        param.success(data, {reverseGeocoderResult: reverseGeocoderResult, reverseGeocoderSimplify: reverseGeocoderSimplify})
 | 
			
		||||
      }
 | 
			
		||||
    } else if (feature == 'geocoder') {
 | 
			
		||||
      var geocoderResult = data.result;
 | 
			
		||||
      var geocoderSimplify = {
 | 
			
		||||
        title: geocoderResult.title || null,
 | 
			
		||||
        latitude: geocoderResult.location && geocoderResult.location.lat || null,
 | 
			
		||||
        longitude: geocoderResult.location && geocoderResult.location.lng || null,
 | 
			
		||||
        adcode: geocoderResult.ad_info && geocoderResult.ad_info.adcode || null,
 | 
			
		||||
        province: geocoderResult.address_components && geocoderResult.address_components.province || null,
 | 
			
		||||
        city: geocoderResult.address_components && geocoderResult.address_components.city || null,
 | 
			
		||||
        district: geocoderResult.address_components && geocoderResult.address_components.district || null,
 | 
			
		||||
        street: geocoderResult.address_components && geocoderResult.address_components.street || null,
 | 
			
		||||
        street_number: geocoderResult.address_components && geocoderResult.address_components.street_number || null,
 | 
			
		||||
        level: geocoderResult.level || null
 | 
			
		||||
      };
 | 
			
		||||
      param.success(data, {geocoderResult: geocoderResult, geocoderSimplify: geocoderSimplify})
 | 
			
		||||
    } else if (feature == 'getCityList') {
 | 
			
		||||
      var provinceResult = data.result[0];
 | 
			
		||||
      var cityResult = data.result[1];
 | 
			
		||||
      var districtResult = data.result[2];
 | 
			
		||||
      param.success(data, {provinceResult: provinceResult, cityResult: cityResult, districtResult: districtResult})
 | 
			
		||||
    } else if (feature == 'getDistrictByCityId') {
 | 
			
		||||
      var districtByCity = data.result[0];
 | 
			
		||||
      param.success(data, districtByCity)
 | 
			
		||||
    } else if (feature == 'calculateDistance') {
 | 
			
		||||
      var calculateDistanceResult = data.result.elements;
 | 
			
		||||
      var distance = [];
 | 
			
		||||
      for (var i = 0; i < calculateDistanceResult.length; i++) {
 | 
			
		||||
        distance.push(calculateDistanceResult[i].distance)
 | 
			
		||||
      }
 | 
			
		||||
      param.success(data, {calculateDistanceResult: calculateDistanceResult, distance: distance})
 | 
			
		||||
    } else if (feature == 'direction') {
 | 
			
		||||
      var direction = data.result.routes;
 | 
			
		||||
      param.success(data, direction)
 | 
			
		||||
    } else {
 | 
			
		||||
      param.success(data)
 | 
			
		||||
    }
 | 
			
		||||
  }, buildWxRequestConfig(param, options, feature) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    options.header = {"content-type": "application/json"};
 | 
			
		||||
    options.method = 'GET';
 | 
			
		||||
    options.success = function (res) {
 | 
			
		||||
      var data = res.data;
 | 
			
		||||
      if (data.status === 0) {
 | 
			
		||||
        that.handleData(param, data, feature)
 | 
			
		||||
      } else {
 | 
			
		||||
        param.fail(data)
 | 
			
		||||
      }
 | 
			
		||||
    };
 | 
			
		||||
    options.fail = function (res) {
 | 
			
		||||
      res.statusCode = ERROR_CONF.WX_ERR_CODE;
 | 
			
		||||
      param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg))
 | 
			
		||||
    };
 | 
			
		||||
    options.complete = function (res) {
 | 
			
		||||
      var statusCode = +res.statusCode;
 | 
			
		||||
      switch (statusCode) {
 | 
			
		||||
        case ERROR_CONF.WX_ERR_CODE: {
 | 
			
		||||
          param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
 | 
			
		||||
          break
 | 
			
		||||
        }
 | 
			
		||||
        case ERROR_CONF.WX_OK_CODE: {
 | 
			
		||||
          var data = res.data;
 | 
			
		||||
          if (data.status === 0) {
 | 
			
		||||
            param.complete(data)
 | 
			
		||||
          } else {
 | 
			
		||||
            param.complete(that.buildErrorConfig(data.status, data.message))
 | 
			
		||||
          }
 | 
			
		||||
          break
 | 
			
		||||
        }
 | 
			
		||||
        default: {
 | 
			
		||||
          param.complete(that.buildErrorConfig(ERROR_CONF.SYSTEM_ERR, ERROR_CONF.SYSTEM_ERR_MSG))
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    };
 | 
			
		||||
    return options
 | 
			
		||||
  }, locationProcess(param, locationsuccess, locationfail, locationcomplete) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    locationfail = locationfail || function (res) {
 | 
			
		||||
      res.statusCode = ERROR_CONF.WX_ERR_CODE;
 | 
			
		||||
      param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg))
 | 
			
		||||
    };
 | 
			
		||||
    locationcomplete = locationcomplete || function (res) {
 | 
			
		||||
      if (res.statusCode == ERROR_CONF.WX_ERR_CODE) {
 | 
			
		||||
        param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg))
 | 
			
		||||
      }
 | 
			
		||||
    };
 | 
			
		||||
    if (!param.location) {
 | 
			
		||||
      that.getWXLocation(locationsuccess, locationfail, locationcomplete)
 | 
			
		||||
    } else if (that.checkLocation(param)) {
 | 
			
		||||
      var location = Utils.getLocationParam(param.location);
 | 
			
		||||
      locationsuccess(location)
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
class QQMapWX {
 | 
			
		||||
  constructor(options) {
 | 
			
		||||
    if (!options.key) {
 | 
			
		||||
      throw Error('key值不能为空')
 | 
			
		||||
    }
 | 
			
		||||
    this.key = options.key
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  search(options) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    options = options || {};
 | 
			
		||||
    Utils.polyfillParam(options);
 | 
			
		||||
    if (!Utils.checkKeyword(options)) {
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    var requestParam = {
 | 
			
		||||
      keyword: options.keyword,
 | 
			
		||||
      orderby: options.orderby || '_distance',
 | 
			
		||||
      page_size: options.page_size || 10,
 | 
			
		||||
      page_index: options.page_index || 1,
 | 
			
		||||
      output: 'json',
 | 
			
		||||
      key: that.key
 | 
			
		||||
    };
 | 
			
		||||
    if (options.address_format) {
 | 
			
		||||
      requestParam.address_format = options.address_format
 | 
			
		||||
    }
 | 
			
		||||
    if (options.filter) {
 | 
			
		||||
      requestParam.filter = options.filter
 | 
			
		||||
    }
 | 
			
		||||
    var distance = options.distance || "1000";
 | 
			
		||||
    var auto_extend = options.auto_extend || 1;
 | 
			
		||||
    var region = null;
 | 
			
		||||
    var rectangle = null;
 | 
			
		||||
    if (options.region) {
 | 
			
		||||
      region = options.region
 | 
			
		||||
    }
 | 
			
		||||
    if (options.rectangle) {
 | 
			
		||||
      rectangle = options.rectangle
 | 
			
		||||
    }
 | 
			
		||||
    var locationsuccess = function (result) {
 | 
			
		||||
      if (region && !rectangle) {
 | 
			
		||||
        requestParam.boundary = "region(" + region + "," + auto_extend + "," + result.latitude + "," + result.longitude + ")";
 | 
			
		||||
        if (options.sig) {
 | 
			
		||||
          requestParam.sig = Utils.getSig(requestParam, options.sig, 'search')
 | 
			
		||||
        }
 | 
			
		||||
      } else if (rectangle && !region) {
 | 
			
		||||
        requestParam.boundary = "rectangle(" + rectangle + ")";
 | 
			
		||||
        if (options.sig) {
 | 
			
		||||
          requestParam.sig = Utils.getSig(requestParam, options.sig, 'search')
 | 
			
		||||
        }
 | 
			
		||||
      } else {
 | 
			
		||||
        requestParam.boundary = "nearby(" + result.latitude + "," + result.longitude + "," + distance + "," + auto_extend + ")";
 | 
			
		||||
        if (options.sig) {
 | 
			
		||||
          requestParam.sig = Utils.getSig(requestParam, options.sig, 'search')
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      wx.request(Utils.buildWxRequestConfig(options, {url: URL_SEARCH, data: requestParam}, 'search'))
 | 
			
		||||
    };
 | 
			
		||||
    Utils.locationProcess(options, locationsuccess)
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  getSuggestion(options) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    options = options || {};
 | 
			
		||||
    Utils.polyfillParam(options);
 | 
			
		||||
    if (!Utils.checkKeyword(options)) {
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    var requestParam = {
 | 
			
		||||
      keyword: options.keyword,
 | 
			
		||||
      region: options.region || '全国',
 | 
			
		||||
      region_fix: options.region_fix || 0,
 | 
			
		||||
      policy: options.policy || 0,
 | 
			
		||||
      page_size: options.page_size || 10,
 | 
			
		||||
      page_index: options.page_index || 1,
 | 
			
		||||
      get_subpois: options.get_subpois || 0,
 | 
			
		||||
      output: 'json',
 | 
			
		||||
      key: that.key
 | 
			
		||||
    };
 | 
			
		||||
    if (options.address_format) {
 | 
			
		||||
      requestParam.address_format = options.address_format
 | 
			
		||||
    }
 | 
			
		||||
    if (options.filter) {
 | 
			
		||||
      requestParam.filter = options.filter
 | 
			
		||||
    }
 | 
			
		||||
    if (options.location) {
 | 
			
		||||
      var locationsuccess = function (result) {
 | 
			
		||||
        requestParam.location = result.latitude + ',' + result.longitude;
 | 
			
		||||
        if (options.sig) {
 | 
			
		||||
          requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest')
 | 
			
		||||
        }
 | 
			
		||||
        wx.request(Utils.buildWxRequestConfig(options, {url: URL_SUGGESTION, data: requestParam}, "suggest"))
 | 
			
		||||
      };
 | 
			
		||||
      Utils.locationProcess(options, locationsuccess)
 | 
			
		||||
    } else {
 | 
			
		||||
      if (options.sig) {
 | 
			
		||||
        requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest')
 | 
			
		||||
      }
 | 
			
		||||
      wx.request(Utils.buildWxRequestConfig(options, {url: URL_SUGGESTION, data: requestParam}, "suggest"))
 | 
			
		||||
    }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  reverseGeocoder(options) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    options = options || {};
 | 
			
		||||
    Utils.polyfillParam(options);
 | 
			
		||||
    var requestParam = {coord_type: options.coord_type || 5, get_poi: options.get_poi || 0, output: 'json', key: that.key};
 | 
			
		||||
    if (options.poi_options) {
 | 
			
		||||
      requestParam.poi_options = options.poi_options
 | 
			
		||||
    }
 | 
			
		||||
    var locationsuccess = function (result) {
 | 
			
		||||
      requestParam.location = result.latitude + ',' + result.longitude;
 | 
			
		||||
      if (options.sig) {
 | 
			
		||||
        requestParam.sig = Utils.getSig(requestParam, options.sig, 'reverseGeocoder')
 | 
			
		||||
      }
 | 
			
		||||
      wx.request(Utils.buildWxRequestConfig(options, {url: URL_GET_GEOCODER, data: requestParam}, 'reverseGeocoder'))
 | 
			
		||||
    };
 | 
			
		||||
    Utils.locationProcess(options, locationsuccess)
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  geocoder(options) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    options = options || {};
 | 
			
		||||
    Utils.polyfillParam(options);
 | 
			
		||||
    if (Utils.checkParamKeyEmpty(options, 'address')) {
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    var requestParam = {address: options.address, output: 'json', key: that.key};
 | 
			
		||||
    if (options.region) {
 | 
			
		||||
      requestParam.region = options.region
 | 
			
		||||
    }
 | 
			
		||||
    if (options.sig) {
 | 
			
		||||
      requestParam.sig = Utils.getSig(requestParam, options.sig, 'geocoder')
 | 
			
		||||
    }
 | 
			
		||||
    wx.request(Utils.buildWxRequestConfig(options, {url: URL_GET_GEOCODER, data: requestParam}, 'geocoder'))
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  getCityList(options) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    options = options || {};
 | 
			
		||||
    Utils.polyfillParam(options);
 | 
			
		||||
    var requestParam = {output: 'json', key: that.key};
 | 
			
		||||
    if (options.sig) {
 | 
			
		||||
      requestParam.sig = Utils.getSig(requestParam, options.sig, 'getCityList')
 | 
			
		||||
    }
 | 
			
		||||
    wx.request(Utils.buildWxRequestConfig(options, {url: URL_CITY_LIST, data: requestParam}, 'getCityList'))
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  getDistrictByCityId(options) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    options = options || {};
 | 
			
		||||
    Utils.polyfillParam(options);
 | 
			
		||||
    if (Utils.checkParamKeyEmpty(options, 'id')) {
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    var requestParam = {id: options.id || '', output: 'json', key: that.key};
 | 
			
		||||
    if (options.sig) {
 | 
			
		||||
      requestParam.sig = Utils.getSig(requestParam, options.sig, 'getDistrictByCityId')
 | 
			
		||||
    }
 | 
			
		||||
    wx.request(Utils.buildWxRequestConfig(options, {url: URL_AREA_LIST, data: requestParam}, 'getDistrictByCityId'))
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  calculateDistance(options) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    options = options || {};
 | 
			
		||||
    Utils.polyfillParam(options);
 | 
			
		||||
    if (Utils.checkParamKeyEmpty(options, 'to')) {
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    var requestParam = {mode: options.mode || 'walking', to: Utils.location2query(options.to), output: 'json', key: that.key};
 | 
			
		||||
    if (options.from) {
 | 
			
		||||
      options.location = options.from
 | 
			
		||||
    }
 | 
			
		||||
    if (requestParam.mode == 'straight') {
 | 
			
		||||
      var locationsuccess = function (result) {
 | 
			
		||||
        var locationTo = Utils.getEndLocation(requestParam.to);
 | 
			
		||||
        var data = {message: "query ok", result: {elements: []}, status: 0};
 | 
			
		||||
        for (var i = 0; i < locationTo.length; i++) {
 | 
			
		||||
          data.result.elements.push({
 | 
			
		||||
            distance: Utils.getDistance(result.latitude, result.longitude, locationTo[i].lat, locationTo[i].lng),
 | 
			
		||||
            duration: 0,
 | 
			
		||||
            from: {lat: result.latitude, lng: result.longitude},
 | 
			
		||||
            to: {lat: locationTo[i].lat, lng: locationTo[i].lng}
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
        var calculateResult = data.result.elements;
 | 
			
		||||
        var distanceResult = [];
 | 
			
		||||
        for (var i = 0; i < calculateResult.length; i++) {
 | 
			
		||||
          distanceResult.push(calculateResult[i].distance)
 | 
			
		||||
        }
 | 
			
		||||
        return options.success(data, {calculateResult: calculateResult, distanceResult: distanceResult})
 | 
			
		||||
      };
 | 
			
		||||
      Utils.locationProcess(options, locationsuccess)
 | 
			
		||||
    } else {
 | 
			
		||||
      var locationsuccess = function (result) {
 | 
			
		||||
        requestParam.from = result.latitude + ',' + result.longitude;
 | 
			
		||||
        if (options.sig) {
 | 
			
		||||
          requestParam.sig = Utils.getSig(requestParam, options.sig, 'calculateDistance')
 | 
			
		||||
        }
 | 
			
		||||
        wx.request(Utils.buildWxRequestConfig(options, {url: URL_DISTANCE, data: requestParam}, 'calculateDistance'))
 | 
			
		||||
      };
 | 
			
		||||
      Utils.locationProcess(options, locationsuccess)
 | 
			
		||||
    }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  direction(options) {
 | 
			
		||||
    var that = this;
 | 
			
		||||
    options = options || {};
 | 
			
		||||
    Utils.polyfillParam(options);
 | 
			
		||||
    if (Utils.checkParamKeyEmpty(options, 'to')) {
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    var requestParam = {output: 'json', key: that.key};
 | 
			
		||||
    if (typeof options.to == 'string') {
 | 
			
		||||
      requestParam.to = options.to
 | 
			
		||||
    } else {
 | 
			
		||||
      requestParam.to = options.to.latitude + ',' + options.to.longitude
 | 
			
		||||
    }
 | 
			
		||||
    var SET_URL_DIRECTION = null;
 | 
			
		||||
    options.mode = options.mode || MODE.driving;
 | 
			
		||||
    SET_URL_DIRECTION = URL_DIRECTION + options.mode;
 | 
			
		||||
    if (options.from) {
 | 
			
		||||
      options.location = options.from
 | 
			
		||||
    }
 | 
			
		||||
    if (options.mode == MODE.driving) {
 | 
			
		||||
      if (options.from_poi) {
 | 
			
		||||
        requestParam.from_poi = options.from_poi
 | 
			
		||||
      }
 | 
			
		||||
      if (options.heading) {
 | 
			
		||||
        requestParam.heading = options.heading
 | 
			
		||||
      }
 | 
			
		||||
      if (options.speed) {
 | 
			
		||||
        requestParam.speed = options.speed
 | 
			
		||||
      }
 | 
			
		||||
      if (options.accuracy) {
 | 
			
		||||
        requestParam.accuracy = options.accuracy
 | 
			
		||||
      }
 | 
			
		||||
      if (options.road_type) {
 | 
			
		||||
        requestParam.road_type = options.road_type
 | 
			
		||||
      }
 | 
			
		||||
      if (options.to_poi) {
 | 
			
		||||
        requestParam.to_poi = options.to_poi
 | 
			
		||||
      }
 | 
			
		||||
      if (options.from_track) {
 | 
			
		||||
        requestParam.from_track = options.from_track
 | 
			
		||||
      }
 | 
			
		||||
      if (options.waypoints) {
 | 
			
		||||
        requestParam.waypoints = options.waypoints
 | 
			
		||||
      }
 | 
			
		||||
      if (options.policy) {
 | 
			
		||||
        requestParam.policy = options.policy
 | 
			
		||||
      }
 | 
			
		||||
      if (options.plate_number) {
 | 
			
		||||
        requestParam.plate_number = options.plate_number
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    if (options.mode == MODE.transit) {
 | 
			
		||||
      if (options.departure_time) {
 | 
			
		||||
        requestParam.departure_time = options.departure_time
 | 
			
		||||
      }
 | 
			
		||||
      if (options.policy) {
 | 
			
		||||
        requestParam.policy = options.policy
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    var locationsuccess = function (result) {
 | 
			
		||||
      requestParam.from = result.latitude + ',' + result.longitude;
 | 
			
		||||
      if (options.sig) {
 | 
			
		||||
        requestParam.sig = Utils.getSig(requestParam, options.sig, 'direction', options.mode)
 | 
			
		||||
      }
 | 
			
		||||
      wx.request(Utils.buildWxRequestConfig(options, {url: SET_URL_DIRECTION, data: requestParam}, 'direction'))
 | 
			
		||||
    };
 | 
			
		||||
    Utils.locationProcess(options, locationsuccess)
 | 
			
		||||
  }
 | 
			
		||||
};module.exports = QQMapWX;
 | 
			
		||||
@@ -1,125 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="pickDetail">
 | 
			
		||||
    <div class="container">
 | 
			
		||||
      <div class="title-info" v-if="data.girdName">
 | 
			
		||||
        {{data.girdName}}
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="type-info">{{data.createUserName}}<span>{{data.title}}</span></div>
 | 
			
		||||
      <div class="content-info">{{ data.content }}</div>
 | 
			
		||||
      <div class="imgs" v-if="images.length">
 | 
			
		||||
        <image v-for="(img, i) in images" @click="preview(img.url, images)" :key="i" class="banner" :src="img.url"/>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="imgs" v-if="videos.length">
 | 
			
		||||
        <video v-for="(video, ins) in videos" :key="ins" class="file-img" :src="video.url"/>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
export default {
 | 
			
		||||
  name: 'pickDetail',
 | 
			
		||||
  appName: '精选动态',
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      images: [],
 | 
			
		||||
      videos: [],
 | 
			
		||||
      id: '',
 | 
			
		||||
      data: {}
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getDetail() {
 | 
			
		||||
      this.$instance.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          this.data = res.data
 | 
			
		||||
          this.images = res.data.files.filter(e => (['jpeg', 'jpg', 'png'].includes(e.postfix.split('.')[1])))
 | 
			
		||||
          this.videos = res.data.files.filter(e => (['mp4','MP4', 'MOV'].includes(e.postfix.split('.')[1])))
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    preview(url, imgs) {
 | 
			
		||||
      uni.previewImage({
 | 
			
		||||
        urls: imgs.map((v) => v.url),
 | 
			
		||||
        current: url,
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
  },
 | 
			
		||||
  onLoad(o) {
 | 
			
		||||
    this.id = o.id;
 | 
			
		||||
    this.getDetail()
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.pickDetail {
 | 
			
		||||
  padding-top: 32px;
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  .container {
 | 
			
		||||
    padding: 32px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    .title-info {
 | 
			
		||||
      font-family: PingFangSC-SNaNpxibold;
 | 
			
		||||
      font-weight: 600;
 | 
			
		||||
      font-size: 34px;
 | 
			
		||||
      color: #333;
 | 
			
		||||
      letter-spacing: 0;
 | 
			
		||||
      line-height: 40px;
 | 
			
		||||
      margin-bottom: 16px;
 | 
			
		||||
    }
 | 
			
		||||
    .type-info {
 | 
			
		||||
      font-family: PingFangSC-Regular;
 | 
			
		||||
      font-size: 34px;
 | 
			
		||||
      color: #687DA6;
 | 
			
		||||
      line-height: 40px;
 | 
			
		||||
      margin-bottom: 28px;
 | 
			
		||||
      span {
 | 
			
		||||
        display: inline-block;
 | 
			
		||||
        font-family: PingFangSC-Regular;
 | 
			
		||||
        font-size: 26px;
 | 
			
		||||
        color: #666;
 | 
			
		||||
        line-height: 40px;
 | 
			
		||||
        margin-left: 20px;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    .title {
 | 
			
		||||
      font-size: 34px;
 | 
			
		||||
      font-weight: 600;
 | 
			
		||||
      color: #333333;
 | 
			
		||||
    }
 | 
			
		||||
    .avatar {
 | 
			
		||||
      font-size: 26px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
      color: #999999;
 | 
			
		||||
      margin-top: 16px;
 | 
			
		||||
    }
 | 
			
		||||
    .content-info {
 | 
			
		||||
      font-size: 28px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
      color: #333333;
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
      padding: 0;
 | 
			
		||||
    }
 | 
			
		||||
    .imgs {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      flex-wrap: wrap;
 | 
			
		||||
      margin-top: 24px;
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
 | 
			
		||||
      image,
 | 
			
		||||
      video {
 | 
			
		||||
        width: 226px;
 | 
			
		||||
        height: 226px;
 | 
			
		||||
        margin: 0 4px 4px 0;
 | 
			
		||||
      }
 | 
			
		||||
      image:nth-child(3n + 0),
 | 
			
		||||
      video:nth-child(3n + 0) {
 | 
			
		||||
        margin: 0;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,96 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="signIn">
 | 
			
		||||
    <div class="card">
 | 
			
		||||
      <div class="imgs">
 | 
			
		||||
        <img src="https://cdn.cunwuyun.cn/fengdu/img-qiandaochenggong.png" alt="">
 | 
			
		||||
      </div>
 | 
			
		||||
      <p class="status">今日已完成签到</p>
 | 
			
		||||
      <h4>积分<span>+{{ data.changeIntegral || 0}}</span></h4>
 | 
			
		||||
      <div class="times">
 | 
			
		||||
        <div>时间</div>
 | 
			
		||||
        <div class="value">{{ data.createTime.slice(0,16) }}</div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
export default {
 | 
			
		||||
  name: 'signIn',
 | 
			
		||||
  appName: '签到',
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      showPage: false,
 | 
			
		||||
      data: {},
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    sign() {
 | 
			
		||||
      this.$instance.post(`/app/appwechatsigninfo/sign`,{}).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          this.data = res.data
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  onShow() {
 | 
			
		||||
    this.sign()
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.signIn {
 | 
			
		||||
  width: 100vw;
 | 
			
		||||
  height: 100vh;
 | 
			
		||||
  padding: 32px;
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  .card {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    background: #FFFFFF;
 | 
			
		||||
    border-radius: 16px;
 | 
			
		||||
    padding-top: 120px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
 | 
			
		||||
    .imgs {
 | 
			
		||||
      margin: 0 auto;
 | 
			
		||||
      width: 238px;
 | 
			
		||||
      height: 238px;
 | 
			
		||||
      img {
 | 
			
		||||
        width: 100%;
 | 
			
		||||
        height: 100%;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    .status {
 | 
			
		||||
      margin-top: 72px;
 | 
			
		||||
      text-align: center;
 | 
			
		||||
      font-size: 36px;
 | 
			
		||||
      font-weight: 500;
 | 
			
		||||
    }
 | 
			
		||||
    h4 {
 | 
			
		||||
      text-align: center;
 | 
			
		||||
      margin-top: 24px;
 | 
			
		||||
      color: #666666;
 | 
			
		||||
      font-size: 28px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
      span {
 | 
			
		||||
        font-size: 52rpx;
 | 
			
		||||
        font-weight: 600;
 | 
			
		||||
        color: #5AAD6A;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    .times {
 | 
			
		||||
      width: 70%;
 | 
			
		||||
      border-top: 2px solid #f5f5f5;
 | 
			
		||||
      margin: 70px auto 0;
 | 
			
		||||
      padding-top: 72px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      display: flex;
 | 
			
		||||
      justify-content: space-between;
 | 
			
		||||
      .value {
 | 
			
		||||
        color: #666666;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,534 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="page">
 | 
			
		||||
    <div class="taskDetail" v-if="showPages">
 | 
			
		||||
      <div class="task">
 | 
			
		||||
        <h4>{{ info.title }}</h4>
 | 
			
		||||
        <p>{{ info.detail }}</p>
 | 
			
		||||
        <div class="imgs" v-if="info.files">
 | 
			
		||||
          <image :src="item.url" v-for="(item, index) in info.files" :key="index" mode="aspectFill" @click="preview(item.url)" />
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
      <div class="info">
 | 
			
		||||
        <div class="title">基础信息</div>
 | 
			
		||||
        <div class="items">
 | 
			
		||||
          <img src="https://cdn.cunwuyun.cn/fengdu/ic-dizhi.png" alt="">
 | 
			
		||||
          <div class="items-info">
 | 
			
		||||
            <label>活动地点:</label>
 | 
			
		||||
            <div class="value">{{ info.address }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="address" @click="toAddress">
 | 
			
		||||
            <img src="https://cdn.cunwuyun.cn/fengdu/ic-daohang.png" alt="">
 | 
			
		||||
            <i>导航</i>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="item">
 | 
			
		||||
          <img src="https://cdn.cunwuyun.cn/fengdu/ic-renwuleixing.png" alt="">
 | 
			
		||||
          <div class="item-info">
 | 
			
		||||
            <label>任务类型:</label>
 | 
			
		||||
            <div class="value">{{ $dict.getLabel('fdIntegralTaskType', info.type) }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="item">
 | 
			
		||||
          <img src="https://cdn.cunwuyun.cn/fengdu/ic-jinchangshijian.png" alt="">
 | 
			
		||||
          <div class="item-info" v-if="info.intoBegintime && info.intoEndtime">
 | 
			
		||||
            <label>{{ info.type == 0 ? '进场时间:' : '报名时间:' }}</label>
 | 
			
		||||
            <div class="value">{{ info.intoBegintime.substring(0, 16) }} 至 {{ info.intoEndtime.substring(0, 16) }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="item" v-if="info.type == 0">
 | 
			
		||||
          <img src="https://cdn.cunwuyun.cn/fengdu/ic-lichangshijian.png" alt="">
 | 
			
		||||
          <div class="item-info" v-if="info.exitBegintime && info.exitEndtime">
 | 
			
		||||
            <label>离场时间:</label>
 | 
			
		||||
            <div class="value">{{ info.exitBegintime.substring(0, 16) }} 至 {{ info.exitEndtime.substring(0, 16) }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="btn-wrapper" v-if="info.type == 1">
 | 
			
		||||
        <div class="btn" @click="signUp" hover-class="text-hover" :class="baoming == 1 ? 'opacity' : baoming == 0 ? 'gray' : ''">
 | 
			
		||||
          <span v-if="baoming == 2 || baoming == 0">报名得积分<span v-if="baoming == 2">/积分+{{ info.enrollIntegral }}</span></span>
 | 
			
		||||
          <span v-if="baoming == 1">已报名</span>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="btn-wrapper" v-if="info.type == 0">
 | 
			
		||||
        <div class="btn" @click="clockIn" hover-class="text-hover" :class="isClock == 0 ? 'gray' : isClock == 3 ? 'gray' : isClock == 2 ? 'opacity' : isClock == 4 ? 'opacity' : ''">
 | 
			
		||||
          <div class="daka">{{ dkqd }}<span v-if="isClock == 1">/积分+{{ intoIntegral }}</span></div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <AiLogin ref="login" @success="getAuth()"/>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { mapState, mapActions } from 'vuex'
 | 
			
		||||
var QQMapWX = require('./libs/qqmap-wx-jssdk.js')
 | 
			
		||||
export default {
 | 
			
		||||
  name: "taskDetail",
 | 
			
		||||
  appName: "任务详情",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      info: {},
 | 
			
		||||
      id: '',
 | 
			
		||||
      latitude: '',
 | 
			
		||||
      longitude: '',
 | 
			
		||||
      address: '',
 | 
			
		||||
      qqmapsdk: null,
 | 
			
		||||
      distance: 100,
 | 
			
		||||
      flag: false,
 | 
			
		||||
      showPages: false,
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user', 'token']),
 | 
			
		||||
    intoIntegral() {
 | 
			
		||||
      const times = new Date().getTime()
 | 
			
		||||
      const inSTimes = new Date(this.info.intoBegintime?.replaceAll('-', '/')).getTime()
 | 
			
		||||
      const inETimes = new Date(this.info.intoEndtime?.replaceAll('-', '/')).getTime()
 | 
			
		||||
      const outSTimes = new Date(this.info.exitBegintime?.replaceAll('-', '/')).getTime()
 | 
			
		||||
      const outETimes = new Date(this.info.exitEndtime?.replaceAll('-', '/')).getTime()
 | 
			
		||||
 | 
			
		||||
      if (times > inSTimes && times < inETimes) {
 | 
			
		||||
        return this.info.intoIntegral
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (times > outSTimes && times < outETimes) {
 | 
			
		||||
        return this.info.exitIntegral
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      return 0
 | 
			
		||||
    },
 | 
			
		||||
    isClock() {
 | 
			
		||||
      const times = new Date().getTime()
 | 
			
		||||
      const inSTimes = new Date(this.info.intoBegintime?.replaceAll('-', '/')).getTime()
 | 
			
		||||
      const inETimes = new Date(this.info.intoEndtime?.replaceAll('-', '/')).getTime()
 | 
			
		||||
      const outSTimes = new Date(this.info.exitBegintime?.replaceAll('-', '/')).getTime()
 | 
			
		||||
      const outETimes = new Date(this.info.exitEndtime?.replaceAll('-', '/')).getTime()
 | 
			
		||||
      // 不符合条件(任务未开始、已经结束..)
 | 
			
		||||
      if (times < inSTimes || times > outETimes || (inETimes < times && times < outSTimes)) {
 | 
			
		||||
        return 0
 | 
			
		||||
      }
 | 
			
		||||
      // 在打卡范围内未打卡
 | 
			
		||||
      if (this.info.clockRange > this.distance && (!this.info.intoClock && (inSTimes < times && times < inETimes)) || !this.info.exitClock && (outSTimes < times && times < outETimes)) {
 | 
			
		||||
        return 1
 | 
			
		||||
      }
 | 
			
		||||
      // 已打卡(打卡距离内 && 打卡时间内)
 | 
			
		||||
      if(this.info.clockRange > this.distance && (this.info.intoClock && (inSTimes < times && times < inETimes)) || (this.info.exitClock && outSTimes < times && times < outETimes)) {
 | 
			
		||||
        return 2
 | 
			
		||||
      }
 | 
			
		||||
      // 没在指定范围
 | 
			
		||||
      if(this.distance > this.info.clockRange) {
 | 
			
		||||
        return 3
 | 
			
		||||
      }
 | 
			
		||||
      // 在打卡范围内,没有积分
 | 
			
		||||
      if (this.info.clockRange > this.distance && (this.info.intoClock && (inSTimes < times && times < inETimes) && this.info.intoIntegral) || (this.info.exitClock && outSTimes < times && times < outETimes) && !this.info.exitIntegral) {
 | 
			
		||||
        return 4
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    scope() {
 | 
			
		||||
      const times = new Date().getTime()
 | 
			
		||||
      const inSTimes = new Date(this.info.intoBegintime?.replaceAll('-', '/')).getTime() // 进场开始
 | 
			
		||||
      const inETimes = new Date(this.info.intoEndtime?.replaceAll('-', '/')).getTime() // 进场结束
 | 
			
		||||
      const outSTimes = new Date(this.info.exitBegintime?.replaceAll('-', '/')).getTime() // 离场开始
 | 
			
		||||
      const outETimes = new Date(this.info.exitEndtime?.replaceAll('-', '/')).getTime() // 离场结束
 | 
			
		||||
 | 
			
		||||
      if (this.info.clockRange > this.distance && (this.info.intoClock && (inSTimes < times && times < inETimes)) || (this.info.exitClock && outSTimes < times && times < outETimes)) {
 | 
			
		||||
        return `无法重复打卡`
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (this.info.clockRange > this.distance && (!this.info.intoClock && (times > inSTimes && times < inETimes)) || !this.info.exitClock && (times > outSTimes && times < outETimes)) {
 | 
			
		||||
        return `符合打卡条件`
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      return `未到打卡时间/不在指定位置`
 | 
			
		||||
    },
 | 
			
		||||
    dkqd() {
 | 
			
		||||
      const times = new Date().getTime()
 | 
			
		||||
      const inSTimes = new Date(this.info.intoBegintime?.replaceAll('-', '/')).getTime() // 进场开始
 | 
			
		||||
      const inETimes = new Date(this.info.intoEndtime?.replaceAll('-', '/')).getTime() // 进场结束
 | 
			
		||||
      const outSTimes = new Date(this.info.exitBegintime?.replaceAll('-', '/')).getTime() // 离场开始
 | 
			
		||||
      const outETimes = new Date(this.info.exitEndtime?.replaceAll('-', '/')).getTime() // 离场结束
 | 
			
		||||
      if (this.info.clockRange > this.distance && (this.info.intoClock && (times > inSTimes && times < inETimes)) || (this.info.exitClock && outSTimes < times && times < outETimes)) {
 | 
			
		||||
        return `已打卡`
 | 
			
		||||
      }
 | 
			
		||||
      if (this.info.clockRange > this.distance && (!this.info.intoClock && (times > inSTimes && times < inETimes) && this.info.intoIntegral) || !this.info.exitClock && (times > outSTimes && times < outETimes) && this.info.exitIntegral) {
 | 
			
		||||
        return `打卡签到`
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (times > outSTimes && times < outETimes && !this.info.exitIntegral) {
 | 
			
		||||
        return `已打卡`
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      return `打卡签到`
 | 
			
		||||
    },
 | 
			
		||||
    baoming() {
 | 
			
		||||
      const times = new Date().getTime()
 | 
			
		||||
      const inSTimes = new Date(this.info.intoBegintime).getTime() // 报名开始
 | 
			
		||||
      const inETimes = new Date(this.info.intoEndtime).getTime() // 报名结束
 | 
			
		||||
      // 1已报名 
 | 
			
		||||
      if (this.info.enrollClock) {
 | 
			
		||||
        return 1
 | 
			
		||||
      }
 | 
			
		||||
      // 2可以报名
 | 
			
		||||
      if (!this.info.enrollClock && times < inETimes && times > inSTimes) {
 | 
			
		||||
        return 2
 | 
			
		||||
      }
 | 
			
		||||
      // 0不符合条件
 | 
			
		||||
      return 0
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    ...mapActions(['getUserInfo']),
 | 
			
		||||
    toAddress() {
 | 
			
		||||
      wx.openLocation({
 | 
			
		||||
        latitude: this.info.lat,
 | 
			
		||||
        longitude: this.info.lng,
 | 
			
		||||
        scale: 18
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    preview(url) {
 | 
			
		||||
      uni.previewImage({
 | 
			
		||||
        urls: this.info.files.map(v => v.url),
 | 
			
		||||
        current: url
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    getDetail() {
 | 
			
		||||
      this.$instance.post(`/app/appintegraltask/queryDetailById?id=${this.id}`).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          this.info = res.data
 | 
			
		||||
          this.$nextTick(() => {
 | 
			
		||||
            this.getLocation()
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    // 打卡积分
 | 
			
		||||
    clockIn() {
 | 
			
		||||
      if(!this.user.idNumber) {
 | 
			
		||||
        return this.$dialog.confirm({
 | 
			
		||||
          content: '您只有完成信息认证后,才可进行相关操作。',
 | 
			
		||||
          confirmText: '去认证'
 | 
			
		||||
        }).then(() => {
 | 
			
		||||
          this.$linkTo('/mods/AppMine/userInfo')
 | 
			
		||||
        }).catch(() => {
 | 
			
		||||
        })
 | 
			
		||||
      }
 | 
			
		||||
      if (!this.latitude) {
 | 
			
		||||
        this.$dialog.alert({
 | 
			
		||||
          title: '温馨提示',
 | 
			
		||||
          content: '您未授权定位,请先授权!'
 | 
			
		||||
        }).then(() => {
 | 
			
		||||
          this.getLocation()
 | 
			
		||||
        }).catch(() => {
 | 
			
		||||
        })
 | 
			
		||||
 | 
			
		||||
        return false
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (this.isClock == 0 || this.isClock == 3) {
 | 
			
		||||
        return this.$dialog.alert({
 | 
			
		||||
          title: '温馨提示',
 | 
			
		||||
          content: '不满足打卡条件!'
 | 
			
		||||
        }).then(() => {
 | 
			
		||||
          this.getLocation()
 | 
			
		||||
        }).catch(() => {
 | 
			
		||||
        })
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
      if (this.isClock == 2 || this.isClock == 4) {
 | 
			
		||||
        return this.$u.toast(`已打卡,请勿重复打卡!`)
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      this.flag = true
 | 
			
		||||
      this.daKa()
 | 
			
		||||
    },
 | 
			
		||||
    // 报名积分
 | 
			
		||||
    signUp() {
 | 
			
		||||
      if(this.info.enrollClock) return
 | 
			
		||||
 | 
			
		||||
      if(this.baoming==0) {
 | 
			
		||||
        return this.$u.toast('不符合报名条件')
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      this.flag = true 
 | 
			
		||||
      this.daKa()
 | 
			
		||||
    },
 | 
			
		||||
    daKa() {
 | 
			
		||||
      this.$instance.post(`/app/appintegraltask/clock`, {
 | 
			
		||||
        address: this.address,
 | 
			
		||||
        clockTime: this.$dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
 | 
			
		||||
        lat: this.latitude,
 | 
			
		||||
        lng: this.longitude,
 | 
			
		||||
        openId: this.user.openId,
 | 
			
		||||
        realName: this.user.realName,
 | 
			
		||||
        taskId: this.id,
 | 
			
		||||
        type: this.info.type
 | 
			
		||||
      }).then(res => {
 | 
			
		||||
        if (res?.code == 0) {
 | 
			
		||||
          this.flag = false
 | 
			
		||||
          if (this.info.type == 1) {
 | 
			
		||||
            this.$u.toast('报名成功!')
 | 
			
		||||
          } else {
 | 
			
		||||
            this.$u.toast('打卡签到成功!')
 | 
			
		||||
          }
 | 
			
		||||
          setTimeout(()=> {
 | 
			
		||||
            this.getDetail()
 | 
			
		||||
          }, 400)
 | 
			
		||||
        }
 | 
			
		||||
      }).catch(err => this.$u.toast(err))
 | 
			
		||||
    },
 | 
			
		||||
    getLocation() {
 | 
			
		||||
      wx.authorize({
 | 
			
		||||
        scope: 'scope.userLocation',
 | 
			
		||||
        success: () => {
 | 
			
		||||
          uni.getLocation({
 | 
			
		||||
            type: 'gcj02',
 | 
			
		||||
            success: res => {
 | 
			
		||||
              this.latitude = res.latitude
 | 
			
		||||
              this.longitude = res.longitude
 | 
			
		||||
              this.qqmapsdk.reverseGeocoder({
 | 
			
		||||
                location: `${res.latitude},${res.longitude}`,
 | 
			
		||||
                success: data => {
 | 
			
		||||
                  this.address = data.result.formatted_addresses.recommend
 | 
			
		||||
                },
 | 
			
		||||
                fail: function (info) {
 | 
			
		||||
                  console.log(info)
 | 
			
		||||
                }
 | 
			
		||||
              })
 | 
			
		||||
 | 
			
		||||
              this.qqmapsdk.calculateDistance({
 | 
			
		||||
                from: {
 | 
			
		||||
                  longitude: res.longitude,
 | 
			
		||||
                  latitude: res.latitude
 | 
			
		||||
                },
 | 
			
		||||
                to: [{
 | 
			
		||||
                  longitude: this.info.lng,
 | 
			
		||||
                  latitude: this.info.lat
 | 
			
		||||
                }],
 | 
			
		||||
                success: res => {
 | 
			
		||||
                  this.distance = res.result.elements[0].distance
 | 
			
		||||
                },
 | 
			
		||||
                fail: function (error) {
 | 
			
		||||
                  console.error(error)
 | 
			
		||||
                },
 | 
			
		||||
                complete: function (res) {
 | 
			
		||||
                }
 | 
			
		||||
              })
 | 
			
		||||
            },
 | 
			
		||||
            fail: e => {
 | 
			
		||||
              console.log(e)
 | 
			
		||||
            }
 | 
			
		||||
          })
 | 
			
		||||
        },
 | 
			
		||||
        fail: () => {
 | 
			
		||||
          this.$dialog.confirm({
 | 
			
		||||
            content: '您未授权定位,功能将无法使用'
 | 
			
		||||
          }).then(() => {
 | 
			
		||||
            uni.openSetting({
 | 
			
		||||
              success: res => {
 | 
			
		||||
                if (!res.authSetting['scope.userLocation']) {
 | 
			
		||||
                  this.$dialog.alert({
 | 
			
		||||
                    content: '您未授权定位,功能将无法使用'
 | 
			
		||||
                  }).then(() => {
 | 
			
		||||
                  })
 | 
			
		||||
                } else {
 | 
			
		||||
                }
 | 
			
		||||
              }
 | 
			
		||||
            })
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    getAuth() {
 | 
			
		||||
      this.$nextTick(() => {
 | 
			
		||||
        this.token && this.getUserInfo('qujing')
 | 
			
		||||
        this.$nextTick(() => {
 | 
			
		||||
          this.toAuth()
 | 
			
		||||
        })
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    toAuth() {
 | 
			
		||||
      if (!this.user.idNumber) {
 | 
			
		||||
        this.$dialog.confirm({
 | 
			
		||||
          content: '您只有完成信息认证后,才可进行相关操作。',
 | 
			
		||||
          confirmText: '去认证'
 | 
			
		||||
        }).then(() => {
 | 
			
		||||
          this.$linkTo('/pages/AppMine/userInfo')
 | 
			
		||||
        }).catch(() => {
 | 
			
		||||
        })
 | 
			
		||||
      } else {
 | 
			
		||||
        this.getDetail()
 | 
			
		||||
        this.showPages = true
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  onLoad(o) {
 | 
			
		||||
    this.id = o?.id
 | 
			
		||||
    if (decodeURIComponent(o.scene) != 'undefined') {
 | 
			
		||||
      this.id = decodeURIComponent(o.scene)
 | 
			
		||||
    }
 | 
			
		||||
    uni.setNavigationBarTitle({
 | 
			
		||||
      title: '任务详情'
 | 
			
		||||
    });
 | 
			
		||||
    this.qqmapsdk = new QQMapWX({
 | 
			
		||||
      key: process.env.NODE_ENV == 'production' ? 'RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S' : '3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY'
 | 
			
		||||
    })
 | 
			
		||||
    this.$dict.load(['fdIntegralTaskType'])
 | 
			
		||||
  },
 | 
			
		||||
  onShow() {
 | 
			
		||||
    if (!this.token) {
 | 
			
		||||
      this.$refs.login.show()
 | 
			
		||||
    } else {
 | 
			
		||||
      this.toAuth()
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.taskDetail {
 | 
			
		||||
  padding-bottom: 400px;
 | 
			
		||||
  box-sizing: border-box;
 | 
			
		||||
  .task,
 | 
			
		||||
  .info {
 | 
			
		||||
    margin-top: 24px;
 | 
			
		||||
    padding: 32px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    h4 {
 | 
			
		||||
      font-size: 34px;
 | 
			
		||||
      font-weight: 500;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    p {
 | 
			
		||||
      margin-top: 32px;
 | 
			
		||||
      font-size: 28px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .imgs {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      align-items: center;
 | 
			
		||||
      flex-wrap: wrap;
 | 
			
		||||
      padding-top: 20px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
 | 
			
		||||
      image {
 | 
			
		||||
        height: 208px;
 | 
			
		||||
        width: 33.33%;
 | 
			
		||||
        padding-right: 12px;
 | 
			
		||||
        margin-bottom: 12px;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
 | 
			
		||||
        &:nth-of-type(3n) {
 | 
			
		||||
          padding-right: 0;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  .info {
 | 
			
		||||
    .title {
 | 
			
		||||
      font-size: 34px;
 | 
			
		||||
      font-weight: 500;
 | 
			
		||||
    }
 | 
			
		||||
    .items,
 | 
			
		||||
    .item {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      margin-top: 24px;
 | 
			
		||||
      img {
 | 
			
		||||
        width: 32px;
 | 
			
		||||
        height: 32px;
 | 
			
		||||
        align-self: center;
 | 
			
		||||
        margin-right: 32px;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .items-info {
 | 
			
		||||
        width: calc(100% - 100px);
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .address {
 | 
			
		||||
        width: 60px;
 | 
			
		||||
        img {
 | 
			
		||||
          width: 60px;
 | 
			
		||||
          height: 60px;
 | 
			
		||||
        }
 | 
			
		||||
        i {
 | 
			
		||||
          font-size: 24px;
 | 
			
		||||
          font-weight: 400;
 | 
			
		||||
          color: #687DA6;
 | 
			
		||||
          text-align: center;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      .item-info,
 | 
			
		||||
      .items-info {
 | 
			
		||||
        font-size: 28px;
 | 
			
		||||
        font-weight: 400;
 | 
			
		||||
        label {
 | 
			
		||||
          color: #666666;
 | 
			
		||||
        }
 | 
			
		||||
        .value {
 | 
			
		||||
          color: #333333;
 | 
			
		||||
          margin-top: 8px;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  ::v-deep .btn-wrapper {
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::v-deep .btn-wrapper .btn {
 | 
			
		||||
    height: 80px;
 | 
			
		||||
    line-height: 80px;
 | 
			
		||||
    border-radius: 40px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .opacity {
 | 
			
		||||
    opacity: 0.6000000238418579 !important;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .gray {
 | 
			
		||||
    background: #b5b5bcff !important;
 | 
			
		||||
  }
 | 
			
		||||
  .btn-clock {
 | 
			
		||||
    height: 372px;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    background: #FFF;
 | 
			
		||||
    .btn-circle {
 | 
			
		||||
      width: 226px;
 | 
			
		||||
      height: 226px;
 | 
			
		||||
      background: #2D7DFF;
 | 
			
		||||
      border-radius: 50%;
 | 
			
		||||
      margin: 40px auto 24px;
 | 
			
		||||
      text-align: center;
 | 
			
		||||
      .text,
 | 
			
		||||
      .daka {
 | 
			
		||||
        color: #FFF;
 | 
			
		||||
        font-size: 34px;
 | 
			
		||||
        font-weight: 500;
 | 
			
		||||
      }
 | 
			
		||||
      .daka {
 | 
			
		||||
        padding-top: 62px;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        font-size: 40px;
 | 
			
		||||
        font-weight: 500;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .opacity {
 | 
			
		||||
      opacity: 0.6000000238418579 !important;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .gray {
 | 
			
		||||
      background: #b5b5bcff !important;
 | 
			
		||||
    }
 | 
			
		||||
    .tips {
 | 
			
		||||
      text-align: center;
 | 
			
		||||
      color: #666666;
 | 
			
		||||
      font-size: 28px;
 | 
			
		||||
      font-weight: 400;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
		Reference in New Issue
	
	Block a user