jiangping
2024-07-29 94ebb12193f9c97ada038bdfe41addd0fe6fcdcb
提交
已删除8个文件
已修改14个文件
184 ■■■■■ 文件已修改
admin/admin/avatar/man.png 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/avatar/woman.png 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/favicon.ico 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/faviconzb.ico 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/template/category.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/template/fcode.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/template/shop.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/template/users.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disProduct/index.js 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disProduct/index.wxml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disRealpic/index.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disRealpic/index.less 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/disRealpic/index.wxss 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/package-lock.json 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/detailDis/product.less 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/detailDis/product.wxss 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/discover/discover.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/disProduct/index.js 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/disProduct/index.wxml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/disProduct/index.wxss 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/detailDis/product.less 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/detailDis/product.wxss 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/avatar/man.png
Binary files differ
admin/admin/avatar/woman.png
Binary files differ
admin/admin/favicon.ico
Binary files differ
admin/admin/faviconzb.ico
Binary files differ
admin/admin/template/category.xlsx
Binary files differ
admin/admin/template/fcode.xlsx
Binary files differ
admin/admin/template/shop.xlsx
Binary files differ
admin/admin/template/users.xlsx
Binary files differ
wechat_jiaxuan/components/disProduct/index.js
@@ -14,7 +14,7 @@
    activeIndex: -1,
    activeParam: [],
    tagCodes: [],
    isLoading:false,
    cateList: [],
    secondCateList: [],
    datalist: [],
@@ -69,6 +69,7 @@
      this.getList()
    },
    getList() {
      var that =this
      const { catalogCode, tagCodes, pageNum, pageSize, sortType, query } = this.data
      getZhongTaiProductPage({
        catalogCode, pageNum, pageSize, sortType, query, tagCodes
@@ -77,6 +78,8 @@
          datalist: [...this.data.datalist, ...res.data.records],
          total: res.data.total
        })
      }).finally(()=>{
        that.setData({isLoading:false})
      })
    },
    scrolltolower() {
@@ -97,6 +100,11 @@
      this.getList()
    },
    cateClick(e) {
      var {isLoading} = this.data
      if(isLoading){
        return
      }
      this.setData({isLoading:true})
      const catalogCode = e.currentTarget.dataset.code
      this.setData({ catalogCode, tagCodes: [] })
      this.setData({ pageNum: 1, datalist: [], total: 0 })
@@ -122,25 +130,28 @@
      const index = tagCodes.indexOf(code)
      console.log('code', code)
      console.log('tagCodes', tagCodes)
      console.log(secondCateList)
      if (index === -1) {
        // 同param里code重复
        if (activeParam && activeParam.length > 0) {
          activeParam.forEach(item => {
            const indexTemp = tagCodes.indexOf(item.labelValueCode)
            if (indexTemp > -1) {
              tagCodes.splice(indexTemp, 1)
            }
          })
        }
        tagCodes.push(code)
        secondCateList[activeIndex].paramIndex = paramIndex
        secondCateList[activeIndex].paramName = activeParam[paramIndex].labelValueName
        // if (activeParam && activeParam.length > 0) {
        //   activeParam.forEach(item => {
        //     const indexTemp = tagCodes.indexOf(item.labelValueCode)
        //     if (indexTemp > -1) {
        //       tagCodes.splice(indexTemp, 1)
        //     }
        //   })
        // }
        //tagCodes.push(code)
        secondCateList[activeIndex].tempParamIndex = paramIndex
        secondCateList[activeIndex].tempParamCode = code
        secondCateList[activeIndex].tempParamName = activeParam[paramIndex].labelValueName
      } else {
        tagCodes.splice(index, 1)
        secondCateList[activeIndex].paramIndex = -1
        secondCateList[activeIndex].paramName = ''
      //  tagCodes.splice(index, 1)
        secondCateList[activeIndex].tempParamIndex = -1
        secondCateList[activeIndex].tempParamCode = ''
        secondCateList[activeIndex].tempParamName = ''
      }
      this.setData({ tagCodes, secondCateList })
      this.setData({secondCateList })
    },
    changeShowParams(e) {
      const { secondCateList } = this.data
@@ -159,15 +170,27 @@
    },
    cancelParam() {
      const { secondCateList } = this.data
      secondCateList.forEach(item => {
        item.paramIndex = -1
        item.paramName = item.paramName || ''
      secondCateList.forEach(item => {
        item.tempParamIndex = item.paramIndex
        item.tempParamName =   item.paramName
        item.tempParamCode =  item.paramCode
      })
      this.setData({ tagCodes: [], activeParam: [], secondCateList, activeIndex: -1 })
      // this.setData({ tagCodes: [], activeParam: [], secondCateList, activeIndex: -1 })
      this.setData({ activeParam: [],activeIndex: -1 ,secondCateList})
    },
    subParam() {
      this.setData({ activeParam: [] })
      this.setData({ pageNum: 1, activeIndex: -1, datalist: [], total: 0 })
      const { secondCateList } = this.data
      var codes = []
      secondCateList.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()
    },
  }
wechat_jiaxuan/components/disProduct/index.wxml
@@ -15,13 +15,13 @@
      <view class="main_right">
        <view class="query_wrap">
          <view data-index="{{index}}" wx:for="{{ secondCateList }}" class="item" bindtap="changeShowParams">
            <view class="name">{{ item.paramName || item.labelName }}</view>
            <view class="name">{{ item.tempParamName  || item.labelName }}</view>
            <van-icon name="{{ index == activeIndex ? 'arrow-up' : 'arrow-down' }}" />
          </view>
        </view>
        <view wx:if="{{ activeParam.length > 0 }}" class="query_form">
          <view class="list">
            <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].paramIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view>
            <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view>
          </view>
          <view class="btns">
            <view class="btn" bindtap="cancelParam">取消</view>
wechat_jiaxuan/components/disRealpic/index.js
@@ -155,9 +155,10 @@
      const { cateList } = this.data
      cateList.forEach(item => {
        item.paramIndex = -1
        item.paramName = item.paramName || ''
        item.paramName = ''
      })
      this.setData({ tagCodes: [],activeParam: [],cateList,activeIndex: -1 })
      this.setData({ tagCodes: [],datalist:[],pageNum:1, activeParam: [],cateList,activeIndex: -1 })
      this.getList()
    },
    bindblur() {
      this.setData({ pageNum: 1,dataList: [],total: 0})
wechat_jiaxuan/components/disRealpic/index.less
@@ -146,10 +146,10 @@
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    .item {
      width: 324rpx;
      margin-bottom: 32rpx;
      margin-bottom: 32rpx;
      .img_wrap {
        width: 100%;
        height: 182rpx;
wechat_jiaxuan/components/disRealpic/index.wxss
@@ -132,6 +132,7 @@
  flex-wrap: wrap;
  justify-content: space-around;
}
.main_content .goods_list .item {
  width: 324rpx;
  margin-bottom: 32rpx;
wechat_jiaxuan/package-lock.json
@@ -24,6 +24,11 @@
      "resolved": "https://registry.npmmirror.com/mp-html/-/mp-html-2.5.0.tgz",
      "integrity": "sha512-uvBH5tIaDIlj8qaxsvNXU3RKX0jvXOo3J6FAi/notUv/ds6j79UUTE82aDkxxUk0eLUU0CiCqMrR7WWnytk30Q=="
    },
    "spa-custom-hooks": {
      "version": "1.4.2",
      "resolved": "https://registry.npmmirror.com/spa-custom-hooks/-/spa-custom-hooks-1.4.2.tgz",
      "integrity": "sha512-wxMcbcgkM6TWCtm86Njd9K06I/iPr9CVWKCPJq7Q51eeNKdeSMcU9jsTRI+SVIfgNikc6//JCS4pwoyHRAdbCw=="
    },
    "vant-weapp": {
      "version": "0.5.29",
      "resolved": "https://registry.npmmirror.com/vant-weapp/-/vant-weapp-0.5.29.tgz",
wechat_jiaxuan/pages/detailDis/product.less
@@ -98,12 +98,14 @@
    margin-bottom: 16rpx;
  }
  .desc {
    font-size: 26rpx;
    color: #555555;
    margin-bottom: 26rpx;
  }
  .text {
  .text {
    line-height: 48rpx;
    font-size: 26rpx;
    color: #555555;
    margin-bottom: 40rpx;
@@ -212,8 +214,8 @@
    height: 32rpx;
    margin-bottom: 24rpx;
    .label {
      width: 120rpx;
    .label {
      width: auto;
      font-size: 24rpx;
      color: #666666;
    }
wechat_jiaxuan/pages/detailDis/product.wxss
@@ -97,6 +97,7 @@
  margin-bottom: 26rpx;
}
.main_content .text {
  line-height: 48rpx;
  font-size: 26rpx;
  color: #555555;
  margin-bottom: 40rpx;
@@ -190,7 +191,7 @@
  margin-bottom: 24rpx;
}
.detail .line .label {
  width: 120rpx;
  width: auto;
  font-size: 24rpx;
  color: #666666;
}
wechat_jiaxuan/pages/discover/discover.js
@@ -7,10 +7,10 @@
  data: {
    menuButtonInfo: {},
    catalogCode: "product_intro",
    activeCate: '',
    activeCate: '',
    height: 0,
    top: 0,
    isLoading:false
  },
  onLoad(options) {
    let menuButtonInfo = wx.getMenuButtonBoundingClientRect();
wechat_staff/components/disProduct/index.js
@@ -14,6 +14,7 @@
    cateList: [],
    secondCateList: [],
    datalist: [],
    isLoading:false,
    pageNum: 1,
    pageSize: 10,
    total: 0,
@@ -66,7 +67,7 @@
      this.setData({ pageNum: 1,datalist: [],total: 0})
      this.getList()
    },
    getList() {
    getList() {
      const { catalogCode,tagCodes, pageNum, pageSize, sortType, query } = this.data
      getZhongTaiProductPage({
        catalogCode,pageNum,pageSize,sortType,query,tagCodes
@@ -75,6 +76,8 @@
          datalist: [...this.data.datalist, ...res.data.records],
          total: res.data.total
        })
      }).finally(()=>{
        this.setData({isLoading:false})
      })
    },
    scrolltolower() {
@@ -91,6 +94,11 @@
      }
    },
    cateClick(e) {
      var {isLoading} = this.data
      if(isLoading){
        return
      }
      this.setData({isLoading:true})
      const catalogCode = e.currentTarget.dataset.code
      this.setData({ catalogCode, tagCodes: [] })
      this.setData({ pageNum: 1,datalist: [],total: 0})
@@ -115,22 +123,24 @@
      const { secondCateList, tagCodes, activeParam, activeIndex } = this.data
      const index = tagCodes.indexOf(code)
      if(index === -1){
        // 同param里code重复
        if(activeParam && activeParam.length > 0){
          activeParam.forEach(item => {
            const indexTemp = tagCodes.indexOf(item.labelValueCode)
            if(indexTemp > -1){
              tagCodes.splice(indexTemp, 1)
            }
          })
        }
        tagCodes.push(code)
        secondCateList[activeIndex].paramIndex = paramIndex
        secondCateList[activeIndex].paramName = activeParam[paramIndex].labelValueName
      }else{
        tagCodes.splice(index, 1)
        secondCateList[activeIndex].paramIndex = -1
        secondCateList[activeIndex].paramName = ''
         // 同param里code重复
        // if (activeParam && activeParam.length > 0) {
        //   activeParam.forEach(item => {
        //     const indexTemp = tagCodes.indexOf(item.labelValueCode)
        //     if (indexTemp > -1) {
        //       tagCodes.splice(indexTemp, 1)
        //     }
        //   })
        // }
        //tagCodes.push(code)
        secondCateList[activeIndex].tempParamIndex = paramIndex
        secondCateList[activeIndex].tempParamCode = code
        secondCateList[activeIndex].tempParamName = activeParam[paramIndex].labelValueName
      } else {
      //  tagCodes.splice(index, 1)
        secondCateList[activeIndex].tempParamIndex = -1
        secondCateList[activeIndex].tempParamCode = ''
        secondCateList[activeIndex].tempParamName = ''
      }
      this.setData({ tagCodes, secondCateList })
    },
@@ -153,15 +163,27 @@
    },
    cancelParam() {
      const { secondCateList } = this.data
      secondCateList.forEach(item => {
        item.paramIndex = -1
        item.paramName = item.paramName || ''
      secondCateList.forEach(item => {
        item.tempParamIndex = item.paramIndex
        item.tempParamName =   item.paramName
        item.tempParamCode =  item.paramCode
      })
      this.setData({ tagCodes: [],activeParam: [],secondCateList,activeIndex: -1 })
      // this.setData({ tagCodes: [], activeParam: [], secondCateList, activeIndex: -1 })
      this.setData({ activeParam: [],activeIndex: -1 ,secondCateList})
    },
    subParam() {
      this.setData({ activeParam: [] })
      this.setData({ pageNum: 1,activeIndex: -1, datalist: [],total: 0})
      const { secondCateList } = this.data
      var codes = []
      secondCateList.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()
    },
  }
wechat_staff/components/disProduct/index.wxml
@@ -15,13 +15,13 @@
      <view class="main_right">
        <view class="query_wrap">
          <view data-index="{{index}}" wx:for="{{ secondCateList }}" class="item" bindtap="changeShowParams">
            <view class="name">{{ item.paramName || item.labelName }}</view>
            <view class="name">{{ item.tempParamName  || item.labelName }}</view>
            <van-icon name="{{ index == activeIndex ? 'arrow-up' : 'arrow-down' }}" />
          </view>
        </view>
        <view wx:if="{{ activeParam.length > 0 }}" class="query_form">
          <view class="list">
            <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].paramIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view>
            <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].tempParamIndex === index  ? 'active' : '' }}">{{ item.labelValueName }}</view>
          </view>
          <view class="btns">
            <view class="btn" bindtap="cancelParam">取消</view>
wechat_staff/components/disProduct/index.wxss
@@ -185,6 +185,7 @@
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.main_content .main_right .goods_list .item .info {
  display: flex;
wechat_staff/pages/detailDis/product.less
@@ -86,7 +86,8 @@
    margin-bottom: 26rpx;
  }
  .text {
  .text {
    line-height: 48rpx;
    font-size: 26rpx;
    color: #555555;
    margin-bottom: 40rpx;
@@ -196,7 +197,7 @@
    margin-bottom: 24rpx;
    .label {
      width: 120rpx;
      width: auto;
      font-size: 24rpx;
      color: #666666;
    }
wechat_staff/pages/detailDis/product.wxss
@@ -78,7 +78,8 @@
  color: #555555;
  margin-bottom: 26rpx;
}
.main_content .text {
.main_content .text {
  line-height: 48rpx;
  font-size: 26rpx;
  color: #555555;
  margin-bottom: 40rpx;
@@ -172,7 +173,7 @@
  margin-bottom: 24rpx;
}
.detail .line .label {
  width: 120rpx;
  width: auto;
  font-size: 24rpx;
  color: #666666;
}