ll
liukangdong
2024-08-06 d41f1f707dc643b726a42b9d2a63b186dd9e4f28
ll
已修改52个文件
987 ■■■■ 文件已修改
wechat_jiaxuan/api/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/app.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/areaSel/areaSel.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disCase/index.js 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disCase/index.less 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disCase/index.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disProduct/index.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disProduct/index.less 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disProduct/index.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disRealpic/index.js 164 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disRealpic/index.less 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disRealpic/index.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/videoPlay/index.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/auth/auth.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/consult/consult.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/consult/consult.less 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/consult/consult.wxss 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/consult/detail.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/detailDis/case.js 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/detailDis/product.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/detailDis/realpic.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/index/index.js 55 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/productVideo/index.js 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/productVideo/index.less 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/productVideo/index.wxml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/productVideo/index.wxss 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/sets/index.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/sets/index.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/store/info.less 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/store/info.wxml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/store/info.wxss 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/store/staff.less 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/store/staff.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/store/staff.wxss 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/api/index.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/app.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/app.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/disCase/index.js 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/disProduct/index.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/disRealpic/index.js 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/videoPlay/index.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/consult.js 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/consult.less 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/consult.wxss 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/detail.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/index/index.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/login/index.js 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/productVideo/index.js 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/productVideo/index.less 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/productVideo/index.wxml 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/productVideo/index.wxss 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/utils/request.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/api/index.js
@@ -205,7 +205,7 @@
  return request({
    url: '/web/customer/actionDo',
    data,
    loading: '0'
    loading: data.actionType == 'view' ? '0' : '1'
  })
}
// 我的 预约列表
wechat_jiaxuan/app.wxss
@@ -10,7 +10,7 @@
  --themeColor:#B08771;
  color: #111111;
}
image{
image,video{
  display: flex;
  border-radius: 8rpx;
}
wechat_jiaxuan/components/areaSel/areaSel.js
@@ -17,7 +17,6 @@
          observer(selectedValues) {
              if (selectedValues && selectedValues.length) {
                  this.resetValus(selectedValues)
                  console.log("--------------------",this.data.value)
                  this.setLabel();
              }
          }
@@ -49,7 +48,6 @@
      if (!this.data.value.length) {
          this.initRange();
      }
      console.log(this.data.addressList)
    }else{ 
      getArea({
        "level": "",
@@ -133,7 +131,6 @@
                                        label:tlable
                                    });
                                    this.setData({value:temVal,label:tlable}) 
                                    console.log("--------------------",this.data.value)
                                }
                              })
                            }
wechat_jiaxuan/components/disCase/index.js
@@ -69,12 +69,16 @@
    },
    touchmove(e) {
      var touchMove = e.detail.scrollTop;
      if(touchMove - touchDot > 60){
      if(touchDot - touchMove > 16){
        touchDot = touchMove
        this.fadeOut();
      }
      if(touchDot - touchMove > 60){
        this.fadeIn();
      if(touchDot - touchMove > 16){
        touchDot = touchMove
        setTimeout(() => {
        this.setData({ showTouch: true })
          this.fadeIn();
        }, 200)
      }
    },
    fadeIn: function () {
@@ -90,7 +94,7 @@
      });
      setTimeout(() => {
        this.setData({ showTouch: false });
      }, 500); // 动画持续时间
      }, 200); // 动画持续时间
    },
    getCatelist() {
      const { catalogCode } = this.data
@@ -113,7 +117,7 @@
      getZhongTaiWholecasePage({
        catalogCode, pageNum, pageSize, tagCodes, sortType, query
      }).then(res => {
        if (res.data) {
        if (res.data && res.data.records) {
          this.setData({
            total: res.data.total,
            dataList: [...this.data.dataList, ...res.data.records],
wechat_jiaxuan/components/disCase/index.less
@@ -52,7 +52,7 @@
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      max-height: 680rpx;
      max-height: 480rpx;
      overflow: auto;
      padding: 30rpx 40rpx;
      .item {
wechat_jiaxuan/components/disCase/index.wxss
@@ -54,7 +54,7 @@
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  max-height: 680rpx;
  max-height: 480rpx;
  overflow: auto;
  padding: 30rpx 40rpx;
}
wechat_jiaxuan/components/disProduct/index.js
@@ -82,12 +82,16 @@
    },
    touchmove(e) {
      var touchMove = e.detail.scrollTop;
      if(touchMove - touchDot > 60){
      if(touchDot - touchMove > 16){
        touchDot = touchMove
        this.fadeOut();
      }
      if(touchDot - touchMove > 60){
        this.fadeIn();
      if(touchDot - touchMove > 16){
        touchDot = touchMove
        setTimeout(() => {
        this.setData({ showTouch: true })
          this.fadeIn();
        }, 200)
      }
    },
    fadeIn: function () {
@@ -103,7 +107,7 @@
      });
      setTimeout(() => {
        this.setData({ showTouch: false });
      }, 500); // 动画持续时间
      }, 200); // 动画持续时间
    },
    getCatelist() {
      getCatalogList({
@@ -142,10 +146,12 @@
      getZhongTaiProductPage({
        catalogCode, pageNum, pageSize, sortType, query, tagCodes
      }).then(res => {
        if (res.data && res.data.records) {
        this.setData({
          datalist: [...this.data.datalist, ...res.data.records],
          total: res.data.total
        })
        }
      }).finally(()=>{
        that.setData({isLoading:false})
      })
wechat_jiaxuan/components/disProduct/index.less
@@ -90,7 +90,7 @@
        display: flex;
        flex-wrap: wrap;
        padding: 30rpx 40rpx;
        max-height: 680rpx;
        max-height: 480rpx;
        overflow: auto;
        .item {
          width: 154rpx;
wechat_jiaxuan/components/disProduct/index.wxss
@@ -85,7 +85,7 @@
  display: flex;
  flex-wrap: wrap;
  padding: 30rpx 40rpx;
  max-height: 680rpx;
  max-height: 480rpx;
  overflow: auto;
}
.main_content .main_right .query_form .list .item {
wechat_jiaxuan/components/disRealpic/index.js
@@ -1,5 +1,11 @@
import { getCataLogTagList, getZhongTaiRealcasePage, actionDo } from '../../api/index'
import { eventBus } from '../../utils/eventBus'
import {
  getCataLogTagList,
  getZhongTaiRealcasePage,
  actionDo
} from '../../api/index'
import {
  eventBus
} from '../../utils/eventBus'
let touchDot = 0
Component({
  /**
@@ -46,7 +52,9 @@
            item.viewCount ++
          }
        })
        this.setData({ dataList })
        this.setData({
          dataList
        })
      })
    },
  },
@@ -59,7 +67,9 @@
  },
  methods: {
    bindscrolltoupper() {
      this.setData({ showTouch: true })
      this.setData({
        showTouch: true
      })
      this.fadeIn();
    },
    touchstart(e){
@@ -67,12 +77,16 @@
    },
    touchmove(e) {
      var touchMove = e.detail.scrollTop;
      if(touchMove - touchDot > 60){
      if (touchDot - touchMove > 16) {
        touchDot = touchMove
        this.fadeOut();
      }
      if(touchDot - touchMove > 60){
        this.fadeIn();
      if (touchDot - touchMove > 16) {
        touchDot = touchMove
        setTimeout(() => {
        this.setData({ showTouch: true })
          this.fadeIn();
        }, 200)
      }
    },
    fadeIn: function () {
@@ -87,11 +101,15 @@
        animationData: this.animation.export()
      });
      setTimeout(() => {
        this.setData({ showTouch: false });
      }, 500); // 动画持续时间
        this.setData({
          showTouch: false
        });
      }, 200); // 动画持续时间
    },
    getCatelist(){
      const { catalogCode } = this.data
      const {
        catalogCode
      } = this.data
      getCataLogTagList({
        catalogCode
      }).then(res => {
@@ -109,28 +127,56 @@
      if(this.data.isLoading){
        return
      }
      this.setData({isLoading:true})
      const { sortType, query, tagCodes, pageNum, pageSize,catalogCode } = this.data
      this.setData({
        isLoading: true
      })
      const {
        sortType,
        query,
        tagCodes,
        pageNum,
        pageSize,
        catalogCode
      } = this.data
      getZhongTaiRealcasePage({
        catalogCode,tagCodes,pageNum,pageSize, sortType,query
        catalogCode,
        tagCodes,
        pageNum,
        pageSize,
        sortType,
        query
      }).then(res => {
        if (res.data && res.data.records) {
        this.setData({
          dataList: [...this.data.dataList, ...res.data.records],
          total: res.data.total,
        })
        }
      }).finally(()=>{
        this.setData({isLoading:false})
        this.setData({
          isLoading: false
        })
      })
    },
    scrolltoupper() {
      this.setData({ pageNum: 1,datalist: [],total: 0})
      this.setData({
        pageNum: 1,
        datalist: [],
        total: 0
      })
      this.getList()
    },
    scrolltolower() {
      console.log('触底事件');
      const { total, dataList, pageNum } = this.data
      const {
        total,
        dataList,
        pageNum
      } = this.data
      if(total > dataList.length){
        this.setData({ pageNum: pageNum + 1 })
        this.setData({
          pageNum: pageNum + 1
        })
        this.getList()
      }else{
        wx.showToast({
@@ -140,7 +186,9 @@
      }
    },
    videoClick(e) {
      const { videourl } = e.currentTarget.dataset
      const {
        videourl
      } = e.currentTarget.dataset
     
      let videoPlay = this.selectComponent('.videoPlay'); 
      if(videoPlay){ 
@@ -158,14 +206,23 @@
        url: '/pages/webView/index?link=' + item.openContent,
        success: function(res) {
          // 通过eventChannel向被打开页面传送数据
          res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.openContent, title: item.title })
          res.eventChannel.emit('acceptDataFromOpenerPage', {
            link: item.openContent,
            title: item.title
          })
        }
      })
    },
    statusChange(e) {
      const sortType = e.currentTarget.dataset.status
      this.setData({sortType})
      this.setData({ pageNum: 1,dataList: [],total: 0})
      this.setData({
        sortType
      })
      this.setData({
        pageNum: 1,
        dataList: [],
        total: 0
      })
      this.getList()
    },
    handleAction(e){
@@ -196,7 +253,9 @@
          url: '/pages/webView/index?link=' + item.openContent,
          success: function(res) {
            // 通过eventChannel向被打开页面传送数据
            res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.openContent})
            res.eventChannel.emit('acceptDataFromOpenerPage', {
              link: item.openContent
            })
          }
        })
      }
@@ -212,7 +271,12 @@
      }
      const code = e.currentTarget.dataset.code
      const paramIndex = e.currentTarget.dataset.index
      const { cateList, tagCodes, activeParam, activeIndex } = this.data
      const {
        cateList,
        tagCodes,
        activeParam,
        activeIndex
      } = this.data
      const index = tagCodes.indexOf(code) 
      if( cateList[activeIndex].tempParamIndex==null ||     cateList[activeIndex].tempParamIndex != paramIndex){ 
        cateList[activeIndex].tempParamIndex = paramIndex
@@ -225,23 +289,37 @@
        cateList[activeIndex].tempParamCode = null
      }
      // this.setData({ pageNum: 1,dataList: [],total: 0})
      this.setData({ cateList })
      this.setData({
        cateList
      })
    },
    cancelParam() {
      const { cateList } = this.data
      const {
        cateList
      } = this.data
      cateList.forEach(item => {
        item.tempParamIndex = item.paramIndex
        item.tempParamName =   item.paramName 
        item.tempParamCode =   item.paramCode
      })
      this.setData({    activeParam: [],cateList,activeIndex: -1 })
      this.setData({
        activeParam: [],
        cateList,
        activeIndex: -1
      })
    },
    bindblur() {
      this.setData({ pageNum: 1,dataList: [],total: 0})
      this.setData({
        pageNum: 1,
        dataList: [],
        total: 0
      })
      this.getList()
    },
    subParam() {
      const { cateList } = this.data
      const {
        cateList
      } = this.data
      var codes =[]
      cateList.forEach(item => { 
        item.paramIndex = item.tempParamIndex
@@ -251,15 +329,29 @@
          codes.push(item.tempParamCode)
        }
      }) 
      this.setData({ activeParam: [],tagCodes:codes })
      this.setData({ pageNum: 1,activeIndex: -1,dataList: [],total: 0})
      this.setData({
        activeParam: [],
        tagCodes: codes
      })
      this.setData({
        pageNum: 1,
        activeIndex: -1,
        dataList: [],
        total: 0
      })
      this.getList()
    },
    changeShowParams(e){
      const { cateList } = this.data
      const {
        cateList
      } = this.data
      const activeIndex = e.currentTarget.dataset.index
      if(activeIndex === this.data.activeIndex){
        this.setData({ activeIndex: -1, activeParam: [], selParam: '' })
        this.setData({
          activeIndex: -1,
          activeParam: [],
          selParam: ''
        })
      }else{
        this.setData({ 
          activeIndex,
@@ -271,8 +363,12 @@
    },
    changeTwo(){
      const showTwo = !this.data.showTwo
      this.setData({showTwo})
      this.setData({showOne: false})
      this.setData({
        showTwo
      })
      this.setData({
        showOne: false
      })
    },
  }
})
wechat_jiaxuan/components/disRealpic/index.less
@@ -59,7 +59,7 @@
      display: flex;
      flex-wrap: wrap;
      padding: 30rpx 40rpx;
      max-height: 680rpx;
      max-height: 480rpx;
      overflow: auto;
      .item {
        width: 202rpx;
wechat_jiaxuan/components/disRealpic/index.wxss
@@ -55,7 +55,7 @@
  display: flex;
  flex-wrap: wrap;
  padding: 30rpx 40rpx;
  max-height: 680rpx;
  max-height: 480rpx;
  overflow: auto;
}
.main_content .query_param .list .item {
wechat_jiaxuan/components/videoPlay/index.wxml
@@ -1,5 +1,5 @@
<view wx:if="{{ isVShow }}" bind:tap="onClose" class="video_content">   
      <view  class="video">
      <video id="myVideo" src="{{videoSrc}}" autoplay show-play-btn ></video>
      <video id="myVideo" src="{{videoSrc}}" show-fullscreen-btn="{{false}}" autoplay show-play-btn ></video>
      </view> 
  </view >
wechat_jiaxuan/pages/auth/auth.js
@@ -79,6 +79,17 @@
            wx.setStorageSync('member', res.data)
            if (tempPath) {
              wx.setStorageSync('tempPath', '')
              if (tempPath == '/pages/webView/index') {
                wx.navigateTo({
                  url: '/pages/webView/index',
                  success: function (res) {
                    res.eventChannel.emit('acceptDataFromOpenerPage', {
                      link: wx.getStorageSync('testUrl')
                    })
                  }
                })
                return
              }
              wx.redirectTo({
                url: tempPath,
              })
wechat_jiaxuan/pages/consult/consult.js
@@ -138,12 +138,16 @@
  },
  touchmove(e) {
    var touchMove = e.detail.scrollTop;
    if(touchMove - touchDot > 60){
    if(touchDot - touchMove > 16){
      touchDot = touchMove
      this.fadeOut();
    }
    if(touchDot - touchMove > 60){
      this.fadeIn();
    if(touchDot - touchMove > 16){
      touchDot = touchMove
      setTimeout(() => {
      this.setData({ showCate: true })
        this.fadeIn();
      }, 200)
    }
  },
  fadeIn: function () {
@@ -151,6 +155,7 @@
    this.setData({
      animationData: this.animation.export()
    });
  },
  fadeOut: function () {
    this.animation.opacity(0).step();
@@ -159,7 +164,7 @@
    });
    setTimeout(() => {
      this.setData({ showCate: false });
    }, 500); // 动画持续时间
    }, 200); // 动画持续时间
  },
  /**
   * 生命周期函数--监听页面显示
wechat_jiaxuan/pages/consult/consult.less
@@ -31,8 +31,10 @@
  }
  .cate_two{
    position: absolute;
    width: 750rpx;
    left: 0rpx;
    line-height: 88rpx;
    margin-left: 40rpx;
    padding: 0 40rpx;
    height: 88rpx;
    z-index: 999;
    background-color: #fff;
wechat_jiaxuan/pages/consult/consult.wxss
@@ -30,8 +30,10 @@
}
.cate_wrap .cate_two {
  position: absolute;
  width: 750rpx;
  left: 0rpx;
  line-height: 88rpx;
  margin-left: 40rpx;
  padding: 0 40rpx;
  height: 88rpx;
  z-index: 999;
  background-color: #fff;
wechat_jiaxuan/pages/consult/detail.js
@@ -19,6 +19,9 @@
  onLoadLogin(options) {
    this.getDetail(options.id, options.userId || '')
  },
  onShow(){
    this.setData({ member: wx.getStorageSync('member') })
  },
  onLoad(options) {
    var app = getApp().globalData
    this.setData({
@@ -32,6 +35,7 @@
  handleDesign() {
    const { member } = this.data
    if (!member.phone) {
      wx.setStorageSync('tempPath', '/pages/design/design')
      return wx.navigateTo({
        url: '/pages/auth/auth',
      })
wechat_jiaxuan/pages/detailDis/case.js
@@ -29,6 +29,9 @@
      eventBus.emit('caseDeBack', this.data.info)
    }, 500)
  },
  onShow(){
    this.setData({ member: wx.getStorageSync('member') })
  },
  onLoad(options) {
    var app = getApp().globalData
    this.setData({
@@ -148,6 +151,7 @@
  handleDesign() {
    const { member } = this.data
    if (!member.phone) {
      wx.setStorageSync('tempPath', '/pages/design/design')
      return wx.navigateTo({
        url: '/pages/auth/auth',
      })
@@ -169,14 +173,6 @@
      showShare: false
    })
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {
  },
  /**
   * 生命周期函数--监听页面隐藏
   */
wechat_jiaxuan/pages/detailDis/product.js
@@ -31,6 +31,9 @@
      id: options.id
    })
  },
  onShow(){
    this.setData({ member: wx.getStorageSync('member') })
  },
  onUnload() {
    console.log('详情进行了销毁');
    setTimeout(() => {
@@ -138,6 +141,7 @@
  handleDesign() {
    const { member } = this.data
    if (!member.phone) {
      wx.setStorageSync('tempPath', '/pages/design/design')
      return wx.navigateTo({
        url: '/pages/auth/auth',
      })
wechat_jiaxuan/pages/detailDis/realpic.js
@@ -23,6 +23,9 @@
      id: options.id
    })
  },
  onShow(){
    this.setData({ member: wx.getStorageSync('member') })
  },
  onUnload() {
    console.log('详情进行了销毁');
    setTimeout(() => {
@@ -122,6 +125,7 @@
  handleDesign() {
    const { member } = this.data
    if (!member.phone) {
      wx.setStorageSync('tempPath', '/pages/design/design')
      return wx.navigateTo({
        url: '/pages/auth/auth',
      })
wechat_jiaxuan/pages/index/index.js
@@ -73,7 +73,10 @@
        rect.bottom // 节点的下边界坐标
      }).exec(res => {
        console.log(windowInfo.windowHeight)
        this.setData({ videoTop: res[0].top,windowHeight: windowInfo.windowHeight})
        this.setData({
          videoTop: res[0].top,
          windowHeight: windowInfo.windowHeight
        })
      })
    }, 2000)
  },
@@ -89,7 +92,6 @@
    })
  },
  onLoad(options) {
    console.log(options)
    this.initDictData()
    // this.initData()
  },
@@ -110,6 +112,7 @@
            }
          })
        } else {
          wx.setStorageSync('tempPath', '/pages/webView/index')
          wx.navigateTo({
            url: '/pages/auth/auth',
          })
@@ -157,7 +160,9 @@
    // 轮播
    getHomeBanner().then(res => {
      if(res.data){
        this.setData({ bannerList: res.data })
        this.setData({
          bannerList: res.data
        })
      }
    })
    // 产品视频
@@ -200,9 +205,12 @@
      code: 'WX_MINI_CONFIG',
      label: 'ZBOM_STYLE_TEST_URL'
    }).then(res => {
      if (res.data) {
      this.setData({
        testUrl: res.data.code
      })
        wx.setStorageSync('testUrl', res.data.code)
      }
    })
    getDictData({
      code: 'WEIXIN_DEFAULT_IMGS',
@@ -376,14 +384,23 @@
   * 生命周期函数--监听页面初次渲染完成
   */
  bindVideoPlay() {
    const { id } = this.data.productVideo[0]
    const {
      id
    } = this.data.productVideo[0]
    actionDo({
      actionType: 'view',
      id
    })
  },
  hdBtn() {
    this.setData({ showWhiteHead: true, open: true,font_color: "#000000", sty: '',topHeadStyle: 1, desc: false })
    this.setData({
      showWhiteHead: true,
      open: true,
      font_color: "#000000",
      sty: '',
      topHeadStyle: 1,
      desc: false
    })
  },
  touchStart: function (e) { 
    touchDot = e.touches[0].pageY;
@@ -391,19 +408,37 @@
  touchMove: function (e) {
    var touchMove = e.touches[0].pageY;
    if (touchMove - touchDot <= 0 && this.data.top <= 1 && this.data.desc) {
      this.setData({ showWhiteHead: true, open: false, desc: false })
      this.setData({
        showWhiteHead: true,
        open: false,
        desc: false
      })
      setTimeout(() => {
        this.setData({ open: true, sty: '' })
        this.setData({
          open: true,
          sty: ''
        })
      }, 1000)
    }
    if (touchMove - touchDot >= 50 && this.data.top <= 1 && !this.data.desc) {
      this.setData({ showWhiteHead: false, open: false, desc: true, sty: 'overflow: hidden;' })
      this.setData({
        showWhiteHead: false,
        open: false,
        desc: true,
        sty: 'overflow: hidden;'
      })
    }
  },
  onPageScroll(e) {
    const { videoTop, windowHeight, videoPlay } = this.data
    const {
      videoTop,
      windowHeight,
      videoPlay
    } = this.data
    if(e.scrollTop + 100 > videoTop - (windowHeight / 2) && videoPlay ){
      this.setData({ videoPlay: false })
      this.setData({
        videoPlay: false
      })
      let videoplay = wx.createVideoContext('myvideo', this)
      videoplay.play();
    }
wechat_jiaxuan/pages/productVideo/index.js
@@ -11,6 +11,7 @@
    activeIndex: -1,
    activeParam: [],
    tagCodes: [],
    videoContext:null,
    category: [],
    videoUrl: '',
@@ -22,6 +23,58 @@
    pageSize: 10,
    pageNum: 1,
  },
  changeShowParams(e) {
    const { category } = this.data
    const activeIndex = e.currentTarget.dataset.index
    if (activeIndex === this.data.activeIndex) {
      this.setData({ activeIndex: -1, activeParam: [] })
    } else {
      this.setData({
        activeIndex,
        activeParam: category[activeIndex].valueVos
      })
    }
  },
  cancelParam() {
    const { category } = this.data
    category.forEach(item => {
      item.tempParamIndex = item.paramIndex
      item.tempParamName =   item.paramName
      item.tempParamCode =  item.paramCode
    })
    this.setData({ activeParam: [],activeIndex: -1 ,category})
  },
  subParam() {
    const { category } = this.data
    var codes = []
    category.forEach(item => {
      item.paramIndex =  item.tempParamIndex
      item.paramName = item.tempParamName
      item.paramCode = item.tempParamCode
      if( item.paramIndex>-1 && item.tempParamCode){
        codes.push( item.tempParamCode)
      }
    })
    this.setData({tagCodes:codes})
    this.setData({ pageNum: 1, activeParam: [] ,activeIndex: -1, dataList: [], total: 0 })
    this.getList()
  },
  tagClick(e) {
    const code = e.currentTarget.dataset.code
    const paramIndex = e.currentTarget.dataset.index
    const { category, tagCodes, activeParam, activeIndex } = this.data
    const index = tagCodes.indexOf(code)
    if ( category[activeIndex].tempParamIndex==null || category[activeIndex].tempParamIndex != paramIndex) {
      category[activeIndex].tempParamIndex = paramIndex
      category[activeIndex].tempParamCode = code
      category[activeIndex].tempParamName = activeParam[paramIndex].labelValueName
    } else {
      category[activeIndex].tempParamIndex = -1
      category[activeIndex].tempParamCode = ''
      category[activeIndex].tempParamName = ''
    }
    this.setData({ category })
  },
  onReachBottom() {
    console.log('触底事件');
@@ -41,17 +94,22 @@
    getZhongTaiVideoPage({
      pageSize,pageNum, tagCodes
    }).then(res => {
      if(res.data && res.data.records){
      this.setData({
        dataList: [...this.data.dataList, ...res.data.records],
        total: res.data.total
      })
      }
    })
  },
  getTagList() {
    getCataLogTagList({
      catalogCode: 'video_rec'
    }).then(res => {
      this.setData({ category: res.data })
      if(res.data){
        this.setData({ category: [...res.data] })
      }
    })
  },
  itemClick(e) {
@@ -83,7 +141,11 @@
  },
  cateClick(e) {
    const { code, index } = e.target.dataset
    if(this.data.activeIndex === index){
      this.setData({ tagCodes: [], activeIndex: -1 })
    }else{
    this.setData({ tagCodes: [code], activeIndex: index })
    }
    this.setData({ total: 0, dataList: [], pageNum: 1 })
    this.getList()
  },
wechat_jiaxuan/pages/productVideo/index.less
@@ -106,3 +106,89 @@
    transform: translate(0, -50%);
  }
}
.query_wrap_scroll{
  width: 750rpx;
  padding-left: 40rpx;
}
.query_wrap {
  display: flex;
  flex-wrap: nowrap;
  .item {
    flex-shrink: 0;
    margin-right: 48rpx;
    height: 100rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    .name {
      margin-right: 12rpx;
    }
  }
}
.query_form {
  position: absolute;
  z-index: 999;
  background-color: #fff;
  width: 750rpx;
  overflow: hidden;
  .list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 30rpx 40rpx;
    max-height: 680rpx;
    overflow: auto;
    .item {
      width: 210rpx;
      height: 72rpx;
      text-align: center;
      line-height: 70rpx;
      background: #F7F7F7;
      border-radius: 8rpx;
      font-size: 26rpx;
      color: #333333;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-right: 20rpx;
      margin-bottom: 24rpx;
      &:nth-of-type(3n) {
        margin-right: 0;
      }
    }
    .active {
      color: var(--themeColor);
      background: rgba(176, 135, 113, 0.08);
    }
  }
  .btns {
    display: flex;
    width: 750rpx;
    .btn {
      flex: 1;
      height: 88rpx;
      background: #E5E5E5;
      color: #666666;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .sub {
      background: var(--themeColor);
      color: #fff;
    }
  }
}
.shade{
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  z-index: 99;
}
wechat_jiaxuan/pages/productVideo/index.wxml
@@ -9,7 +9,7 @@
    <block wx:if="{{ category.length > 1 }}">
      <scroll-view class="query_wrap_scroll" scroll-x>
        <view class="query_wrap">
          <view data-index="{{index}}" wx:for="{{ secondCateList }}" class="item" bindtap="changeShowParams">
          <view data-index="{{index}}" wx:for="{{ category }}" class="item" bindtap="changeShowParams">
            <view class="name">{{ item.tempParamName || item.labelName }}</view>
            <van-icon name="{{ index == activeIndex ? 'arrow-up' : 'arrow-down' }}" />
          </view>
@@ -17,7 +17,7 @@
      </scroll-view>
      <view wx:if="{{ activeParam.length > 0 }}" class="query_form">
        <view class="list">
          <view data-index="{{index}}" data-tempindex="{{item.tempParamIndex}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view>
          <view data-index="{{index}}" data-tempindex="{{item.tempParamIndex}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ category[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view>
        </view>
        <view class="btns">
          <view class="btn" bindtap="cancelParam">取消</view>
wechat_jiaxuan/pages/productVideo/index.wxss
@@ -102,3 +102,84 @@
  top: 50%;
  transform: translate(0, -50%);
}
.query_wrap_scroll {
  width: 750rpx;
  padding-left: 40rpx;
}
.query_wrap {
  display: flex;
  flex-wrap: nowrap;
}
.query_wrap .item {
  flex-shrink: 0;
  margin-right: 48rpx;
  height: 100rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
}
.query_wrap .item .name {
  margin-right: 12rpx;
}
.query_form {
  position: absolute;
  z-index: 999;
  background-color: #fff;
  width: 750rpx;
  overflow: hidden;
}
.query_form .list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 30rpx 40rpx;
  max-height: 680rpx;
  overflow: auto;
}
.query_form .list .item {
  width: 210rpx;
  height: 72rpx;
  text-align: center;
  line-height: 70rpx;
  background: #F7F7F7;
  border-radius: 8rpx;
  font-size: 26rpx;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 20rpx;
  margin-bottom: 24rpx;
}
.query_form .list .item:nth-of-type(3n) {
  margin-right: 0;
}
.query_form .list .active {
  color: var(--themeColor);
  background: rgba(176, 135, 113, 0.08);
}
.query_form .btns {
  display: flex;
  width: 750rpx;
}
.query_form .btns .btn {
  flex: 1;
  height: 88rpx;
  background: #E5E5E5;
  color: #666666;
  display: flex;
  justify-content: center;
  align-items: center;
}
.query_form .btns .sub {
  background: var(--themeColor);
  color: #fff;
}
.shade {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}
wechat_jiaxuan/pages/sets/index.js
@@ -39,11 +39,17 @@
        title: '注销成功',
      })
      that.setData({
        showLogout: true
        showLogout: true,
        show: false
      })
    })
  },
  appClose() {
    this.setData({
      showLogout: false
    })
  },
  backHome() {
    wx.login({
      timeout: 5000,
      success: (res) => {
wechat_jiaxuan/pages/sets/index.wxml
@@ -30,7 +30,7 @@
        <view class="text">你是否要退出该小程序吗</view>
        <view class="btns">
          <navigator class="btn cancel" target="miniProgram" open-type="exit">确认退出</navigator>
          <view class="btn" bindtap="appClose">返回首页</view>
          <view class="btn" bindtap="backHome">返回首页</view>
        </view>
    </view>
  </van-popup>
wechat_jiaxuan/pages/store/info.less
@@ -50,8 +50,8 @@
.main_content {
  position: relative;
  bottom: 80rpx;
  padding: 0 40rpx 240rpx;
  height: 100%;
  padding: 0 40rpx 0rpx;
  height: calc( 100% - 480rpx );
  overflow: hidden;
  background-color: #fff;
  padding-top: 80rpx;
@@ -61,7 +61,7 @@
    margin-bottom: 38rpx;
  }
  .list {
    height: calc( 100% - 420rpx );
    height:  calc( 100% - 92rpx );
    padding: 20rpx;
    margin: 0 -40rpx;
    padding-bottom: 12rpx;
@@ -76,9 +76,6 @@
      padding: 0 30rpx;
      display: flex;
      align-items: center;
      &:nth-last-of-type(1){
        margin-bottom: 100rpx;
      }
      .content {
        flex: 1;
@@ -113,6 +110,9 @@
        border: 1rpx solid var(--themeColor);
      }
    }
    .empty{
      height: 80rpx;
    }
  }
}
.empty_wrap{
wechat_jiaxuan/pages/store/info.wxml
@@ -29,6 +29,7 @@
        <view wx:if="{{ info.usersList.length == 0 }}" class="empty_wrap">
          <image class="default_empty" src="../../static/images/default_empty.png"></image>
        </view>
        <view class="empty"></view>
      </scroll-view>
    </view>
  </view>
wechat_jiaxuan/pages/store/info.wxss
@@ -47,8 +47,8 @@
.main_content {
  position: relative;
  bottom: 80rpx;
  padding: 0 40rpx 240rpx;
  height: 100%;
  padding: 0 40rpx 0rpx;
  height: calc(100% - 480rpx);
  overflow: hidden;
  background-color: #fff;
  padding-top: 80rpx;
@@ -59,7 +59,7 @@
  margin-bottom: 38rpx;
}
.main_content .list {
  height: calc(100% - 420rpx);
  height: calc(100% - 92rpx);
  padding: 20rpx;
  margin: 0 -40rpx;
  padding-bottom: 12rpx;
@@ -75,9 +75,6 @@
  padding: 0 30rpx;
  display: flex;
  align-items: center;
}
.main_content .list .item:nth-last-of-type(1) {
  margin-bottom: 100rpx;
}
.main_content .list .item .content {
  flex: 1;
@@ -108,6 +105,9 @@
  color: var(--themeColor);
  border: 1rpx solid var(--themeColor);
}
.main_content .list .empty {
  height: 80rpx;
}
.empty_wrap {
  padding-top: 100rpx;
}
wechat_jiaxuan/pages/store/staff.less
@@ -5,8 +5,8 @@
  position: relative;
  z-index: -1;
}
.container {
  padding: 0rpx 40rpx 140rpx;
.containe {
  padding: 0rpx 40rpx 60rpx;
  position: relative;
  bottom: 70rpx;
  z-index: 1;
wechat_jiaxuan/pages/store/staff.wxml
@@ -1,7 +1,7 @@
<view class="app">
  <!-- <navBar></navBar> -->
  <image src="../../static/images/design_banner@2x.png" mode="widthFix" class="bg_wrap"></image>
  <view class="container">
  <view class="containe">
    <image class="avatar" src="{{ info.imgurlFull ? info.imgurlFull : '../../static/images/default_avatar.png' }}"></image>
    <view class="name_wrap">
      <view class="left">
wechat_jiaxuan/pages/store/staff.wxss
@@ -5,19 +5,19 @@
  position: relative;
  z-index: -1;
}
.container {
  padding: 0rpx 40rpx 140rpx;
.containe {
  padding: 0rpx 40rpx 60rpx;
  position: relative;
  bottom: 70rpx;
  z-index: 1;
}
.container .avatar {
.containe .avatar {
  width: 140rpx;
  height: 140rpx;
  border-radius: 50%;
  border: 4rpx solid #FFFFFF;
}
.container .desc {
.containe .desc {
  display: flex;
  align-items: center;
  padding: 0 30rpx;
@@ -28,7 +28,7 @@
  color: #333333;
  position: relative;
}
.container .desc .text {
.containe .desc .text {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
@@ -36,7 +36,7 @@
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.container .desc .icon {
.containe .desc .icon {
  position: absolute;
  background: #F7F7F7;
  width: 32rpx;
@@ -45,7 +45,7 @@
  top: -16rpx;
  transform: rotate(45deg);
}
.container .desc image {
.containe .desc image {
  width: 32rpx;
  margin-right: 20rpx;
}
wechat_staff/api/index.js
@@ -142,7 +142,8 @@
export const actionDo = (data) => {
  return request({
    url: '/web/customer/actionDo',
    data
    data,
    loading: data.actionType == 'view' ? '0' : '1'
  })
}
// 获取客户-潜客列表
wechat_staff/app.js
@@ -13,15 +13,20 @@
    if (WindowInfo.safeArea.top > 20) {
      this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom;
    }
  },
  onShow() {
    let users =  wx.getStorageSync('token') 
    if(users ==null){
      wx.navigateTo({
      wx.redirectTo({
        url: '/pages/login/index',
      })
      wx.showLoading({title: '授权登录中'})
    }else{
      getMemberInfo({goLogin:true}).then(res => {
      wx.showLoading({
        title: '授权登录中'
      }) 
    } else {
      getMemberInfo({
        goLogin: true
      }).then(res => {})
    }
  }, 
})
wechat_staff/app.wxss
@@ -7,7 +7,7 @@
  --themeColor:#B08771;
  color: #111111;
}
image{
image,video{
  display: flex;
  border-radius: 8rpx;
}
wechat_staff/components/disCase/index.js
@@ -45,12 +45,16 @@
    },
    touchmove(e) {
      var touchMove = e.detail.scrollTop;
      if(touchMove - touchDot > 60){
      if(touchMove - touchDot > 16){
        touchDot = touchMove
        this.fadeOut();
      }
      if(touchDot - touchMove > 60){
        this.fadeIn();
      if(touchDot - touchMove > 20){
        touchDot = touchMove
        setTimeout(() => {
        this.setData({ showTouch: true })
          this.fadeIn();
        })
      }
    },
    fadeIn: function () {
@@ -66,7 +70,7 @@
      });
      setTimeout(() => {
        this.setData({ showTouch: false });
      }, 500); // 动画持续时间
      }, 200); // 动画持续时间
    },
    refreshCount(){    
      let  temData = wx.getStorageSync('conentCountTemp')   
@@ -111,7 +115,7 @@
      getZhongTaiWholecasePage({
        catalogCode,pageNum,pageSize,tagCodes, sortType,query
      }).then(res => {
        if(res.data){
        if(res.data || res.data.records){
          this.setData({ 
            total: res.data.total,
            dataList: [...this.data.dataList, ...res.data.records],
wechat_staff/components/disProduct/index.js
@@ -53,12 +53,16 @@
    },
    touchmove(e) {
      var touchMove = e.detail.scrollTop;
      if(touchMove - touchDot > 60){
      if(touchMove - touchDot > 16){
        touchDot = touchMove
        this.fadeOut();
      }
      if(touchDot - touchMove > 60){
        this.fadeIn();
      if(touchDot - touchMove > 20){
        touchDot = touchMove
        setTimeout(() => {
        this.setData({ showTouch: true })
          this.fadeIn();
        })
      }
    },
    fadeIn: function () {
@@ -74,7 +78,7 @@
      });
      setTimeout(() => {
        this.setData({ showTouch: false });
      }, 500); // 动画持续时间
      }, 200); // 动画持续时间
    },
    refreshCount(){   
      let  temData = wx.getStorageSync('conentCountTemp')  
@@ -135,10 +139,12 @@
      getZhongTaiProductPage({
        catalogCode,pageNum,pageSize,sortType,query,tagCodes
      }).then(res => {
        if(res.data || res.data.records){
        this.setData({
          datalist: [...this.data.datalist, ...res.data.records],
          total: res.data.total
        })
        }
      }).finally(()=>{
        this.setData({isLoading:false})
      })
wechat_staff/components/disRealpic/index.js
@@ -43,12 +43,16 @@
    },
    touchmove(e) {
      var touchMove = e.detail.scrollTop;
      if(touchMove - touchDot > 60){
      if(touchMove - touchDot > 16){
        touchDot = touchMove
        this.fadeOut();
      }
      if(touchDot - touchMove > 60){
        this.fadeIn();
      if(touchDot - touchMove > 16){
        touchDot = touchMove
        setTimeout(() => {
        this.setData({ showTouch: true })
          this.fadeIn();
        })
      }
    },
    fadeIn: function () {
@@ -64,7 +68,7 @@
      });
      setTimeout(() => {
        this.setData({ showTouch: false });
      }, 500); // 动画持续时间
      }, 200); // 动画持续时间
    },
    refreshCount(){    
      let  temData = wx.getStorageSync('conentCountTemp')   
@@ -107,16 +111,17 @@
      if(this.data.isLoading){
        return
      }
      this.setData({isLoading:true})
      const { sortType, query, tagCodes, pageNum, pageSize,catalogCode } = this.data
      getZhongTaiRealcasePage({
        catalogCode,tagCodes,pageNum,pageSize, sortType,query
      }).then(res => {
        if(res.data || res.data.records){
        this.setData({
          dataList: [...this.data.dataList, ...res.data.records],
          total: res.data.total,
            total: res.data.total
        })
        }
      }).finally(()=>{
        this.setData({isLoading:false})
      })
wechat_staff/components/videoPlay/index.wxml
@@ -1,5 +1,5 @@
<view wx:if="{{ isVShow }}" bind:tap="onClose" class="video_content">   
      <view  class="video">
      <video    id="myVideo" src="{{videoSrc}}"  autoplay  show-play-btn ></video>
      <video    id="myVideo" src="{{videoSrc}}" show-fullscreen-btn="{{false}}" autoplay  show-play-btn ></video>
      </view> 
  </view >
wechat_staff/pages/consult/consult.js
@@ -136,13 +136,15 @@
  },
  touchmove(e) {
    var touchMove = e.detail.scrollTop;
    if(touchMove - touchDot > 60){
      // this.setData({ showCate: false })
    if(touchMove - touchDot > 16){
      touchDot = touchMove
      this.fadeOut();
    }
    if(touchDot - touchMove > 60){
      this.fadeIn();
    if(touchDot - touchMove > 20){
      setTimeout(() => {
      this.setData({ showCate: true })
        this.fadeIn();
      },200)
    }
  },
  fadeIn: function () {
@@ -158,7 +160,7 @@
    });
    setTimeout(() => {
      this.setData({ showCate: false });
    }, 500); // 动画持续时间
    }, 200); // 动画持续时间
  },
  onShow() {
    refreshEnjoy(this) 
wechat_staff/pages/consult/consult.less
@@ -31,8 +31,10 @@
  }
  .cate_two{
    position: absolute;
    width: 750rpx;
    left: 0;
    padding: 0 40rpx;
    line-height: 88rpx;
    margin-left: 40rpx;
    height: 88rpx;
    z-index: 999;
    background-color: #fff;
wechat_staff/pages/consult/consult.wxss
@@ -30,8 +30,10 @@
}
.cate_wrap .cate_two {
  position: absolute;
  width: 750rpx;
  left: 0;
  padding: 0 40rpx;
  line-height: 88rpx;
  margin-left: 40rpx;
  height: 88rpx;
  z-index: 999;
  background-color: #fff;
wechat_staff/pages/consult/detail.js
@@ -27,8 +27,6 @@
      actionType: 'share',
      id: this.data.info.id
    })
    console.log(`/pages/consult/detail?id=${this.data.info.id}&origin=b&userId=${wx.getStorageSync('member').id}`);
    return
    wx.navigateToMiniProgram({
      appId: 'wxcd2b89fd2ff065f8',
      path: `/pages/consult/detail?id=${this.data.info.id}&origin=b&userId=${wx.getStorageSync('member').id}`,
wechat_staff/pages/index/index.js
@@ -49,8 +49,6 @@
        rect.top // 节点的上边界坐标
        rect.bottom // 节点的下边界坐标
      }).exec(res => {
        console.log('res', res);
        console.log(windowInfo.windowHeight)
        this.setData({ videoTop: res[0].top,windowHeight: windowInfo.windowHeight})
      })
    }, 2000)
@@ -61,7 +59,7 @@
      fileType: '0'
    }).then(res => {
      this.setData({
        DailyUpdates: res.data
        DailyUpdates: res.data || {}
      })
    })
    // 产品视频
@@ -69,7 +67,7 @@
      pageSize: 1,
      pageNum: 1
    }).then(res => {
      if (res.data.records && res.data.records.length > 0) {
      if (res.data && res.data.records && res.data.records.length > 0) {
        this.setData({
          productVideo: res.data.records
        })
wechat_staff/pages/login/index.js
@@ -56,6 +56,9 @@
      }, 1000)
    })
  },
  onShow(){
    wx.hideHomeButton()
  },
  handleJudge(e) {
    const flag = e.currentTarget.dataset.flag
    console.log(e);
@@ -163,7 +166,7 @@
            } 
          })
        } else {
          wx.navigateTo({
          wx.redirectTo({
            url: '/pages/login/index',
          })
          wx.hideLoading()
@@ -258,13 +261,6 @@
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {
  },
wechat_staff/pages/productVideo/index.js
@@ -5,8 +5,12 @@
   * 页面的初始数据
   */
  data: {
    activeIndex: -1,
    activeParam: [],
    tagCodes: [],
    category: [],
    tagCodes: '',
    tagCodes: [],
    acVid:'',
    viewIdList: [],
@@ -15,6 +19,58 @@
    pageSize: 10,
    pageNum: 1,
  },
  changeShowParams(e) {
    const { category } = this.data
    const activeIndex = e.currentTarget.dataset.index
    if (activeIndex === this.data.activeIndex) {
      this.setData({ activeIndex: -1, activeParam: [] })
    } else {
      this.setData({
        activeIndex,
        activeParam: category[activeIndex].valueVos
      })
    }
  },
  cancelParam() {
    const { category } = this.data
    category.forEach(item => {
      item.tempParamIndex = item.paramIndex
      item.tempParamName =   item.paramName
      item.tempParamCode =  item.paramCode
    })
    this.setData({ activeParam: [],activeIndex: -1 ,category})
  },
  subParam() {
    const { category } = this.data
    var codes = []
    category.forEach(item => {
      item.paramIndex =  item.tempParamIndex
      item.paramName = item.tempParamName
      item.paramCode = item.tempParamCode
      if( item.paramIndex>-1 && item.tempParamCode){
        codes.push( item.tempParamCode)
      }
    })
    this.setData({tagCodes:codes})
    this.setData({ pageNum: 1, activeParam: [] ,activeIndex: -1, dataList: [], total: 0 })
    this.getList()
  },
  tagClick(e) {
    const code = e.currentTarget.dataset.code
    const paramIndex = e.currentTarget.dataset.index
    const { category, tagCodes, activeParam, activeIndex } = this.data
    const index = tagCodes.indexOf(code)
    if ( category[activeIndex].tempParamIndex==null || category[activeIndex].tempParamIndex != paramIndex) {
      category[activeIndex].tempParamIndex = paramIndex
      category[activeIndex].tempParamCode = code
      category[activeIndex].tempParamName = activeParam[paramIndex].labelValueName
    } else {
      category[activeIndex].tempParamIndex = -1
      category[activeIndex].tempParamCode = ''
      category[activeIndex].tempParamName = ''
    }
    this.setData({ category })
  },
  onReachBottom() {
    console.log('触底事件');
@@ -32,7 +88,7 @@
  getList() {
    const { pageSize, pageNum, tagCodes } = this.data
    getZhongTaiVideoPage({
      pageSize,pageNum, tagCodes: tagCodes ? [tagCodes] : []
      pageSize,pageNum, tagCodes
    }).then(res => {
      this.setData({
        dataList: [...this.data.dataList, ...res.data.records],
@@ -75,8 +131,12 @@
    this.setData({ dataList })
  },
  cateClick(e) {
    const { code } = e.target.dataset
    this.setData({ tagCodes: code })
    const { code, index } = e.target.dataset
    if(this.data.activeIndex === index){
      this.setData({ tagCodes: [], activeIndex: -1 })
    }else{
      this.setData({ tagCodes: [code], activeIndex: index })
    }
    this.setData({ total: 0, dataList: [], pageNum: 1 })
    this.getList()
  },
wechat_staff/pages/productVideo/index.less
@@ -91,3 +91,89 @@
    }
  }
}
.query_wrap_scroll{
  width: 750rpx;
  padding-left: 40rpx;
}
.query_wrap {
  display: flex;
  flex-wrap: nowrap;
  .item {
    flex-shrink: 0;
    margin-right: 48rpx;
    height: 100rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    .name {
      margin-right: 12rpx;
    }
  }
}
.query_form {
  position: absolute;
  z-index: 999;
  background-color: #fff;
  width: 750rpx;
  overflow: hidden;
  .list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 30rpx 40rpx;
    max-height: 680rpx;
    overflow: auto;
    .item {
      width: 210rpx;
      height: 72rpx;
      text-align: center;
      line-height: 70rpx;
      background: #F7F7F7;
      border-radius: 8rpx;
      font-size: 26rpx;
      color: #333333;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-right: 20rpx;
      margin-bottom: 24rpx;
      &:nth-of-type(3n) {
        margin-right: 0;
      }
    }
    .active {
      color: var(--themeColor);
      background: rgba(176, 135, 113, 0.08);
    }
  }
  .btns {
    display: flex;
    width: 750rpx;
    .btn {
      flex: 1;
      height: 88rpx;
      background: #E5E5E5;
      color: #666666;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .sub {
      background: var(--themeColor);
      color: #fff;
    }
  }
}
.shade{
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  z-index: 99;
}
wechat_staff/pages/productVideo/index.wxml
@@ -2,24 +2,35 @@
  <buoyClient class="buoyClient"/>
  <!-- 分类 -->
  <view>
    <scroll-view wx:if="{{ category.length > 0 }}" scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;">
    <scroll-view wx:if="{{ category.length > 0 && category.length == 1 }}" scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;">
      <view class="scroll_cate">
        <view bindtap="cateClick" data-code="{{item.labelCode}}" wx:for="{{ category }}" class="item {{ tagCodes == item.labelCode ? 'active': '' }}">{{ item.labelName }}</view>
        <view bindtap="cateClick" data-index="{{index}}" data-code="{{item.labelValueCode}}" wx:for="{{ category[0].valueVos }}" class="item {{ activeIndex == index ? 'active': '' }}">{{ item.labelValueName }}</view>
      </view>
    </scroll-view>
    <!-- <scroll-view scroll-x="true" style="width: 710rpx;margin-bottom: 28rpx;">
      <view class="scroll_cate second_list">
        <view bindtap="seCateClick" data-index="{{index}}" wx:for="{{ secondCategory }}" class="item {{ index == 0 ? 'active': '' }}">{{ index }}{{ item }}</view>
    <block wx:if="{{ category.length > 1 }}">
      <scroll-view class="query_wrap_scroll" scroll-x>
        <view class="query_wrap">
          <view data-index="{{index}}" wx:for="{{ category }}" class="item" bindtap="changeShowParams">
            <view class="name">{{ item.tempParamName || item.labelName }}</view>
            <van-icon name="{{ index == activeIndex ? 'arrow-up' : 'arrow-down' }}" />
      </view>
    </scroll-view> -->
        </view>
      </scroll-view>
      <view wx:if="{{ activeParam.length > 0 }}" class="query_form">
        <view class="list">
          <view data-index="{{index}}" data-tempindex="{{item.tempParamIndex}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ category[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view>
        </view>
        <view class="btns">
          <view class="btn" bindtap="cancelParam">取消</view>
          <view class="btn sub" bindtap="subParam">确认</view>
        </view>
      </view>
      <view wx:if="{{ activeParam.length > 0 }}" class="shade"></view>
    </block>
  </view>
  <!-- content -->
  <view class="content">
    <view wx:for="{{ dataList }}" class="item">
      <!-- <view bindtap="itemClick" data-videourl="{{ item.videoUrl }}" data-id="{{ item.id }}" class="img_wrap">
        <image class="img" src="{{ item.coverImage }}" mode="widthFix"></image>
        <image class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image>
      </view> -->
      <video id="{{ item.id }}" poster="{{ item.coverImage }}" data-item="{{ item }}" bindplay="itemClick" class="img_wrap" src="{{ item.videoUrl }}"    show-center-play-btn show-fullscreen-btn></video>
      <view class="title">{{ item.title }}</view>
wechat_staff/pages/productVideo/index.wxss
@@ -87,3 +87,84 @@
  width: 26rpx;
  margin-right: 10rpx;
}
.query_wrap_scroll {
  width: 750rpx;
  padding-left: 40rpx;
}
.query_wrap {
  display: flex;
  flex-wrap: nowrap;
}
.query_wrap .item {
  flex-shrink: 0;
  margin-right: 48rpx;
  height: 100rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
}
.query_wrap .item .name {
  margin-right: 12rpx;
}
.query_form {
  position: absolute;
  z-index: 999;
  background-color: #fff;
  width: 750rpx;
  overflow: hidden;
}
.query_form .list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 30rpx 40rpx;
  max-height: 680rpx;
  overflow: auto;
}
.query_form .list .item {
  width: 210rpx;
  height: 72rpx;
  text-align: center;
  line-height: 70rpx;
  background: #F7F7F7;
  border-radius: 8rpx;
  font-size: 26rpx;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 20rpx;
  margin-bottom: 24rpx;
}
.query_form .list .item:nth-of-type(3n) {
  margin-right: 0;
}
.query_form .list .active {
  color: var(--themeColor);
  background: rgba(176, 135, 113, 0.08);
}
.query_form .btns {
  display: flex;
  width: 750rpx;
}
.query_form .btns .btn {
  flex: 1;
  height: 88rpx;
  background: #E5E5E5;
  color: #666666;
  display: flex;
  justify-content: center;
  align-items: center;
}
.query_form .btns .sub {
  background: var(--themeColor);
  color: #fff;
}
.shade {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}
wechat_staff/utils/request.js
@@ -23,7 +23,7 @@
          if (res.data.code && (res.data.code == 5112 || res.data.code == 5111)) {
            if(options.data && options.data.goLogin){
              console.log("==================")
              wx.navigateTo({
              wx.redirectTo({
                        url: '/pages/login/index',
              })
            }