| | |
| | | App({ |
| | | globalData, |
| | | onLaunch: function (op) { |
| | | console.log('options', op.query.scene) |
| | | console.log('options', op.query) |
| | | let pathMap = [ |
| | | '/pages/detailDis/product', |
| | | '/pages/detailDis/case', |
| | |
| | | }, |
| | | attached() { |
| | | this.getCatelist() |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | getCatelist() { |
| | |
| | | this.setData({ |
| | | cateList: res.data |
| | | }) |
| | | setTimeout(() => { |
| | | this.getList() |
| | | }, 300) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | margin-left: 12rpx; |
| | | .icon{ |
| | | width: 28rpx; |
| | | height: 26rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .num{ |
| | |
| | | <view class="content"> |
| | | <view class="name">{{ item.title }}</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ !item.collection }}" data-code="like" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:if="{{ !item.isCollection }}" data-code="like" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else data-code="like_cancel" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{item.collection ? 'primary' : ''}}">{{ item.collectCount }}</text> |
| | | <text class="num {{item.isCollection ? 'primary' : ''}}">{{ item.collectCount }}</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>{{ item.viewCount }}</text> |
| | | </view> |
| | |
| | | } |
| | | .main_content .goods_list .item .info .icon { |
| | | width: 28rpx; |
| | | height: 26rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .main_content .goods_list .item .info .num { |
| | |
| | | |
| | | .icon { |
| | | width: 28rpx; |
| | | height: 26rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | |
| | |
| | | } |
| | | .main_content .main_right .goods_list .item .info .icon { |
| | | width: 28rpx; |
| | | height: 26rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .main_content .main_right .goods_list .item .info .num { |
| | |
| | | |
| | | .icon { |
| | | width: 24rpx; |
| | | height: 24rpx; |
| | | margin-right: 4rpx; |
| | | } |
| | | } |
| | |
| | | |
| | | .icon { |
| | | width: 28rpx; |
| | | height: 26rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | |
| | |
| | | <view class="name">{{ item.title }}</view> |
| | | </view> |
| | | <view class="info"> |
| | | <image wx:if="{{ !item.collection }}" data-code="like" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else data-code="like_cancel" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{item.collection ? 'primary' : ''}}">{{ item.collectCount }}</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <image wx:if="{{ !item.isCollection }}" data-code="like" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png"></image> |
| | | <image wx:else data-code="like_cancel" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collected.png"></image> |
| | | <text class="num {{item.isCollection ? 'primary' : ''}}">{{ item.collectCount }}</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" ></image> |
| | | <text>{{ item.viewCount }}</text> |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | .main_content .goods_list .item .img_wrap .full .icon { |
| | | width: 24rpx; |
| | | height: 24rpx; |
| | | margin-right: 4rpx; |
| | | } |
| | | .main_content .goods_list .item .img_wrap .img { |
| | |
| | | } |
| | | .main_content .goods_list .item .info .icon { |
| | | width: 28rpx; |
| | | height: 26rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .main_content .goods_list .item .info .num { |
| | |
| | | <view wx:if="{{ isVShow }}" bind:tap="onClose" class="video_content"> |
| | | <view class="video"> |
| | | <video id="myVideo" src="{{videoSrc}}" autoplay show-fullscreen-btn show-play-btn ></video> |
| | | <video id="myVideo" src="{{videoSrc}}" autoplay show-play-btn ></video> |
| | | </view> |
| | | </view > |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | |
| | | this.setData({ |
| | | bottomLift: app.bottomLift |
| | | }) |
| | | |
| | | if(options.origin && options.origin == 'b'){ |
| | | this.setData({ origin: 'b' }) |
| | | } |
| | |
| | | console.log('点击了分享'); |
| | | actionDo({ actionType: 'share', id: 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' |
| | | // } |
| | | // }, |
| | | onShareAppMessage: function () { |
| | | let { info } = this.data |
| | | console.log('点击了分享') |
| | | return { |
| | | path: '/pages/detailDis/case?id=' + info.id + '&userId=' + info.users.id |
| | | } |
| | | }, |
| | | handleAction(e){ |
| | | const actionType = e.currentTarget.dataset.code |
| | | const { info } = this.data |
| | |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
| | |
| | | justify-content: center; |
| | | .icon{ |
| | | width: 24rpx; |
| | | height: 24rpx; |
| | | margin-right: 4rpx; |
| | | } |
| | | } |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | |
| | | margin-right: 48rpx; |
| | | .icon { |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | .container .fullview_wrap .full .icon { |
| | | width: 24rpx; |
| | | height: 24rpx; |
| | | margin-right: 4rpx; |
| | | } |
| | | .container .img { |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | |
| | | } |
| | | .footer .item .icon { |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | } |
| | | .share_btn { |
| | | position: fixed; |
| | |
| | | |
| | | } |
| | | .main_content { |
| | | position: relative; |
| | | bottom: 14rpx; |
| | | padding: 52rpx 40rpx 40rpx; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | background-color: #fff; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | |
| | | border-radius: 8rpx; |
| | | } |
| | | .main_content { |
| | | position: relative; |
| | | bottom: 14rpx; |
| | | padding: 52rpx 40rpx 40rpx; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | background-color: #fff; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | onShareAppMessage: function () { |
| | | let { info } = this.data |
| | | console.log('点击了分享') |
| | | return { |
| | | path: '/pages/detailDis/realpic?id=' + info.id + '&userId=' + info.users.id |
| | | } |
| | | }, |
| | | }) |
| | |
| | | padding: 0 40rpx 220rpx; |
| | | .info_item{ |
| | | width: 100%; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .main_title { |
| | | font-weight: 500; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | |
| | | margin-right: 48rpx; |
| | | .icon { |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | .container .info_item { |
| | | width: 100%; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .container .main_title { |
| | | font-weight: 500; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | |
| | | } |
| | | .footer .item .icon { |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | } |
| | | .share_btn { |
| | | position: fixed; |
| | |
| | | left: 0; |
| | | z-index: -1; |
| | | } |
| | | page{ |
| | | overflow-y: hidden; |
| | | } |
| | | .app{ |
| | | overflow-y: hidden; |
| | | } |
| | |
| | | left: 0; |
| | | z-index: -1; |
| | | } |
| | | page { |
| | | overflow-y: hidden; |
| | | } |
| | | .app { |
| | | overflow-y: hidden; |
| | | } |
| | | .container { |
| | | padding: 26rpx 40rpx; |
| | | } |
| | | .container .avatar { |
| | | margin-top: 260rpx; |
| | | margin-top: 300rpx; |
| | | width: 140rpx; |
| | | height: 140rpx; |
| | | border-radius: 50%; |
| | |
| | | align-items: center; |
| | | } |
| | | .static .card .num .icon { |
| | | padding-bottom: 6rpx; |
| | | font-weight: 400; |
| | | position: relative; |
| | | bottom: 4rpx; |
| | | margin-left: 6rpx; |
| | | } |
| | | .guide .title { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | page{ |
| | | background-color: #F7F7F7; |
| | | } |
| | | .main_content { |
| | | padding: 40rpx; |
| | | min-height: calc(100vh - 100rpx); |
| | | background-color: #F7F7F7; |
| | | |
| | | .app_title { |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | |
| | | width: 28rpx; |
| | | margin-right: 10rpx; |
| | | } |
| | | page { |
| | | background-color: #F7F7F7; |
| | | } |
| | | .main_content { |
| | | padding: 40rpx; |
| | | min-height: calc(100vh - 100rpx); |
| | | background-color: #F7F7F7; |
| | | } |
| | | .main_content .app_title { |
| | | font-weight: 600; |
| | |
| | | } |
| | | .name{ |
| | | margin: 26rpx 0 14rpx; |
| | | overflow:hidden; |
| | | text-overflow:ellipsis; |
| | | white-space:nowrap; |
| | | } |
| | | .info{ |
| | | display: flex; |
| | |
| | | } |
| | | .list .item .name { |
| | | margin: 26rpx 0 14rpx; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | } |
| | | .list .item .info { |
| | | display: flex; |
| | |
| | | } |
| | | .name{ |
| | | margin: 26rpx 0 14rpx; |
| | | overflow:hidden; |
| | | text-overflow:ellipsis; |
| | | white-space:nowrap; |
| | | } |
| | | .info{ |
| | | display: flex; |
| | |
| | | } |
| | | .list .item .name { |
| | | margin: 26rpx 0 14rpx; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | } |
| | | .list .item .info { |
| | | display: flex; |
| | |
| | | color: #111111; |
| | | border-bottom: 1rpx solid #e5e5e5; |
| | | display: flex; |
| | | align-items: center; |
| | | padding-bottom: 10rpx; |
| | | justify-content: space-between; |
| | | .field{ |
| | | flex: 1; |
| | | } |
| | | .btn{ |
| | | width: 120rpx; |
| | | font-size: 30rpx; |
| | | color: #B08771; |
| | | } |
| | |
| | | <view class="line"> |
| | | <view class="label">电话</view> |
| | | <view class="wechat_phone"> |
| | | <van-field type="number" border="{{ false }}" model:value="{{ phone }}" maxlength="{{ 11 }}" clearable /> |
| | | <van-field class="field" type="number" border="{{ false }}" model:value="{{ phone }}" maxlength="{{ 11 }}" clearable /> |
| | | <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="btn">微信授权</button> |
| | | </view> |
| | | </view> |
| | |
| | | color: #111111; |
| | | border-bottom: 1rpx solid #e5e5e5; |
| | | display: flex; |
| | | align-items: center; |
| | | padding-bottom: 10rpx; |
| | | justify-content: space-between; |
| | | } |
| | | .list .line .wechat_phone .field { |
| | | flex: 1; |
| | | } |
| | | .list .line .wechat_phone .btn { |
| | | width: 120rpx; |
| | | font-size: 30rpx; |
| | | color: #B08771; |
| | | } |
| | |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | margin-right: 18rpx; |
| | | overflow:hidden; |
| | | text-overflow:ellipsis; |
| | | white-space:nowrap; |
| | | } |
| | | } |
| | | .line{ |
| | |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | margin-right: 18rpx; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | } |
| | | .list .item .line { |
| | | display: flex; |
| | |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/productVideo/index", |
| | | "pathName": "pages/auth/auth", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | |
| | | }, |
| | | attached() { |
| | | this.getCatelist() |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | getCatelist(){ |
| | |
| | | this.setData({ |
| | | cateList: res.data |
| | | }) |
| | | setTimeout(() => { |
| | | this.getList() |
| | | }, 300) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | if(this.data.isLoading){ |
| | | return |
| | | } |
| | | |
| | | this.setData({isLoading:true}) |
| | | const { sortType, query, tagCodes, pageNum, pageSize,catalogCode } = this.data |
| | | getZhongTaiWholecasePage({ |
| | |
| | | <view wx:if="{{ isVShow }}" bind:tap="onClose" class="video_content"> |
| | | <view class="video"> |
| | | <video id="myVideo" src="{{videoSrc}}" autoplay show-fullscreen-btn show-play-btn ></video> |
| | | <video id="myVideo" src="{{videoSrc}}" autoplay show-play-btn ></video> |
| | | </view> |
| | | </view > |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | |
| | | } |
| | | |
| | | .main_content { |
| | | position: relative; |
| | | bottom: 14rpx; |
| | | padding: 52rpx 40rpx 40rpx; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | background-color: #fff; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | |
| | | width: 100%; |
| | | } |
| | | .main_content { |
| | | position: relative; |
| | | bottom: 14rpx; |
| | | padding: 52rpx 40rpx 40rpx; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | background-color: #fff; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | |
| | | padding: 0 40rpx 220rpx; |
| | | .info_item{ |
| | | width: 100%; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .main_title { |
| | | font-weight: 500; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | |
| | | } |
| | | .container .info_item { |
| | | width: 100%; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .container .main_title { |
| | | font-weight: 500; |
| | |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | |
| | | success(res) { |
| | | if (res.confirm) { |
| | | logout({}).then(res => { |
| | | wx.setStorageSync('member', null) |
| | | wx.setStorageSync('token', '') |
| | | wx.navigateTo({ |
| | | url: '/pages/login/index', |
| | | }) |
| | | const sessionKey = wx.getStorageSync('sessionKey') |
| | | wx.clearStorageSync() |
| | | setTimeout(() => { |
| | | wx.setStorageSync('sessionKey', sessionKey) |
| | | wx.navigateTo({ |
| | | url: '/pages/login/index', |
| | | }) |
| | | }, 300) |
| | | }) |
| | | } |
| | | } |
| | |
| | | left: 0; |
| | | z-index: -1; |
| | | } |
| | | .app{ |
| | | page{ |
| | | overflow-y: hidden; |
| | | } |
| | | |
| | | .container { |
| | | padding: 26rpx 40rpx; |
| | | overflow-y: hidden; |
| | | .avatar { |
| | | margin-top: 300rpx; |
| | | width: 140rpx; |
| | |
| | | left: 0; |
| | | z-index: -1; |
| | | } |
| | | .app { |
| | | page { |
| | | overflow-y: hidden; |
| | | } |
| | | .container { |
| | | padding: 26rpx 40rpx; |
| | | overflow-y: hidden; |
| | | } |
| | | .container .avatar { |
| | | margin-top: 300rpx; |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | onLoad(options) { |
| | | }, |
| | | onLoad(options) {}, |
| | | onPullDownRefresh: function () { |
| | | console.log('下拉刷新'); |
| | | this.setData({ dataList: [], pageNum: 1, total: 0 }) |
| | | this.setData({ |
| | | dataList: [], |
| | | pageNum: 1, |
| | | total: 0 |
| | | }) |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | console.log('触底事件'); |
| | | const { total, dataList, pageNum } = this.data |
| | | if(total > dataList.length){ |
| | | this.setData({ pageNum: pageNum + 1 }) |
| | | const { |
| | | total, |
| | | dataList, |
| | | pageNum |
| | | } = this.data |
| | | if (total > dataList.length) { |
| | | this.setData({ |
| | | pageNum: pageNum + 1 |
| | | }) |
| | | this.getList() |
| | | }else{ |
| | | } else { |
| | | wx.showToast({ |
| | | title: '暂无更多数据', |
| | | icon: 'none' |
| | |
| | | const activeTabs = e.currentTarget.dataset.val |
| | | this.setData({ |
| | | activeTabs, |
| | | dataList: [],total: 0,pageNum: 1 |
| | | dataList: [], |
| | | total: 0, |
| | | pageNum: 1 |
| | | }) |
| | | this.getList() |
| | | }, |
| | | handleDetail(e) { |
| | | const id = e.currentTarget.dataset.id |
| | | const { activeTabs } = this.data |
| | | 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' |
| | | 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}`, |
| | |
| | | pageNum |
| | | }).then(res => { |
| | | if (res.data) { |
| | | res.data.pageNum = res.data.pageNum <=0?1: res.data.pageNum |
| | | if(pageNum == res.data.pageNum){ |
| | | if(pageNum == 1){ |
| | | this.setData({dataList:[],total:0}) |
| | | } |
| | | this.setData({ |
| | | dataList: [...this.data.dataList, ...res.data.records || []], |
| | | total: res.data.total |
| | | }) |
| | | } |
| | | // res.data.pageNum = res.data.pageNum <=0?1: res.data.pageNum |
| | | // if(pageNum == res.data.pageNum){ |
| | | // if(pageNum == 1){ |
| | | // this.setData({dataList:[],total:0}) |
| | | // } |
| | | this.setData({ |
| | | dataList: [...this.data.dataList, ...res.data.records || []], |
| | | total: res.data.total |
| | | }) |
| | | // } |
| | | } |
| | | }) |
| | | }, |
| | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | this.setData({pageNum:1}) |
| | | onShow() { |
| | | this.setData({ |
| | | pageNum: 1 |
| | | }) |
| | | this.getList() |
| | | }, |
| | | |
| | |
| | | } |
| | | .name{ |
| | | margin: 26rpx 0 14rpx; |
| | | overflow:hidden; |
| | | text-overflow:ellipsis; |
| | | white-space:nowrap; |
| | | } |
| | | .info{ |
| | | display: flex; |
| | |
| | | } |
| | | .list .item .name { |
| | | margin: 26rpx 0 14rpx; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | } |
| | | .list .item .info { |
| | | display: flex; |
| | |
| | | <view class="container"> |
| | | <image class="avatar" src="{{ userInfo.imgurlFull ? userInfo.imgurlFull : '../../static/images/default_avatar.png' }}" mode="widthFix"></image> |
| | | <image class="avatar" src="{{ userInfo.imgurlFull ? userInfo.imgurlFull : '../../static/images/default_avatar.png' }}"></image> |
| | | <!-- <button open-type="chooseAvatar" bindchooseavatar="getBindchooseavatar" class="avatar_btn">更换头像</button> --> |
| | | <button bind:tap="selMedia3" class="avatar_btn">更换头像</button> |
| | | <view class="list"> |