| | |
| | | url: '/web/customer/getWholecaseInfo', |
| | | data |
| | | }) |
| | | } |
| | | } |
| | | // åç±»å®æ¯ å页å表 ä¸å° |
| | | export const getZhongTaiRealcasePage = (data) => { |
| | | return request({ |
| | |
| | | } |
| | | .query_param { |
| | | position: absolute; |
| | | z-index: 99; |
| | | z-index: 999; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | .list { |
| | |
| | | } |
| | | } |
| | | } |
| | | .shade{ |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(0,0,0,.5); |
| | | z-index: 99; |
| | | } |
| | | |
| | | .status { |
| | | display: flex; |
| | |
| | | <view bindtap="subParam" class="btn sub">确认</view> |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{ activeParam.length > 0 }}" class="shade"></view> |
| | | <view class="status"> |
| | | <view class="item {{ sortType == 'NORMAL' ? 'active' : '' }}" data-status="NORMAL" bindtap="statusChange">é»è®¤</view> |
| | | <view class="separate"></view> |
| | |
| | | } |
| | | .main_content .query_param { |
| | | position: absolute; |
| | | z-index: 99; |
| | | z-index: 999; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | } |
| | |
| | | background: var(--themeColor); |
| | | color: #fff; |
| | | } |
| | | .main_content .shade { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 99; |
| | | } |
| | | .main_content .status { |
| | | display: flex; |
| | | padding: 0rpx 40rpx; |
| | |
| | | |
| | | .query_form { |
| | | position: absolute; |
| | | z-index: 99; |
| | | z-index: 999; |
| | | background-color: #fff; |
| | | |
| | | .list { |
| | |
| | | } |
| | | } |
| | | } |
| | | .shade{ |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(0,0,0,.5); |
| | | z-index: 99; |
| | | } |
| | | |
| | | .status { |
| | | display: flex; |
| | |
| | | <view class="btn sub" bindtap="subParam">确认</view> |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{ activeParam.length > 0 }}" class="shade"></view> |
| | | <view class="status"> |
| | | <view class="item {{ sortType == 'NORMAL' ? 'active' : '' }}" data-status="NORMAL" bindtap="statusChange">é»è®¤</view> |
| | | <view class="separate"></view> |
| | |
| | | } |
| | | .main_content .main_right .query_form { |
| | | position: absolute; |
| | | z-index: 99; |
| | | z-index: 999; |
| | | background-color: #fff; |
| | | } |
| | | .main_content .main_right .query_form .list { |
| | |
| | | background: var(--themeColor); |
| | | color: #fff; |
| | | } |
| | | .main_content .main_right .shade { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 99; |
| | | } |
| | | .main_content .main_right .status { |
| | | display: flex; |
| | | padding: 0rpx 40rpx; |
| | |
| | | |
| | | .query_param { |
| | | position: absolute; |
| | | z-index: 99; |
| | | z-index: 999; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | .shade{ |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(0,0,0,.5); |
| | | z-index: 99; |
| | | } |
| | | |
| | | .status { |
| | | display: flex; |
| | |
| | | <view bindtap="subParam" class="btn sub">确认</view> |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{ activeParam.length > 0 }}" class="shade"></view> |
| | | <view class="status"> |
| | | <view class="item {{ sortType == 'NORMAL' ? 'active' : '' }}" data-status="NORMAL" bindtap="statusChange">é»è®¤</view> |
| | | <view class="separate"></view> |
| | |
| | | } |
| | | .main_content .query_param { |
| | | position: absolute; |
| | | z-index: 99; |
| | | z-index: 999; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | } |
| | |
| | | background: var(--themeColor); |
| | | color: #fff; |
| | | } |
| | | .main_content .shade { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 99; |
| | | } |
| | | .main_content .status { |
| | | display: flex; |
| | | padding: 0rpx 40rpx; |
| | |
| | | url: `/pages/kefu/service?title=${title}&id=${id}`, |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | jumpProConsult() { |
| | | wx.switchTab({ |
| | |
| | | this.getDetail(options.id) |
| | | } |
| | | }, |
| | | toSever () { |
| | | console.log('客æ'); |
| | | try { |
| | | wx.openCustomerServiceChat({ |
| | | extInfo: { |
| | | url: "https://work.weixin.qq.com/kfid/kfcfbccadc81cd01c0b?enc_scene=ENC5EhZgjepB9zsutZUQ5AiRnyN7GamomkuWsUA4bwigukSK6w5pVyRzcNDKurjFDNDC7" //客æID |
| | | }, |
| | | corpId: 'ww3686d2bb864ce3e2', //ä¼ä¸å¾®ä¿¡ID |
| | | success(res) { |
| | | console.log('è¿æ¥å®¢ææå'); |
| | | } |
| | | }) |
| | | } catch (error) { |
| | | wx.showToast({ |
| | | title: 'è¯·æ´æ°è³å¾®ä¿¡ææ°çæ¬', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | getDetail(id) { |
| | | getCustomizedNewsDetail({id}).then(res => { |
| | | this.setData({ |
| | |
| | | align-items: center; |
| | | height: 100rpx; |
| | | padding: 12rpx 40rpx; |
| | | .btn{ |
| | | padding-top: 20rpx; |
| | | } |
| | | } |
| | | .sub_btn { |
| | | flex: 1; |
| | |
| | | width: 44rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <!-- footer --> |
| | | <view class="footer" style="padding-bottom: {{bottomLift}}px;"> |
| | | <view class="btns"> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </view> |
| | | <view class="sub_btn"> |
| | | <button open-type="share" class="item btn" bindtap="handleShare"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </button> |
| | | <view class="sub_btn" bindtap="toSever"> |
| | | <image class="icon" src="../../static/icon/home_ic_kefu.png" mode="widthFix"></image> |
| | | <view>ç«å³å¨è¯¢å®¢æ</view> |
| | | </view> |
| | |
| | | data |
| | | }) |
| | | } |
| | | // 产åè§é¢ |
| | | export const getZhongTaiVideoPage = (data) => { |
| | | return request({ |
| | | url: '/web/customer/getZhongTaiVideoPage', |
| | | method: 'POST', |
| | | data |
| | | }) |
| | | } |
| | | // é¦é¡µ å®å¶æå¡ å表 |
| | | export const getCustomizedNewsList = (data) => { |
| | | return request({ |
| | | url: '/web/customer/getCustomizedNewsList', |
| | | data |
| | | }) |
| | | } |
| | | // å®å¶æå¡ 详æ
|
| | | export const getCustomizedNewsDetail = (data) => { |
| | | return request({ |
| | | url: '/web/customer/getCustomizedNewsDetail', |
| | | data |
| | | }) |
| | | } |
| | | // é¦é¡µ æ¨å¹¿å¨è¯¢å页 |
| | | export const newsPage = (data) => { |
| | | return request({ |
| | |
| | | data |
| | | }) |
| | | } |
| | | |
| | | // æä½ è¡ä¸ºå
容 |
| | | export const actionDo = (data) => { |
| | | return request({ |
| | | url: '/web/customer/actionDo', |
| | | data |
| | | }) |
| | | } |
| | | export const getUserCard = (data) => { |
| | | return request({ |
| | | url: '/web/personnel/getUserCard', |
| | |
| | | // å¿è¯´è£
ä¿® å
容 |
| | | export const pageZSZXContentList = (data) => { |
| | | return request({ |
| | | url: '/web/customer/pageContentList', |
| | | url: '/web/customer/getZhongTaiZbDecoPage', |
| | | method: "POST", |
| | | data |
| | | }) |
| | |
| | | "pages/kefu/index", |
| | | "pages/kefu/fond", |
| | | "pages/kefu/select", |
| | | "pages/kefu/service", |
| | | "pages/userinfo/index", |
| | | "pages/userinfo/collect", |
| | | "pages/store/index", |
| | | "pages/store/info", |
| | | "pages/store/staff", |
| | | "pages/sets/index", |
| | | "pages/webView/index", |
| | | "pages/sets/protocol", |
| | | "pages/consult/detail", |
| | | "pages/detailDis/product", |
| | |
| | | page { |
| | | color: #333333; |
| | | height: 100%; |
| | | font-size: 28rpx; |
| | | --themeColor:#B08771; |
| | | } |
| | | view,text{ |
| | | |
| | | view,text,scroll-view,image{ |
| | | box-sizing: border-box; |
| | | } |
| | | page{ |
| | | background-color: #fff; |
| | | --themeColor:#B08771; |
| | | color: #111111; |
| | | } |
| | | image{ |
| | | display: flex; |
| | | border-radius: 8rpx; |
| | | } |
| | | .container { |
| | | min-height: 100vh; |
| | | padding: 0; |
| | | box-sizing: border-box; |
| | | font-size: 28rpx; |
| | | } |
| | | ::-webkit-scrollbar { |
| | | display:none; |
| | | width:0; |
| | |
| | | .placeholder9{ |
| | | color: #999999; |
| | | } |
| | | button { |
| | | margin: 0; |
| | | padding: 0; |
| | | background-color: inherit; |
| | | position: static; |
| | | } |
| | | |
| | | button:after { |
| | | content: none; |
| | | } |
| | | ::-webkit-scrollbar { |
| | | display: none; |
| | | } |
| | | button::after { |
| | | border: none; |
| | | } |
| | | .ar_new{ |
| | | width: 14rpx; |
| | | margin-left: 8rpx; |
| | |
| | | import { getCataLogTagList, pageZSZXContentList } from '../../api/index' |
| | | import { getCataLogTagList, pageZSZXContentList, actionDo } from '../../api/index' |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | tagList: [], |
| | | activeCate: '', |
| | | dataList: [], |
| | | total: 0, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | |
| | |
| | | this.getTabList() |
| | | this.getList() |
| | | }, |
| | | itemClick(e) { |
| | | const { id } = e.target.dataset |
| | | console.log(e.target.dataset); |
| | | wx.navigateTo({ |
| | | url: '/pages/consult/detail', |
| | | 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 { code, tagCodes, pageSize, pageNum } = this.data |
| | | pageZSZXContentList({ |
| | | catalogCode: code, |
| | | tagCodes: tagCodes ? [tagCodes] : [], |
| | | pageSize, |
| | | pageNum |
| | | }).then(res => { |
| | | this.setData({ |
| | | total: res.data.total, |
| | | dataList: [ ...this.data.dataList, ...res.data.records ] |
| | | }) |
| | | }) |
| | | }, |
| | | itemClick(e) { |
| | | const item = e.currentTarget.dataset.item |
| | | console.log('item', item); |
| | | actionDo({actionType: 'view',id: item.id}) |
| | | if(item.contentType == 'video'){ |
| | | wx.previewMedia({ |
| | | sources: [{ url: item.content, type: 'video' }] |
| | | }) |
| | | } |
| | | if(item.contentType == 'link'){ |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index?link=' + item.content, |
| | | }) |
| | | } |
| | | if(item.contentType == 'page'){ |
| | | getApp().globalData.catalogCode=item.content |
| | | wx.switchTab({ |
| | | url: '/pages/discover/discover' |
| | | }) |
| | | } |
| | | }, |
| | | cateClick(e) { |
| | | const { code } = e.target.dataset |
| | |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | getList(){ |
| | | const { code, tagCodes, pageSize, pageNum } = this.data |
| | | pageZSZXContentList({ |
| | | catalogCode: code, |
| | | tagCodes, |
| | | pageSize, |
| | | pageNum |
| | | }).then(res => { |
| | | this.setData({ |
| | | dataList: [ ...this.data.dataList, ...res.data.records ] |
| | | }) |
| | | }) |
| | | }, |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | onReady() { |
| | | |
| | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | |
| | | .container { |
| | | background-color: #fff; |
| | | } |
| | | .home_tabs{ |
| | | height: 80rpx; |
| | | position: fixed; |
| | | background-color: #fff; |
| | | } |
| | | .search_wrap{ |
| | | width: 670rpx; |
| | | height: 72rpx; |
| | |
| | | } |
| | | } |
| | | .content{ |
| | | padding: 0 40rpx 40rpx; |
| | | padding: 80rpx 40rpx 40rpx; |
| | | .item{ |
| | | margin-bottom: 60rpx; |
| | | .img{ |
| | | width: 100%; |
| | | } |
| | | .title{ |
| | | width: 100%; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | font-size: 30rpx; |
| | | color: #111111; |
| | | margin: 24rpx 0 12rpx; |
| | |
| | | <view class="container"> |
| | | |
| | | <!-- åç±» --> |
| | | <view> |
| | | <view class="home_tabs"> |
| | | <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;"> |
| | | <view class="scroll_cate"> |
| | | <view bindtap="cateClick" data-code="{{item.labelValueCode}}" wx:for="{{ tagList }}" class="item {{ tagCodes == item.labelValueCode ? 'active': '' }}">{{ item.labelValueName }}</view> |
| | |
| | | </view> |
| | | <!-- content --> |
| | | <view class="content"> |
| | | <view wx:for="{{ dataList }}" class="item" bindtap="itemClick" data-abg="qwe"> |
| | | <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> |
| | | <view class="df_sb static"> |
| | | <view>{{ item.publishDate }}</view> |
| | | <view>{{ item.publishDt }}</view> |
| | | <view class="df_sb"> |
| | | <image class="liulan" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>{{ item.readCount }}</text> |
| | | <text>{{ item.viewCount || 0 }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | .container { |
| | | background-color: #fff; |
| | | } |
| | | .home_tabs { |
| | | height: 80rpx; |
| | | position: fixed; |
| | | background-color: #fff; |
| | | } |
| | | .search_wrap { |
| | | width: 670rpx; |
| | | height: 72rpx; |
| | |
| | | font-weight: 400; |
| | | } |
| | | .content { |
| | | padding: 0 40rpx 40rpx; |
| | | padding: 80rpx 40rpx 40rpx; |
| | | } |
| | | .content .item { |
| | | margin-bottom: 60rpx; |
| | | } |
| | | .content .item .img { |
| | | width: 100%; |
| | | } |
| | | .content .item .title { |
| | | width: 100%; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | font-size: 30rpx; |
| | | color: #111111; |
| | | margin: 24rpx 0 12rpx; |
| | |
| | | import { getDictData, getDailyUpdates, getZSZXCatalogs } from '../../api/index' |
| | | import { |
| | | getDictData, |
| | | getDailyUpdates, |
| | | getZSZXCatalogs, |
| | | getZhongTaiVideoPage, |
| | | getCustomizedNewsList |
| | | } from '../../api/index' |
| | | Page({ |
| | | data: { |
| | | searchValue: '', |
| | |
| | | |
| | | DailyUpdates: {}, //æ¯æ¥ä¸æ° |
| | | everydayTop: ['../../static/ic_top1@2x.png', '../../static/ic_top2@2x.png', '../../static/ic_top3@2x.png'], |
| | | bannerList: [ |
| | | {imgurl: ''}, |
| | | {imgurl: 'adsa.png'}, |
| | | {imgurl: 'adsa.png'}, |
| | | {imgurl: 'adsa.png'}, |
| | | ], |
| | | serviceHeight: 0, |
| | | serviceList: [], |
| | | |
| | | bannerSwiperOption: { |
| | | indicatorDots: true, |
| | |
| | | }, |
| | | onLoad() { |
| | | const res = wx.getMenuButtonBoundingClientRect() |
| | | this.setData({clientHeight: res.height}) |
| | | this.setData({clientTop: res.top}) |
| | | this.setData({ |
| | | clientHeight: res.height |
| | | }) |
| | | this.setData({ |
| | | clientTop: res.top |
| | | }) |
| | | |
| | | this.initData() |
| | | }, |
| | |
| | | getDailyUpdates({ |
| | | fileType: '0' |
| | | }).then(res => { |
| | | this.setData({ DailyUpdates: res.data }) |
| | | this.setData({ |
| | | DailyUpdates: res.data |
| | | }) |
| | | }) |
| | | getZSZXCatalogs().then(res => { //å¿è¯´è£
ä¿® |
| | | // 产åè§é¢ |
| | | getZhongTaiVideoPage({ |
| | | pageSize: 1, |
| | | pageNum: 1 |
| | | }).then(res => { |
| | | if (res.data.records && res.data.records.length > 0) { |
| | | this.setData({ |
| | | productVideo: res.data.records |
| | | }) |
| | | } |
| | | }) |
| | | //å¿è¯´è£
ä¿® |
| | | getZSZXCatalogs().then(res => { |
| | | this.setData({ |
| | | ZSZXCata: res.data || {} |
| | | }) |
| | | }) |
| | | // å®å¶æå¡ |
| | | getCustomizedNewsList().then(res => { |
| | | this.setData({ |
| | | serviceList: res.data || [] |
| | | }) |
| | | }) |
| | | getDictData({ |
| | | code: 'WEIXIN_DEFAULT_IMGS', |
| | | label: 'HOME_CLASS_A' |
| | | }).then(res => { |
| | | this.setData({ HOME_CLASS_A: res.data.code }) |
| | | this.setData({ |
| | | HOME_CLASS_A: res.data.code |
| | | }) |
| | | }) |
| | | getDictData({ |
| | | code: 'WEIXIN_DEFAULT_IMGS', |
| | | label: 'HOME_CLASS_B' |
| | | }).then(res => { |
| | | this.setData({ HOME_CLASS_B: res.data.code }) |
| | | this.setData({ |
| | | HOME_CLASS_B: res.data.code |
| | | }) |
| | | }) |
| | | getDictData({ |
| | | code: 'WEIXIN_DEFAULT_IMGS', |
| | | label: 'HOME_CLASS_B2' |
| | | }).then(res => { |
| | | this.setData({ HOME_CLASS_B2: res.data.code }) |
| | | this.setData({ |
| | | HOME_CLASS_B2: res.data.code |
| | | }) |
| | | }) |
| | | getDictData({ |
| | | code: 'WEIXIN_DEFAULT_IMGS', |
| | | label: 'HOME_CLASS_C' |
| | | }).then(res => { |
| | | this.setData({ HOME_CLASS_C: res.data.code }) |
| | | this.setData({ |
| | | HOME_CLASS_C: res.data.code |
| | | }) |
| | | }) |
| | | }, |
| | | promotionClick() { |
| | |
| | | url: '/pages/promotion/index', |
| | | }) |
| | | }, |
| | | jumpProVideo() { |
| | | wx.navigateTo({ |
| | | url: '/pages/productVideo/index', |
| | | }) |
| | | }, |
| | | videoClick(e) { |
| | | const { |
| | | videourl |
| | | } = e.currentTarget.dataset |
| | | wx.previewMedia({ |
| | | sources: [{ |
| | | url: videourl, |
| | | type: 'video' |
| | | }] |
| | | }) |
| | | }, |
| | | seriveClick(e) { |
| | | const { |
| | | id, |
| | | title |
| | | } = e.currentTarget.dataset |
| | | if (title === 'ä¸å±å®¢æ') { |
| | | wx.navigateTo({ |
| | | url: `/pages/kefu/index?title=${title}&id=${id}`, |
| | | }) |
| | | } else { |
| | | wx.navigateTo({ |
| | | url: `/pages/kefu/service?title=${title}&id=${id}`, |
| | | }) |
| | | } |
| | | }, |
| | | goserHeight: function (e) { |
| | | const serviceHeight = e.detail.height |
| | | this.setData({ |
| | | serviceHeight: serviceHeight |
| | | }) |
| | | }, |
| | | changeStrategy(e) { |
| | | let item = e.currentTarget.dataset.item |
| | | wx.navigateTo({ |
| | | url: `/pages/homeId/index?code=${item.code}&name=${item.name}` , |
| | | url: `/pages/homeId/index?code=${item.code}&name=${item.name}`, |
| | | }) |
| | | }, |
| | | }) |
| | | }) |
| | |
| | | } |
| | | // 产åè§é¢ |
| | | .product_video { |
| | | padding: 72rpx 40rpx; |
| | | padding: 40rpx 40rpx; |
| | | background-color: #fff; |
| | | |
| | | video { |
| | | .video_wrap { |
| | | width: 670rpx; |
| | | height: 300rpx; |
| | | border: 1px solid; |
| | | position: relative; |
| | | |
| | | .play { |
| | | width: 60rpx; |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 50%; |
| | | transform: translate(-50%, -50%); |
| | | z-index: 1; |
| | | } |
| | | |
| | | .img { |
| | | width: 100%; |
| | | } |
| | | } |
| | | |
| | | } |
| | | .consult_swiper { |
| | | width: 100%; |
| | | image { |
| | | width: 100%; |
| | | } |
| | | .scroll_text{ |
| | | height: 100rpx; |
| | | width: 670rpx; |
| | | white-space: nowrap; |
| | | overflow: hidden;//ææ¬è¶
åºéè |
| | | text-overflow: ellipsis; |
| | | padding-top: 20rpx; |
| | | font-size: 32rpx; |
| | | } |
| | | } |
| | | .consult { |
| | | padding: 40rpx 40rpx 60rpx; |
| | | background: #fff; |
| | | } |
| | | |
| | | .strategy { |
| | |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | padding: 60rpx 0; |
| | | padding: 0rpx 0 60rpx; |
| | | background-color: #fff; |
| | | .logo { |
| | | width: 246rpx; |
| | |
| | | <view style="height: {{clientTop - 2}}px;"></view> |
| | | <view class="search_wrap"> |
| | | <image class="icon" src="../../static/home_ic_search@2x.png" mode="widthFix"></image> |
| | | <input model:value="{{ searchValue }}" placeholder="æç´¢" type="text"/> |
| | | <input model:value="{{ searchValue }}" placeholder="æç´¢" type="text" /> |
| | | </view> |
| | | <view class="everyday"> |
| | | <view class="header" bindtap="promotionClick"> |
| | |
| | | <view class="item"> |
| | | <image src="../../static/icon/home_ic_shijing@2x 2.png"></image> |
| | | <view class="text">宿¯</view> |
| | | </view><view class="item"> |
| | | </view> |
| | | <view class="item"> |
| | | <image src="../../static/icon/home_ic_zixun.png"></image> |
| | | <view class="text">èµè®¯</view> |
| | | </view> |
| | |
| | | <!-- --> |
| | | <!-- 产åè§é¢ --> |
| | | <view class="product_video"> |
| | | <view class="com_header"> |
| | | <view bindtap="jumpProVideo" class="com_header"> |
| | | <view class="left"> |
| | | <view class="name"> |
| | | <image class="icon" src="../../static/home_ic_chanpinshiping@2x.png"></image> |
| | | <image class="icon" src="../../static/icon/home_ic_zhutihuodong.png"></image> |
| | | <text>产åè§é¢</text> |
| | | </view> |
| | | <view class="desc">ä¼éæ´»å¨ï¼æ¢å
䏿¥</view> |
| | | </view> |
| | | <image class="home_ar" src="../../static/home_ar@2x.png" mode="widthFix"></image> |
| | | <image class="ar_right" src="../../static/icon/home_ar@2x.png"></image> |
| | | </view> |
| | | <video controls class="main_video" src="https://vdept3.bdstatic.com/mda-njed6187hpegim0d/cae_h264/1665826435448713448/mda-njed6187hpegim0d.mp4?v_from_s=hkapp-haokan-hbe&auth_key=1720440602-0-0-f249e56273037ad05b8f7066fd0973ca&bcevod_channel=searchbox_feed&pd=1&cr=0&cd=0&pt=3&logid=0601949156&vid=646246476325419292&klogid=0601949156&abtest=101830_1-17451_2"></video> |
| | | <view class="video_wrap"> |
| | | <image class="img" src="{{ productVideo[0].coverImage }}" mode="widthFix"></image> |
| | | <image bindtap="videoClick" data-videourl="{{ productVideo[0].videoUrl }}" class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | <!-- æ»ç¥ --> |
| | | <view class="strategy"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="line_left item" data-item="{{ ZSZXCata.jdId }}" bindtap="changeStrategy"> |
| | | <view class="line_left item" data-item="{{ ZSZXCata.qwsj }}" bindtap="changeStrategy"> |
| | | <image src="{{HOME_CLASS_A}}"></image> |
| | | <text>{{ ZSZXCata.jdId.name }}</text> |
| | | <!-- <text>{{ ZSZXCata.qwsj.name }}</text> --> |
| | | </view> |
| | | <view class="line_right"> |
| | | <view class="item" data-item="{{ ZSZXCata.cfsj }}" bindtap="changeStrategy"> |
| | | <image src="{{ HOME_CLASS_B }}"></image> |
| | | <text>{{ ZSZXCata.cfsj.name }}</text> |
| | | <!-- <text>{{ ZSZXCata.cfsj.name }}</text> --> |
| | | </view> |
| | | <view class="item" data-item="{{ ZSZXCata.snsj }}" bindtap="changeStrategy"> |
| | | <image src="{{ HOME_CLASS_B2 }}"></image> |
| | | <text>{{ ZSZXCata.snsj.name }}</text> |
| | | <!-- <text>{{ ZSZXCata.snsj.name }}</text> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view data-item="{{ ZSZXCata.qwsj.code }}" bindtap="changeStrategy" class="home_id item"> |
| | | <view data-item="{{ ZSZXCata.jdId }}" bindtap="changeStrategy" class="home_id item"> |
| | | <image src="{{HOME_CLASS_C}}"></image> |
| | | <text>{{ ZSZXCata.qwsj.name }}</text> |
| | | <!-- <text>{{ ZSZXCata.jdId.name }}</text> --> |
| | | </view> |
| | | </view> |
| | | <!-- service --> |
| | |
| | | <view class="com_header"> |
| | | <view class="left"> |
| | | <view class="name"> |
| | | <image class="icon" src="../../static/home_ic_fuwu@2x.png"></image> |
| | | <image class="icon" src="../../static/icon/home_ic_fuwu@2x.png"></image> |
| | | <view>å®å¶æå¡</view> |
| | | </view> |
| | | <view class="desc">设身å¤å°ä¸ºä½ æèæ´å¤ï¼éªä¼´ä½ çç¾å¥½çæ´»</view> |
| | | </view> |
| | | </view> |
| | | <swiper class="consult_swiper" circular indicator-dots="{{ bannerSwiperOption.indicatorDots }}" autoplay="{{ bannerSwiperOption.autoplay }}" interval="{{ bannerSwiperOption.interval }}" duration="{{ bannerSwiperOption.duration }}"> |
| | | <block wx:for="{{ bannerList }}" wx:key="index"> |
| | | <swiper-item> |
| | | <image mode="aspectFill" src="../../static/test.png"></image> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | | <swiper class="consult_swiper" circular indicator-dots="{{ bannerSwiperOption.indicatorDots }}" autoplay="{{ bannerSwiperOption.autoplay }}" interval="{{ bannerSwiperOption.interval }}" style="height:{{serviceHeight}}rpx" duration="{{ bannerSwiperOption.duration }}"> |
| | | <block wx:for="{{ serviceList }}" wx:key="index"> |
| | | <swiper-item> |
| | | <image bindload='goserHeight' data-id="{{ item.id }}" data-title="{{item.title}}" bindtap="seriveClick" mode="widthFix" src="{{ item.fileList[0].fileurlFull }}"></image> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | | </view> |
| | | <!-- logo --> |
| | | <view class="logo_wrap"> |
| | |
| | | margin-top: 20rpx; |
| | | } |
| | | .product_video { |
| | | padding: 72rpx 40rpx; |
| | | padding: 40rpx 40rpx; |
| | | background-color: #fff; |
| | | } |
| | | .product_video video { |
| | | .product_video .video_wrap { |
| | | width: 670rpx; |
| | | height: 300rpx; |
| | | border: 1px solid; |
| | | position: relative; |
| | | } |
| | | .product_video .video_wrap .play { |
| | | width: 60rpx; |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 50%; |
| | | transform: translate(-50%, -50%); |
| | | z-index: 1; |
| | | } |
| | | .product_video .video_wrap .img { |
| | | width: 100%; |
| | | } |
| | | .consult_swiper { |
| | | width: 100%; |
| | | } |
| | | .consult_swiper image { |
| | | width: 100%; |
| | | } |
| | | .consult_swiper .scroll_text { |
| | | height: 100rpx; |
| | | width: 670rpx; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | padding-top: 20rpx; |
| | | font-size: 32rpx; |
| | | } |
| | | .consult { |
| | | padding: 40rpx 40rpx 60rpx; |
| | | background: #fff; |
| | | } |
| | | .strategy { |
| | | padding: 80rpx 40rpx; |
| | |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | padding: 60rpx 0; |
| | | padding: 0rpx 0 60rpx; |
| | | background-color: #fff; |
| | | } |
| | | .logo_wrap .logo { |
| | |
| | | // pages/kefu/index.js |
| | | import { getCustomizedNewsDetail } from '../../api/index' |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | bottomLift: 0 |
| | | bottomLift: 0, |
| | | info: {} |
| | | }, |
| | | |
| | | /** |
| | |
| | | this.setData({ |
| | | bottomLift: app.bottomLift |
| | | }) |
| | | if(options && options.id){ |
| | | this.getDetail(options.id) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | getDetail(id) { |
| | | getCustomizedNewsDetail({id}).then(res => { |
| | | this.setData({ |
| | | info: { ...res.data } |
| | | }) |
| | | }) |
| | | }, |
| | | toSever () { |
| | | console.log('客æ'); |
| | | try { |
| | | wx.openCustomerServiceChat({ |
| | | extInfo: { |
| | | url: "https://work.weixin.qq.com/kfid/kfcfbccadc81cd01c0b?enc_scene=ENC5EhZgjepB9zsutZUQ5AiRnyN7GamomkuWsUA4bwigukSK6w5pVyRzcNDKurjFDNDC7" //客æID |
| | | }, |
| | | corpId: 'ww3686d2bb864ce3e2', //ä¼ä¸å¾®ä¿¡ID |
| | | success(res) { |
| | | console.log('è¿æ¥å®¢ææå'); |
| | | } |
| | | }) |
| | | } catch (error) { |
| | | wx.showToast({ |
| | | title: 'è¯·æ´æ°è³å¾®ä¿¡ææ°çæ¬', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | onReady() { |
| | | |
| | | }, |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "usingComponents": { |
| | | "mp-html": "mp-html" |
| | | }, |
| | | "navigationBarTitleText": "ä¸å±å®¢æ" |
| | | } |
| | |
| | | align-items: center; |
| | | height: 100rpx; |
| | | padding: 12rpx 40rpx; |
| | | .btn{ |
| | | padding-top: 20rpx; |
| | | } |
| | | } |
| | | .sub_btn { |
| | | flex: 1; |
| | |
| | | <view class="container"> |
| | | <view> |
| | | <!-- <rich-text nodes="{{ info.content }}"></rich-text> --> |
| | | <mp-html content="{{info.content}}"></mp-html> |
| | | </view> |
| | | <!-- footer --> |
| | | <view class="footer" style="padding-bottom: {{bottomLift}}px;"> |
| | | <view class="btns"> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </view> |
| | | <view class="sub_btn"> |
| | | <button open-type="share" class="item btn" bindtap="handleShare"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </button> |
| | | <view class="sub_btn" bindtap="toSever"> |
| | | <image class="icon" src="../../static/icon/home_ic_kefu.png" mode="widthFix"></image> |
| | | <view>ç«å³å¨è¯¢å®¢æ</view> |
| | | </view> |
| | |
| | | height: 100rpx; |
| | | padding: 12rpx 40rpx; |
| | | } |
| | | .footer .btns .btn { |
| | | padding-top: 20rpx; |
| | | } |
| | | .footer .sub_btn { |
| | | flex: 1; |
| | | display: flex; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { getCustomizedNewsDetail } from '../../api/index' |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | info: {} |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | if(options && options.id){ |
| | | this.getDetail(options.id) |
| | | } |
| | | wx.setNavigationBarTitle({ |
| | | title: options.title |
| | | }) |
| | | }, |
| | | getDetail(id) { |
| | | getCustomizedNewsDetail({id}).then(res => { |
| | | this.setData({ |
| | | info: { ...res.data } |
| | | }) |
| | | }) |
| | | }, |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": { |
| | | "mp-html": "mp-html" |
| | | }, |
| | | "navigationBarTitleText": "" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <mp-html content="{{info.content}}"></mp-html> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/kefu/service.wxss */ |
| | |
| | | // pages/consult/consult.js |
| | | import { getZhongTaiVideoPage, getCataLogTagList } from '../../api/index' |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | category: ['æ°åä¸å¸', 'ä¸å©è¯ä¹¦', 'å¤§çææ','æ°åä¸å¸', 'ä¸å©è¯ä¹¦', 'å¤§çææ'], |
| | | secondCategory: ['级åç±»','级åç±»','级åç±»','级åç±»','级åç±»','级åç±»'], |
| | | activeCate: '', |
| | | seActiveCate: '', |
| | | dataList: [] |
| | | }, |
| | | category: [], |
| | | tagCodes: '', |
| | | |
| | | dataList: [], |
| | | total: 0, |
| | | pageSize: 10, |
| | | 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, tagCodes } = this.data |
| | | getZhongTaiVideoPage({ |
| | | pageSize,pageNum, tagCodes: tagCodes ? [tagCodes] : [] |
| | | }).then(res => { |
| | | 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 }) |
| | | }) |
| | | }, |
| | | itemClick(e) { |
| | | const { id } = e.target.dataset |
| | | console.log(e.target.dataset); |
| | | wx.navigateTo({ |
| | | url: '/pages/consult/detail', |
| | | const { videourl } = e.currentTarget.dataset |
| | | wx.previewMedia({ |
| | | sources: [{ url: videourl, type: 'video' }] |
| | | }) |
| | | }, |
| | | 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 |
| | | console.log(index); |
| | | }, |
| | | onLoad(options) { |
| | | |
| | | this.getTagList() |
| | | this.getList() |
| | | }, |
| | | |
| | | /** |
| | |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | |
| | | .content{ |
| | | padding: 0 40rpx 40rpx; |
| | | .item{ |
| | | .img{ |
| | | margin-bottom: 60rpx; |
| | | position: relative; |
| | | .play{ |
| | | width: 60rpx; |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 50%; |
| | | transform: translate(-50%, -50%); |
| | | z-index: 1; |
| | | } |
| | | .img_wrap{ |
| | | width: 100%; |
| | | position: relative; |
| | | .img{ |
| | | width: 100%; |
| | | } |
| | | } |
| | | .title{ |
| | | font-size: 30rpx; |
| | |
| | | <view class="container"> |
| | | <view class="search_wrap"> |
| | | <image src="../../static/icon/ic_search@2x.png" mode="widthFix"></image> |
| | | <input type="text" placeholder="æç´¢å¨è¯¢æ é¢" /> |
| | | </view> |
| | | <!-- åç±» --> |
| | | <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;"> |
| | | <!-- <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 28rpx;"> |
| | | <view class="scroll_cate second_list"> |
| | | <view bindtap="seCateClick" data-index="{{index}}" wx:for="{{ secondCategory }}" class="item {{ index == 0 ? 'active': '' }}">{{ index }}{{ item }}</view> |
| | | </view> |
| | | </scroll-view> |
| | | </scroll-view> --> |
| | | </view> |
| | | <!-- content --> |
| | | <view class="content"> |
| | | <view class="item" bindtap="itemClick" data-abg="qwe"> |
| | | <image class="img" src="../../static/icon/test.png" mode="widthFix"></image> |
| | | <view class="title">åç¯å®ç¨ç¹è¾ | 䏿¥å¦ä¼çæ³å
å½±å¸å±</view> |
| | | <view wx:for="{{ dataList }}" class="item"> |
| | | <view class="img_wrap"> |
| | | <image class="img" src="{{ item.coverImage }}" mode="widthFix"></image> |
| | | <image bindtap="itemClick" data-videourl="{{ item.videoUrl }}" class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image> |
| | | </view> |
| | | |
| | | <view class="title">{{ item.title }}</view> |
| | | <view class="df_sb static"> |
| | | <view>{{ '2021-08-21 12:00:00' }}</view> |
| | | <view>{{ item.publishDt }}</view> |
| | | <view class="df_sb"> |
| | | <image class="liulan" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | <text>{{ item.viewCount }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | .content { |
| | | padding: 0 40rpx 40rpx; |
| | | } |
| | | .content .item .img { |
| | | .content .item { |
| | | margin-bottom: 60rpx; |
| | | position: relative; |
| | | } |
| | | .content .item .play { |
| | | width: 60rpx; |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 50%; |
| | | transform: translate(-50%, -50%); |
| | | z-index: 1; |
| | | } |
| | | .content .item .img_wrap { |
| | | width: 100%; |
| | | position: relative; |
| | | } |
| | | .content .item .img_wrap .img { |
| | | width: 100%; |
| | | } |
| | | .content .item .title { |
| | |
| | | const { |
| | | slogans, |
| | | costomerNum, |
| | | userInfo |
| | | userInfo, |
| | | qrcodeImg, |
| | | companyQrcodeImg |
| | | } = this.data |
| | | editMember({ |
| | | ...userInfo, |
| | | slogans, |
| | | costomerNum |
| | | costomerNum, |
| | | qrcodeImg: qrcodeImg || userInfo.qrcodeImg , |
| | | companyQrcodeImg: companyQrcodeImg || userInfo.companyQrcodeImg |
| | | }).then(res => { |
| | | this.setData({ |
| | | editFalg: false |
| | |
| | | wx.uploadFile({ |
| | | url: uploadUrl, |
| | | filePath: e.detail.avatarUrl, |
| | | formData: { |
| | | folder: "users" |
| | | }, |
| | | name: 'file', |
| | | success (res) { |
| | | console.log(JSON.parse(res.data)) |
| | | let data = JSON.parse(ress.data) |
| | | let data = JSON.parse(res.data) |
| | | userInfo.imgurl = data.data.imgaddr |
| | | userInfo.imgurlFull = data.data.url |
| | | this.setData({userInfo}) |
| | | that.setData({userInfo}) |
| | | console.log('userInfo', userInfo); |
| | | } |
| | | }) |
| | | } |
| | |
| | | filePath: res.tempFiles[0].tempFilePath, |
| | | name: 'file', |
| | | formData: { |
| | | folder: 'member' |
| | | folder: "member" |
| | | }, |
| | | header: { |
| | | token: wx.getStorageSync('token') |
| | |
| | | filePath: res.tempFiles[0].tempFilePath, |
| | | name: 'file', |
| | | formData: { |
| | | folder: 'member' |
| | | folder: "member" |
| | | }, |
| | | header: { |
| | | token: wx.getStorageSync('token') |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/webView/index.js |
| | | |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | hasUserInfo: true, |
| | | userInfo: {}, |
| | | id: '', |
| | | link: '' |
| | | }, |
| | | onLoad: function (options) { |
| | | 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 }) |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady: function () { |
| | | |
| | | }, |
| | | |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage: function () { |
| | | let { link, id } = this.data |
| | | return { |
| | | title: '', |
| | | path: '/pages/index/index?id=' + id + '&link=' + link + '&type=2' |
| | | } |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | <web-view src="{{ link }}"> |
| | | </web-view> |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/webView/index.wxss */ |
| | |
| | | "preloadBackgroundData": false, |
| | | "minified": true, |
| | | "autoAudits": false, |
| | | "uglifyFileName": false, |
| | | "uglifyFileName": true, |
| | | "uploadWithSourceMap": true, |
| | | "enhance": true, |
| | | "showShadowRootInWxmlPanel": true, |
| | |
| | | ] |
| | | } |
| | | }, |
| | | "libVersion": "3.4.10" |
| | | "libVersion": "3.3.5" |
| | | } |