已修改29个文件
已删除3个文件
已添加18个文件
| | |
| | | // // åé res.code å°åå°æ¢å openId, sessionKey, unionId |
| | | // } |
| | | // }) |
| | | console.log('onLaunch'); |
| | | }, |
| | | globalData: { |
| | | userInfo: null, |
| | | accessToken: null, |
| | | isLogin: false |
| | | } |
| | | }) |
| | |
| | | "pages/promise/promise", |
| | | "pages/assessment/assessment", |
| | | "pages/mine/mine", |
| | | "pages/learn/learn", |
| | | "pages/module_learn/learn/learn", |
| | | "pages/grade/grade", |
| | | "pages/gradedetail/gradedetail", |
| | | "pages/promisefile/promisefile", |
| | |
| | | "pages/icons/icons", |
| | | "pages/module_common/pagevideo/pagevideo", |
| | | "pages/module_consult/consultresultmore/consultresultmore", |
| | | "pages/module_consult/consultdetailitem/consultdetailitem" |
| | | "pages/module_consult/consultdetailitem/consultdetailitem", |
| | | "pages/module_learn/learfile/learnfile", |
| | | "pages/module_learn/learncase/learncase" |
| | | ], |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | wx.createSelectorQuery().in(this) |
| | | .select("#canvasProgressbg") |
| | | .context(function (res) { |
| | | console.log("èç¹å®ä¾ï¼", res); |
| | | // console.log("èç¹å®ä¾ï¼", res); |
| | | // èç¹å¯¹åºç Canvas å®ä¾ã |
| | | ctx = res.context; |
| | | ctx.setLineWidth(8); // 设置åç¯ç宽度 |
| | |
| | | wx.createSelectorQuery().in(this) |
| | | .select("#canvasProgress") |
| | | .context(function (res) { |
| | | console.log("èç¹å®ä¾ï¼", res); // èç¹å¯¹åºç Canvas å®ä¾ã |
| | | // console.log("èç¹å®ä¾ï¼", res); // èç¹å¯¹åºç Canvas å®ä¾ã |
| | | ctx = res.context; |
| | | // 设置æ¸å |
| | | var gradient = ctx.createLinearGradient(0, 0, 0, 200); |
| | |
| | | this.ecComponent = this.selectComponent('#mychart-dom-line'); |
| | | this.initChart() |
| | | // }, 1000); |
| | | |
| | | wx.startPullDownRefresh({ |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | |
| | | */ |
| | | onShow: function () { |
| | | var that = this |
| | | wx.startPullDownRefresh({ |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | }, |
| | | |
| | | onPullDownRefresh(){ |
| | |
| | | text1: "", |
| | | text2: "æ¬æ¬¡æµè¯å·²å®æ", |
| | | text3: "æ¥ç详æ
", |
| | | hasScore: true |
| | | }) |
| | | } else { |
| | | that.setData({ |
| | |
| | | text2: "è¯·å°½å¿«å®ææµè¯", |
| | | text3: "廿µè¯", |
| | | score: undefined, |
| | | hasScore: false |
| | | }) |
| | | } |
| | | |
| | |
| | | color: d.color, |
| | | rank: d.rank, |
| | | level: d.level, |
| | | period: d.period, |
| | | time: d.period.replace('/', 'å¹´').replace(/\-[0-9]+/, 'æ'), |
| | | scoreId: d.tPGuid |
| | | scoreId: d.tPGuid, |
| | | updateTime: moment(d.updateDate).format('YYYY-MM-DD hh:mm') |
| | | }) |
| | | |
| | | //æçº¿å¾æ°æ® |
| | |
| | | <view class="title">{{text1}}</view> |
| | | <view class="title">{{text2}}</view> |
| | | <view class="tag">æµè¯æªæ¢æ¶é´ï¼{{deadline}}</view> |
| | | <image wx:if="{{hasScore}}" src="/res/icons/complete.png" class="t-image" mode="aspectFit"></image> |
| | | </view> |
| | | <view class="btn" bindtap="goto" data-index="0">{{text3}}</view> |
| | | </view> |
| | |
| | | |
| | | <view class="page__bd"> |
| | | <view style="margin-left: 10px;">åç±»æµè¯</view> |
| | | <view class="top-card top-card_main"> |
| | | <image src="/res/icons/ass_1.png" mode="aspectFit"></image> |
| | | <view class="top-card top-card_main" bindtap="goto" data-index="0"> |
| | | <image src="/res/icons/ass_3.png" mode="aspectFit"></image> |
| | | <view> |
| | | <view class="top-card__name">综åèªæµæºè¯</view> |
| | | <view class="top-card__name">宿³èªæµæºè¯</view> |
| | | <view class="top-card__tag">ç¹å»è¿è¡æµè¯ ></view> |
| | | </view> |
| | | <!-- <mp-icon icon="arrow" class="" size="15" color="white"></mp-icon> --> |
| | |
| | | <view class="flex-h"> |
| | | <view class="flex-h_block"> |
| | | <view class="top-card"> |
| | | <image src="/res/icons/ass_1.png" mode="aspectFit"></image> |
| | | <image src="/res/icons/ass_2.png" mode="aspectFit"></image> |
| | | <view> |
| | | <view class="top-card__name">å
¶ä»ä¸é¡¹èªæµ</view> |
| | | <view class="top-card__name">ç¢³ææ¾æºè½ä¼°ç®</view> |
| | | <view class="top-card__tag">ç¹å»è¿è¡æµè¯ ></view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="flex-h_block"> |
| | | <view class="top-card top-card_2"> |
| | | <image src="/res/icons/ass_2.png" mode="aspectFit"></image> |
| | | <image src="/res/icons/ass_1.png" mode="aspectFit"></image> |
| | | <view> |
| | | <view class="top-card__name">ç¢³ææ¾æºè½ä¼°ç®</view> |
| | | <view class="top-card__name">å
¶ä»ä¸é¡¹èªæµ</view> |
| | | <view class="top-card__tag">ç¹å»è¿è¡æµè¯ ></view> |
| | | </view> |
| | | </view> |
| | |
| | | <view style="flex: 1;"> |
| | | <view class="history_time">{{item.time}}</view> |
| | | <view class="h-cell fyui-panel"> |
| | | <view class="h-tag">{{item.updateTime}}</view> |
| | | <view class="h-line_1"> |
| | | <view class="flex-h"> |
| | | <view class="h-score" style="background-color: {{item.color}};"> |
| | |
| | | <view>é£é©ç级ï¼{{item.level}}</view> |
| | | </view> |
| | | </view> |
| | | <view data-id="{{item.scoreId}}" class="h-btn" bindtap="goto" data-index="1" data-period="{{item.time}}">å»çç</view> |
| | | <view data-id="{{item.scoreId}}" class="h-btn" bindtap="goto" data-index="1" data-period="{{item.period}}">å»çç</view> |
| | | </view> |
| | | <!-- <view class="h-line_2"> |
| | | <view data-id="{{item.scoreId}}" class="h-btn" bindtap="goto" data-index="1" data-period="{{item.time}}">å»çç</view> |
| | |
| | | margin-top: 8px; |
| | | } |
| | | |
| | | .page__hd .t-image { |
| | | width: 100px; |
| | | height: 100px; |
| | | } |
| | | |
| | | .page__hd .btn { |
| | | border-radius: 20px; |
| | | line-height: 20px; |
| | |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .h-tag{ |
| | | position: absolute; |
| | | color: var(--fyui-text-color_3); |
| | | font-size: 12px; |
| | | text-align: end; |
| | | bottom: 0; |
| | | right: 8px; |
| | | } |
| | | |
| | | .flex-h_block { |
| | | flex: 1; |
| | | } |
| | |
| | | .top-card { |
| | | position: relative; |
| | | border-radius: 4px; |
| | | background: linear-gradient(90deg, #87CEB2, #6CD398); |
| | | background: linear-gradient(90deg, #A3D9F5, #88E1EC); |
| | | color: white; |
| | | padding: 8px; |
| | | margin-left: 10px; |
| | |
| | | } |
| | | |
| | | .top-card_2 { |
| | | background: linear-gradient(90deg, #A3D9F5, #88E1EC); |
| | | background: linear-gradient(90deg, #87CEB2, #6CD398); |
| | | margin-left: 2px; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .top-card_main { |
| | | background: linear-gradient(90deg, #55E2C9, #b6e9dc); |
| | | margin-left: 10px; |
| | | margin-right: 10px; |
| | | margin-bottom: 4px; |
| | |
| | | } |
| | | |
| | | .top-card .top-card__name { |
| | | font-size: 12px; |
| | | font-size: 14px; |
| | | /* width: 100%; */ |
| | | /* font-weight: 600; */ |
| | | /* text-align: center; */ |
| | |
| | | itemlist: [] |
| | | } |
| | | rule.forEach(r => { |
| | | // fixme : æ¤å¤ææ¶å°ãé¤é¥®ãç±»åçä¼ä¸è¯ä¼°å»ºè®®ç第ä¸å¥è¯å é¤ |
| | | if (app.globalData.userInfo.extension2 === '1') { |
| | | const i = r.third.indexOf('ï¼') |
| | | r.third = r.third.slice(i+1) |
| | | r.third = r.third.replace('ä½ ', 'æ¨') |
| | | } |
| | | p.itemlist.push({ |
| | | ruleName: r.first, |
| | | score: r.second, |
| | |
| | | <!-- å¤±åæ¡ç® --> |
| | | <view class="fyui-panel fyui-panel__max"> |
| | | <view class="fyui-panel_title">èªè¯è¯æ</view> |
| | | <view> |
| | | <view wx:if="{{losePoints.length > 0}}"> |
| | | æ¬æ¬¡æµè¯ä¸»è¦å¤±åç±»å«ä¸º<text style="color: orange;font-weight: 600;font-size: 16px;" wx:for="{{losePointsItem}}" wx:key="index">{{index > 0 ? "ã" : ""}}{{item}}</text> |
| | | ï¼å
±è®¡<text style="color: orange;font-weight: 600;font-size: 18px;">{{losePoints.length}}</text>项ï¼å
·ä½æ
åµå¦ä¸ï¼ |
| | | çå
±è®¡<text style="color: orange;font-weight: 600;font-size: 18px;">{{losePoints.length}}</text>项ï¼å
·ä½é®é¢è¯æå建议å¦ä¸ï¼ |
| | | </view> |
| | | <view wx:else="">æ¨æ¬æ¬¡èªè¯æ»¡åï¼ææ è¯æå»ºè®®ã</view> |
| | | <block wx:for="{{losePoints}}" wx:key="index"> |
| | | <view class="{{index !=0 ? 'first' : ''}}"> |
| | | <view class="fyui-panel_title">{{index + 1}}. ã<text style="color: orange;">{{item.baseRule}}</text>ã{{item.name}}</view> |
| | |
| | | <view>é®é¢ï¼</view>{{rule.ruleName}} |
| | | </view> |
| | | <view class="fyui-panel_desc"> |
| | | <view>失åï¼</view><text style="color: orange;">{{rule.score}}å</text> |
| | | <view>æ£åï¼</view><text style="color: orange;">{{rule.score}}å</text> |
| | | </view> |
| | | <view class="fyui-panel_desc"> |
| | | <view>建议ï¼</view>{{rule.remark}} |
| | |
| | | this.getLedgerType() |
| | | }, |
| | | |
| | | onShow(){ |
| | | if (app.globalData.isLogin) { |
| | | |
| | | } |
| | | }, |
| | | |
| | | onPullDownRefresh(){ |
| | | console.log('onPullDownRefresh'); |
| | | wx.stopPullDownRefresh({ |
| | |
| | | break; |
| | | case "3": |
| | | //å¨çº¿å®æ³å¦ä¹ |
| | | url = `/pages/learn/learn` |
| | | url = `/pages/module_learn/learn/learn` |
| | | break; |
| | | case "4": |
| | | //宿³å¨æ |
| | |
| | | <view class="flex-h"> |
| | | <view class="flex-h_block"> |
| | | <view class="top-card" bindtap="goto" data-index="0"> |
| | | <view> |
| | | <view class="top-card__score"><text class="top-card__num">{{historyPoint.score}}</text>å</view> |
| | | <view class="top-card__time">èªæµæºè¯å¾å ></view> |
| | | <image src="/res/icons/wm_assessment.png"></image> |
| | | </view> |
| | | <view class="top-card__items"> |
| | | <view class="top-card__item"> |
| | | <view>宿³æå</view> |
| | | <text>{{historyPoint.rank}}</text> |
| | | </view> |
| | | <view class="top-card__item"> |
| | | <view>宿³ææ°</view> |
| | | <text>{{historyPoint.legalIndex}}</text> |
| | | </view> |
| | | <!-- <view class="top-card__item"> |
| | | <view>è¿æ³ææ°</view> |
| | | <text>{{historyPoint.illegalIndex}}</text> |
| | | </view> --> |
| | | </view> |
| | | <image src="/res/icons/wm_assessment.png" mode="aspectFit"></image> |
| | | </view> |
| | | </view> |
| | | <view class="flex-h_block"> |
| | | <view class="top-card top-card_2" bindtap="goto" data-index="5"> |
| | | <view> |
| | | <view class="top-card__score"><text class="top-card__num">{{monthInfo.percent}}</text>%</view> |
| | | <view class="top-card__time">å°è´¦å®æç ></view> |
| | | <image src="/res/icons/wm_ledger.png"></image> |
| | | </view> |
| | | <image src="/res/icons/wm_ledger.png" mode="aspectFit"></image> |
| | | </view> |
| | | <view class="top-card top-card_3" bindtap="goto" data-index="6"> |
| | | <view> |
| | | <view class="top-card__score">{{promsieInfo.leftDays > 0 ? 'å©ä½' : '失æ'}} |
| | | <text class="top-card__num">{{promsieInfo.leftDays > 0 ? promsieInfo.leftDays : 0 - promsieInfo.leftDays}}</text>天 |
| | | </view> |
| | | <view class="top-card__time">æ¿è¯ºåè®¡æ¶ ></view> |
| | | <image src="/res/icons/wm_commitment.png"></image> |
| | | </view> |
| | | <image src="/res/icons/wm_commitment.png" mode="aspectFit"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | |
| | | .page__title { |
| | | margin-left: 10px; |
| | | font-size: 18px; |
| | | color: var(--fyui-text-color_1); |
| | | /* font-weight: 600; */ |
| | | } |
| | | |
| | | .flex-h_block{ |
| | |
| | | margin-left: 10px; |
| | | margin-right: 2px; |
| | | height: 20vh; |
| | | text-align: center; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .top-card_2 { |
| | |
| | | height: 8.5vh; |
| | | background-color: #DDEEFF; |
| | | color: #2B7BCB; |
| | | text-align: start; |
| | | } |
| | | |
| | | .top-card_3 { |
| | |
| | | height: 8.5vh; |
| | | background-color: #FAFCF0; |
| | | color: #859438; |
| | | text-align: start; |
| | | } |
| | | |
| | | .top-card>image{ |
| | | width: 15vh; |
| | | height: 18vh; |
| | | width: 12vh; |
| | | height: 12vh; |
| | | position: absolute; |
| | | bottom: 0px; |
| | | right: 0px; |
| | | opacity: 0.6; |
| | | } |
| | | |
| | | .top-card_2>image{ |
| | | width: 13vw; |
| | | height: 14vw; |
| | | opacity: 0.5; |
| | | } |
| | | |
| | | .top-card_3>image{ |
| | | width: 13vw; |
| | | height: 14vw; |
| | | opacity: 0.5; |
| | | } |
| | | |
| | | .top-card .top-card__time { |
| | |
| | | } |
| | | |
| | | .top-card__items .top-card__item view { |
| | | color: #ffffffde; |
| | | /* color: #ffffffde; */ |
| | | font-size: 12px; |
| | | } |
| | | |
| | |
| | | userRealName: app.globalData.userInfo.realname |
| | | }) |
| | | }, |
| | | |
| | | logout() { |
| | | wx.reLaunch({ |
| | | url: '/pages/module_user/userlogin/userlogin', |
| | | }) |
| | | } |
| | | }) |
| | |
| | | <view class="page"> |
| | | <view class="page__hd"> |
| | | <view class="flex-h"> |
| | | <image class="user-icon" src="/res/icons/btn_bg_4.png" mode="aspectFill"></image> |
| | | <image class="user-icon" src="/res/icons/learn_2.png" mode="aspectFill"></image> |
| | | <view class="flex-v"> |
| | | <view class="user-name">{{userRealName}}</view> |
| | | <view class="user-tag"></view> |
| | |
| | | </view> |
| | | |
| | | <view class="page__ft"> |
| | | <view class="logout" bindtap="onSubmit">éåºè´¦æ·</view> |
| | | <view class="logout" bindtap="logout">éåºè´¦æ·</view> |
| | | </view> |
| | | </view> |
| | |
| | | {{video.lrResourcetitle}} |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content">{{video.lrResourcetitle}}</view> |
| | | <view class="fyui-box__content">{{video.lrResourcedesc}}</view> |
| | | |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | |
| | | */ |
| | | onLoad: function (options) { |
| | | this.getHotTopic() |
| | | this.getTopicItem() |
| | | }, |
| | | |
| | | /** |
| | |
| | | }) |
| | | }, |
| | | |
| | | gotoDetail(e) { |
| | | var i = e.currentTarget.dataset.index |
| | | var fileId = this.data.pageList[0][i].mfGuid |
| | | getTopicItem() { |
| | | var that = this |
| | | consultservice.getTopicItem(app.globalData.accessToken.userId, { |
| | | success(res) { |
| | | res.forEach(r => { |
| | | r.miItemContent = r.miItemContent.replace('\\n', '<br/>') |
| | | // r.mfKeywordLv1 = r.mfKeywordLv1.split('ã').slice(0, 5) |
| | | // r.mfReleaseDate = that.formateTime(r.mfReleaseDate) |
| | | // r.mfEffectiveDate = that.formateTime(r.mfEffectiveDate) |
| | | // r.mfClosingDate = that.formateTime(r.mfClosingDate) |
| | | }); |
| | | that.setData({ |
| | | 'pageList[2]': res |
| | | }) |
| | | console.log(that.data.pageList); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | gotoFile(e) { |
| | | const iList = e.currentTarget.dataset.index.split(',') |
| | | const i1 = iList[0] |
| | | const i2 = iList[1] |
| | | var fileId = this.data.pageList[i1][i2].mfGuid |
| | | wx.navigateTo({ |
| | | url: '/pages/module_consult/consultdetail/consultdetail', |
| | | success: (res) => { |
| | |
| | | }) |
| | | }, |
| | | |
| | | gotoItem(e) { |
| | | const iList = e.currentTarget.dataset.index.split(',') |
| | | const i1 = iList[0] |
| | | const i2 = iList[1] |
| | | var itemId = this.data.pageList[i1][i2].miGuid |
| | | wx.navigateTo({ |
| | | url: '/pages/module_consult/consultdetailitem/consultdetailitem', |
| | | success: (res) => { |
| | | // éè¿ eventChannel å被æå¼é¡µé¢ä¼ éæ°æ® |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { |
| | | itemId: itemId |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | | formateTime(t) { |
| | | if (t) { |
| | | return moment(t).format("YYYYå¹´MMæDDæ¥") |
| | |
| | | |
| | | |
| | | <switch-tab tabList="{{tabList}}" pageList="{{pageList}}"> |
| | | <view slot="slot{{index}}" wx:for="{{pageList}}" wx:for-item="page" wx:key="index"> |
| | | <view slot="slot{{i1}}" wx:for="{{pageList}}" wx:for-item="page" wx:key="i1" wx:for-index="i1"> |
| | | <block wx:if="{{page.length > 0}}"> |
| | | |
| | | <view wx:for="{{page}}" wx:key="cIndex" wx:for-index="cIndex" data-index="{{cIndex}}" bindtap="gotoDetail"> |
| | | <block wx:if="{{i1 == 0 || i1 == 1}}"> |
| | | <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoFile"> |
| | | <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | {{item.mfName}} |
| | |
| | | </view> |
| | | </view> |
| | | </block> |
| | | |
| | | <block wx:else="{{i1 == 2}}"> |
| | | <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoItem"> |
| | | <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | <rich-text nodes="{{item.miItemContent}}" 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.miChapterName}} {{item.miItemName ? ' ' + item.miItemName : ''}}</text> |
| | | <text class="tag2">æå±æä»¶ï¼ã{{item.mfName}}ã</text> |
| | | <text class="tag2" wx:if="{{item.miReferenceNumber}}">æå±æå·ï¼{{item.miReferenceNumber}}</text> |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <!-- <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> |
| | | </block> |
| | | |
| | | <view wx:else class="page__ft"> |
| | | <mp-loading duration="{{900}}" type="dot-gray" show="{{true}}" animated="{{true}}"></mp-loading> |
| | | |
| | | </view> |
| | | |
| | | </view> |
| | | </switch-tab> |
| | | |
| | |
| | | margin-bottom: 8px; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .subtitle{ |
| | | font-size: 15px; |
| | | } |
| | | |
| | | .tag2{ |
| | | font-size: 12px; |
| | | color: var(--fyui-text-color_3); |
| | | } |
| | |
| | | </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> |
| | | <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> |
| | | </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> |
| | | <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> |
| | |
| | | .btn-more:active{ |
| | | background-color: var(--fyui-BG-COLOR-ACTIVE); |
| | | } |
| | | |
| | | .tag3{ |
| | | font-size: 10px; |
| | | background-color: var(--fyui-primary-color); |
| | | color: white; |
| | | border-radius: 2px; |
| | | padding: 2px 4px; |
| | | white-space: nowrap; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .tag3_disable{ |
| | | background-color: var(--fyui-text-color_3); |
| | | } |
| | | |
| | | .fyui-box__text .fyui-box__ft{ |
| | | justify-content: flex-start; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | const app = getApp() |
| | | |
| | | /** |
| | | * 宿³å¦ä¹ ææçè·ååæå¼ |
| | | */ |
| | | module.exports = Behavior({ |
| | | data: { |
| | | resources: [], |
| | | }, |
| | | methods: { |
| | | /** |
| | | * 宿³å¦ä¹ ææå
容跳转 |
| | | */ |
| | | behaviorOpenFile: function (f) { |
| | | var url = "" |
| | | switch (f.lrResourcefiletype) { |
| | | //ææ¡£ |
| | | case 1: |
| | | let bodyUrl = f.lrBodyurl |
| | | wx.showLoading({ |
| | | title: ' æä»¶ä¸è½½ä¸', |
| | | mask: true, |
| | | }) |
| | | wx.downloadFile({ |
| | | url: bodyUrl, |
| | | success: function (res) { |
| | | wx.hideLoading() |
| | | const filePath = res.tempFilePath |
| | | wx.openDocument({ |
| | | filePath: filePath, |
| | | success: function (res) { |
| | | console.log('æå¼ææ¡£æå') |
| | | }, |
| | | fail(error) { |
| | | console.log(error); |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | break; |
| | | //龿¥ |
| | | case 2: |
| | | url = "" |
| | | break; |
| | | //å¾ç |
| | | case 3: |
| | | url = "" |
| | | break; |
| | | //è§é¢ |
| | | case 4: |
| | | url = "/pages/module_common/pagevideo/pagevideo" |
| | | break; |
| | | } |
| | | if (url != "") { |
| | | wx.navigateTo({ |
| | | url: url, |
| | | success: (res) => { |
| | | // éè¿ eventChannel å被æå¼é¡µé¢ä¼ éæ°æ® |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', f) |
| | | }, |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_learn/learfile/learnfile.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_learn/learfile/learnfile.wxml--> |
| | | <view class="page__bd "> |
| | | <view wx:for="{{resources}}" wx:key="index" wx:item="item" bindtap="openFile" data-index="{{index}}"> |
| | | <view wx:if="{{item.lrResourcefiletype != 4}}" class="fyui-box fyui-panel"> |
| | | <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"></image>{{item.views}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view wx:else class="fyui-panel fyui-panel_video"> |
| | | <view style="position: relative;"> |
| | | <image src="{{item.lrPicurl}}" class="video-poster" mode="aspectFit" /> |
| | | <mp-icon class="video-play" icon="play" color="white" size="50" type="filled"></mp-icon> |
| | | </view> |
| | | <view class="video-title">{{item.lrResourcetitle}}</view> |
| | | <view class="tag"> |
| | | <view>{{item.lrPublishdate}}</view> |
| | | <view class="flex-h"> |
| | | <image src="/res/icons/view.png" class="icon"></image>{{item.views}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="page__ft"></view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/module_learn/learfile/learnfile.wxss */ |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/learn/learn.js |
| | | const lawservice = require("../../../service/lawservice") |
| | | const moment = require('../../../utils/moment.min') |
| | | const beLearn = require('../behaviors/beLearn') |
| | | const app = getApp() |
| | | |
| | | Page({ |
| | | behaviors: [beLearn], |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | currentTab: 0, |
| | | tabList: [{ |
| | | "name": "VOCsææ¾" |
| | | }, |
| | | { |
| | | "name": "å°è´¦" |
| | | }, |
| | | { |
| | | "name": "æ²»ç设æ½è®¾å¤" |
| | | }, |
| | | { |
| | | "name": "å¨çº¿çæµè®¾å¤" |
| | | } |
| | | ], |
| | | pageList: [ |
| | | |
| | | ], |
| | | banners: [ |
| | | { |
| | | pic: '', |
| | | url: '', |
| | | fileType: '' |
| | | }, |
| | | ], |
| | | resources: [], |
| | | text2: [{ |
| | | title: "å è¿ç« 建çå¯¼è´æ§æ³", |
| | | content: "æ§æ³æè¿°ï¼ç¯ä¿ä¸»ç®¡é¨é¨å¯è°é
å¹¶ä½ä¸ºæ§æ³æº¯æºä¾æ®ä¹ä¸ç¯ä¿ä¸»ç®¡é¨é¨å¯è°é
å¹¶ä½ä¸ºæ§æ³æº¯æºä¾æ®ä¹ä¸", |
| | | tags: ['è¿æ³æå»º', '便³æé¤'], |
| | | views: 123, |
| | | time: '2021å¹´3æ2æ¥', |
| | | likes: 233 |
| | | }, { |
| | | title: "å è¿ç« 建çå¯¼è´æ§æ³", |
| | | content: "æ§æ³æè¿°ï¼ç¯ä¿ä¸»ç®¡é¨é¨å¯è°é
å¹¶ä½ä¸ºæ§æ³æº¯æºä¾æ®ä¹ä¸ç¯ä¿ä¸»ç®¡é¨é¨å¯è°é
å¹¶ä½ä¸ºæ§æ³æº¯æºä¾æ®ä¹ä¸", |
| | | tags: ['è¿æ³æå»º', '便³æé¤'], |
| | | views: 123, |
| | | time: '2021å¹´3æ2æ¥', |
| | | likes: 233 |
| | | }, { |
| | | title: "å è¿ç« 建çå¯¼è´æ§æ³", |
| | | content: "æ§æ³æè¿°ï¼ç¯ä¿ä¸»ç®¡é¨é¨å¯è°é
å¹¶ä½ä¸ºæ§æ³æº¯æºä¾æ®ä¹ä¸ç¯ä¿ä¸»ç®¡é¨é¨å¯è°é
å¹¶ä½ä¸ºæ§æ³æº¯æºä¾æ®ä¹ä¸", |
| | | tags: ['è¿æ³æå»º', '便³æé¤'], |
| | | views: 123, |
| | | time: '2021å¹´3æ2æ¥', |
| | | likes: 233 |
| | | }, { |
| | | title: "å è¿ç« 建çå¯¼è´æ§æ³", |
| | | content: "æ§æ³æè¿°ï¼ç¯ä¿ä¸»ç®¡é¨é¨å¯è°é
å¹¶ä½ä¸ºæ§æ³æº¯æºä¾æ®ä¹ä¸ç¯ä¿ä¸»ç®¡é¨é¨å¯è°é
å¹¶ä½ä¸ºæ§æ³æº¯æºä¾æ®ä¹ä¸", |
| | | tags: ['è¿æ³æå»º', '便³æé¤'], |
| | | views: 123, |
| | | time: '2021å¹´3æ2æ¥', |
| | | likes: 233 |
| | | }] |
| | | }, |
| | | //计ç®swiperé«åº¦æ¹æ³ï¼å¨åæ¢çæ¶åè°ç¨ï¼ |
| | | tabsHeight(element) { |
| | | let that = this; |
| | | let query = wx.createSelectorQuery(); //å¿
é¡»è¦å
å建ä¸ä¸ªæ¥è¯¢ |
| | | query.select(element).boundingClientRect(function (rect) { |
| | | that.setData({ |
| | | pageheight: rect.height + 'px' |
| | | }); |
| | | }).exec(); |
| | | }, |
| | | swichNav: function (e) { |
| | | var that = this; |
| | | if (this.data.currentTab === e.target.dataset.current) { |
| | | return false; |
| | | } else { |
| | | that.setData({ |
| | | currentTab: e.target.dataset.current, |
| | | navScrollLeft: e.target.dataset.current >= 4 ? ((e.target.dataset.current) * 60) : 0 //夿å½åéä¸çä¸ªæ°æ¯å¦æ¯ç¬¬5个 |
| | | }) |
| | | that.tabsHeight('.page' + e.target.dataset.current); //æ¥è¯¢åªä¸ä¸ªå
ç´ |
| | | } |
| | | }, |
| | | bindChange: function (e) { |
| | | var that = this; |
| | | that.setData({ |
| | | currentTab: e.detail.current, |
| | | navScrollLeft: e.detail.current >= 4 ? ((e.detail.current) * 60) : 0 //夿å½åéä¸çä¸ªæ°æ¯å¦æ¯ç¬¬5个 |
| | | }); |
| | | // that.tabsHeight('.page'+e.target.dataset.current); //æ¥è¯¢åªä¸ä¸ªå
ç´ |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad: function (options) { |
| | | // this.tabsHeight('.page0'); |
| | | this.getResources() |
| | | }, |
| | | |
| | | onReachBottom () { |
| | | console.log('onReachBottom'); |
| | | if (this.cPage && this.tPage) { |
| | | if (this.cPage < this.tPage) { |
| | | this.getResources(this.cPage + 1) |
| | | } |
| | | } |
| | | }, |
| | | |
| | | getBanner() { |
| | | let banners = [] |
| | | for (let i = 0; i < 6; i++) { |
| | | const d = this.data.resources[i] |
| | | banners.push({ |
| | | pic: d.lrPicurl, |
| | | url: d.lrBodyurl, |
| | | fileType: d.lrResourcefiletype, |
| | | }) |
| | | } |
| | | this.setData({ |
| | | banners |
| | | }) |
| | | }, |
| | | |
| | | getResources(cPage = 1) { |
| | | var that = this |
| | | let user = app.globalData.userInfo |
| | | lawservice.getLawRegulations(user.guid, cPage, {sceneTypeId: user.extension2}, { |
| | | onHead(header) { |
| | | that.cPage = parseInt(header.currentPage) |
| | | that.tPage = parseInt(header.totalPage) |
| | | console.log(`cPage:${that.cPage}, tPage:${that.tPage}`); |
| | | }, |
| | | success(data) { |
| | | let resources = that.data.resources |
| | | data.forEach(d => { |
| | | d.views = parseInt(Math.random() * 1000 + 10) |
| | | d.lrPublishdate = moment(d.lrPublishdate).format('YYYYå¹´MMæDDæ¥') |
| | | }); |
| | | resources = resources.concat(data) |
| | | that.setData({ |
| | | resources |
| | | }) |
| | | if (that.cPage == 1) { |
| | | that.getBanner() |
| | | } |
| | | } |
| | | }, 10) |
| | | }, |
| | | |
| | | openFile(e) { |
| | | var index = e.currentTarget.dataset.index |
| | | let f = this.data.resources[index] |
| | | this.behaviorOpenFile(f) |
| | | }, |
| | | goto: function (e) { |
| | | var url = "" |
| | | var index = e.currentTarget.dataset.index |
| | | switch (index) { |
| | | case '0': |
| | | url = '/pages' |
| | | break; |
| | | case '1': |
| | | url = "" |
| | | break; |
| | | } |
| | | if (url != "") { |
| | | wx.navigateTo({ |
| | | url: url, |
| | | }) |
| | | } |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "宿³å¦ä¹ ", |
| | | "navigationBarBackgroundColor": "#65EAD2", |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": { |
| | | "mp-icon": "/component/icon/icon" |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/learn/learn.wxml--> |
| | | <view class="page "> |
| | | |
| | | <!-- <view class="swiper-tab"> |
| | | <scroll-view scroll-left="{{navScrollLeft}}" scroll-x="true" show-scrollbar="false" scroll-with-animation="true"> |
| | | <block wx:for="{{tabList}}" wx:key="i"> |
| | | <view class="swiper-tab-list {{currentTab==index ? 'on' : ''}}" data-current="{{index}}" bindtap="swichNav">{{item.name}}</view> |
| | | </block> |
| | | </scroll-view> |
| | | </view> --> |
| | | <!-- <swiper current="{{currentTab}}" class="swiper-box" duration="300" bindchange="bindChange" style="height: {{pageheight}};"> |
| | | <block wx:for="{{pageList}}" wx:for-item="page" wx:key="n"> |
| | | |
| | | <swiper-item> |
| | | |
| | | <view class="page{{index}}"> |
| | | |
| | | </view> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> --> |
| | | |
| | | <view class="page__bd "> |
| | | <view class="fyui-panel"> |
| | | <swiper indicator-dots="true" autoplay="true" circular="true" interval="2000" duration="500" previous-margin="0px" next-margin="0px"> |
| | | <block wx:for='{{banners}}' wx:key='u'> |
| | | <swiper-item> |
| | | <image src='{{item.pic}}' mode="aspectFill" class='swiper-item-images' data-index="{{index}}" bindtap="openFile" /> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <view class="flex-h" style="padding: 8px 10px;"> |
| | | <view class="image-btn" bindtap="goto" data-index="0"> |
| | | <image src="/res/icons/learn_1.png" class="image-btn__2" mode="aspectFit" /> |
| | | <view class="image-btn_title"> |
| | | <view class="image-btn_title_t">ç¯ä¿å®æ³</view> |
| | | <view>è§é¢ãææ¡£ææ</view> |
| | | <mp-icon class="image-btn_goto" icon="arrow" color="#7F7F7F" size="8" type="filled"></mp-icon> |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="flex-v"> |
| | | <view class="image-btn" style="background-color: #F4EED3;" bindtap="goto" data-index="1"> |
| | | <image src="/res/icons/learn_2.png" class="image-btn__2" mode="aspectFit" /> |
| | | <view class="image-btn_title"> |
| | | <view class="image-btn_title_t">æ§æ³æ¡ä¾</view> |
| | | <view>ç¸å
³æ§æ³æ¡ä¾</view> |
| | | <mp-icon class="image-btn_goto" icon="arrow" color="#7F7F7F" size="8" type="filled"></mp-icon> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- <view class="fyui-cell fyui-cell_select title"> |
| | | <view class="fyui-cell__bd">ç¯ä¿å®æ³</view> |
| | | <view class="fyui-cell__ft">æ´å¤</view> |
| | | </view> --> |
| | | <view wx:for="{{resources}}" wx:key="index" wx:item="item" bindtap="openFile" data-index="{{index}}"> |
| | | <view wx:if="{{item.lrResourcefiletype != 4}}" class="fyui-box fyui-panel"> |
| | | <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"></image>{{item.views}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view wx:else class="fyui-panel fyui-panel_video"> |
| | | <view style="position: relative;"> |
| | | <image src="{{item.lrPicurl}}" class="video-poster" mode="aspectFit" /> |
| | | <mp-icon class="video-play" icon="play" color="white" size="50" type="filled"></mp-icon> |
| | | </view> |
| | | <view class="video-title">{{item.lrResourcetitle}}</view> |
| | | <view class="tag"> |
| | | <view>{{item.lrPublishdate}}</view> |
| | | <view class="flex-h"> |
| | | <image src="/res/icons/view.png" class="icon"></image>{{item.views}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- <view class="fyui-cell fyui-cell_select title"> |
| | | <view class="fyui-cell__bd">æ§æ³æ¡ä¾</view> |
| | | <view class="fyui-cell__ft">æ´å¤</view> |
| | | </view> |
| | | <view wx:for="{{text2}}" wx:key="index" data-index="index" wx:for-item="item"> |
| | | <view class="fyui-box fyui-panel fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | {{item.title}} |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content">{{item.content}}</view> |
| | | <view class="fyui-box__tag"> |
| | | <view wx:for="{{item.tags}}" wx:key="i" data-index="i" wx:for-item="tag">{{tag}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <view class="flex-h"> |
| | | <image src="/res/icons/view.png" class="icon"></image>{{item.views}} |
| | | </view> |
| | | <view class="flex-h"> |
| | | <image src="/res/icons/like.png" class="icon"></image>{{item.likes}} |
| | | </view> |
| | | <view>{{item.time}}</view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | </view> |
| | | |
| | | <view class="page__ft"></view> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/learn/learn.wxss */ |
| | | .swiper-tab{ |
| | | position: fixed; |
| | | width: 100%; |
| | | text-align: center; |
| | | line-height: 80rpx; |
| | | white-space: nowrap; |
| | | z-index: 2; |
| | | background-color: #65EAD2; |
| | | } |
| | | |
| | | .swiper-tab-list{ |
| | | font-size: 30rpx; |
| | | display: inline-block; |
| | | min-width: 18%; |
| | | padding: 0 1%; |
| | | color: rgba(255, 255, 255, 0.658); |
| | | } |
| | | |
| | | .on{ |
| | | color: white; |
| | | font-weight: bold; |
| | | border-bottom: 4rpx solid white; |
| | | } |
| | | |
| | | .swiper-box{ |
| | | position: absolute; |
| | | display: block; |
| | | top: 80rpx; |
| | | width: 100%; |
| | | margin-top: 10px; |
| | | background-color: var(--fyui-BG_1); |
| | | } |
| | | |
| | | .city-item{ |
| | | width: 100%; |
| | | display: flex; |
| | | flex-flow: row nowrap; |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | .img{ |
| | | width: 40%; |
| | | height: 100px; |
| | | } |
| | | |
| | | .text{ |
| | | width: 60%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 24px; |
| | | border: 1px solid #ddd; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .swiper-item-images{ |
| | | width: 100%; |
| | | height: 300rpx; |
| | | } |
| | | |
| | | .image-btn{ |
| | | position: relative; |
| | | width: 46vw; |
| | | height: 20vw; |
| | | background-color: #ECEEF9; |
| | | } |
| | | |
| | | .image-btn_title{ |
| | | position: relative; |
| | | white-space: nowrap; |
| | | z-index: 1; |
| | | color: var(--fyui-text-color_2); |
| | | font-size: 12px; |
| | | margin: 10px; |
| | | } |
| | | |
| | | .image-btn_title_t{ |
| | | color: var(--fyui-text-color_1); |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | } |
| | | |
| | | .image-btn__2 { |
| | | position: absolute; |
| | | width: 30vw; |
| | | height: 20vw; |
| | | /* background-color: red; */ |
| | | right: 0; |
| | | bottom: 0; |
| | | z-index: 0; |
| | | } |
| | | |
| | | .image-btn_goto{ |
| | | display: block; |
| | | background-color: white; |
| | | width: 20px; |
| | | height: 20px; |
| | | text-align: center; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | .fyui-panel_video .video-poster { |
| | | width: 100%; |
| | | background-color: black; |
| | | } |
| | | |
| | | .fyui-panel_video .video-title{ |
| | | padding: 2px 16px; |
| | | font-size: 16px; |
| | | } |
| | | |
| | | .fyui-panel_video .video-play { |
| | | position: absolute; |
| | | top: calc(50% - 25px); |
| | | left: calc(50% - 25px); |
| | | z-index: 10; |
| | | background-color: rgba(138, 138, 138, 0.712); |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | .fyui-panel_video .tag{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | font-size: 12px; |
| | | color: var(--fyui-text-color_2); |
| | | padding: 4px 16px; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_learn/learncase/learncase.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_learn/learncase/learncase.wxml--> |
| | | <text>pages/module_learn/learncase/learncase.wxml</text> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/module_learn/learncase/learncase.wxss */ |
| | |
| | | //éé¡¹å¡ |
| | | if (s.upLoad) { |
| | | s.tag = '/res/icons/round_check_fill.png' |
| | | s.opacity = 0.2 |
| | | } else if (s.ledgerFinished) { |
| | | s.tag = '/res/icons/warning_yellow.png' |
| | | s.opacity = 1 |
| | | } else if (!s.needUpdate) { |
| | | s.tag = '/res/icons/round_check_fill.png' |
| | | s.tag = '/res/icons/warning_selected.png' |
| | | s.opacity = 0.5 |
| | | } else { |
| | | s.tag = '/res/icons/warning_red.png' |
| | | s.opacity = 1 |
| | | } |
| | | if (!map.has(s.ledgerType)) { |
| | | map.set(s.ledgerType, []) |
| | |
| | | <!-- </view> --> |
| | | <view class="page__bd"> |
| | | <view class="swiper-tab"> |
| | | <scroll-view class="swiper-tab_view" scroll-left="{{navScrollLeft}}" scroll-x="true" show-scrollbar="true" scroll-with-animation="true"> |
| | | <scroll-view class="swiper-tab_view" scroll-into-view="item{{currentTab}}" scroll-x="true" show-scrollbar="true" scroll-with-animation="true"> |
| | | <block wx:for="{{tabList}}" wx:key="i"> |
| | | <view class="swiper-tab-list {{currentTab==index ? 'on' : ''}}" data-current="{{index}}" bindtap="swichNav"> |
| | | <view id="item{{index}}" class="swiper-tab-list {{currentTab==index ? 'on' : ''}}" data-current="{{index}}" bindtap="swichNav"> |
| | | {{item.name}} |
| | | <text wx:if="{{item.tag > 0}}" class="swiper-tab-list__tag">{{item.tag}}</text> |
| | | </view> |
| | |
| | | <block wx:for="{{pageList}}" wx:for-item="page" wx:key="n" wx:for-index="i1"> |
| | | <swiper-item> |
| | | <view class="ledger-group page{{i1}}"> |
| | | <view wx:for="{{page}}" wx:for-item="ledger" wx:key="t" class="ledger-item" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoLedgerDetail"> |
| | | <image class="ledger-tag" src="{{ledger.tag}}"></image> |
| | | <view wx:for="{{page}}" wx:for-item="ledger" wx:key="t" class="ledger-item" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoLedgerDetail" style="opacity: {{ledger.opacity}};"> |
| | | <image class="ledger-tag" src="{{ledger.tag}}" mode="aspectFit"></image> |
| | | <image class="ledger-icon" src="{{ledger.iconUrl}}"></image> |
| | | <view>{{ledger.ledgerName}}</view> |
| | | </view> |
| | |
| | | |
| | | .ledger-tag { |
| | | position: absolute; |
| | | right: 8vw; |
| | | right: 6vw; |
| | | top: 6px; |
| | | width: 16px; |
| | | width: 32px; |
| | | height: 16px; |
| | | color: white; |
| | | padding: 1px; |
| | |
| | | userservice.getUserInfo(app.globalData.accessToken.userId, { |
| | | success(data) { |
| | | app.globalData.userInfo = data |
| | | app.globalData.isLogin = true |
| | | wx.setStorage({ |
| | | key: 'userInfo', |
| | | data: data, |
| | |
| | | userservice.getUserInfo(app.globalData.accessToken.userId, { |
| | | success(data) { |
| | | app.globalData.userInfo = data |
| | | app.globalData.isLogin = true |
| | | wx.setStorage({ |
| | | key: 'userInfo', |
| | | data: data, |
| | |
| | | "disableUseStrict": false, |
| | | "showES6CompileOption": false, |
| | | "useCompilerPlugins": false, |
| | | "ignoreUploadUnusedFiles": true, |
| | | "ignoreUploadUnusedFiles": false, |
| | | "useStaticServer": true, |
| | | "minifyWXML": true |
| | | }, |
| | |
| | | |
| | | const originProperties = ['url', 'data', 'header', 'method', 'success', 'fail', 'complete']; |
| | | // const baseUrl = "http://127.0.0.1:8080" |
| | | const baseUrl = "http://192.168.0.105:8080" |
| | | // const baseUrl = "https://fyami.com.cn:447" |
| | | // const baseUrl = "http://192.168.0.106: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/" |
| | |
| | | $f.get(cb) |
| | | }, |
| | | |
| | | //è·åç鍿¡ç® |
| | | getTopicItem: function (userId, fun) { |
| | | let cb = { |
| | | url: `/consultation/topic/item`, |
| | | params: { |
| | | userId: userId, |
| | | }, |
| | | } |
| | | Object.assign(cb, fun) |
| | | $f.get(cb) |
| | | }, |
| | | |
| | | //è·åæ³å¾æ³è§æä»¶ |
| | | getMgtFile: function (userId, fileId, fun) { |
| | | let cb = { |