''
liukangdong
2024-07-25 8ab86de45b9ddf1ebde415f262f4b40727f53989
''
已添加2个文件
已修改21个文件
718 ■■■■ 文件已修改
wechat_staff/components/detailFooter/index.js 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/consult.js 133 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/consult.json 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/consult.less 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/consult.wxml 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/consult.wxss 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/detail.js 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/detail.json 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/detail.less 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/detail.wxml 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/consult/detail.wxss 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/discover/discover.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/download/index.js 76 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/download/index.json 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/download/index.less 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/download/index.wxml 40 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/download/index.wxss 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/index/index.js 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/index/index.wxml 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/webView/index.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/static/icon/ic_select.png 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/static/icon/ic_select_sel.png 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/utils/config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/detailFooter/index.js
@@ -56,7 +56,7 @@
      } = this.data
      let that = this
      getContentShareImg({
        articleId: path + '&' + info.id,
        articleId: `${info.id}&${path}&${wx.getStorageSync('member').id}`,
        type: '1',
        // pageUrl: path,
        imgurl: info.coverImage,
@@ -95,16 +95,11 @@
      })
    },
    batchDown() {
      console.log('点解了下载');
      this.triggerEvent('down')
      setTimeout(() => {
        eventBus.emit('batchDown', [1,2,3])
      const downloadList = this.data.info.imageurlList || []
      wx.setStorageSync('downloadList', downloadList)
      wx.navigateTo({
        url: '/pages/download/index',
      }, 1000)
      setTimeout(() => {
        wx.navigateTo({
          url: '/pages/download/index',
        }, 1000)
      })
    },
    closeCard() {
      this.setData({ isShowPoster: false })
wechat_staff/pages/consult/consult.js
@@ -1,39 +1,113 @@
// pages/consult/consult.js
import { getZhongTaiProductNewsPage, getCatalogList,actionDo } from '../../api/index'
Page({
  /**
   * 页面的初始数据
   */
  data: {
    category: ['新品上市', '专利证书', '大牌授权','新品上市', '专利证书', '大牌授权'],
    secondCategory: ['级分类','级分类','级分类','级分类','级分类','级分类'],
    activeCate: '',
    seActiveCate: '',
    dataList: []
  },
    category: [],
    secondCategory: [],
    catalogCode: '',
    tagCode: '',
    query: '',
    dataList: [],
    total: 0,
    pageNum: 1,
    pageSize: 10,
    // height: 0,
    // top: 0,
  },
  onLoad(options) {
    this.getCate()
  },
  onReachBottom() {
    console.log('触底事件');
    const { total, dataList, pageNum } = this.data
    if(total > dataList.length){
      this.setData({ pageNum: pageNum + 1 })
      this.getList()
    }else{
      wx.showToast({
        title: '暂无更多数据',
        icon: 'none'
      })
    }
  },
  getCate() {
    getCatalogList({catalogCode: 'product_info'}).then(res => {
      this.setData({ category: res.data })
      if(res.data && res.data.length > 0){
        this.setData({catalogCode: res.data[0].code})
        this.gettag()
        this.getList()
      }
    })
  },
  gettag() {
    const { catalogCode } = this.data
    getCatalogList({
      catalogCode
    }).then(res => {
      if(res.data && res.data.length > 0){
        this.setData({ secondCategory: res.data })
      }
    })
  },
  itemClick(e) {
    const { id } = e.target.dataset
    console.log(e.target.dataset);
    wx.navigateTo({
      url: '/pages/consult/detail',
    const item = e.currentTarget.dataset.item
    actionDo({actionType: 'view',id: item.id})
    if(item.contentType == 'link'){
      wx.navigateTo({
        url: '/pages/webView/index?link=' + item.content,
        success: function(res) {
          // 通过eventChannel向被打开页面传送数据
          res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.openContent, title: item.title })
        }
      })
    }else{
      wx.navigateTo({
        url: '/pages/consult/detail?id='+item.id,
      })
    }
  },
  getList() {
    const { pageNum, pageSize, catalogCode, tagCode, query } = this.data
    getZhongTaiProductNewsPage({
      pageNum, pageSize, query, catalogCode: tagCode || catalogCode
    }).then(res => {
      if(res.data){
        this.setData({
          dataList: [ ...this.data.dataList, ...res.data.records ],
          total: res.data.total
        })
      }
    })
  },
  cateClick(e) {
    const { index } = e.target.dataset
    console.log(index);
    const { code } = e.currentTarget.dataset
    this.setData({ catalogCode: code,secondCategory: [], tagCode: ''  })
    this.gettag()
    this.getList()
    this.setData({ dataList: [], pageNum: 1 })
  },
  seCateClick(e) {
    const { index } = e.target.dataset
    console.log(index);
    const { code } = e.currentTarget.dataset
    if(this.data.tagCode == code){
      this.setData({ tagCode: '' })
    }else{
      this.setData({ tagCode: code })
    }
    this.setData({ dataList: [], pageNum: 1 })
    this.getList()
  },
  onLoad(options) {
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  priviewFull(e){
      const item = e.currentTarget.dataset.item
      console.log('item', item);
    },
  onReady() {
  },
@@ -58,21 +132,6 @@
  onUnload() {
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {
  },
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {
  },
  /**
   * 用户点击右上角分享
   */
wechat_staff/pages/consult/consult.json
@@ -1,3 +1,6 @@
{
  "navigationBarTitleText": "咨询"
  "usingComponents": {
    "buoyClient": "../../components/buoyClient/index"
  },
  "navigationBarTitleText": "资讯"
}
wechat_staff/pages/consult/consult.less
@@ -1,11 +1,33 @@
.container {
  background-color: #fff;
}
.home_top{
  position: fixed;
  width: 100%;
  z-index: 99;
  top: 0;
  background-color: #fff;
}
.cate_wrap{
  background-color: #fff;
  .cate_one{
    position: fixed;
    top: 96rpx;
    background-color: #fff;
    width: 100%;
  }
  .cate_two{
    position: fixed;
    top: 156rpx;
    background-color: #fff;
    padding-top: 30rpx;
    width: 100%;
  }
}
.search_wrap{
  width: 670rpx;
  height: 72rpx;
  margin: 24rpx auto;
  background: #F7F7F7;
  margin: 0rpx auto 24rpx;
  border-radius: 8rpx;
  padding: 0 40rpx;
  display: flex;
@@ -54,8 +76,9 @@
  }
}
.content{
  padding: 0 40rpx 40rpx;
  padding: 260rpx 40rpx 40rpx;
  .item{
    margin-bottom: 60rpx;
    .img{
      width: 100%;
    }
wechat_staff/pages/consult/consult.wxml
@@ -1,31 +1,40 @@
<view class="container">
  <view class="search_wrap">
    <image src="../../static/icon/ic_search@2x.png" mode="widthFix"></image>
    <input type="text" placeholder="搜索咨询标题" />
  <!-- 悬浮 -->
  <buoyClient />
  <view class="home_top">
    <view class="search_wrap">
      <image src="../../static/icon/ic_search@2x.png" mode="widthFix"></image>
      <input bindblur="getList" model:value="{{ query }}" type="text" placeholder="搜索资讯标题" />
    </view>
  </view>
  <!-- 分类 -->
  <view>
    <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;">
      <view class="scroll_cate">
        <view bindtap="cateClick" data-index="{{index}}" wx:for="{{ category }}" class="item {{ index == 0 ? 'active': '' }}">{{ item }}</view>
      </view>
    </scroll-view>
    <scroll-view scroll-x="true" style="weight: 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>
      </view>
    </scroll-view>
  <view class="cate_wrap">
    <view class="cate_one">
      <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;">
        <view class="scroll_cate">
          <view bindtap="cateClick" data-code="{{item.code}}" wx:for="{{ category }}" class="item {{ catalogCode == item.code ? 'active': '' }}">{{ item.name }}</view>
        </view>
      </scroll-view>
    </view>
    <view class="cate_two">
      <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 24rpx;">
        <view class="scroll_cate second_list">
          <view bindtap="seCateClick" data-code="{{item.code}}" wx:for="{{ secondCategory }}" class="item {{ tagCode == item.code ? 'active': '' }}">{{ item.name }}</view>
        </view>
      </scroll-view>
    </view>
  </view>
  <!-- content -->
  <view class="content">
    <view class="item" bindtap="itemClick" data-abg="qwe">
      <image class="img" src="../../static/icon/test.png" mode="widthFix"></image>
      <view class="title">吊灯实用特辑 | 一步学会理想光影布局</view>
  <view class="content" style="padding-top: {{ secondCategory.length > 0 ? 276 : 186 }}rpx;">
    <view wx:for="{{ dataList }}" class="item" bindtap="itemClick" data-item="{{item}}">
      <image class="img" src="{{ item.coverImage }}" mode="widthFix"></image>
      <view class="title">{{ item.title }}</view>
      <view class="df_sb static">
        <view>{{ '2021-08-21 12:00:00' }}</view>
        <view>{{ item.publishDt || '' }}</view>
        <view class="df_sb">
          <image class="liulan" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image>
          <text>1000</text>
          <text>{{ item.viewCount }}</text>
        </view>
      </view>
    </view>
wechat_staff/pages/consult/consult.wxss
@@ -1,11 +1,33 @@
.container {
  background-color: #fff;
}
.home_top {
  position: fixed;
  width: 100%;
  z-index: 99;
  top: 0;
  background-color: #fff;
}
.cate_wrap {
  background-color: #fff;
}
.cate_wrap .cate_one {
  position: fixed;
  top: 96rpx;
  background-color: #fff;
  width: 100%;
}
.cate_wrap .cate_two {
  position: fixed;
  top: 156rpx;
  background-color: #fff;
  padding-top: 30rpx;
  width: 100%;
}
.search_wrap {
  width: 670rpx;
  height: 72rpx;
  margin: 24rpx auto;
  background: #F7F7F7;
  margin: 0rpx auto 24rpx;
  border-radius: 8rpx;
  padding: 0 40rpx;
  display: flex;
@@ -50,7 +72,10 @@
  font-weight: 400;
}
.content {
  padding: 0 40rpx 40rpx;
  padding: 260rpx 40rpx 40rpx;
}
.content .item {
  margin-bottom: 60rpx;
}
.content .item .img {
  width: 100%;
wechat_staff/pages/consult/detail.js
@@ -1,12 +1,15 @@
// pages/consult/detail.js
import { shareContent, getProductNewsInfo } from '../../api/index'
Page({
  /**
   * 页面的初始数据
   */
  data: {
    navTitle: '详情',
    bottomLift: 0
    bottomLift: 0,
    info: {},
    detail: {},
    showShare: false
  },
  /**
@@ -17,25 +20,38 @@
    this.setData({
      bottomLift: app.bottomLift
    })
    this.getDetail(options.id)
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {
  handleDesign() {
    wx.navigateTo({
      url: '/pages/design/design',
    })
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {
  getDetail(id) {
    getProductNewsInfo({ id }).then(res => {
      this.setData({ info: res.data })
      wx.setNavigationBarTitle({
        title: res.data.title
      })
    })
  },
  /**
   * 生命周期函数--监听页面隐藏
   */
  openShare() {
    this.setData({showShare: true})
  },
  handleShare() {
    console.log('点击了分享');
    shareContent(this.data.info.id)
  },
  // onShareAppMessage: function () {
  //   // let { productDetail, userInfo } = this.data
  //   return {
  //     title: productDetail.title,
  //     path: '/pages/index/index?id=' + productDetail.id + '&shareuserid=' + userInfo.id + '&type=0'
  //   }
  // },
  onClose() {
    this.setData({showShare: false})
  },
  onHide() {
  },
wechat_staff/pages/consult/detail.json
@@ -1,3 +1,8 @@
{
  "usingComponents": {}
  "usingComponents": {
    "van-popup": "@vant/weapp/popup/index",
    "mp-html": "mp-html",
    "buoyClient": "../../components/buoyClient/index"
  },
  "navigationBarTitleText": ""
}
wechat_staff/pages/consult/detail.less
@@ -27,18 +27,13 @@
    align-items: center;
    height: 100rpx;
    padding: 12rpx 40rpx;
    .list{
      flex: 1;
      display: flex;
      align-items: center;
    }
  }
  .sub_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72rpx;
    width: 152rpx;
    flex: 1;
    background-color: var(--themeColor);
    font-weight: 500;
    color: #FFFFFF;
@@ -51,6 +46,7 @@
    }
  }
  .item {
    margin-top: 18rpx;
    display: flex;
    flex-direction: column;
    justify-content: center;
@@ -63,4 +59,34 @@
      width: 44rpx;
    }
  }
}
.share_modal{
  .btns{
    display: flex;
    min-height: 320rpx;
    display: flex;
    align-items: center;
    .item{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      flex: 1;
      font-size: 26rpx;
      background-color: #fff;
      image{
        width: 80rpx;
        height: 80rpx;
        margin-bottom: 10rpx;
      }
    }
  }
  .cancel{
    height: 80rpx;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1rpx solid #e5e5e5;
  }
}
wechat_staff/pages/consult/detail.wxml
@@ -1,33 +1,44 @@
<view>
  <navBar title="{{ navTitle }}"></navBar>
  <!-- <navBar title="{{ navTitle }}"></navBar> -->
  <buoyClient showPurpose="1" />
  <view class="main_content">
    <view class="main_title">三种美好玄关,进屋瞬间卸载疲惫</view>
    <view class="datetime">发布时间:2021-08-21 10:0</view>
    <view class="content">
      客厅、餐厅、卧室、厨房、阳台……家中空间的称谓,大多朴实无华,唯独“玄关”一词格外华丽抽象。
      这个不太起眼的小空间,取词来自道教:“玄关”指修炼内丹过程中,体内的气绕巡全身时,最先通过的地方,也有“夫玄关者,至玄至妙之机关也”的说法。
    </view>
    <view class="main_title">{{ info.title }}</view>
    <view class="datetime">发布时间:{{ info.publishDt }}</view>
    <mp-html content="{{info.content}}"></mp-html>
  </view>
  <!-- footer -->
  <view class="footer" style="padding-bottom: {{bottomLift}}px;">
    <view class="btns">
      <view class="list">
        <view class="item">
          <image class="icon" src="../../static/icon/detail_nav_like@2x.png" mode="widthFix"></image>
          <view class="name">喜欢</view>
        </view>
        <view class="item">
          <image class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
          <view class="name">收藏</view>
        </view>
        <view class="item">
          <image class="icon" src="../../static/icon/detail_nav_download@2x.png" mode="widthFix"></image>
          <view class="name">下载</view>
        </view>
      </view>
      <view class="sub_btn">
        <view>分享</view>
      <!-- <view class="item">
        <image class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
        <view class="name">收藏</view>
      </view> -->
      <button open-type="share" class="item" bindtap="handleShare">
        <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
        <view class="name">分享</view>
      </button>
      <view class="sub_btn" bindtap="handleDesign">
        <image class="sheji" src="../../static/icon/ic_sheji.png" mode="widthFix"></image>
        <view>免费预约专属设计</view>
      </view>
    </view>
  </view>
  <!--  -->
  <van-popup position="bottom" show="{{ showShare }}" bind:close="onClose">
    <view class="share_modal">
      <view class="btns">
        <button open-type="share" class="item" bindtap="handleShare">
          <image src="../../static/icon/wechat.png"></image>
          <view>发送好友</view>
        </button>
        <button class="item">
          <image src="../../static/icon/download.png"></image>
          <view>下载海报</view>
        </button>
      </view>
      <view bindtap="onClose" class="cancel">取消</view>
    </view>
  </van-popup>
</view>
wechat_staff/pages/consult/detail.wxss
@@ -26,17 +26,12 @@
  height: 100rpx;
  padding: 12rpx 40rpx;
}
.footer .btns .list {
  flex: 1;
  display: flex;
  align-items: center;
}
.footer .sub_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72rpx;
  width: 152rpx;
  flex: 1;
  background-color: var(--themeColor);
  font-weight: 500;
  color: #FFFFFF;
@@ -49,6 +44,7 @@
  margin-right: 8rpx;
}
.footer .item {
  margin-top: 18rpx;
  display: flex;
  flex-direction: column;
  justify-content: center;
@@ -60,3 +56,30 @@
.footer .item .icon {
  width: 44rpx;
}
.share_modal .btns {
  min-height: 320rpx;
  display: flex;
  align-items: center;
}
.share_modal .btns .item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  font-size: 26rpx;
  background-color: #fff;
}
.share_modal .btns .item image {
  width: 80rpx;
  height: 80rpx;
  margin-bottom: 10rpx;
}
.share_modal .cancel {
  height: 80rpx;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1rpx solid #e5e5e5;
}
wechat_staff/pages/discover/discover.js
@@ -1,4 +1,6 @@
import { getCataLogTagList, getCatalogList } from '../../api/index'
const { HYEventBus } = require('hy-event-store')
const eventBus = new HYEventBus()
Page({
  /**
@@ -15,7 +17,16 @@
  onLoad(options) {
    let menuButtonInfo = wx.getMenuButtonBoundingClientRect();
    this.setData({menuButtonInfo})
  },
  },
  onShow() {
    let discoverKey = wx.getStorageSync('discoverKey') || ''
    if(discoverKey){
      this.setData({ catalogCode: discoverKey })
      setTimeout(() => {
        wx.setStorageSync('discoverKey', '')
      }, 500)
    }
  },
  tabsClick(e) {
    const catalogCode = e.currentTarget.dataset.code
    this.setData({catalogCode})
@@ -24,13 +35,6 @@
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {
  },
wechat_staff/pages/download/index.js
@@ -7,7 +7,11 @@
   * 页面的初始数据
   */
  data: {
    bottomLift: ''
    bottomLift: '',
    downloadList: [],
    checkedAll: false,
    showParam: false,
    takeQrcode: true
  },
  /**
@@ -19,25 +23,65 @@
      bottomLift: app.bottomLift
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {
    eventBus.on('batchDown', val => {
      console.log('val', val);
    const downloadList = wx.getStorageSync('downloadList') || []
    let temp = downloadList.map(i => {
      // paddingStatus: 0未下载1正在下载2等待下载3下载完成
      return {
        url: i,
        paddingStatus: 0,
        checked: false
      }
    })
    this.setData({ downloadList: temp })
    setTimeout(() => {
      wx.setStorageSync('downloadList', [])
    },500)
  },
  openParam() {
    const downloadList = this.data.downloadList.filter(i => i.checked)
    if(downloadList.length === 0) return wx.showToast({title: '请先选择要下载的海报', icon: 'none'})
    this.setData({ showParam: true })
  },
  onClose() {
    this.setData({ showParam: false })
  },
  downCheck(e) {
    const takeQrcode = e.currentTarget.dataset.flag
    console.log('takeQrcode', takeQrcode);
    this.setData({ takeQrcode })
  },
  subDownload() {
    const downloadList = this.data.downloadList
    downloadList.forEach(item => {
      if(item.checked){
      }
    })
  /**
   * 生命周期函数--监听页面隐藏
   */
    this.setData({ showParam: false })
  },
  itemCheck(e) {
    const i = e.currentTarget.dataset.i
    const { downloadList, checkedAll } = this.data
    let count = 0
    downloadList.forEach((item, index) => {
      if(index === i){
        item.checked = !item.checked
      }
      if(item.checked) {
        count ++
      }
    })
    this.setData({ checkedAll: count == downloadList.length,  downloadList})
  },
  allCheck() {
    const { downloadList, checkedAll } = this.data
    downloadList.forEach(item => {
      item.checked = !checkedAll
    })
    this.setData({ checkedAll: !checkedAll, downloadList })
  },
  onHide() {
  },
wechat_staff/pages/download/index.json
@@ -1,4 +1,6 @@
{
  "usingComponents": {},
  "usingComponents": {
    "van-popup": "@vant/weapp/popup/index"
  },
  "navigationBarTitleText": "下载"
}
wechat_staff/pages/download/index.less
@@ -8,7 +8,11 @@
    border-radius: 8rpx;
    overflow: hidden;
    position: relative;
    border: 1px solid;
    margin-right: 20rpx;
    margin-bottom: 20rpx;
    &:nth-of-type(3n){
      margin-right: 0;
    }
    .img{
      width: 100%;
      height: 100%;
@@ -38,6 +42,7 @@
}
.footer {
  position: fixed;
  z-index: 99;
  bottom: 0;
  left: 0;
  width: 750rpx;
@@ -69,4 +74,44 @@
    border-radius: 8rpx;
    color: #fff;
  }
}
.param_modal{
  padding: 30rpx 40rpx 12rpx;
  .title{
    text-align: center;
    font-size: 30rpx;
  }
  .line{
    height: 150rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1rpx solid #E5E5E5;
    .check{
      width: 40rpx;
      height: 40rpx;
    }
    .name{
      font-size: 30rpx;
      color: #111111;
    }
    .desc{
      font-size: 26rpx;
      color: #777777;
      margin-top: 20rpx;
    }
  }
  .submit{
    margin-top: 100rpx;
    width: 100%;
    height: 88rpx;
    background: #B08771;
    border-radius: 8rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 32rpx;
    color: #FFFFFF;
  }
}
wechat_staff/pages/download/index.wxml
@@ -1,21 +1,45 @@
<view>
  <view class="list">
    <view class="item">
      <image class="img" src=""></image>
      <view class="shade">等待下载</view>
      <image wx:if="{{ true }}" class="check" src="../../static/icon/ic_select_sel@2x.png"></image>
      <image wx:else class="check" src="../../static/icon/ic_select@2x.png"></image>
    <view wx:for="{{ downloadList }}" class="item">
      <image class="img" src="{{ item.url }}" mode="scaleToFill"></image>
      <view wx:if="{{ item.paddingStatus }}" class="shade">等待下载</view>
      <image data-i="{{index}}" bindtap="itemCheck" wx:if="{{ item.checked }}" class="check" src="../../static/icon/ic_select_sel@2x.png"></image>
      <image wx:else data-i="{{index}}" bindtap="itemCheck" class="check" src="../../static/icon/ic_select.png"></image>
    </view>
  </view>
  <!--  -->
  <view class="footer" style="padding-bottom: {{bottomLift}}px;">
    <view class="footer_wrap">
      <view class="check_wrap">
        <image wx:if="{{ true }}" class="check" src="../../static/icon/ic_select_sel@2x.png"></image>
        <image wx:else class="check" src="../../static/icon/ic_select@2x.png"></image>
        <image bindtap="allCheck" wx:if="{{ checkedAll }}" class="check" src="../../static/icon/ic_select_sel@2x.png"></image>
        <image bindtap="allCheck" wx:else class="check" src="../../static/icon/ic_select@2x.png"></image>
        <text>全选</text>
      </view>
      <view class="down_btn">批量下载</view>
      <view bindtap="openParam" class="down_btn">批量下载</view>
    </view>
  </view>
  <!--  -->
  <van-popup show="{{ showParam }}" position="bottom" closeable round bind:close="onClose">
    <view class="param_modal">
      <view class="title">下载图片是否携带二维码</view>
      <view>
        <view data-flag="{{true}}" bindtap="downCheck" class="line">
          <view class="content">
            <view class="name">带二维码</view>
            <view class="desc">适用朋友圈传播</view>
          </view>
          <image wx:if="{{ takeQrcode }}" src="../../static/icon/ic_select_sel@2x.png" class="check"></image>
        </view>
        <view data-flag="{{false}}" bindtap="downCheck" class="line">
          <view class="content">
            <view class="name">不带二维码</view>
            <view class="desc">适用抖音等工域传播</view>
          </view>
          <image wx:if="{{ !takeQrcode }}" src="../../static/icon/ic_select_sel@2x.png" class="check"></image>
        </view>
      </view>
      <view bindtap="subDownload" class="submit">确认</view>
    </view>
  </van-popup>
</view>
wechat_staff/pages/download/index.wxss
@@ -9,7 +9,11 @@
  border-radius: 8rpx;
  overflow: hidden;
  position: relative;
  border: 1px solid;
  margin-right: 20rpx;
  margin-bottom: 20rpx;
}
.list .item:nth-of-type(3n) {
  margin-right: 0;
}
.list .item .img {
  width: 100%;
@@ -38,6 +42,7 @@
}
.footer {
  position: fixed;
  z-index: 99;
  bottom: 0;
  left: 0;
  width: 750rpx;
@@ -70,3 +75,43 @@
  border-radius: 8rpx;
  color: #fff;
}
.param_modal {
  padding: 30rpx 40rpx 12rpx;
}
.param_modal .title {
  text-align: center;
  font-size: 30rpx;
}
.param_modal .line {
  height: 150rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1rpx solid #E5E5E5;
}
.param_modal .line .check {
  width: 40rpx;
  height: 40rpx;
}
.param_modal .line .name {
  font-size: 30rpx;
  color: #111111;
}
.param_modal .line .desc {
  font-size: 26rpx;
  color: #777777;
  margin-top: 20rpx;
}
.param_modal .submit {
  margin-top: 100rpx;
  width: 100%;
  height: 88rpx;
  background: #B08771;
  border-radius: 8rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  font-size: 32rpx;
  color: #FFFFFF;
}
wechat_staff/pages/index/index.js
@@ -6,6 +6,8 @@
  getCustomizedNewsList,
  newsPage
} from '../../api/index'
const { HYEventBus } = require('hy-event-store')
const eventBus = new HYEventBus()
Page({
  data: {
    searchValue: '',
@@ -106,6 +108,20 @@
      url: '/pages/promotion/index',
    })
  },
  funClick(e){
    const i = e.currentTarget.dataset.i
    let map = ['product_intro', 'whole_case', 'real_case']
    if(i == 3){
      wx.navigateTo({
        url: '/pages/consult/consult',
      })
    }else{
      wx.setStorageSync('discoverKey', map[i])
      wx.switchTab({
        url: '/pages/discover/discover',
      })
    }
  },
  jumpProVideo() {
    wx.navigateTo({
      url: '/pages/productVideo/index',
wechat_staff/pages/index/index.wxml
@@ -1,6 +1,5 @@
<view class="container">
  <view style="height: {{clientTop - 2}}px;"></view>
  <buoyClient />
  <view class="search_wrap">
    <image class="icon" src="../../static/home_ic_search@2x.png" mode="widthFix"></image>
    <input model:value="{{ searchValue }}" placeholder="搜索" type="text" />
@@ -30,19 +29,19 @@
  </view>
  <!--  -->
  <view class="func_lsit">
    <view class="item">
    <view data-i="0" bindtap="funClick" class="item">
      <image src="../../static/icon/home_ic_chanpin@2x 2.png"></image>
      <view class="text">产品</view>
    </view>
    <view class="item">
    <view data-i="1" bindtap="funClick" class="item">
      <image src="../../static/icon/home_ic_anli@2x 2.png"></image>
      <view class="text">案例</view>
    </view>
    <view class="item">
    <view data-i="2" bindtap="funClick" class="item">
      <image src="../../static/icon/home_ic_shijing@2x 2.png"></image>
      <view class="text">实景</view>
    </view>
    <view class="item">
    <view data-i="3" bindtap="funClick" class="item">
      <image src="../../static/icon/home_ic_zixun.png"></image>
      <view class="text">资讯</view>
    </view>
wechat_staff/pages/webView/index.wxml
@@ -1,5 +1,5 @@
<web-view src="http://crmtest.zhibang.com:8000/core/oauth/authorize/jump?timestamp=-470965492&agent_phone_number=18055151023&bindKey=mpAddIntention&sign=f2dcf1e3946df40fa9392011da99772d">
<web-view src="{{link}}">
</web-view>
wechat_staff/static/icon/ic_select.png
wechat_staff/static/icon/ic_select_sel.png
wechat_staff/utils/config.js
@@ -1,7 +1,7 @@
export const baseUrl = 'http://192.168.0.135:10027'
// export const baseUrl = 'https://dmtest.ahapp.net/web_interface' // 本地
// export const baseUrl = 'http://192.168.0.135:10027'
export const baseUrl = 'https://dmtest.ahapp.net/web_interface' // 本地
// export const baseUrl = 'http://zbtest.ahapp.net/zbom_interface/jx/wechat/' //测试服务器
// export const imageUrl = 'https://osswebcdn.zbom.com/jiaxuan/images/'