已修改27个文件
已删除4个文件
已添加12个文件
| | |
| | | userInfo: null, |
| | | accessToken: null, |
| | | isLogin: false |
| | | }, |
| | | // æºè½å¨è¯¢ç»æç±»åææ¬è½¬æ¢ |
| | | cosultTypeName: (typeId) => { |
| | | let name = '' |
| | | switch (typeId) { |
| | | case 1: |
| | | name = 'ç¸å
³æä»¶' |
| | | break; |
| | | case 2: |
| | | name = 'ç¸å
³æ¡ç®' |
| | | break; |
| | | case 3: |
| | | name = 'æ§æ³æ¡ä¾' |
| | | break; |
| | | case 4: |
| | | name = 'ç¯ä¿é®é¢' |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | return name |
| | | } |
| | | }) |
| | |
| | | { |
| | | "entryPagePath": "pages/m_user/userlogin/userlogin", |
| | | "pages": [ |
| | | "pages/m_user/userlogin/userlogin", |
| | | "pages/home/home", |
| | | "pages/m_assessment/assessment/assessment", |
| | | "pages/m_assessment/grade/grade", |
| | | "pages/m_assessment/gradedetail/gradedetail", |
| | | "pages/m_assessment/gradereport/gradereport", |
| | | "pages/m_common/pagevideo/pagevideo", |
| | | "pages/m_consult/consulthome/consulthome", |
| | | "pages/m_consult/consultsearch/consultsearch", |
| | | "pages/m_consult/consultresult/consultresult", |
| | |
| | | "pages/m_consult/consultdetailitem/consultdetailitem", |
| | | "pages/m_consult/consultdetailqa/consultdetailqa", |
| | | "pages/m_consult/consultdetailcase/consultdetailcase", |
| | | "pages/m_learn/p_learnvideo/p_learnvideo", |
| | | "pages/m_learn/learn/learn", |
| | | "pages/m_learn/learfile/learnfile", |
| | | "pages/m_learn/learncase/learncase", |
| | |
| | | "pages/m_promise/promiseresult/promiseresult", |
| | | "pages/m_promise/promisesign/promisesign", |
| | | "pages/m_service/p_servicehome/servicehome", |
| | | "pages/m_service/p_scheduledetail/p_scheduledetail", |
| | | "pages/m_service/p_schedule/p_schedule", |
| | | "pages/m_user/userloginpw/userloginpw", |
| | | "pages/m_user/userregistertype/userregistertype", |
| | | "pages/m_user/userregistergov/userregistergov", |
| | | "pages/m_user/userregistercompany/userregistercompany", |
| | | "pages/m_user/mine/mine", |
| | | "pages/m_user/userlogin/userlogin", |
| | | "pages/icons/icons", |
| | | "pages/text/text", |
| | | "pages/test/test", |
| | | "pages/test2/test2", |
| | | "pages/m_service/p_schedule/p_schedule", |
| | | "pages/m_service/p_scheduledetail/p_scheduledetail" |
| | | "pages/test2/test2" |
| | | ], |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | } |
| | | |
| | | .icon { |
| | | width: 16px; |
| | | height: 16px; |
| | | width: 20px; |
| | | height: 20px; |
| | | } |
| | | |
| | | .fyui-selector { |
| | |
| | | /* background-color: greenyellow; */ |
| | | } |
| | | |
| | | .fyui-box .fyui-box__hd>image { |
| | | .fyui-box .fyui-box__hd .fyui-box__hd_image { |
| | | width: 120px; |
| | | height: 80px; |
| | | } |
| | |
| | | }, |
| | | methods: { |
| | | _onReachBottom() { |
| | | console.log('_onReachBottom'); |
| | | // console.log('_onReachBottom'); |
| | | let {cPage, tPage, loading} = this.data |
| | | if (!loading && cPage < tPage) { |
| | | if (typeof this.loadmore === 'function') { |
| | |
| | | <template wx:if="{{!loading && nodata}}" is="nodataPage"></template> |
| | | <block wx:else> |
| | | <view wx:if="{{!loading}}" class="load-more"> |
| | | <view wx:if="{{!scrollable}}" class="btn-more" bindtap="gotoMore">æ¥çæ´å¤</view> |
| | | <block wx:if="{{!scrollable}}"> |
| | | <view wx:if="{{needLoadMore}}" class="btn-more" bindtap="gotoMore">æ¥çæ´å¤</view> |
| | | </block> |
| | | <block wx:else> |
| | | <text wx:if="{{needLoadMore}}">䏿»å è½½</text> |
| | | <text wx:else="">ââå°åºäºââ</text> |
| | | <text wx:else>ââå°åºäºââ</text> |
| | | </block> |
| | | </view> |
| | | |
| | |
| | | observer(newVal) { |
| | | if (newVal) { |
| | | let that = this; |
| | | let query = this.createSelectorQuery(); //å¿
é¡»è¦å
å建ä¸ä¸ªæ¥è¯¢ |
| | | let query = this.createSelectorQuery().in(this); //å¿
é¡»è¦å
å建ä¸ä¸ªæ¥è¯¢ |
| | | setTimeout(() => { |
| | | query.select('.fyui-gallery__img').boundingClientRect(function (rect) { |
| | | console.log('observer'); |
| | |
| | | console.log(yLimit); |
| | | |
| | | let that = this; |
| | | let query = this.createSelectorQuery(); //å¿
é¡»è¦å
å建ä¸ä¸ªæ¥è¯¢ |
| | | let query = this.createSelectorQuery().in(this); //å¿
é¡»è¦å
å建ä¸ä¸ªæ¥è¯¢ |
| | | query.select('.fyui-gallery__img').boundingClientRect(function (rect) { |
| | | console.log('imgHeight:' + that.data.imgHeight); |
| | | console.log('imgWidth:' + that.data.imgWidth); |
| | |
| | | if (e) { |
| | | setTimeout(() => { |
| | | const p = `.page${this.data.currentTab}` |
| | | console.log(p); |
| | | // console.log(p); |
| | | this.tabsHeight(p); |
| | | }, 50); |
| | | } |
| | |
| | | //计ç®swiperé«åº¦æ¹æ³ï¼å¨åæ¢çæ¶åè°ç¨ï¼ |
| | | tabsHeight(element) { |
| | | let that = this; |
| | | let query = this.createSelectorQuery(); //å¿
é¡»è¦å
å建ä¸ä¸ªæ¥è¯¢ |
| | | let query = this.createSelectorQuery().in(this); //å¿
é¡»è¦å
å建ä¸ä¸ªæ¥è¯¢ |
| | | query.select(element).boundingClientRect(function (rect) { |
| | | that.setData({ |
| | | pageheight: rect.height + 'px' |
| | |
| | | </view> |
| | | </view> |
| | | <view class="fyui-box__hd"> |
| | | <image src="{{item.pic}}" class="" /> |
| | | <image src="{{item.pic}}" class="fyui-box__hd_image" mode="aspectFill"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <text>æ¡åå°åï¼{{item.provinceName + item.cityName}}</text> |
| | | <text>æ¡åæ¶é´ï¼{{item.occurDate}}</text> |
| | | </view> |
| | | <view class="fyui-box__ft_2"> |
| | | <view class="fyui-box__ft_2" wx:if="{{item.punish || item.illegal || item.shotSpot || item.supervise || item.detained || item.minor}}"> |
| | | <view style="white-space: nowrap;">æ¶åï¼</view> |
| | | <view class="case-tag-group"> |
| | | <view class="case-tag" wx:if="{{item.punish}}"> |
| | |
| | | <block wx:elif="{{item.typeId == 4}}"> |
| | | <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | <text class="fyui-box__content des subtitle">{{item.name}}</text> |
| | | <view class="qa-title"> |
| | | <image class="icon" src="/res/icons/qa.png"></image> |
| | | <text class="fyui-box__content des subtitle">{{item.name}}ï¼</text> |
| | | </view> |
| | | <view class="fyui-box__bd answer"> |
| | | <view class="tag2">çï¼</view> |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <!-- <view class="answer"> |
| | | <image class="user-avator" src="/res/icons/con_qa.png"></image> |
| | | <view class="user-name">ç¯ä¿æºè½å©æ</view> |
| | | </view> --> |
| | | <view> |
| | | <!-- <view class="tag2">çï¼</view> --> |
| | | <rich-text class="tag2 des" nodes="{{item.des}}"></rich-text> |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | </view> |
| | | <!-- <view class="fyui-box__ft"> |
| | | <text>æé®æ¶é´ï¼{{item.time}}</text> |
| | | <text>å夿¶é´ï¼{{item.time}}</text> |
| | | </view> --> |
| | | <view class="fyui-box__ft_2" wx:if="{{item.punish || item.illegal || item.shotSpot || item.supervise}}"> |
| | | <view style="white-space: nowrap;">æ¶åï¼</view> |
| | | <view class="case-tag-group"> |
| | | <view class="case-tag" wx:if="{{item.punish}}"> |
| | | <image src="/res/icons/cq_punish.png"></image> |
| | | <text>è¡æ¿å¤ç½</text> |
| | | </view> |
| | | <view class="case-tag" wx:if="{{item.illegal}}"> |
| | | <image src="/res/icons/cq_illegal.png"></image> |
| | | <text>åäºè´£ä»»</text> |
| | | </view> |
| | | <view class="case-tag" wx:if="{{item.shotSpot}}"> |
| | | <image src="/res/icons/cq_shotspot.png"></image> |
| | | <text>ç¯ä¿çç¹</text> |
| | | </view> |
| | | <view class="case-tag" wx:if="{{item.supervise}}"> |
| | | <image src="/res/icons/cq_supervise.png"></image> |
| | | <text>ç£å¯è¦ç¹</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </block> |
| | |
| | | |
| | | .fyui-box .answer { |
| | | display: flex; |
| | | flex-direction: row; |
| | | align-items: center; |
| | | /* flex-direction: row; */ |
| | | /* justify-content: space-between; */ |
| | | /* background-color: red; */ |
| | | } |
| | |
| | | background-color: var(--fyui-text-color_3); |
| | | } |
| | | |
| | | .qa-title { |
| | | display: flex; |
| | | align-items: flex-start; |
| | | } |
| | | |
| | | .qa-title>image { |
| | | margin-right: 4px; |
| | | margin-top: 2px; |
| | | } |
| | | |
| | | .user-avator { |
| | | width: 16px; |
| | | height: 16px; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | .user-name { |
| | | color: var(--fyui-text-color_2); |
| | | font-size: 12px; |
| | | margin-left: 4px; |
| | | } |
| | |
| | | keyobj: { |
| | | type: Object, |
| | | value: { |
| | | keyword: '', |
| | | keyword: null, |
| | | type: undefined |
| | | }, |
| | | }, |
| | |
| | | |
| | | observers: { |
| | | 'keyobj': function (keyobj) { |
| | | if (keyobj != null && keyobj.keyword != null) { |
| | | this.search(keyobj, 1, this.data.sPerPage) |
| | | } |
| | | }, |
| | | }, |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/m_consult/c_reult-item-tab/c_reult-item-tab.js |
| | | Component({ |
| | | /** |
| | | * ç»ä»¶ç屿§å表 |
| | | */ |
| | | properties: { |
| | | tabList: [ |
| | | {name: 'çé¨',tag: 0}, |
| | | {name: 'é®ç',tag: 0}, |
| | | {name: 'æ¡ä¾',tag: 0}, |
| | | {name: 'æ¡ç®',tag: 0}, |
| | | {name: 'æä»¶',tag: 0}, |
| | | ], |
| | | refresh: false, |
| | | keywords: [ |
| | | {keyword: '', type: undefined}, |
| | | {keyword: '', type: 1}, |
| | | {keyword: '', type: 2}, |
| | | {keyword: '', type: 3}, |
| | | {keyword: '', type: 4}, |
| | | ], |
| | | reachBottom: [false, false, false, false, false], |
| | | tabIndex: 0 |
| | | }, |
| | | |
| | | /** |
| | | * ç»ä»¶çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç»ä»¶çæ¹æ³å表 |
| | | */ |
| | | methods: { |
| | | onTabChange(e) { |
| | | this.setData({ |
| | | tabIndex: e.detail |
| | | }) |
| | | } |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": { |
| | | "switch-tab": "/component/switchtab/switchtab", |
| | | "c-result-item-search": "../c_result-item-search/c_result-item-search" |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <switch-tab tabList="{{tabList}}" refresh="{{refresh}}" bindtabchange="onTabChange"> |
| | | <c-result-item-search slot="slot0" reachBottom="{{reachBottom[0]}}" keyobj="{{keyAll}}" data-index="0" bindloadComplete="loadingDone"></c-result-item-search> |
| | | <c-result-item-search slot="slot1" reachBottom="{{reachBottom[1]}}" keyobj="{{key4}}" data-index="1" bindloadComplete="loadingDone"></c-result-item-search> |
| | | <c-result-item-search slot="slot2" reachBottom="{{reachBottom[2]}}" keyobj="{{key3}}" data-index="2" bindloadComplete="loadingDone"></c-result-item-search> |
| | | <c-result-item-search slot="slot3" reachBottom="{{reachBottom[3]}}" keyobj="{{key2}}" data-index="3" bindloadComplete="loadingDone"></c-result-item-search> |
| | | <c-result-item-search slot="slot4" reachBottom="{{reachBottom[4]}}" keyobj="{{key1}}" data-index="4" bindloadComplete="loadingDone"></c-result-item-search> |
| | | </switch-tab> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/m_consult/c_reult-item-tab/c_reult-item-tab.wxss */ |
| | |
| | | }, |
| | | |
| | | onTabChange(e) { |
| | | console.log(e.detail); |
| | | // console.log(e.detail); |
| | | this.setData({ |
| | | tabIndex: e.detail |
| | | }) |
| | |
| | | "usingComponents": { |
| | | "mp-icon": "/component/icon/icon", |
| | | "switch-tab": "/component/switchtab/switchtab", |
| | | "mp-loading": "/component/loading/loading", |
| | | "c-result-item-search": "../c_result-item-search/c_result-item-search" |
| | | } |
| | | } |
| | |
| | | <view wx:elif="{{item.type == 1}}" class="consult-text consult-qa"> |
| | | <switch-tab tabList="{{item.text.tabList}}" refresh="{{item.refresh}}"> |
| | | <block wx:for="{{item.text.pageList}}" wx:key="i" wx:for-item="p" wx:for-index="i"> |
| | | <c-result-item results="{{p}}" loading="{{false}}" needLoadMore="{{false}}" scrollable="{{false}}" slot="slot{{i}}" data-index="{{[index, i]}}" bindgotoMore="gotoMore"></c-result-item> |
| | | <c-result-item results="{{p}}" loading="{{false}}" needLoadMore="{{true}}" scrollable="{{false}}" slot="slot{{i}}" data-index="{{[index, i]}}" bindgotoMore="gotoMore"></c-result-item> |
| | | </block> |
| | | <!-- <c-result-item-search scrollable="{{false}}" slot="slot0" keyobj="{{item.text.key4}}" sPerPage="{{1}}" bindloadComplete="loadComplete"></c-result-item-search> |
| | | <c-result-item-search scrollable="{{false}}" slot="slot1" keyobj="{{item.text.key3}}" sPerPage="{{1}}"></c-result-item-search> |
| | |
| | | */ |
| | | data: { |
| | | keyword: '', |
| | | result: [] |
| | | tabList: [ |
| | | {name: 'å
¨é¨',tag: 0}, |
| | | {name: 'é®ç',tag: 0}, |
| | | {name: 'æ¡ä¾',tag: 0}, |
| | | {name: 'æ¡ç®',tag: 0}, |
| | | {name: 'æä»¶',tag: 0}, |
| | | ], |
| | | refresh: false, |
| | | // keyAll: {keyword: '', type: undefined}, |
| | | // key1: {keyword: '', type: 1}, |
| | | // key2: {keyword: '', type: 2}, |
| | | // key3: {keyword: '', type: 3}, |
| | | // key4: {keyword: '', type: 4}, |
| | | reachBottom: [false, false, false, false, false], |
| | | tabIndex: 0 |
| | | }, |
| | | |
| | | /** |
| | |
| | | this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) { |
| | | console.log(data); |
| | | that.setData({ |
| | | keyword: data.keyword |
| | | keyAll: {keyword: data.keyword, type: undefined}, |
| | | key1: {keyword: data.keyword, type: 1}, |
| | | key2: {keyword: data.keyword, type: 2}, |
| | | key3: {keyword: data.keyword, type: 3}, |
| | | key4: {keyword: data.keyword, type: 4}, |
| | | }) |
| | | |
| | | that.search() |
| | | // that.search() |
| | | }) |
| | | }, |
| | | |
| | | search () { |
| | | var that = this |
| | | wx.showLoading({ |
| | | title: 'æç´¢ä¸', |
| | | mask: true, |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | setTimeout(() => { |
| | | wx.hideLoading() |
| | | }, 20000); |
| | | consultservice.searchLaw(app.globalData.accessToken.userId, this.data.keyword, 1, 5, { |
| | | success (res) { |
| | | let result = [] |
| | | let thisTypeId = '' |
| | | let thisIndex = -1 |
| | | res.forEach(r => { |
| | | r.des = r.des.replaceAll('\\n', '<br/>') |
| | | if (thisTypeId === '' || thisTypeId != r.typeId) { |
| | | thisTypeId = r.typeId |
| | | thisIndex++ |
| | | result.push({ |
| | | typeId: r.typeId, |
| | | typeName: r.typeName, |
| | | contents: [r] |
| | | }) |
| | | } else { |
| | | result[thisIndex].contents.push(r) |
| | | } |
| | | }); |
| | | that.setData({ |
| | | result |
| | | }) |
| | | console.log(result); |
| | | onReachBottom() { |
| | | let reachBottom = [false, false, false, false, false] |
| | | reachBottom[this.data.tabIndex] = true |
| | | this.setData({reachBottom}) |
| | | }, |
| | | complete (res) { |
| | | wx.hideLoading() |
| | | } |
| | | |
| | | loadingDone(e){ |
| | | this.setData({ |
| | | refresh: false |
| | | }) |
| | | this.setData({ |
| | | refresh: true |
| | | }) |
| | | }, |
| | | |
| | | // gotoDetail (e) { |
| | | // const iList = e.currentTarget.dataset.index.split(',') |
| | | // const i1 = iList[0] |
| | | // const i2 = iList[1] |
| | | // const r = this.data.result[i1] |
| | | // switch (r.typeId) { |
| | | // //æ³å¾æ³è§æä»¶ |
| | | // case 1: |
| | | // const fileId = r.contents[i2].id |
| | | // wx.navigateTo({ |
| | | // url: '/pages/m_consult/consultdetail/consultdetail', |
| | | // success: (res) => { |
| | | // // éè¿ eventChannel å被æå¼é¡µé¢ä¼ éæ°æ® |
| | | // res.eventChannel.emit('acceptDataFromOpenerPage', { |
| | | // fileId: fileId |
| | | // }) |
| | | // }, |
| | | // }) |
| | | // break; |
| | | // //æ³å¾æ³è§æ¡ç® |
| | | // case 2: |
| | | |
| | | // break; |
| | | // //æ§æ³æ¡ä¾ |
| | | // case 3: |
| | | |
| | | // break; |
| | | // //ç¯ä¿é®é¢ |
| | | // case 4: |
| | | |
| | | // break; |
| | | // default: |
| | | // break; |
| | | // } |
| | | // }, |
| | | |
| | | gotoMore(e){ |
| | | const typeId = e.currentTarget.dataset.typeid |
| | | const keyword = this.data.keyword |
| | | wx.navigateTo({ |
| | | url: '/pages/m_consult/consultresultmore/consultresultmore', |
| | | success: (res) => { |
| | | // éè¿ eventChannel å被æå¼é¡µé¢ä¼ éæ°æ® |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { |
| | | typeId: typeId, |
| | | keyword: keyword |
| | | }) |
| | | }, |
| | | onTabChange(e) { |
| | | console.log(e.detail); |
| | | this.setData({ |
| | | tabIndex: e.detail |
| | | }) |
| | | } |
| | | }) |
| | |
| | | "navigationBarBackgroundColor": "#57E4CB", |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": { |
| | | "mp-icon": "/component/icon/icon" |
| | | "mp-icon": "/component/icon/icon", |
| | | "switch-tab": "/component/switchtab/switchtab", |
| | | "c-result-item-search": "../c_result-item-search/c_result-item-search" |
| | | } |
| | | } |
| | |
| | | <import src="/template/nodata.wxml"></import> |
| | | |
| | | <view class="page"> |
| | | <block wx:if="{{result.length > 0}}"> |
| | | <block wx:for="{{result}}" wx:key="i1" wx:for-item="catagory" wx:for-index="i1"> |
| | | <view class="page__hd"> |
| | | <!-- <block wx:if="{{result.length > 0}}"> |
| | | <block wx:for="{{result}}" wx:key="i1" wx:for-item="catagory" wx:for-index="i1"> |
| | | <view><text style="color: #57E4CB;">{{keyword}}</text>ç{{catagory.typeName}} ></view> |
| | | </view> |
| | | <view class="page__bd"> |
| | | <view class="fyui-panel"> |
| | | <block wx:if="{{catagory.typeId === 1}}"> |
| | | <view wx:for="{{catagory.contents}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoDetail"> |
| | |
| | | <rich-text nodes="{{item.des}}" class="fyui-box__content des subtitle"></rich-text> |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <!-- <view class="fyui-box__content tag">ç¸å
³è¡ä¸ -> {{item.fileIndustry}}</view> --> |
| | | <text class="tag2">æå±ç« èï¼{{item.chapterName}} {{item.name ? ' ' + item.name : ''}}</text> |
| | | <text class="tag2">æå±æä»¶ï¼ã{{item.fileName}}ã</text> |
| | | <text class="tag2" wx:if="{{item.referenceNumber}}">æå±æå·ï¼{{item.referenceNumber}}</text> |
| | |
| | | <text class="tag3 {{item.effective? '' : 'tag3_disable'}}">{{item.effective ? 'çæä¸':'已失æ' }}</text> |
| | | <text class="tag3 {{item.relatedItems? '' : 'tag3_disable'}}">{{item.relatedItems ? 'å
³èæ¡ç®' + item.relatedItems + '个 >':'æ å
³èæ¡ç®' }}</text> |
| | | <text class="tag3 {{item.relatedCases? '' : 'tag3_disable'}}">{{item.relatedCases ? 'å
³èæ¡ä¾' + item.relatedCases + '个 >':'æ å
³èæ¡ä¾' }}</text> |
| | | <!-- <text class="keyword">å
³é®è¯ï¼</text> |
| | | <view class="keyword-item"><text wx:for="{{item.keywords}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text></view> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </block> |
| | | </view> |
| | | <view class="btn-more" data-typeid="{{catagory.typeId}}" bindtap="gotoMore">æ¥çæ´å¤</view> |
| | | </block> |
| | | </block> |
| | | <template wx:else is="nodataPage"></template> --> |
| | | |
| | | <switch-tab tabList="{{tabList}}" refresh="{{refresh}}" bindtabchange="onTabChange"> |
| | | <c-result-item-search slot="slot0" reachBottom="{{reachBottom[0]}}" keyobj="{{keyAll}}" data-index="0" bindloadComplete="loadingDone"></c-result-item-search> |
| | | <c-result-item-search slot="slot1" reachBottom="{{reachBottom[1]}}" keyobj="{{key4}}" data-index="1" bindloadComplete="loadingDone"></c-result-item-search> |
| | | <c-result-item-search slot="slot2" reachBottom="{{reachBottom[2]}}" keyobj="{{key3}}" data-index="2" bindloadComplete="loadingDone"></c-result-item-search> |
| | | <c-result-item-search slot="slot3" reachBottom="{{reachBottom[3]}}" keyobj="{{key2}}" data-index="3" bindloadComplete="loadingDone"></c-result-item-search> |
| | | <c-result-item-search slot="slot4" reachBottom="{{reachBottom[4]}}" keyobj="{{key1}}" data-index="4" bindloadComplete="loadingDone"></c-result-item-search> |
| | | </switch-tab> |
| | | </view> |
| | | </block> |
| | | </block> |
| | | <template wx:else is="nodataPage"></template> |
| | | |
| | | <view class="page__ft"></view> |
| | | </view> |
| | |
| | | // pages/m_consult/consultresultmore/consultresultmore.js |
| | | const consultservice = require("../../../service/consultservice") |
| | | const app = getApp() |
| | | const behavior = require('../behaviors/behConsultItem') |
| | | |
| | | Page({ |
| | | behaviors: [behavior], |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | // result: [] |
| | | keyobj: {keyword: null, type: undefined}, |
| | | typeName: '', |
| | | //䏿»è§¦åºå è½½ |
| | | reachBottom: false |
| | | }, |
| | | |
| | | /** |
| | |
| | | onLoad(options) { |
| | | var that = this |
| | | this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) { |
| | | console.log('getOpenerEventChannel:'); |
| | | console.log(data); |
| | | that.setData({ |
| | | keyobj: { |
| | | keyword: data.keyword, |
| | | typeId: data.typeId, |
| | | type: data.typeId, |
| | | }, |
| | | typeName: app.cosultTypeName(data.typeId) |
| | | }) |
| | | |
| | | that.search(1) |
| | | }) |
| | | }, |
| | | |
| | | onReachBottom () { |
| | | console.log('onReachBottom'); |
| | | if (this.cPage && this.tPage) { |
| | | if (this.cPage < this.tPage) { |
| | | this.search(this.cPage + 1) |
| | | } |
| | | } |
| | | }, |
| | | |
| | | search (cPage = 1) { |
| | | var that = this |
| | | wx.showLoading({ |
| | | title: 'æç´¢ä¸', |
| | | mask: true, |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | this.setData({ |
| | | reachBottom: true |
| | | }) |
| | | setTimeout(() => { |
| | | wx.hideLoading() |
| | | }, 20000); |
| | | consultservice.searchLaw(app.globalData.accessToken.userId, this.data.keyword, cPage, 5, { |
| | | onPage(head){ |
| | | that.cPage = head.page |
| | | that.tPage = head.totalPage |
| | | }, |
| | | success (res) { |
| | | let result = that.data.result |
| | | res.forEach(r => { |
| | | r.des = r.des.replaceAll('\\n', '<br/>') |
| | | if (result.length === 0) { |
| | | result.push({ |
| | | typeId: r.typeId, |
| | | typeName: r.typeName, |
| | | contents: [r] |
| | | }) |
| | | } else { |
| | | result[0].contents.push(r) |
| | | } |
| | | }); |
| | | that.setData({ |
| | | result |
| | | }) |
| | | console.log(result); |
| | | }, |
| | | complete (res) { |
| | | wx.hideLoading() |
| | | } |
| | | }, this.data.typeId) |
| | | }, |
| | | }) |
| | |
| | | "navigationBarTitleText": "æ´å¤ç»æ", |
| | | "navigationBarBackgroundColor": "#57E4CB", |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": {} |
| | | "usingComponents": { |
| | | "c-result-item-search": "../c_result-item-search/c_result-item-search" |
| | | } |
| | | } |
| | |
| | | <!--pages/m_consult/consultresultmore/consultresultmore.wxml--> |
| | | <view class="page"> |
| | | <block wx:for="{{result}}" wx:key="i1" wx:for-item="catagory" wx:for-index="i1"> |
| | | <view class="page__hd"> |
| | | <view><text style="color: #57E4CB;">{{keyword}}</text>ç{{catagory.typeName}} ></view> |
| | | <view><text style="color: #57E4CB;">{{keyobj.keyword}}</text>ç{{typeName}} ></view> |
| | | </view> |
| | | <view class="page__bd"> |
| | | <view class="fyui-panel"> |
| | | <block wx:if="{{catagory.typeId === 1}}"> |
| | | <view wx:for="{{catagory.contents}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoDetail"> |
| | | <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | {{item.name}} |
| | | <c-result-item-search reachBottom="{{reachBottom}}" keyobj="{{keyobj}}"></c-result-item-search> |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content tag">ç¸å
³è¡ä¸ -> {{item.fileIndustry}}</view> |
| | | <view class="fyui-box__content des">{{item.des}}</view> |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <text class="keyword">å
³é®è¯ï¼</text> |
| | | <view class="keyword-item"><text wx:for="{{item.keywords}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text></view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </block> |
| | | <block wx:else="{{catagory.typeId === 2}}"> |
| | | <view wx:for="{{catagory.contents}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoDetail"> |
| | | <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | <rich-text nodes="{{item.des}}" class="fyui-box__content des subtitle"></rich-text> |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <!-- <view class="fyui-box__content tag">ç¸å
³è¡ä¸ -> {{item.fileIndustry}}</view> --> |
| | | <text class="tag2">æ¥æºï¼ã{{item.fileName}}ã {{item.chapterName}}{{item.name ? ' ' + item.name : ''}}</text> |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <text class="keyword">å
³é®è¯ï¼</text> |
| | | <view class="keyword-item"><text wx:for="{{item.keywords}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text></view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </block> |
| | | </view> |
| | | </view> |
| | | </block> |
| | | <view class="page__ft"></view> |
| | | </view> |
| | |
| | | /* pages/m_consult/consultresult/consultresult.wxss */ |
| | | .keyword { |
| | | white-space: nowrap; |
| | | } |
| | | .keyword-item { |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | .keyword-item>text { |
| | | white-space: nowrap; |
| | | margin-right: 8px; |
| | | padding: 0px 6px; |
| | | color: #2c7064; |
| | | } |
| | | |
| | | .des { |
| | | display: -webkit-box; |
| | | -webkit-box-orient: vertical; |
| | | -webkit-line-clamp: 4; |
| | | width: 100%; |
| | | overflow: hidden; |
| | | /* text-overflow: ellipsis; */ |
| | | } |
| | | |
| | | .tag { |
| | | margin-bottom: 8px; |
| | | } |
| | | |
| | | .subtitle{ |
| | | font-size: 15px; |
| | | } |
| | | |
| | | .tag2{ |
| | | font-size: 12px; |
| | | color: var(--fyui-text-color_3); |
| | | } |
| | | |
| | | .btn-more{ |
| | | text-align: center; |
| | | background-color: white; |
| | | margin: 0 10px; |
| | | border-top: 1px solid var(--fyui-BG_1); |
| | | color: var(--fyui-text-color_2); |
| | | padding: 8px; |
| | | font-size: 12px; |
| | | } |
| | | |
| | | .btn-more:active{ |
| | | background-color: var(--fyui-BG-COLOR-ACTIVE); |
| | | .page__hd { |
| | | padding-bottom: 8px; |
| | | } |
| | |
| | | break; |
| | | //è§é¢ |
| | | case 4: |
| | | url = "/pages/m_common/pagevideo/pagevideo" |
| | | url = "/pages/m_learn/p_learnvideo/p_learnvideo" |
| | | break; |
| | | } |
| | | if (url != "") { |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_common/pagevideo/pagevideo.js |
| | | import ListPage from '../../../base/ListPage' |
| | | import b_fetch from '../behaviors/b_fetch' |
| | | |
| | | const lawservice = require("../../../service/lawservice") |
| | | const moment = require('../../../utils/moment.min') |
| | | const app = getApp() |
| | | |
| | | ListPage({ |
| | | behaviors: [b_fetch], |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | video: {}, |
| | | series: [], |
| | | |
| | | thisVideo: 1, |
| | | showDialog: false, |
| | | groups: [ |
| | | 'actionSlot1', |
| | | ] |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | var that = this |
| | | this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) { |
| | | setTimeout(() => { |
| | | that.setData({ |
| | | video: data |
| | | }) |
| | | }, 500); |
| | | |
| | | // 页颿 é¢ |
| | | if (data.lrResourcetitle) { |
| | | wx.setNavigationBarTitle({ |
| | | title: data.lrResourcetitle, |
| | | }) |
| | | } |
| | | |
| | | // è§é¢æå¨åé |
| | | if (data.lrExtension2 && data.lrExtension2 != '') { |
| | | if (data.lrExtension3) { |
| | | that.setData({ |
| | | thisVideo: parseInt(data.lrExtension3) |
| | | }) |
| | | } |
| | | that.getSerise(data.lrExtension2) |
| | | } |
| | | }) |
| | | |
| | | this.getResources({fileType: 4}) |
| | | }, |
| | | |
| | | getSerise(seriesId) { |
| | | var that = this |
| | | lawservice.getSerise(app.globalData.userInfo.guid, seriesId, { |
| | | success(data) { |
| | | that.setData({ |
| | | series: data |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | | showSeries() { |
| | | this.setData({ |
| | | showDialog: true |
| | | }) |
| | | }, |
| | | |
| | | selectVideo(e) { |
| | | let thisVideo = e.currentTarget.dataset.index |
| | | const video = this.data.series[thisVideo] |
| | | thisVideo++ |
| | | this.setData({ |
| | | video, |
| | | thisVideo, |
| | | showDialog: false |
| | | }) |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "è§é¢ææ¾", |
| | | "navigationBarBackgroundColor": "#65EAD2", |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": { |
| | | "mp-icon": "/component/icon/icon", |
| | | "c-learn-item": "../base_c/c_learn-item/c_learn-item", |
| | | "mp-actionSheet": "/component/actionsheet/actionsheet" |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_common/pagevideo/pagevideo.wxml--> |
| | | <view class="page"> |
| | | <view class="page__hd"> |
| | | <video class="video" id="myVideo" src="{{video.lrBodyurl}}" binderror="videoErrorCallback" show-center-play-btn='{{false}}' show-play-btn="{{true}}" controls autoplay custom-cache="{{false}}" poster="{{video.lrPicurl}}" picture-in-picture-mode="{{['push', 'pop']}}" bindenterpictureinpicture='bindVideoEnterPictureInPicture' bindleavepictureinpicture='bindVideoLeavePictureInPicture'></video> |
| | | </view> |
| | | <view class="page__bd"> |
| | | <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | {{video.lrResourcetitle}} |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content">{{video.lrResourcedesc}}</view> |
| | | |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <view>{{video.lrPublishdate}}</view> |
| | | <view class="flex-h"> |
| | | <image src="/res/icons/view.png" class="icon" style="margin-right: 4px;"></image>{{video.views}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view> |
| | | <view wx:if="{{series.length > 0}}" class="fyui-box fyui-box__text"> |
| | | <view class="video-series" bindtap="showSeries"> |
| | | <view>è§é¢åé({{thisVideo}}/{{series.length}})</view> |
| | | <mp-icon icon="arrow" class="icon-down" size="14" color="#7F7F7F"></mp-icon> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="page__ft"> |
| | | <view class="title">ç¸å
³è§é¢</view> |
| | | <!-- <c-learn-item results="{{results}}" loading="{{loading}}" needLoadMore="{{needLoadMore}}"></c-learn-item> --> |
| | | |
| | | <view wx:for="{{results}}" wx:key="index" wx:item="item"> |
| | | <view class="fyui-box" bindtap="gotoResource" data-index="{{index}}"> |
| | | <view class="fyui-box__hd"> |
| | | <image src="{{item.lrPicurl}}" class="" mode="aspectFill" /> |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content">{{item.lrResourcetitle}}</view> |
| | | <view class="fyui-box__tag"> |
| | | <view>{{item.lrPublishdate}}</view> |
| | | <view class="flex-h"> |
| | | <image src="/res/icons/view.png" class="icon" style="margin-right: 4px;"></image>{{item.views}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <mp-actionSheet show="{{showDialog}}" actions="{{groups}}" showCancel="{{false}}"> |
| | | <view slot="actionSlot1" class="custom-action"> |
| | | <view class="custom-action__series"> |
| | | <view wx:for="{{series}}" wx:key="index" data-index="{{index}}" bindtap="selectVideo"> |
| | | <view class="custom-action__video {{thisVideo == index + 1 ? 'selected' : ''}}"> |
| | | {{index+1}}. {{item.lrResourcetitle}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </mp-actionSheet> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/module_common/pagevideo/pagevideo.wxss */ |
| | | .page__hd{ |
| | | padding: 0; |
| | | } |
| | | |
| | | .page__ft{ |
| | | text-align: left; |
| | | } |
| | | |
| | | .video{ |
| | | width: 100%; |
| | | } |
| | | |
| | | .video-series { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | border: 1px solid var(--fyui-BG_1); |
| | | border-radius: 4px; |
| | | padding: 2px 16px; |
| | | font-size: 14px; |
| | | color: var(--fyui-text-color_2); |
| | | } |
| | | |
| | | .title{ |
| | | text-align: start; |
| | | padding: 0 16px; |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | } |
| | | |
| | | .fyui-box__content { |
| | | text-align: start; |
| | | } |
| | | |
| | | .custom-action { |
| | | position: relative; |
| | | min-height: 40vh; |
| | | } |
| | | |
| | | .custom-action__series { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | /* background-color: blueviolet; */ |
| | | } |
| | | |
| | | .custom-action__series>view { |
| | | width: 50%; |
| | | /* background-color: rosybrown; */ |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | padding: 4px 0; |
| | | } |
| | | |
| | | .custom-action__video { |
| | | width: 86%; |
| | | color: var(--fyui-text-color_2); |
| | | border: 1px solid var(--fyui-text-color_2); |
| | | border-radius: 4px; |
| | | padding: 2px 4px; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | |
| | | .selected{ |
| | | color: white; |
| | | border: 1px solid var(--fyui-primary-color); |
| | | background-color: var(--fyui-primary-color); |
| | | } |
| | |
| | | </view> |
| | | <view class="fyui-cell fyui-cell_select title" bindtap="goto" data-index="3"> |
| | | <view class="fyui-cell__hd"> |
| | | <image src="/res/icons/icon5.png" class="icon" /> |
| | | <image src="/res/icons/my_favor.png" class="icon" /> |
| | | </view> |
| | | <view class="fyui-cell__bd">æçæ¶è</view> |
| | | <view class="fyui-cell__ft"></view> |
| | | </view> |
| | | <view class="fyui-cell fyui-cell_select title" bindtap="goto" data-index="4"> |
| | | <view class="fyui-cell__hd"> |
| | | <image src="/res/icons/icon5.png" class="icon" /> |
| | | <image src="/res/icons/my_consult.png" class="icon" /> |
| | | </view> |
| | | <view class="fyui-cell__bd">æè¦å¨è¯¢</view> |
| | | <view class="fyui-cell__ft"></view> |
| | | </view> |
| | | <view class="fyui-cell fyui-cell_select title" bindtap="goto" data-index="5"> |
| | | <view class="fyui-cell__hd"> |
| | | <image src="/res/icons/icon5.png" class="icon" /> |
| | | <image src="/res/icons/my_schedule.png" class="icon" /> |
| | | </view> |
| | | <view class="fyui-cell__bd">ç¯ä¿æ¥ç¨</view> |
| | | <view class="fyui-cell__ft"></view> |
| | |
| | | padding-bottom: 30px; |
| | | } |
| | | |
| | | .fyui-cell_select { |
| | | font-size: 16px; |
| | | padding-top: 12px; |
| | | padding-bottom: 12px; |
| | | border-bottom: 1px solid var(--fyui-BG_1); |
| | | } |
| | | |
| | | .flex-h { |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | |
| | | desc: 'ç¨äºæ¾ç¤ºï¼æç¤ºç¨æ·å½åå·²ç»å½', |
| | | success(res) { |
| | | console.log(res); |
| | | // wx.login({ |
| | | // timeout: 10000, |
| | | // success: (result) => { |
| | | // console.log(result); |
| | | // }, |
| | | // fail: (res) => {}, |
| | | // complete: (res) => {}, |
| | | // }) |
| | | |
| | | that.login() |
| | | } |
| | |
| | | |
| | | const originProperties = ['url', 'data', 'header', 'method', 'success', 'fail', 'complete']; |
| | | // const baseUrl = "http://127.0.0.1:8080" |
| | | // const baseUrl = "http://192.168.0.106:8080" |
| | | const baseUrl = "https://fyami.com.cn:447" |
| | | const baseUrl = "http://192.168.0.111:8080" |
| | | // const baseUrl = "https://fyami.com.cn:447" |
| | | // const basePicUrl = baseUrl + "/images/" |
| | | const basePicUrl = "https://fyami.com.cn:447/images/" |
| | | const baseIconUrl = "https://fyami.com.cn:447/images/weixin/eplaw/" |
| | |
| | | } |
| | | var fun1 = util.deepCopy(fun) |
| | | fun1.success = function (res) { |
| | | console.log("--------------请æ±ç»æ----------------" + fun.url); |
| | | // console.log("--------------请æ±ç»æ----------------"); |
| | | console.log("|--访é®: " + fun.url); |
| | | console.log(res); |
| | | |
| | | if (fun.onHead) { |
| | |
| | | |
| | | $f.post(fun1) |
| | | }, |
| | | |
| | | //è·åèµæºæå¨ç³»å |
| | | getSerise: function (userId, seriesId, fun) { |
| | | let cb = { |
| | | url: `/laws/series`, |
| | | params: { |
| | | userId: userId, |
| | | seriesId: seriesId |
| | | }, |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | let fun1 = util.deepCopy(cb) |
| | | fun1.success = function (res) { |
| | | res.forEach(r => { |
| | | r.lrPicurl = $f.basePicUrl + r.lrPicurl |
| | | r.lrBodyurl = $f.baseFileUrl + r.lrBodyurl |
| | | }); |
| | | cb.success(res) |
| | | } |
| | | |
| | | $f.post(fun1) |
| | | }, |
| | | } |