| | |
| | | "navigationBarTextStyle": "black", |
| | | "backgroundTextStyle": "dark", |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationStyle": "default" |
| | | "navigationStyle": "default", |
| | | "backgroundColor": "#fff" |
| | | }, |
| | | "tabBar": { |
| | | "color": "#999", |
| | |
| | | /* æç¤ºç¹çæ ·å¼ */ |
| | | .wx-swiper-dots .wx-swiper-dot { |
| | | width: 40rpx; |
| | | height: 4rpx; |
| | | height: 6rpx; |
| | | background: rgba(255,255,255,0.5); |
| | | border-radius: 5rpx; |
| | | margin-left: -10rpx; |
| | | } |
| | | |
| | | .wx-swiper-dot.wx-swiper-dot-active { |
| | |
| | | width: 670rpx; |
| | | margin: 0 auto; |
| | | background-color: #fff; |
| | | padding: 10rpx 10rpx; |
| | | padding-bottom: 10rpx; |
| | | } |
| | | .wrap1{ |
| | | display: flex; |
| | |
| | | .item{ |
| | | flex-shrink: 0; |
| | | width: 305rpx; |
| | | height: 184rpx; |
| | | background: rgba(176,135,113,0.05) #FFFFFF; |
| | | box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0,0,0,0.12); |
| | | border-radius: 8rpx; |
| | | padding: 20rpx; |
| | | padding: 24rpx 20rpx; |
| | | margin-right: 20rpx; |
| | | .name{ |
| | | display: flex; |
| | |
| | | <view class="container"> |
| | | <!-- æªææ --> |
| | | <view wx:if="{{ type == '0' }}" class="wrap1"> |
| | | <view class="ai df_ct"> |
| | | <image src="../../static/icon/ai_auth.png"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">AIæ¾è®¾è®¡</view> |
| | | <view class="desc">ä½ èº«è¾¹çå
¨å±è®¾è®¡ä¸å®¶</view> |
| | | </view> |
| | | <view class="btn" bindtap="jumpAuth"> |
| | | <view>å»</view> |
| | | <view>ç</view> |
| | | <view>ç</view> |
| | | </view> |
| | | </view> |
| | | <!-- å·²ææ --> |
| | | <view wx:if="{{ type == '1' }}" class="wrap2"> |
| | | <view class="header" bindtap="jumpStore"> |
| | |
| | | </view> |
| | | </view> |
| | | <!-- å·²ææ å·²ç»å® --> |
| | | <view bindtap="jumpStaff" wx:if="{{ type == '2' }}" class="wrap1 wrap3"> |
| | | <view bindtap="jumpStaff" wx:elif="{{ type == '2' }}" class="wrap1 wrap3"> |
| | | <view class="ai df_ct"> |
| | | <image src="../../static/icon/home_ic_guwen@2x.png" mode="widthFix"></image> |
| | | </view> |
| | |
| | | <view>ç</view> |
| | | </view> |
| | | </view> |
| | | <!-- æªææ --> |
| | | <view wx:else class="wrap1"> |
| | | <view class="ai df_ct"> |
| | | <image src="../../static/icon/ai_auth.png"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">AIæ¾è®¾è®¡</view> |
| | | <view class="desc">ä½ èº«è¾¹çå
¨å±è®¾è®¡ä¸å®¶</view> |
| | | </view> |
| | | <view class="btn" bindtap="jumpAuth"> |
| | | <view>å»</view> |
| | | <view>ç</view> |
| | | <view>ç</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | width: 670rpx; |
| | | margin: 0 auto; |
| | | background-color: #fff; |
| | | padding: 10rpx 10rpx; |
| | | padding-bottom: 10rpx; |
| | | } |
| | | .wrap1 { |
| | | display: flex; |
| | |
| | | .wrap2 .list .item { |
| | | flex-shrink: 0; |
| | | width: 305rpx; |
| | | height: 184rpx; |
| | | background: rgba(176, 135, 113, 0.05) #FFFFFF; |
| | | box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.12); |
| | | border-radius: 8rpx; |
| | | padding: 20rpx; |
| | | padding: 24rpx 20rpx; |
| | | margin-right: 20rpx; |
| | | } |
| | | .wrap2 .list .item .name { |
| | |
| | | import { getCataLogTagList, getZhongTaiWholecasePage, actionDo } from '../../api/index' |
| | | import { eventBus } from '../../utils/eventBus' |
| | | Component({ |
| | | /** |
| | | * ç»ä»¶ç屿§å表 |
| | |
| | | sortType: '', |
| | | catalogCode: 'whole_case' |
| | | }, |
| | | pageLifetimes: { |
| | | show: function() { |
| | | // 页é¢è¢«å±ç¤º |
| | | console.log('ç»ä»¶è¢«å±ç¤º'); |
| | | eventBus.once('caseDeBack', (info) => { |
| | | const dataList = this.data.dataList |
| | | dataList.forEach(item => { |
| | | if(item.id === info.id){ |
| | | item.isCollection = info.isCollection |
| | | item.viewCount ++ |
| | | } |
| | | }) |
| | | this.setData({ dataList }) |
| | | }) |
| | | }, |
| | | }, |
| | | attached() { |
| | | this.getCatelist() |
| | | this.getList() |
| | |
| | | import { getCatalogList, getCataLogTagList, getZhongTaiProductPage } from '../../api/index' |
| | | import { eventBus } from '../../utils/eventBus' |
| | | Component({ |
| | | /** |
| | | * ç»ä»¶ç屿§å表 |
| | |
| | | sortType: '', |
| | | catalogCode: "" |
| | | }, |
| | | pageLifetimes: { |
| | | show: function() { |
| | | // 页é¢è¢«å±ç¤º |
| | | console.log('ç»ä»¶è¢«å±ç¤º'); |
| | | eventBus.once('productDeBack', (info) => { |
| | | const datalist = this.data.datalist |
| | | datalist.forEach(item => { |
| | | if(item.id === info.id){ |
| | | item.isCollection = info.isCollection |
| | | item.viewCount ++ |
| | | } |
| | | }) |
| | | this.setData({ datalist }) |
| | | }) |
| | | }, |
| | | }, |
| | | attached() { |
| | | this.getCatelist() |
| | | var app = getApp() |
| | |
| | | import { getCataLogTagList, getZhongTaiRealcasePage, actionDo } from '../../api/index' |
| | | import { eventBus } from '../../utils/eventBus' |
| | | Component({ |
| | | /** |
| | | * ç»ä»¶ç屿§å表 |
| | |
| | | sortType: '', |
| | | catalogCode: 'real_case' |
| | | }, |
| | | pageLifetimes: { |
| | | show: function() { |
| | | // 页é¢è¢«å±ç¤º |
| | | console.log('ç»ä»¶è¢«å±ç¤º'); |
| | | eventBus.once('realpicDeBack', (info) => { |
| | | const dataList = this.data.dataList |
| | | dataList.forEach(item => { |
| | | if(item.id === info.id){ |
| | | item.isCollection = info.isCollection |
| | | item.viewCount ++ |
| | | } |
| | | }) |
| | | this.setData({ dataList }) |
| | | }) |
| | | }, |
| | | }, |
| | | attached() { |
| | | this.getCatelist() |
| | | }, |
| | |
| | | .user { |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | z-index: 999; |
| | | width: 750rpx; |
| | | padding: 0 40rpx; |
| | | height: 148rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 8rpx; |
| | | // border-radius: 0 0 8rpx 8rpx; |
| | | padding: 0 30rpx; |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | |
| | | .name { |
| | | font-size: 30rpx; |
| | | margin-bottom: 12rpx; |
| | | margin-bottom: 10rpx; |
| | | } |
| | | |
| | | .desc { |
| | |
| | | .user { |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | z-index: 999; |
| | | width: 750rpx; |
| | | padding: 0 40rpx; |
| | | height: 148rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 8rpx; |
| | | padding: 0 30rpx; |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | } |
| | | .user .content .name { |
| | | font-size: 30rpx; |
| | | margin-bottom: 12rpx; |
| | | margin-bottom: 10rpx; |
| | | } |
| | | .user .content .desc { |
| | | font-size: 24rpx; |
| | |
| | | background-color: #F7F7F7; |
| | | image{ |
| | | width: 28rpx; |
| | | height: 28rpx; |
| | | margin-right: 16rpx; |
| | | } |
| | | } |
| | |
| | | } |
| | | .home_top .search_wrap image { |
| | | width: 28rpx; |
| | | height: 28rpx; |
| | | margin-right: 16rpx; |
| | | } |
| | | .cate_wrap { |
| | |
| | | <view> |
| | | <view style="padding-top: {{ origin != 'b' && info.users && info.users.id ? '148' : '0' }}rpx;"> |
| | | <!-- åç --> |
| | | <idCard users="{{ info.users }}" wx:if="{{ origin != 'b' && info.users && info.users.id }}" /> |
| | | <view class="main_content"> |
| | |
| | | import { actionDo, getWholecaseInfo } from '../../api/index' |
| | | import { eventBus } from '../../utils/eventBus' |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | actionType: 'view', |
| | | id: options.id |
| | | }) |
| | | }, |
| | | onUnload() { |
| | | console.log('详æ
è¿è¡äºéæ¯'); |
| | | setTimeout(() => { |
| | | eventBus.emit('caseDeBack', this.data.info) |
| | | }, 500) |
| | | }, |
| | | onLoad(options) { |
| | | var app = getApp().globalData |
| | |
| | | this.setData({info}) |
| | | wx.showToast({ |
| | | title: actionType == 'collect' ? 'æ¶èæå' : 'åæ¶æ¶è', |
| | | icon: "none" |
| | | }) |
| | | }) |
| | | }, |
| | |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | |
| | | .container { |
| | | padding: 0 40rpx 220rpx; |
| | | padding: 148rpx 40rpx 220rpx; |
| | | |
| | | .main_title { |
| | | font-weight: 500; |
| | |
| | | <view class="container"> |
| | | <view> |
| | | <!-- åç --> |
| | | <idCard users="{{ info.users }}" wx:if="{{ origin != 'b' && info.users && info.users.id }}" /> |
| | | <view class="container" style="padding-top: {{ origin != 'b' && info.users && info.users.id ? '148' : '0' }}rpx;"> |
| | | <view class="main_title">{{ info.title }}</view> |
| | | <view class="time">å叿¶é´ï¼{{ info.publishDt }}</view> |
| | | <view class="fullview_wrap"> |
| | |
| | | <view class="content">{{ item.spaceDesc }}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- footer --> |
| | | <view wx:if="{{ origin && origin == 'b' }}"> |
| | | <button open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">å享</button> |
| | |
| | | .container { |
| | | padding: 0 40rpx 220rpx; |
| | | padding: 148rpx 40rpx 220rpx; |
| | | } |
| | | .container .main_title { |
| | | font-weight: 500; |
| | |
| | | actionDo, |
| | | getMemberInfo |
| | | } from '../../api/index' |
| | | import { eventBus } from '../../utils/eventBus' |
| | | Page({ |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | |
| | | actionType: 'view', |
| | | id: options.id |
| | | }) |
| | | const member = wx.getStorageSync('member') || {} |
| | | if(!member.id){ |
| | | getMemberInfo().then(res => { |
| | | this.setData({ |
| | | member: res.data |
| | | }) |
| | | }) |
| | | } |
| | | }, |
| | | onShow() { |
| | | const member = wx.getStorageSync('member') || {} |
| | | if(member && member.id){ |
| | | this.setData({ |
| | | member |
| | | }) |
| | | } |
| | | }, |
| | | onUnload() { |
| | | console.log('详æ
è¿è¡äºéæ¯'); |
| | | setTimeout(() => { |
| | | eventBus.emit('productDeBack', this.data.info) |
| | | }, 500) |
| | | }, |
| | | onLoad(options) { |
| | | var app = getApp().globalData |
| | |
| | | }) |
| | | wx.showToast({ |
| | | title: actionType == 'collect' ? 'æ¶èæå' : 'åæ¶æ¶è', |
| | | icon: "none" |
| | | }) |
| | | }) |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | onHide() { |
| | | |
| | | }, |
| | | onUnload() { |
| | | |
| | | }, |
| | | onPullDownRefresh() { |
| | |
| | | } |
| | | .container{ |
| | | padding-bottom: 200rpx; |
| | | padding-top: 148rpx; |
| | | } |
| | | page { |
| | | background-color: #f7f7f7; |
| | |
| | | <view class="container"> |
| | | <view class="container" style="padding-top: {{ origin != 'b' && info.users && info.users.id ? '148' : '0' }}rpx;"> |
| | | <!-- åç --> |
| | | <idCard users="{{ info.users }}" wx:if="{{ origin != 'b' && info.users && info.users.id }}" /> |
| | | <!-- bannerè½®æ --> |
| | |
| | | } |
| | | .container { |
| | | padding-bottom: 200rpx; |
| | | padding-top: 148rpx; |
| | | } |
| | | page { |
| | | background-color: #f7f7f7; |
| | |
| | | import { getRealcaseInfo, actionDo } from '../../api/index' |
| | | import { eventBus } from '../../utils/eventBus' |
| | | Page({ |
| | | data: { |
| | | bottomLift: 0, |
| | |
| | | actionType: 'view', |
| | | id: options.id |
| | | }) |
| | | }, |
| | | onUnload() { |
| | | console.log('详æ
è¿è¡äºéæ¯'); |
| | | setTimeout(() => { |
| | | eventBus.emit('realpicDeBack', this.data.info) |
| | | }, 500) |
| | | }, |
| | | onLoad(options) { |
| | | var app = getApp().globalData |
| | |
| | | info.isCollection = !info.isCollection |
| | | wx.showToast({ |
| | | title: actionType == 'collect' ? 'æ¶èæå' : 'åæ¶æ¶è', |
| | | icon: "none" |
| | | }) |
| | | this.setData({info}) |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | onHide() { |
| | | |
| | | }, |
| | | onUnload() { |
| | | |
| | | }, |
| | | onPullDownRefresh() { |
| | |
| | | .container { |
| | | padding: 0 40rpx 220rpx; |
| | | padding: 148rpx 40rpx 220rpx; |
| | | .info_item{ |
| | | width: 100%; |
| | | margin-bottom: 20rpx; |
| | |
| | | <view class="container"> |
| | | <view> |
| | | <!-- åç --> |
| | | <idCard users="{{ info.users }}" wx:if="{{ origin != 'b' && info.users && info.users.id }}" /> |
| | | <view class="container" style="padding-top: {{ origin != 'b' && info.users && info.users.id ? '148' : '0' }}rpx;"> |
| | | <view class="main_title">{{ info.title }}</view> |
| | | <view class="time">å叿¶é´ï¼{{ info.publishDt }}</view> |
| | | <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"> |
| | | <image src="" mode="widthFix" /> |
| | | <view class="content">çæ¯äºæ´é½åä¸çç»çåæï¼éè²æ¡åç»é¨åæåæ¯ä¸ä¸æ ·ç审ç¾ï¼è¾¹æ¡å¾®æåå
¥ï¼å·¦å³å¯¹ç§°åå¸ï¼ç¯å
æ 衬ä¸ï¼ç¾å³ç»ä¸½å¤å§¿</view> |
| | | </view> |
| | | </view> --> |
| | | <!-- footer --> |
| | | <view wx:if="{{ origin && origin == 'b' }}"> |
| | | <button open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">å享</button> |
| | | </view> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | |
| | | .container { |
| | | padding: 0 40rpx 220rpx; |
| | | padding: 148rpx 40rpx 220rpx; |
| | | } |
| | | .container .info_item { |
| | | width: 100%; |
| | |
| | | onPullDownRefresh: function () { |
| | | console.log('䏿巿°'); |
| | | this.setData({ dataList: [], pageNum: 1, total: 0 }) |
| | | wx.stopPullDownRefresh() |
| | | this.getList() |
| | | }, |
| | | getList(){ |
| | |
| | | getZhongTaiVideoPage, |
| | | getZhongTaiProductNewsPage |
| | | } from '../../api/index' |
| | | const { |
| | | HYEventBus |
| | | } = require('hy-event-store') |
| | | const eventBus = new HYEventBus() |
| | | import { eventBus } from '../../utils/eventBus' |
| | | const app = getApp() |
| | | Page({ |
| | | |
| | |
| | | }, |
| | | onShow() { |
| | | let that = this |
| | | const member = wx.getStorageSync('member') || {} |
| | | if (member && member.id) { |
| | | setTimeout(() => { |
| | | getMemberInfo().then(res => { |
| | | this.setData({ |
| | | member: res.data |
| | | }) |
| | | }) |
| | | } else { |
| | | this.setData({ |
| | | member |
| | | }) |
| | | } |
| | | eventBus.on("reloadHome", () => { |
| | | }, 500) |
| | | eventBus.once("reloadHome", () => { |
| | | console.log('reloadHome'); |
| | | this.onLoad() |
| | | this.initData() |
| | | }) |
| | | }, |
| | | onLoad(options) { |
| | |
| | | width: 60rpx; |
| | | height: 4rpx; |
| | | background: #f4f4f4; |
| | | margin-left: -15rpx; |
| | | margin-left: -16rpx; |
| | | border-radius: 5rpx; |
| | | } |
| | | |
| | |
| | | justify-content: space-between; |
| | | background-color: #fff; |
| | | padding: 40rpx; |
| | | |
| | | .item { |
| | | width: 214rpx; |
| | | height: 232rpx; |
| | |
| | | |
| | | // 产åè§é¢ |
| | | .product_video { |
| | | padding: 40rpx 40rpx; |
| | | padding: 34rpx 40rpx 44rpx; |
| | | background-color: #fff; |
| | | |
| | | .video_wrap { |
| | | width: 670rpx; |
| | | position: relative; |
| | |
| | | } |
| | | |
| | | .strategy { |
| | | padding: 80rpx 40rpx; |
| | | padding: 44rpx 40rpx; |
| | | background: #F7F7F7; |
| | | .item{ |
| | | position: relative; |
| | |
| | | |
| | | // å¨è¯¢ |
| | | .consult { |
| | | padding: 40rpx 40rpx 60rpx; |
| | | padding: 44rpx 40rpx; |
| | | background: #fff; |
| | | } |
| | | |
| | |
| | | align-items: center; |
| | | width: 670rpx; |
| | | margin-bottom: 42rpx; |
| | | |
| | | .left { |
| | | font-weight: 600; |
| | | font-size: 34rpx; |
| | |
| | | width: 60rpx; |
| | | height: 4rpx; |
| | | background: #f4f4f4; |
| | | margin-left: -15rpx; |
| | | margin-left: -16rpx; |
| | | border-radius: 5rpx; |
| | | } |
| | | .container .consult_swiper .wx-swiper-dot.wx-swiper-dot-active { |
| | |
| | | color: #666666; |
| | | } |
| | | .container .product_video { |
| | | padding: 40rpx 40rpx; |
| | | padding: 34rpx 40rpx 44rpx; |
| | | background-color: #fff; |
| | | } |
| | | .container .product_video .video_wrap { |
| | |
| | | height: 376rpx; |
| | | } |
| | | .container .strategy { |
| | | padding: 80rpx 40rpx; |
| | | padding: 44rpx 40rpx; |
| | | background: #F7F7F7; |
| | | } |
| | | .container .strategy .item { |
| | |
| | | margin-top: 24rpx; |
| | | } |
| | | .container .consult { |
| | | padding: 40rpx 40rpx 60rpx; |
| | | padding: 44rpx 40rpx; |
| | | background: #fff; |
| | | } |
| | | .container .service { |
| | |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | margin-bottom: 40rpx; |
| | | padding: 0 40rpx; |
| | | .line{ |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding: 0 40rpx; |
| | | height: 108rpx; |
| | | border-bottom: 1rpx solid #E5E5E5;; |
| | | &:nth-last-of-type(1){ |
| | | border: none; |
| | | } |
| | | .icon{ |
| | | width: 40rpx; |
| | | } |
| | |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | margin-bottom: 40rpx; |
| | | padding: 0 40rpx; |
| | | } |
| | | .container .main_content .func_list .line { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding: 0 40rpx; |
| | | height: 108rpx; |
| | | border-bottom: 1rpx solid #E5E5E5; |
| | | } |
| | | .container .main_content .func_list .line:nth-last-of-type(1) { |
| | | border: none; |
| | | } |
| | | .container .main_content .func_list .line .icon { |
| | | width: 40rpx; |
| | |
| | | wxLogOff, |
| | | wxLoginCustomer |
| | | } from '../../api/index' |
| | | const { HYEventBus } = require('hy-event-store') |
| | | const eventBus = new HYEventBus() |
| | | import { eventBus } from '../../utils/eventBus' |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | font-size: 26rpx; |
| | | color: #666666; |
| | | margin-bottom: 24rpx; |
| | | display: -webkit-box; |
| | | -webkit-box-orient: vertical; |
| | | -webkit-line-clamp: 2; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .addr { |
| | | font-size: 26rpx; |
| | | color: #888888; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | } |
| | | .navback{ |
| | |
| | | .main_content { |
| | | position: relative; |
| | | bottom: 80rpx; |
| | | padding: 0 40rpx 40rpx; |
| | | padding: 0 40rpx 240rpx; |
| | | height: 100%; |
| | | overflow: hidden; |
| | | background-color: #fff; |
| | |
| | | } |
| | | .list { |
| | | height: calc( 100% - 420rpx ); |
| | | padding-bottom: 160rpx; |
| | | padding: 20rpx; |
| | | margin: 0 -40rpx; |
| | | padding-bottom: 12rpx; |
| | | width: 750rpx; |
| | | .item { |
| | | width: 670rpx; |
| | | margin: 10rpx auto 30rpx; |
| | | height: 148rpx; |
| | | background: rgba(176, 135, 113, 0.05) #FFFFFF; |
| | | box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.12); |
| | |
| | | padding: 0 30rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 30rpx; |
| | | |
| | | &:nth-last-of-type(1){ |
| | | margin-bottom: 100rpx; |
| | | } |
| | | .content { |
| | | flex: 1; |
| | | |
| | |
| | | .footer{ |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | position: fixed; |
| | | background-color: #fff; |
| | | z-index: 999; |
| | |
| | | </view> |
| | | </view> |
| | | <!-- footer --> |
| | | <view class="footer" style="bottom: {{bottomLift + 6}}px;"> |
| | | <view class="footer" style="padding-bottom: {{bottomLift + 6}}px;"> |
| | | <view bindtap="handleNavigation" class="btn"> |
| | | <image src="../../static/icon/mendian_ic_daohang@2x.png" mode="widthFix"></image> |
| | | <view>导èª</view> |
| | |
| | | font-size: 26rpx; |
| | | color: #666666; |
| | | margin-bottom: 24rpx; |
| | | display: -webkit-box; |
| | | -webkit-box-orient: vertical; |
| | | -webkit-line-clamp: 2; |
| | | overflow: hidden; |
| | | } |
| | | .header .addr { |
| | | font-size: 26rpx; |
| | | color: #888888; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | .navback { |
| | | padding-left: 30rpx; |
| | |
| | | .main_content { |
| | | position: relative; |
| | | bottom: 80rpx; |
| | | padding: 0 40rpx 40rpx; |
| | | padding: 0 40rpx 240rpx; |
| | | height: 100%; |
| | | overflow: hidden; |
| | | background-color: #fff; |
| | |
| | | } |
| | | .main_content .list { |
| | | height: calc(100% - 420rpx); |
| | | padding-bottom: 160rpx; |
| | | padding: 20rpx; |
| | | margin: 0 -40rpx; |
| | | padding-bottom: 12rpx; |
| | | width: 750rpx; |
| | | } |
| | | .main_content .list .item { |
| | | width: 670rpx; |
| | | margin: 10rpx auto 30rpx; |
| | | height: 148rpx; |
| | | background: rgba(176, 135, 113, 0.05) #FFFFFF; |
| | | box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.12); |
| | |
| | | padding: 0 30rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 30rpx; |
| | | } |
| | | .main_content .list .item:nth-last-of-type(1) { |
| | | margin-bottom: 100rpx; |
| | | } |
| | | .main_content .list .item .content { |
| | | flex: 1; |
| | |
| | | .footer { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | position: fixed; |
| | | background-color: #fff; |
| | | z-index: 999; |
| | |
| | | this.getList() |
| | | }, |
| | | handleDetail(e) { |
| | | const id = e.currentTarget.dataset.iamId |
| | | const id = e.currentTarget.dataset.id |
| | | wx.navigateTo({ |
| | | url: '/pages/store/staff?id=' + id, |
| | | }) |
| | |
| | | </view> |
| | | <view class="list"> |
| | | <view wx:for="{{ dataList }}" class="item"> |
| | | <image class="avatar" src="{{ item.imgurlFull ? imgurlFull : '../../static/images/default_avatar.png' }}"></image> |
| | | <image class="avatar" src="{{ item.imgurlFull ? item.imgurlFull : '../../static/images/default_avatar.png' }}"></image> |
| | | <view class="content"> |
| | | <view class="name">{{ item.name || '' }}</view> |
| | | <view class="desc">导è´ï½{{ item.jobDate || 5 }}å¹´ç»éª</view> |
| | | </view> |
| | | <view data-iamId="{{ item.iamId }}" bindtap="handleDetail" class="btn">èç³»TA</view> |
| | | <view data-id="{{ item.iamId }}" bindtap="handleDetail" class="btn">èç³»TA</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | import { |
| | | collectLikePage |
| | | } from '../../api/index' |
| | | import { |
| | | eventBus |
| | | } from '../../utils/eventBus' |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | activeTabs: 'product_intro', |
| | | |
| | |
| | | onLoad(options) { |
| | | this.getList() |
| | | }, |
| | | onShow() { |
| | | const dataList = this.data.dataList |
| | | eventBus.once('caseDeBack', (info) => { |
| | | const temp = dataList.filter(item => { |
| | | if (item.id === info.id) { |
| | | item.isCollection = info.isCollection |
| | | item.viewCount++ |
| | | } |
| | | if(item.isCollection) return item |
| | | }) |
| | | this.setData({ dataList: temp}) |
| | | }) |
| | | eventBus.once('productDeBack', (info) => { |
| | | const temp = dataList.filter(item => { |
| | | if (item.id === info.id) { |
| | | item.isCollection = info.isCollection |
| | | item.viewCount++ |
| | | } |
| | | if(item.isCollection) return item |
| | | }) |
| | | this.setData({ dataList: temp}) |
| | | }) |
| | | eventBus.once('realpicDeBack', (info) => { |
| | | const temp = dataList.filter(item => { |
| | | if (item.id === info.id) { |
| | | item.isCollection = info.isCollection |
| | | item.viewCount++ |
| | | } |
| | | if(item.isCollection) return item |
| | | }) |
| | | this.setData({ dataList: temp}) |
| | | }) |
| | | }, |
| | | onPullDownRefresh: function () { |
| | | console.log('䏿巿°'); |
| | | this.setData({ dataList: [], pageNum: 1, total: 0 }) |
| | | this.setData({ |
| | | dataList: [], |
| | | pageNum: 1, |
| | | total: 0 |
| | | }) |
| | | wx.stopPullDownRefresh() |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | console.log('触åºäºä»¶'); |
| | | const { total, dataList, pageNum } = this.data |
| | | const { |
| | | total, |
| | | dataList, |
| | | pageNum |
| | | } = this.data |
| | | if(total > dataList.length){ |
| | | this.setData({ pageNum: pageNum + 1 }) |
| | | this.setData({ |
| | | pageNum: pageNum + 1 |
| | | }) |
| | | this.getList() |
| | | }else{ |
| | | wx.showToast({ |
| | |
| | | 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' |
| | |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | |
| | | onPullDownRefresh: function () { |
| | | console.log('䏿巿°'); |
| | | this.setData({ dataList: [], pageNum: 1, total: 0 }) |
| | | wx.stopPullDownRefresh() |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | |
| | | box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0,0,0,0.08); |
| | | border: 4rpx solid #FFFFFF; |
| | | } |
| | | .placeholder9{ |
| | | color: #c8c9cc; |
| | | } |
| | | .avatar_btn{ |
| | | width: 168rpx; |
| | | height: 60rpx; |
| | |
| | | <view class="line"> |
| | | <view class="label">æµç§°</view> |
| | | <view class="val"> |
| | | <input bindchange="getNickName" value="{{ nickname }}" maxlength="{{ 10 }}" type="nickname"/> |
| | | <input placeholder="请è¾å
¥æµç§°" placeholder-class="placeholder9" bindchange="getNickName" value="{{ nickname }}" maxlength="{{ 10 }}" type="nickname"/> |
| | | </view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">å§å</view> |
| | | <van-field type="text" border="{{ false }}" class="input" model:value="{{ name }}" maxlength="{{ 10 }}" clearable /> |
| | | <van-field placeholder="请è¾å
¥å§å" type="text" border="{{ false }}" class="input" model:value="{{ name }}" maxlength="{{ 10 }}" clearable /> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">çµè¯</view> |
| | | <view class="wechat_phone"> |
| | | <van-field class="field" type="number" border="{{ false }}" model:value="{{ phone }}" maxlength="{{ 11 }}" clearable /> |
| | | <van-field placeholder="请è¾å
¥çµè¯" class="field" type="number" border="{{ false }}" model:value="{{ phone }}" maxlength="{{ 11 }}" clearable /> |
| | | <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="btn">微信ææ</button> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="df_ac" style="width: 100%"> |
| | | <picker class="picker" mode="region" value="{{ addr }}" bindchange="positionChange"> |
| | | <view class="picker_wrap"> |
| | | <view class="text placeholder9" hidden="{{ addr.cityName }}">è¯·éæ©å°å</view> |
| | | <view class="text placeholder9" hidden="{{ addr.cityName }}">è¯·éæ©åå¸</view> |
| | | <view class="text" hidden="{{ !addr.cityName }}"> |
| | | {{ addr.provinceName }}{{ addr.cityName }}{{ addr.areaName }} |
| | | </view> |
| | |
| | | <view class="line"> |
| | | <view class="label">å°å</view> |
| | | <view class="val" bindtap="changeAddr"> |
| | | <view class="df_ac">{{ address }}</view> |
| | | <view class="df_ac" wx:if="{{address}}">{{ address }}</view> |
| | | <view class="df_ac placeholder9">è¯·éæ©å°å</view> |
| | | <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">å°åº</view> |
| | | <van-field type="text" border="{{ false }}" class="input" model:value="{{ district }}" maxlength="{{ 15 }}" clearable /> |
| | | <van-field placeholder="请è¾å
¥å°åº" type="text" border="{{ false }}" class="input" model:value="{{ district }}" maxlength="{{ 15 }}" clearable /> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">é¢ç§¯</view> |
| | | <van-field custom-style="width: 100%" type="digit" border="{{ false }}" class="input" model:value="{{ housearea }}" maxlength="{{ 30 }}" clearable /> |
| | | <van-field placeholder="请è¾å
¥é¢ç§¯" custom-style="width: 100%" type="digit" border="{{ false }}" class="input" model:value="{{ housearea }}" maxlength="{{ 30 }}" clearable /> |
| | | <text>m²</text> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æ·å</view> |
| | | <view class="val" bindtap="openHouse"> |
| | | <view class="df_ac"> |
| | | <view wx:if="{{ houseType.val1 || houseType.val2 }}" class="df_ac"> |
| | | <text class="item" wx:if="{{ houseType.val1 }}">{{ houseType.val1 }}室</text> |
| | | <text class="item" wx:if="{{ houseType.val2 }}">{{ houseType.val2 }}å
</text> |
| | | <text class="item" wx:if="{{ houseType.val3 }}">{{ houseType.val3 }}å¨</text> |
| | | <text class="item" wx:if="{{ houseType.val4 }}">{{ houseType.val4 }}å«</text> |
| | | <text class="item" wx:if="{{ houseType.val5 }}">{{ houseType.val5 }}é³</text> |
| | | </view> |
| | | <view wx:else class="df_ac placeholder9">è¯·éæ©æ·å</view> |
| | | <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | |
| | | box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.08); |
| | | border: 4rpx solid #FFFFFF; |
| | | } |
| | | .placeholder9 { |
| | | color: #c8c9cc; |
| | | } |
| | | .avatar_btn { |
| | | width: 168rpx; |
| | | height: 60rpx; |
| | |
| | | onPullDownRefresh: function () { |
| | | console.log('䏿巿°'); |
| | | this.setData({ dataList: [], page: 1, total: 0 }) |
| | | wx.stopPullDownRefresh() |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | const { HYEventBus } = require('hy-event-store') |
| | | export const eventBus = new HYEventBus() |
| | |
| | | "window": { |
| | | "navigationBarTitleText": "ZBä¼å®¶", |
| | | "navigationBarTextStyle": "black", |
| | | "navigationBarBackgroundColor": "#fff" |
| | | "backgroundTextStyle": "dark", |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationStyle": "default", |
| | | "backgroundColor": "#fff" |
| | | }, |
| | | "requiredPrivateInfos": [ |
| | | "getLocation", |
| | |
| | | this.getTabList() |
| | | this.getList() |
| | | }, |
| | | onPullDownRefresh() { |
| | | this.setData({ dataList: [], pageNum: 1, total: 0 }) |
| | | wx.stopPullDownRefresh() |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | console.log('触åºäºä»¶'); |
| | | const { total, dataList, pageNum } = this.data |
| | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | |
| | | { |
| | | "navigationBarTitleText": "" |
| | | "navigationBarTitleText": "", |
| | | "enablePullDownRefresh": true |
| | | } |
| | |
| | | }, |
| | | onLoad(options) {}, |
| | | onPullDownRefresh: function () { |
| | | console.log('䏿巿°'); |
| | | console.log('䏿巿°') |
| | | this.setData({ |
| | | dataList: [], |
| | | pageNum: 1, |
| | | total: 0 |
| | | }) |
| | | wx.stopPullDownRefresh() |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | console.log('触åºäºä»¶'); |
| | | console.log('触åºäºä»¶') |
| | | const { |
| | | total, |
| | | dataList, |