| | |
| | | "window": { |
| | | "navigationBarTitleText": "志邦家选", |
| | | "navigationBarTextStyle": "black", |
| | | "backgroundTextStyle": "dark", |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationStyle": "default" |
| | | }, |
| | |
| | | } |
| | | }) |
| | | }, |
| | | scrolltoupper() { |
| | | this.setData({ pageNum: 1,datalist: [],total: 0}) |
| | | this.getList() |
| | | }, |
| | | scrolltolower() { |
| | | console.log('触底事件'); |
| | | const { total, dataList, pageNum } = this.data |
| | |
| | | <view class="item {{ sortType == 'time' ? 'active' : '' }}" data-status="time" bindtap="statusChange">最新</view> |
| | | </view> |
| | | <!-- goods_list --> |
| | | <scroll-view bindscrolltolower="scrolltolower" scroll-y enable-passive enable-flex class="goods_list"> |
| | | <scroll-view bindscrolltoupper="scrolltoupper" bindscrolltolower="scrolltolower" scroll-y enable-passive enable-flex class="goods_list"> |
| | | <view wx:for="{{ dataList }}" data-id="{{ item.id }}" class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="{{ item.coverImage }}" class="img"></image> |
| | |
| | | }) |
| | | } |
| | | }, |
| | | scrolltoupper() { |
| | | this.setData({ pageNum: 1,datalist: [],total: 0}) |
| | | this.getList() |
| | | }, |
| | | cateClick(e) { |
| | | const catalogCode = e.currentTarget.dataset.code |
| | | this.setData({ catalogCode, tagCodes: [] }) |
| | |
| | | <view class="separate"></view> |
| | | <view class="item {{ sortType == 'time' ? 'active' : '' }}" data-status="time" bindtap="statusChange">最新</view> |
| | | </view> |
| | | <scroll-view bindscrolltolower="scrolltolower" scroll-y enable-passive enable-flex class="goods_list"> |
| | | <scroll-view bindscrolltoupper="scrolltoupper" bindscrolltolower="scrolltolower" scroll-y enable-passive enable-flex class="goods_list"> |
| | | <view wx:for="{{ datalist }}" data-id="{{item.id}}" class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="{{ item.coverImage }}" class="img" mode="aspectFit"></image> |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | scrolltoupper() { |
| | | this.setData({ pageNum: 1,datalist: [],total: 0}) |
| | | this.getList() |
| | | }, |
| | | scrolltolower() { |
| | | console.log('触底事件'); |
| | | const { total, dataList, pageNum } = this.data |
| | |
| | | <view class="item {{ sortType == 'time' ? 'active' : '' }}" data-status="time" bindtap="statusChange">最新</view> |
| | | </view> |
| | | <!-- goods_list --> |
| | | <scroll-view bindscrolltolower="scrolltolower" scroll-y enable-passive enable-flex class="goods_list"> |
| | | <scroll-view bindscrolltoupper="scrolltoupper" bindscrolltolower="scrolltolower" scroll-y enable-passive enable-flex class="goods_list"> |
| | | <view wx:for="{{ dataList }}" data-item="{{item}}" class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="{{ item.coverImage }}" class="img"></image> |
| | |
| | | }).then((res) => { |
| | | if(res.code == 200){ |
| | | wx.setStorageSync('member', res.data) |
| | | wx.switchTab({ |
| | | url: '/pages/index/index', |
| | | }) |
| | | wx.navigateBack() |
| | | } |
| | | }) |
| | | }) |
| | |
| | | binDingPhone({ |
| | | phone: res.data |
| | | }).then((res) => { |
| | | this.setData({ userPhone: res.data }) |
| | | if(res.code == 200){ |
| | | this.setData() |
| | | wx.setStorageSync('member', res.data) |
| | | this.submit() |
| | | } |
| | |
| | | }) |
| | | } |
| | | }, |
| | | onPullDownRefresh: function () { |
| | | console.log('下拉刷新'); |
| | | this.setData({ dataList: [], pageNum: 1, total: 0 }) |
| | | this.getList() |
| | | }, |
| | | getCate() { |
| | | getCatalogList({catalogCode: 'product_info'}).then(res => { |
| | | this.setData({ category: res.data }) |
| | |
| | | actionDo({actionType: 'view',id: item.id}) |
| | | if(item.contentType == 'link'){ |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index?link=' + item.content, |
| | | url: '/pages/webView/index', |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.openContent, title: item.title }) |
| | |
| | | "usingComponents": { |
| | | "idCard": "../../components/idCard/index" |
| | | }, |
| | | "navigationBarTitleText": "资讯" |
| | | "navigationBarTitleText": "资讯", |
| | | "enablePullDownRefresh": true |
| | | } |
| | |
| | | width: 100%; |
| | | z-index: 99; |
| | | top: 0; |
| | | height: 96rpx; |
| | | padding-bottom: 24rpx; |
| | | 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: 0rpx auto 24rpx; |
| | | margin: 0rpx auto; |
| | | border-radius: 8rpx; |
| | | padding: 0 40rpx; |
| | | padding: 0 40rpx 0rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #F7F7F7; |
| | |
| | | margin-right: 16rpx; |
| | | } |
| | | } |
| | | } |
| | | .cate_wrap{ |
| | | background-color: #fff; |
| | | .cate_one{ |
| | | position: fixed; |
| | | top: 94rpx; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | } |
| | | .cate_two{ |
| | | position: fixed; |
| | | top: 154rpx; |
| | | background-color: #fff; |
| | | padding-top: 30rpx; |
| | | width: 100%; |
| | | } |
| | | } |
| | | .scroll_cate { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | </view> |
| | | </view> |
| | | <!-- content --> |
| | | <view class="content" style="padding-top: {{ secondCategory.length > 0 ? 276 : 186 }}rpx;"> |
| | | <view class="content" style="padding-top: {{ secondCategory.length > 0 ? 274 : 184 }}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> |
| | |
| | | width: 100%; |
| | | z-index: 99; |
| | | top: 0; |
| | | height: 96rpx; |
| | | padding-bottom: 24rpx; |
| | | background-color: #fff; |
| | | } |
| | | .home_top .search_wrap { |
| | | width: 670rpx; |
| | | height: 72rpx; |
| | | margin: 0rpx auto; |
| | | border-radius: 8rpx; |
| | | padding: 0 40rpx 0rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #F7F7F7; |
| | | } |
| | | .home_top .search_wrap image { |
| | | width: 28rpx; |
| | | margin-right: 16rpx; |
| | | } |
| | | .cate_wrap { |
| | | background-color: #fff; |
| | | } |
| | | .cate_wrap .cate_one { |
| | | position: fixed; |
| | | top: 96rpx; |
| | | top: 94rpx; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | } |
| | | .cate_wrap .cate_two { |
| | | position: fixed; |
| | | top: 156rpx; |
| | | top: 154rpx; |
| | | background-color: #fff; |
| | | padding-top: 30rpx; |
| | | width: 100%; |
| | | } |
| | | .search_wrap { |
| | | width: 670rpx; |
| | | height: 72rpx; |
| | | margin: 0rpx auto 24rpx; |
| | | border-radius: 8rpx; |
| | | padding: 0 40rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #F7F7F7; |
| | | } |
| | | .search_wrap image { |
| | | width: 28rpx; |
| | | margin-right: 16rpx; |
| | | } |
| | | .scroll_cate { |
| | | display: flex; |
| | |
| | | handleAction(e){ |
| | | const actionType = e.currentTarget.dataset.code |
| | | const { info } = this.data |
| | | const member = wx.getStorageSync('member') |
| | | if (member.authStatus == '0') { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | actionDo({ |
| | | actionType, |
| | | id: this.data.info.id |
| | | }).then(res => { |
| | | info.collection = !info.collection |
| | | info.isCollection = !info.isCollection |
| | | this.setData({info}) |
| | | wx.showToast({ |
| | | title: actionType == 'collect' ? '收藏成功' : '取消收藏', |
| | | }) |
| | | }) |
| | | }, |
| | | priviewLayout() { |
| | | wx.previewImage({ |
| | | urls: [this.data.info.layoutUlr] |
| | | }) |
| | | }, |
| | | priviewSpace(e) { |
| | | const url = e.currentTarget.dataset.url |
| | | const index = e.currentTarget.dataset.index |
| | | const { info } = this.data |
| | | wx.previewImage({ |
| | | urls: info.apiSpaceCaseVos[index].imgList, |
| | | current: url |
| | | }) |
| | | }, |
| | | getDetail(id, userId) { |
| | | getWholecaseInfo({id, salesId: userId || null}).then(res => { |
| | | this.setData({ info: res.data }) |
| | |
| | | <image class="banner" src="{{ info.coverImage }}" mode="widthFix"></image> |
| | | </view> |
| | | <view class="h1">布置图</view> |
| | | <image class="img" src="{{ info.layoutUlr }}" mode="widthFix"></image> |
| | | <image bindtap="priviewLayout" class="img" src="{{ info.layoutUlr }}" mode="widthFix"></image> |
| | | <view class="analysis"> |
| | | <view class="h2">案例解析</view> |
| | | <view class="text">{{ info.caseInfo }}</view> |
| | |
| | | <view class="list"> |
| | | <view wx:for="{{ info.apiSpaceCaseVos }}" class="item"> |
| | | <view class="h1">{{ item.spaceName }}</view> |
| | | <image class="img" wx:for="{{ item.imgList }}" wx:for-item="img" src="{{ img }}" mode="widthFix" /> |
| | | <image data-index="{{index}}" data-url="{{ img }}" bindtap="priviewSpace" class="img" wx:for="{{ item.imgList }}" wx:for-item="img" src="{{ img }}" mode="widthFix" /> |
| | | <view class="content">{{ item.spaceDesc }}</view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="footer" style="padding-bottom: {{bottomLift}}px;"> |
| | | <view class="btns"> |
| | | <button class="item btn"> |
| | | <image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.collection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <image wx:else data-code="collect" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <view class="name">收藏</view> |
| | | </button> |
| | |
| | | member |
| | | }) |
| | | }, |
| | | priviewBanner(e) { |
| | | const url = e.currentTarget.dataset.url |
| | | const { |
| | | info |
| | | } = this.data |
| | | wx.previewImage({ |
| | | urls: info.bannerImgList, |
| | | current: url |
| | | }) |
| | | }, |
| | | priviewSpace(e) { |
| | | const url = e.currentTarget.dataset.url |
| | | const { |
| | | info |
| | | } = this.data |
| | | wx.previewImage({ |
| | | urls: info.spaceList, |
| | | current: url |
| | | }) |
| | | }, |
| | | handleAction(e) { |
| | | const actionType = e.currentTarget.dataset.code |
| | | const { |
| | | info |
| | | } = this.data |
| | | const member = wx.getStorageSync('member') |
| | | if (member.authStatus == '0') { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | actionDo({ |
| | | actionType, |
| | | id: this.data.info.id |
| | | }).then(res => { |
| | | info.collection = !info.collection |
| | | info.isCollection = !info.isCollection |
| | | this.setData({ |
| | | info |
| | | }) |
| | |
| | | }, |
| | | getDetail(id, userId) { |
| | | getProductInfo({ |
| | | id, salesId: userId || null |
| | | id, |
| | | salesId: userId || null |
| | | }).then(res => { |
| | | this.setData({ |
| | | info: res.data |
| | |
| | | <swiper class="banner_swiper" circular indicator-dots autoplay style="height:{{bannerHeight}}rpx" duration> |
| | | <block wx:for="{{ info.bannerImgList }}"> |
| | | <swiper-item> |
| | | <image bindload="bannerbindload" mode="widthFix" src="{{ item }}"></image> |
| | | <image data-url="{{ item }}" bindtap="priviewBanner" bindload="bannerbindload" mode="widthFix" src="{{ item }}"></image> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | |
| | | <view class="spaceList"> |
| | | <view class="item" wx:for="{{ info.spaceList }}"> |
| | | <!-- <view class="name">{{ item.spaceName }}</view> --> |
| | | <image src="{{ item.spaceImg }}" mode="widthFix" class="img"></image> |
| | | <image data-url="{{ item.spaceImg }}" bindtap="priviewSpace" src="{{ item.spaceImg }}" mode="widthFix" class="img"></image> |
| | | <!-- <mp-html content="{{item.spaceContent}}"></mp-html> --> |
| | | </view> |
| | | </view> |
| | |
| | | handleAction(e){ |
| | | const actionType = e.currentTarget.dataset.code |
| | | const { info } = this.data |
| | | const member = wx.getStorageSync('member') |
| | | if (member.authStatus == '0') { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | actionDo({ |
| | | actionType, |
| | | id: this.data.info.id |
| | | }).then(res => { |
| | | info.collection = !info.collection |
| | | info.isCollection = !info.isCollection |
| | | wx.showToast({ |
| | | title: actionType == 'collect' ? '收藏成功' : '取消收藏', |
| | | }) |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | priviewSpace(e) { |
| | | const url = e.currentTarget.dataset.url |
| | | const { info } = this.data |
| | | wx.previewImage({ |
| | | urls: info.contentImgList, |
| | | current: url |
| | | }) |
| | | }, |
| | | playVideo() { |
| | | wx.previewMedia({ |
| | | sources: [{ url: this.data.info.video, type: 'video' }] |
| | |
| | | <idCard users="{{ info.users }}" wx:if="{{ info.users && info.users.id }}" /> |
| | | <view class="main_title">{{ info.title }}</view> |
| | | <view class="time">发布时间:{{ info.publishDt }}</view> |
| | | <image class="info_item" wx:for="{{ info.contentImgList }}" src="{{ item }}" mode="widthFix"></image> |
| | | <image data-url="{{ item }}" bindtap="priviewSpace" class="info_item" wx:for="{{ info.contentImgList }}" src="{{ item }}" mode="widthFix"></image> |
| | | <view class="desc">{{ info.contentText || '' }}</view> |
| | | <!-- <view class="list"> |
| | | <view class="item"> |
| | |
| | | <view class="footer" style="padding-bottom: {{bottomLift}}px;"> |
| | | <view class="btns"> |
| | | <button class="item btn"> |
| | | <image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.collection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <image wx:else data-code="collect" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <view class="name">收藏</view> |
| | | </button> |
| | |
| | | }) |
| | | } |
| | | }, |
| | | onPullDownRefresh: function () { |
| | | console.log('下拉刷新'); |
| | | this.setData({ dataList: [], pageNum: 1, total: 0 }) |
| | | this.getList() |
| | | }, |
| | | getList(){ |
| | | const { code, tagCodes, pageSize, pageNum } = this.data |
| | | pageZSZXContentList({ |
| | |
| | | } |
| | | if(item.contentType == 'link'){ |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index?link=' + item.content, |
| | | url: '/pages/webView/index', |
| | | success: function(res) { |
| | | console.log('发出事件'); |
| | | res.eventChannel.emit('data',{link:item.content} ); |
| | | } |
| | | }) |
| | | } |
| | | if(item.contentType == 'page'){ |
| | |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | |
| | | { |
| | | "navigationBarTitleText": "" |
| | | "navigationBarTitleText": "", |
| | | "enablePullDownRefresh": true |
| | | } |
| | |
| | | getZhongTaiVideoPage, |
| | | getZhongTaiProductNewsPage |
| | | } from '../../api/index' |
| | | const { HYEventBus } = require('hy-event-store') |
| | | const { |
| | | HYEventBus |
| | | } = require('hy-event-store') |
| | | const eventBus = new HYEventBus() |
| | | Page({ |
| | | |
| | |
| | | url: '/pages/calculator/index' |
| | | }) |
| | | break; |
| | | |
| | | case '2': |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design' |
| | |
| | | } |
| | | if (item.openType == 'link') { |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index?link=' + item.openContent, |
| | | url: '/pages/webView/index', |
| | | success: function (res) { |
| | | res.eventChannel.emit('data', { |
| | | link: item.content |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | | if (item.openType == 'page') { |
| | |
| | | */ |
| | | data: { |
| | | category: [], |
| | | activeCate: '', |
| | | seActiveCate: '', |
| | | tagCodes: '', |
| | | videoUrl: '', |
| | | showVideo: false, |
| | | |
| | | dataList: [], |
| | | total: 0, |
| | |
| | | pageNum: 1, |
| | | |
| | | }, |
| | | 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' |
| | | }) |
| | | } |
| | | }, |
| | | getList() { |
| | | const { pageSize, pageNum } = this.data |
| | | const { pageSize, pageNum, tagCodes } = this.data |
| | | getZhongTaiVideoPage({ |
| | | pageSize,pageNum |
| | | pageSize,pageNum, tagCodes: tagCodes ? [tagCodes] : null |
| | | }).then(res => { |
| | | this.setData({ dataList: 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.valueVos }) |
| | | this.setData({ category: res.data }) |
| | | }) |
| | | }, |
| | | itemClick(e) { |
| | |
| | | }) |
| | | }, |
| | | cateClick(e) { |
| | | const { index } = e.target.dataset |
| | | console.log(index); |
| | | const { code } = e.target.dataset |
| | | this.setData({ tagCodes: code }) |
| | | this.setData({ total: 0, dataList: [], pageNum: 1 }) |
| | | this.getList() |
| | | }, |
| | | seCateClick(e) { |
| | | const { index } = e.target.dataset |
| | |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | |
| | | { |
| | | "usingComponents": { |
| | | "van-overlay": "@vant/weapp/overlay/index" |
| | | }, |
| | | "navigationBarTitleText": "产品视频" |
| | | } |
| | |
| | | } |
| | | .img_wrap{ |
| | | width: 100%; |
| | | height: 376rpx; |
| | | position: relative; |
| | | .img{ |
| | | width: 100%; |
| | | height: 376rpx; |
| | | } |
| | | } |
| | | .title{ |
| | |
| | | } |
| | | } |
| | | } |
| | | .video_wrap{ |
| | | position: fixed; |
| | | width: 100%; |
| | | height: 100vh; |
| | | z-index: 999; |
| | | video{ |
| | | width: 100%; |
| | | position: fixed; |
| | | z-index: 9999; |
| | | top: 50%; |
| | | transform: translate(0, -50%); |
| | | } |
| | | } |
| | |
| | | <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 bindtap="cateClick" data-code="{{item.labelCode}}" wx:for="{{ category }}" class="item {{ tagCodes == item.labelCode ? 'active': '' }}">{{ item.labelName }}</view> |
| | | </view> |
| | | </scroll-view> |
| | | <!-- <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 28rpx;"> |
| | |
| | | <view class="content"> |
| | | <view wx:for="{{ dataList }}" class="item"> |
| | | <view class="img_wrap"> |
| | | <image class="img" src="{{ item.coverImage }}" mode="widthFix"></image> |
| | | <image class="img" src="{{ item.coverImage }}" mode="aspectFill"></image> |
| | | <image bindtap="itemClick" data-videourl="{{ item.videoUrl }}" class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image> |
| | | </view> |
| | | |
| | |
| | | } |
| | | .content .item .img_wrap { |
| | | width: 100%; |
| | | height: 376rpx; |
| | | position: relative; |
| | | } |
| | | .content .item .img_wrap .img { |
| | | width: 100%; |
| | | height: 376rpx; |
| | | } |
| | | .content .item .title { |
| | | font-size: 30rpx; |
| | |
| | | width: 26rpx; |
| | | margin-right: 10rpx; |
| | | } |
| | | .video_wrap { |
| | | position: fixed; |
| | | width: 100%; |
| | | height: 100vh; |
| | | z-index: 999; |
| | | } |
| | | .video_wrap video { |
| | | width: 100%; |
| | | position: fixed; |
| | | z-index: 9999; |
| | | top: 50%; |
| | | transform: translate(0, -50%); |
| | | } |
| | |
| | | */ |
| | | data: { |
| | | bottomLift: 0, |
| | | isShow: true, |
| | | isShow: false, |
| | | |
| | | info: {} |
| | | }, |
| | |
| | | getDetail(id) { |
| | | usersDetailByIamId({iamId: id}).then(res => { |
| | | this.setData({ info: res.data }) |
| | | if(res.data && res.data.qrcodeImgFull){ |
| | | this.setData({ isShow: true }) |
| | | } |
| | | }) |
| | | }, |
| | | openModal() { |
| | | if(this.data.info.qrcodeImgFull){ |
| | | this.setData({isShow: true}) |
| | | } |
| | | }, |
| | | onClose() { |
| | | this.setData({isShow: false}) |
| | |
| | | margin-bottom: 40rpx; |
| | | color: #333333; |
| | | position: relative; |
| | | .text{ |
| | | width: 100%; |
| | | overflow : hidden; |
| | | text-overflow: ellipsis; |
| | | display: -webkit-box; |
| | | -webkit-line-clamp: 2; |
| | | -webkit-box-orient: vertical; |
| | | } |
| | | .icon{ |
| | | position: absolute; |
| | | background: #F7F7F7; |
| | |
| | | |
| | | .line { |
| | | display: flex; |
| | | align-items: flex-start; |
| | | font-size: 30rpx; |
| | | margin-bottom: 42rpx; |
| | | .icon { |
| | | width: 30rpx; |
| | | margin-top: 6rpx; |
| | | } |
| | | .label { |
| | | color: #777777; |
| | |
| | | <view class="tag">导购</view> |
| | | <!-- <view class="tag">{{ info.jobDate || '-' }}年经验</view> --> |
| | | </view> |
| | | <image bindtap="openModal" class="qrcode" src="../../static/icon/mingpian_erweima@2x.png" mode="widthFix"></image> |
| | | <image wx:if="{{ info.qrcodeImgFull }}" bindtap="openModal" class="qrcode" src="../../static/icon/mingpian_erweima@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="desc"> |
| | | <image src="../../static/icon/mingpian_ic_edit@2x.png" mode="widthFix"></image> |
| | | <view>{{ info.slogans }}</view> |
| | | <view class="text">{{ info.slogans }}</view> |
| | | <view class="icon"></view> |
| | | </view> |
| | | <view class="static"> |
| | |
| | | <view class="line"> |
| | | <image class="icon" src="../../static/icon/mingpian_ic_phone@2x.png" mode="widthFix"></image> |
| | | <text class="label">联系电话</text> |
| | | <text class="val">{{ info.phone }}</text> |
| | | <text class="val">{{ info.phone || '--' }}</text> |
| | | </view> |
| | | <view class="line"> |
| | | <image class="icon" src="../../static/icon/mingpian_ic_mendian@2x.png" mode="widthFix"></image> |
| | | <text class="label">门店名称</text> |
| | | <text class="val">{{ info.shopName }}</text> |
| | | <text class="val">{{ info.shopName || '--' }}</text> |
| | | </view> |
| | | <view class="line"> |
| | | <image class="icon" src="../../static/icon/mingpian_ic_dizhi@2x.png" mode="widthFix"></image> |
| | | <text class="label">门店地址</text> |
| | | <text class="val">{{ info.shopAddress }}</text> |
| | | <text class="val">{{ info.shopAddress || '--' }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | color: #333333; |
| | | position: relative; |
| | | } |
| | | .container .desc .text { |
| | | width: 100%; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | display: -webkit-box; |
| | | -webkit-line-clamp: 2; |
| | | -webkit-box-orient: vertical; |
| | | } |
| | | .container .desc .icon { |
| | | position: absolute; |
| | | background: #F7F7F7; |
| | |
| | | } |
| | | .guide .line { |
| | | display: flex; |
| | | align-items: flex-start; |
| | | font-size: 30rpx; |
| | | margin-bottom: 42rpx; |
| | | } |
| | | .guide .line .icon { |
| | | width: 30rpx; |
| | | margin-top: 6rpx; |
| | | } |
| | | .guide .line .label { |
| | | color: #777777; |
| | |
| | | }, |
| | | userDetail(e) { |
| | | const iamId = e.currentTarget.dataset.id |
| | | console.log('e', e); |
| | | console.log('iamId', iamId); |
| | | wx.navigateTo({ |
| | | url: `/pages/store/staff?id=${iamId}`, |
| | | }) |
| | |
| | | </view> |
| | | <scroll-view scroll-x style="width: 640rpx"> |
| | | <view class="user_list"> |
| | | <view bindtap="userDetail" data-id="{{ item.iamId }}" class="item" wx:for="{{ item.usersList }}" wx:for-item="user"> |
| | | <view bindtap="userDetail" data-id="{{ user.iamId }}" class="item" wx:for="{{ item.usersList }}" wx:for-item="user"> |
| | | <view class="info"> |
| | | <image class="avatar" src="{{ user.imgurlFull ? user.imgurlFull : '../../static/images/default_avatar.png' }}" mode="widthFix"></image> |
| | | <image class="avatar" src="{{ user.imgurlFull ? user.imgurlFull : '../../static/images/default_avatar.png' }}" ></image> |
| | | <view class="text"> |
| | | <view class="name">{{ user.name }}</view> |
| | | <view class="ex" wx:if="{{user.jobDate}}">{{ user.jobDate || 5 }}年经验</view> |
| | |
| | | onLoad(options) { |
| | | this.getList() |
| | | }, |
| | | onPullDownRefresh: function () { |
| | | console.log('下拉刷新'); |
| | | this.setData({ dataList: [], pageNum: 1, total: 0 }) |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | console.log('触底事件'); |
| | | const { total, dataList, pageNum } = this.data |
| | |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText": "我收藏的" |
| | | "navigationBarTitleText": "我收藏的", |
| | | "enablePullDownRefresh": true |
| | | } |
| | |
| | | onLoad(options) { |
| | | this.getList() |
| | | }, |
| | | onPullDownRefresh: function () { |
| | | console.log('下拉刷新'); |
| | | this.setData({ dataList: [], pageNum: 1, total: 0 }) |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | console.log('触底事件'); |
| | | const { total, dataList, pageNum } = this.data |
| | |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText": "我喜欢的" |
| | | "navigationBarTitleText": "我喜欢的", |
| | | "enablePullDownRefresh": true |
| | | } |
| | |
| | | onLoad(options) { |
| | | this.getList() |
| | | }, |
| | | onPullDownRefresh: function () { |
| | | console.log('下拉刷新'); |
| | | this.setData({ dataList: [], page: 1, total: 0 }) |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | console.log('触底事件'); |
| | | const { total, dataList, page } = this.data |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText": "我的预约" |
| | | "navigationBarTitleText": "我的预约", |
| | | "enablePullDownRefresh": true |
| | | } |
| | |
| | | let that = this |
| | | const eventChannel = this.getOpenerEventChannel() |
| | | |
| | | if (options.link) { |
| | | that.setData({ link: options.link, id: options.id }) |
| | | } else { |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('acceptDataFromOpenerPage', function(data) { |
| | | console.log('参数', data) |
| | | if (data.title) wx.setNavigationBarTitle({ title: data.title }) |
| | | that.setData({ link: data.link, id: data.id }) |
| | | // saveBannerLookNum({ id: data.id }) |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/store/info", |
| | | "pathName": "pages/productVideo/index", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |