wechat_jiaxuan/pages/userinfo/collect.js | 补丁 | 查看 | 原始文档 | blame | 历史 | |
wechat_staff/api/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
wechat_staff/pages/index/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
wechat_staff/pages/index/index.wxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
wechat_staff/pages/promotion/index.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
wechat_staff/pages/sets/protocol.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
wechat_staff/pages/sets/protocol.wxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
wechat_staff/pages/userinfo/collect.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
wechat_staff/pages/userinfo/collect.wxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
wechat_staff/project.private.config.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
wechat_jiaxuan/pages/userinfo/collect.js
wechat_staff/api/index.js
@@ -143,7 +143,14 @@ data }) } // 我的 收藏/喜欢列表 export const collectLikePage = (data) => { return request({ url: '/web/customer/collectLikePage', method: 'POST', data }) } // 0元定制信息 export const saveFreeCustomizationApply = (data) => { return request({ wechat_staff/pages/index/index.js
@@ -66,6 +66,11 @@ this.setData({ HOME_CLASS_C: res.data.code }) }) }, promotionClick() { wx.navigateTo({ url: '/pages/promotion/index', }) }, changeStrategy(e) { let item = e.currentTarget.dataset.item wx.navigateTo({ wechat_staff/pages/index/index.wxml
@@ -5,7 +5,7 @@ <input model:value="{{ searchValue }}" placeholder="搜索" type="text"/> </view> <view class="everyday"> <view class="header"> <view class="header" bindtap="promotionClick"> <view class="title">每日上新</view> <view class="more"> <text class="placeholder9">查看更多</text> wechat_staff/pages/promotion/index.json
@@ -1,4 +1,4 @@ { "usingComponents": {}, "navigationBarTitleText": "最新推广咨询" "navigationBarTitleText": "最新推广资讯" } wechat_staff/pages/sets/protocol.json
@@ -1,3 +1,5 @@ { "usingComponents": {} "usingComponents": { "mp-html": "mp-html" } } wechat_staff/pages/sets/protocol.wxml
@@ -1,2 +1,2 @@ <!--pages/sets/protocol.wxml--> <rich-text nodes="{{content}}"> </rich-text> <mp-html content="{{content}}"> </mp-html> wechat_staff/pages/userinfo/collect.js
@@ -1,24 +1,77 @@ // pages/userinfo/collect.js import { collectLikePage } from '../../api/index' Page({ /** * 页面的初始数据 */ data: { activeTabs: '0' }, activeTabs: 'product_intro', tabsChange(e) { const activeTabs = e.currentTarget.dataset.val this.setData({ activeTabs }) }, handleDetail(e) { wx.navigateTo({ url: '/pages/detailDis/product', }) dataList: [], total: 0, pageNum: 1, pageSize: 10, }, onLoad(options) { this.getList() }, 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' }) } }, tabsChange(e) { const activeTabs = e.currentTarget.dataset.val this.setData({ activeTabs, dataList: [],total: 0,pageNum: 1 }) this.getList() }, handleDetail(e) { const id = e.currentTarget.dataset.id const { activeTabs } = this.data let url = '' if(activeTabs == 'product_intro'){ url = '/pages/detailDis/product' }else if(activeTabs == 'whole_case'){ url = '/pages/detailDis/case' }else{ url = '/pages/detailDis/realpic' } wx.navigateTo({ url: `${url}?id=${id}`, }) }, getList() { const { pageSize, pageNum, activeTabs } = this.data collectLikePage({ businessCategory: 'collect', businessType: activeTabs, pageSize, pageNum }).then(res => { if (res.data) { this.setData({ dataList: [...this.data.dataList, ...res.data.records || []], total: res.data.total }) } }) }, /** @@ -59,9 +112,6 @@ /** * 页面上拉触底事件的处理函数 */ onReachBottom() { }, /** * 用户点击右上角分享 wechat_staff/pages/userinfo/collect.wxml
@@ -1,59 +1,31 @@ <view class="container"> <view class="tabs"> <view class="item {{ activeTabs == '0' ? 'active' : '' }}" data-val="0" bindtap="tabsChange"> <view class="item {{ activeTabs == 'product_intro' ? 'active' : '' }}" data-val="product_intro" bindtap="tabsChange"> <view class="name">产品</view> <view class="border"></view> </view> <view class="item {{ activeTabs == '1' ? 'active' : '' }}" data-val="1" bindtap="tabsChange"> <view class="item {{ activeTabs == 'whole_case' ? 'active' : '' }}" data-val="whole_case" bindtap="tabsChange"> <view class="name">案例</view> <view class="border"></view> </view> <view class="item {{ activeTabs == '2' ? 'active' : '' }}" data-val="2" bindtap="tabsChange"> <view class="item {{ activeTabs == 'real_case' ? 'active' : '' }}" data-val="real_case" bindtap="tabsChange"> <view class="name">实景</view> <view class="border"></view> </view> </view> <view class="list"> <view class="item" bindtap="handleDetail"> <view data-id="{{ item.id }}" wx:for="{{ dataList }}" class="item" bindtap="handleDetail"> <view class="img_wrap"> <image src="../../static/icon/test.png" class="img"></image> <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> <image src="{{ item.thumbnailUrl }}" class="img"></image> <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> </view> <view class="name">钢琴曲</view> <view class="name">{{ item.displayName }}</view> <view class="info"> <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> <text class="num {{true ? 'primary' : ''}}">34</text> <image wx:else class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> <text class="num {{true ? 'primary' : ''}}">{{ item.collectCount }}</text> <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> <text>1000</text> </view> </view> <view class="item" bindtap="handleDetail"> <view class="img_wrap"> <image src="../../static/icon/test.png" class="img"></image> <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> </view> <view class="name">钢琴曲</view> <view class="info"> <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> <text class="num {{true ? 'primary' : ''}}">34</text> <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> <text>1000</text> </view> </view> <view class="item" bindtap="handleDetail"> <view class="img_wrap"> <image src="../../static/icon/test.png" class="img"></image> <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> </view> <view class="name">钢琴曲</view> <view class="info"> <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> <text class="num {{true ? 'primary' : ''}}">34</text> <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> <text>1000</text> <text>{{ item.viewCount }}</text> </view> </view> </view> wechat_staff/project.private.config.json
@@ -38,7 +38,7 @@ }, { "name": "", "pathName": "pages/userinfo/index", "pathName": "pages/promotion/index", "query": "", "launchMode": "default", "scene": null