已修改65个文件
已删除3个文件
已添加24个文件
已重命名1个文件
| | |
| | | App({ |
| | | onLaunch() { |
| | | // å±ç¤ºæ¬å°åå¨è½å |
| | | const logs = wx.getStorageSync('logs') || [] |
| | | logs.unshift(Date.now()) |
| | | wx.setStorageSync('logs', logs) |
| | | // const logs = wx.getStorageSync('logs') || [] |
| | | // logs.unshift(Date.now()) |
| | | // wx.setStorageSync('logs', logs) |
| | | |
| | | // ç»å½ |
| | | wx.login({ |
| | | success: res => { |
| | | // åé res.code å°åå°æ¢å openId, sessionKey, unionId |
| | | } |
| | | }) |
| | | // wx.login({ |
| | | // success: res => { |
| | | // // åé res.code å°åå°æ¢å openId, sessionKey, unionId |
| | | // } |
| | | // }) |
| | | }, |
| | | globalData: { |
| | | userInfo: null, |
| | |
| | | "pages/module_user/userregistergov/userregistergov", |
| | | "pages/module_user/userregistercompany/userregistercompany", |
| | | "pages/module_consult/consultproblem/consultproblem", |
| | | "pages/icons/icons" |
| | | "pages/icons/icons", |
| | | "pages/module_common/pagevideo/pagevideo", |
| | | "pages/module_consult/consultresultmore/consultresultmore", |
| | | "pages/module_consult/consultdetailitem/consultdetailitem" |
| | | ], |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | |
| | | /********************************** 主çé¢èæ¯-start ***********************************/ |
| | | .page { |
| | | min-height: 100vh; |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | justify-content: flex-start; |
| | | box-sizing: border-box; |
| | | background-color: var(--fyui-BG_1); |
| | | } |
| | |
| | | width: 100%; |
| | | height: auto; |
| | | border-radius: 0px; |
| | | font-size: large; |
| | | font-size: 20px; |
| | | font-weight: 600; |
| | | /* background-color: greenyellow; */ |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | module.exports = |
| | | /******/ (function(modules) { // webpackBootstrap |
| | | /******/ // The module cache |
| | | /******/ var installedModules = {}; |
| | | /******/ |
| | | /******/ // The require function |
| | | /******/ function __webpack_require__(moduleId) { |
| | | /******/ |
| | | /******/ // Check if module is in cache |
| | | /******/ if(installedModules[moduleId]) { |
| | | /******/ return installedModules[moduleId].exports; |
| | | /******/ } |
| | | /******/ // Create a new module (and put it into the cache) |
| | | /******/ var module = installedModules[moduleId] = { |
| | | /******/ i: moduleId, |
| | | /******/ l: false, |
| | | /******/ exports: {} |
| | | /******/ }; |
| | | /******/ |
| | | /******/ // Execute the module function |
| | | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
| | | /******/ |
| | | /******/ // Flag the module as loaded |
| | | /******/ module.l = true; |
| | | /******/ |
| | | /******/ // Return the exports of the module |
| | | /******/ return module.exports; |
| | | /******/ } |
| | | /******/ |
| | | /******/ |
| | | /******/ // expose the modules object (__webpack_modules__) |
| | | /******/ __webpack_require__.m = modules; |
| | | /******/ |
| | | /******/ // expose the module cache |
| | | /******/ __webpack_require__.c = installedModules; |
| | | /******/ |
| | | /******/ // define getter function for harmony exports |
| | | /******/ __webpack_require__.d = function(exports, name, getter) { |
| | | /******/ if(!__webpack_require__.o(exports, name)) { |
| | | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); |
| | | /******/ } |
| | | /******/ }; |
| | | /******/ |
| | | /******/ // define __esModule on exports |
| | | /******/ __webpack_require__.r = function(exports) { |
| | | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
| | | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
| | | /******/ } |
| | | /******/ Object.defineProperty(exports, '__esModule', { value: true }); |
| | | /******/ }; |
| | | /******/ |
| | | /******/ // create a fake namespace object |
| | | /******/ // mode & 1: value is a module id, require it |
| | | /******/ // mode & 2: merge all properties of value into the ns |
| | | /******/ // mode & 4: return value when already ns object |
| | | /******/ // mode & 8|1: behave like require |
| | | /******/ __webpack_require__.t = function(value, mode) { |
| | | /******/ if(mode & 1) value = __webpack_require__(value); |
| | | /******/ if(mode & 8) return value; |
| | | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; |
| | | /******/ var ns = Object.create(null); |
| | | /******/ __webpack_require__.r(ns); |
| | | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); |
| | | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); |
| | | /******/ return ns; |
| | | /******/ }; |
| | | /******/ |
| | | /******/ // getDefaultExport function for compatibility with non-harmony modules |
| | | /******/ __webpack_require__.n = function(module) { |
| | | /******/ var getter = module && module.__esModule ? |
| | | /******/ function getDefault() { return module['default']; } : |
| | | /******/ function getModuleExports() { return module; }; |
| | | /******/ __webpack_require__.d(getter, 'a', getter); |
| | | /******/ return getter; |
| | | /******/ }; |
| | | /******/ |
| | | /******/ // Object.prototype.hasOwnProperty.call |
| | | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; |
| | | /******/ |
| | | /******/ // __webpack_public_path__ |
| | | /******/ __webpack_require__.p = ""; |
| | | /******/ |
| | | /******/ |
| | | /******/ // Load entry module and return exports |
| | | /******/ return __webpack_require__(__webpack_require__.s = 14); |
| | | /******/ }) |
| | | /************************************************************************/ |
| | | /******/ ({ |
| | | |
| | | /***/ 14: |
| | | /***/ (function(module, exports, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | |
| | | |
| | | Component({ |
| | | options: { |
| | | addGlobalClass: true |
| | | }, |
| | | properties: { |
| | | extClass: { |
| | | type: String, |
| | | value: '' |
| | | }, |
| | | show: { |
| | | // é»è®¤æ¾ç¤ºåºæ¥ |
| | | type: Boolean, |
| | | value: true, |
| | | |
| | | observer(newValue) { |
| | | this._computedStyle(newValue, this.data.animated); |
| | | } |
| | | |
| | | }, |
| | | animated: { |
| | | type: Boolean, |
| | | value: false, |
| | | |
| | | observer(newValue) { |
| | | this._computedStyle(this.data.show, newValue); |
| | | } |
| | | |
| | | }, |
| | | duration: { |
| | | // è¿æ¸¡å¨ç»æ¶é´ |
| | | type: Number, |
| | | value: 350 |
| | | }, |
| | | type: { |
| | | type: String, |
| | | value: 'dot-gray' // åå¼dot-whiteãdot-grayãcircle |
| | | |
| | | }, |
| | | tips: { |
| | | // typeæ¯circleçæ¶åæææ |
| | | type: String, |
| | | value: 'å è½½ä¸' |
| | | } |
| | | }, |
| | | data: { |
| | | animationData: {}, |
| | | animationInstance: {}, |
| | | displayStyle: 'none' |
| | | }, |
| | | methods: { |
| | | _computedStyle(show, animated) { |
| | | if (!show) { |
| | | if (!animated) { |
| | | this.setData({ |
| | | displayStyle: 'none' |
| | | }); |
| | | } else { |
| | | this._startAnimation(); |
| | | } |
| | | } else { |
| | | this.setData({ |
| | | displayStyle: '' |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | _startAnimation() { |
| | | setTimeout(() => { |
| | | const data = this.data; |
| | | const animation = data.animationInstance; |
| | | animation.height(0).step(); |
| | | this.setData({ |
| | | animationData: animation.export() |
| | | }); |
| | | }, 0); |
| | | } |
| | | |
| | | }, |
| | | lifetimes: { |
| | | attached() { |
| | | const data = this.data; |
| | | const animationInstance = wx.createAnimation({ |
| | | duration: data.duration, |
| | | timingFunction: 'ease' |
| | | }); |
| | | this.setData({ |
| | | animationInstance |
| | | }); |
| | | |
| | | this._computedStyle(this.data.show, this.data.animated); |
| | | } |
| | | |
| | | } |
| | | }); |
| | | |
| | | /***/ }) |
| | | |
| | | /******/ }); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <view style="display:{{displayStyle}};" class="wx_loading_view {{extClass}}" animation="{{animationData}}" id="wx_loading_view"> |
| | | <view wx:if="{{type==='dot-white'}}" class="loading wx_dot_loading wx_dot_loading_white"> |
| | | </view> |
| | | <view wx:elif="{{type==='dot-gray'}}" class="loading wx_dot_loading"></view> |
| | | <view wx:elif="{{type==='circle'}}" class="weui-loadmore"> |
| | | <view class="weui-loading"></view> |
| | | <view class="weui-loadmore__tips">{{tips}}</view> |
| | | </view> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | .wx_loading_view { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | overflow: hidden |
| | | } |
| | | |
| | | .loading { |
| | | color: rgba(255, 255, 255, 0.9); |
| | | font-size: 17px; |
| | | text-align: center |
| | | } |
| | | |
| | | .loading_view_translation { |
| | | transition: height .2s .3s ease |
| | | } |
| | |
| | | */ |
| | | data: { |
| | | progress_txt: 'ä¿¡ç¨è¾å·®', |
| | | progress_txt_color1: '#f1fefc', |
| | | progress_txt_color2: '#b4f7ec', |
| | | count: 0, // 设置 计æ°å¨ åå§ä¸º0 |
| | | countTimer: null, // 设置 宿¶å¨ åå§ä¸ºnull |
| | | x: 100, |
| | |
| | | |
| | | observers: { |
| | | 'progress': function (progress) { |
| | | if (progress >= 90) { |
| | | this.setData({ |
| | | progress_txt: 'ä¿¡ç¨ä¼ç§' |
| | | }) |
| | | } else if (progress >= 60) { |
| | | this.setData({ |
| | | progress_txt: 'ä¿¡ç¨ä¸è¬' |
| | | }) |
| | | if (progress) { |
| | | if (progress >= 90) { |
| | | this.setData({ |
| | | progress_txt_color1: '#f2fff7', |
| | | progress_txt_color2: '#96f3bd', |
| | | progress_txt: 'ä¿¡ç¨ä¼ç§' |
| | | }) |
| | | } else if (progress >= 60) { |
| | | this.setData({ |
| | | progress_txt_color1: '#f6f2e3', |
| | | progress_txt_color2: '#f6e59f', |
| | | progress_txt: 'ä¿¡ç¨ä¸è¬' |
| | | }) |
| | | } else { |
| | | this.setData({ |
| | | progress_txt_color1: '#fff6f6', |
| | | progress_txt_color2: '#f29696', |
| | | progress_txt: 'ä¿¡ç¨è¾å·®' |
| | | }) |
| | | } |
| | | } else { |
| | | this.setData({ |
| | | progress_txt: 'ä¿¡ç¨è¾å·®' |
| | | progress_txt_color1: '#f1fefc', |
| | | progress_txt_color2: '#b4f7ec', |
| | | }) |
| | | } |
| | | this.drawProgressCircle(progress / 100) |
| | |
| | | |
| | | ctx.setStrokeStyle('#76ECD3'); |
| | | ctx.setFillStyle('#76ECD3') |
| | | for (let i = 0; i <5; i++) { |
| | | for (let i = 0; i < 5; i++) { |
| | | var radian = Math.PI / 4 * i |
| | | var x1 = x - Math.sin(radian) * (r - 10) |
| | | var y1 = y + Math.cos(radian) * (r - 10) |
| | |
| | | var text = i / 4 * 100 + '' |
| | | var metrics = ctx.measureText(text) |
| | | var w = metrics.width |
| | | ctx.fillText(text, x3 - w / 2, y3+4) |
| | | ctx.fillText(text, x3 - w / 2, y3 + 4) |
| | | |
| | | } |
| | | } |
| | |
| | | console.log("èç¹å®ä¾ï¼", res); // èç¹å¯¹åºç Canvas å®ä¾ã |
| | | ctx = res.context; |
| | | // 设置æ¸å |
| | | var gradient = ctx.createLinearGradient(200, 100, 100, 200); |
| | | gradient.addColorStop("0", "#76ECD3"); |
| | | gradient.addColorStop("0.5", "#76ECD3"); |
| | | gradient.addColorStop("1.0", "#76ECD3"); |
| | | var gradient = ctx.createLinearGradient(0, 0, 0, 200); |
| | | gradient.addColorStop("0", "#96f3bd"); |
| | | gradient.addColorStop("0.1", "#f6e59f"); |
| | | gradient.addColorStop("0.4", "#f6e59f"); |
| | | gradient.addColorStop("1.0", "#f29696"); |
| | | |
| | | ctx.setLineWidth(10); |
| | | ctx.setStrokeStyle(gradient); |
| | |
| | | <canvas class="progress_canvas" id="canvasProgress" canvas-id="canvasProgress"> </canvas> |
| | | |
| | | <!-- ä¸é´æ¾ç¤ºçææ¬ --> |
| | | <view class="progress_text"> |
| | | <view class="progress_text" style="background: linear-gradient(to top right, {{progress_txt_color1}}, {{progress_txt_color2}});"> |
| | | <text class='progress_num'> {{progress == undefined ? '?' : progress}}</text> |
| | | <text class='progress_info'> {{progress == undefined ? 'æ¬æ¬¡æµè¯å¾åï¼' : progress_txt}}</text> |
| | | </view> |
| | |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | background: linear-gradient(to top right, #bbf3eb86, #62ead18c); |
| | | border-radius: 50%; |
| | | width: 100px; |
| | | height: 100px; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // component/switchtab/switchtab.js |
| | | Component({ |
| | | options: { |
| | | addGlobalClass: true, |
| | | multipleSlots: true |
| | | }, |
| | | /** |
| | | * ç»ä»¶ç屿§å表 |
| | | */ |
| | | properties: { |
| | | tabList: { |
| | | type: Array, |
| | | value: [] |
| | | }, |
| | | pageList: { |
| | | type: Array, |
| | | value: [] |
| | | }, |
| | | }, |
| | | |
| | | /** |
| | | * ç»ä»¶çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | //é项å¡ç¸å
³ |
| | | currentTab: 0, |
| | | // pageheight: '600px', |
| | | }, |
| | | |
| | | observers: { |
| | | 'pageList': function() { |
| | | this.tabsHeight('.page0'); |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * ç»ä»¶çæ¹æ³å表 |
| | | */ |
| | | methods: { |
| | | //计ç®swiperé«åº¦æ¹æ³ï¼å¨åæ¢çæ¶åè°ç¨ï¼ |
| | | tabsHeight(element) { |
| | | let that = this; |
| | | let query = this.createSelectorQuery(); //å¿
é¡»è¦å
å建ä¸ä¸ªæ¥è¯¢ |
| | | query.select(element).boundingClientRect(function (rect) { |
| | | if (that.data.pageheight) { |
| | | let pageheight = that.data.pageheight.split('px')[0] |
| | | pageheight = parseInt(pageheight) |
| | | if (rect.height > pageheight) { |
| | | that.setData({ |
| | | pageheight: rect.height + 'px' |
| | | }); |
| | | } |
| | | } else { |
| | | 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 >= 3 ? ((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 >= 3 ? ((e.detail.current) * 60) : 0 //夿å½åéä¸çä¸ªæ°æ¯å¦æ¯ç¬¬5个 |
| | | }); |
| | | that.tabsHeight('.page' + e.detail.current); //æ¥è¯¢åªä¸ä¸ªå
ç´ |
| | | }, |
| | | } |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--component/switchtab/switchtab.wxml--> |
| | | <view class="swiper-tab"> |
| | | <scroll-view class="swiper-tab_view" scroll-left="{{navScrollLeft}}" 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"> |
| | | {{item.name}} |
| | | <text wx:if="{{item.tag > 0}}" class="swiper-tab-list__tag">{{item.tag}}</text> |
| | | </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="item" wx:key="index" wx:for-index="index"> |
| | | <swiper-item> |
| | | <view class="page{{index}}"> |
| | | <slot name="slot{{index}}"></slot> |
| | | </view> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* component/switchtab/switchtab.wxss */ |
| | | .swiper-tab{ |
| | | width: 100%; |
| | | text-align: start; |
| | | line-height: 80rpx; |
| | | white-space: nowrap; |
| | | z-index: 2; |
| | | /* background-color: #65EAD2; */ |
| | | /* background-color: #70ea65; */ |
| | | /* padding: 2px; */ |
| | | } |
| | | |
| | | .swiper-tab_view{ |
| | | /* background-color: blueviolet; */ |
| | | } |
| | | |
| | | .swiper-tab-list{ |
| | | position: relative; |
| | | font-size: 30rpx; |
| | | text-align: center; |
| | | display: inline-block; |
| | | min-width: 18%; |
| | | padding: 0 4px; |
| | | color: rgba(0, 0, 0, 0.658); |
| | | } |
| | | |
| | | .swiper-tab-list__tag{ |
| | | position: absolute; |
| | | top: 2px; |
| | | right: 4px; |
| | | font-size: 10px; |
| | | line-height: 16px; |
| | | width: 16px; |
| | | background-color: brown; |
| | | border-radius: 50%; |
| | | color: white; |
| | | } |
| | | |
| | | .on{ |
| | | color: #57E4CB; |
| | | font-weight: bold; |
| | | border-bottom: 4rpx solid #57E4CB; |
| | | } |
| | | |
| | | .swiper-box{ |
| | | display: block; |
| | | /* top: 80rpx; */ |
| | | width: 100%; |
| | | /* height: 70px; */ |
| | | margin-top: 1px; |
| | | background-color: white; |
| | | } |
| | |
| | | name: 'è¯å', |
| | | type: 'line', |
| | | smooth: true, |
| | | areaStyle: { |
| | | color: { |
| | | type: 'linear', |
| | | x: 0.5, |
| | | y: 0, |
| | | x2: 0.5, |
| | | y2: 1, |
| | | colorStops: [{ |
| | | offset: 0, color: '#28db74' // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, color: '#dcfeea79' // 100% å¤çé¢è² |
| | | }], |
| | | opacity: 0.1, |
| | | global: false // 缺ç为 false |
| | | } |
| | | }, |
| | | data: data, |
| | | }] |
| | | }; |
| | |
| | | this.ecComponent = this.selectComponent('#mychart-dom-line'); |
| | | this.initChart() |
| | | // }, 1000); |
| | | |
| | | wx.startPullDownRefresh({ |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | |
| | | */ |
| | | onShow: function () { |
| | | var that = this |
| | | }, |
| | | |
| | | onPullDownRefresh(){ |
| | | this.getHistoryPoint() |
| | | |
| | | }, |
| | | |
| | | initChart: function () { |
| | |
| | | if (period == that.data.thisPeriod) { |
| | | that.setData({ |
| | | score: lastOne.totalPoint, |
| | | text1: "徿£!", |
| | | text1: "", |
| | | text2: "æ¬æ¬¡æµè¯å·²å®æ", |
| | | text3: "æ¥ç详æ
", |
| | | }) |
| | | } else { |
| | | that.setData({ |
| | | text1: "æµè¯å·²å¼å§!", |
| | | text2: "è¯·å°½å¿«å®ææµè¯", |
| | | text3: "廿µè¯", |
| | | score: undefined, |
| | | }) |
| | | } |
| | | |
| | |
| | | color: d.color, |
| | | rank: d.rank, |
| | | level: d.level, |
| | | time: d.period, |
| | | time: d.period.replace('/', 'å¹´').replace(/\-[0-9]+/, 'æ'), |
| | | scoreId: d.tPGuid |
| | | }) |
| | | |
| | | //æçº¿å¾æ°æ® |
| | | let key = d.period.split('/')[0] + 'å¹´' |
| | | let y = d.period.split('/')[0] |
| | | let key = y + 'å¹´' |
| | | if (!that.chartData.hasOwnProperty(key)) { |
| | | that.chartData[key] = ['-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-'] |
| | | that.chartData[key] = ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'] |
| | | if (y == date.year() + '') { |
| | | let m = date.month() |
| | | for (let i = m; i <= 11; i++) { |
| | | that.chartData[key][i] = '-' |
| | | } |
| | | } |
| | | } |
| | | let monthGap = d.period.split('/')[1] |
| | | let startMonth = parseInt(monthGap.split('-')[0]) |
| | |
| | | setTimeout(() => { |
| | | setOption(that.chart, that.chartData[that.data.planYear]); |
| | | }, 500); |
| | | }, |
| | | complete(res) { |
| | | wx.stopPullDownRefresh({ |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | { |
| | | "navigationBarTitleText": "èªæµæºè¯", |
| | | "enablePullDownRefresh":true, |
| | | "usingComponents": { |
| | | "cp-progress": "/component/progress/progress", |
| | | "ec-canvas": "/component/ec-canvas/ec-canvas", |
| | |
| | | <!--pages/assessment/assessment.wxml--> |
| | | <view class="page"> |
| | | <view class="banner-bg"></view> |
| | | <!-- <view class="banner-bg"></view> --> |
| | | |
| | | <!-- <view style="padding-top: {{statusBarHeight}}px;" class="statusbar-title"> |
| | | <view style="line-height: {{navContentHeight - statusBarHeight}}px;"> |
| | |
| | | </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> |
| | | <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> |
| | | <view class="flex-h"> |
| | | <view class="flex-h_block"> |
| | | <view class="top-card"> |
| | | <image src="/res/icons/ass_1.png" mode="aspectFit"></image> |
| | | <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> |
| | | <view> |
| | | <view class="top-card__name">ç¢³ææ¾æºè½ä¼°ç®</view> |
| | | <view class="top-card__tag">ç¹å»è¿è¡æµè¯ ></view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view style="margin-left: 10px;margin-top: 8px;">æµè¯è¶å¿</view> |
| | | <view class="fyui-panel line-chart-card"> |
| | | <view class="flex-h" style="padding: 4px;"> |
| | | æµè¯è¶å¿ |
| | | <view></view> |
| | | <picker bindchange="bindYearChange" data-type="planYear" value="{{planYear}}" mode="date" fields="year" end="{{maxYear}}"> |
| | | <view class="fyui-selector"> |
| | | {{planYear}} |
| | | <mp-icon icon="arrow" class="icon-down" size="10" color="white"></mp-icon> |
| | | <mp-icon icon="arrow" class="icon-down" size="10" color="black"></mp-icon> |
| | | </view> |
| | | </picker> |
| | | </view> |
| | |
| | | <view class="fyui-cell__bd">å岿µè¯</view> |
| | | <view class="fyui-cell__ft">æ¥çæ´å¤</view> |
| | | </view> |
| | | <view wx:for="{{historys}}" wx:key="index" data-index="index"> |
| | | <view class="h-cell fyui-panel"> |
| | | <view class="h-line_1"> |
| | | <view class="h-score" style="background-color: {{item.color}};"> |
| | | {{item.score}} |
| | | </view> |
| | | <view class="h-rank"> |
| | | <view>é£é©æåï¼{{item.rank}}</view> |
| | | <view>é£é©ç级ï¼{{item.level}}</view> |
| | | </view> |
| | | <view wx:for="{{historys}}" wx:key="index" data-index="index" class="flex-h" style="align-items: flex-start;"> |
| | | <view class="history_icon"> |
| | | <view class="history_icon_1"> |
| | | <view></view> |
| | | </view> |
| | | <view class="h-line_2"> |
| | | <view>èæ ¸æä»½ï¼{{item.time}}</view> |
| | | <view data-id="{{item.scoreId}}" class="h-btn" bindtap="goto" data-index="1" data-period="{{item.time}}">å»çç</view> |
| | | <view class="history_icon_2"></view> |
| | | </view> |
| | | <view style="flex: 1;"> |
| | | <view class="history_time">{{item.time}}</view> |
| | | <view class="h-cell fyui-panel"> |
| | | <view class="h-line_1"> |
| | | <view class="flex-h"> |
| | | <view class="h-score" style="background-color: {{item.color}};"> |
| | | {{item.score}} |
| | | </view> |
| | | <view class="h-rank"> |
| | | <view>é£é©æåï¼{{item.rank}}</view> |
| | | <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> |
| | | <!-- <view class="h-line_2"> |
| | | <view data-id="{{item.scoreId}}" class="h-btn" bindtap="goto" data-index="1" data-period="{{item.time}}">å»çç</view> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | width: 100%; |
| | | height: 50vh; |
| | | background: linear-gradient(to bottom, #57E4CB, #bbf3eb); |
| | | /* color: #dcfeea79; */ |
| | | } |
| | | |
| | | .page__hd { |
| | | background: linear-gradient(to bottom, #57E4CB, #bbf3eb); |
| | | padding-bottom: 4px; |
| | | } |
| | | |
| | | .page__hd .title { |
| | |
| | | |
| | | .h-line_1 { |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | |
| | | .h-rank { |
| | |
| | | padding: 4px 16px; |
| | | color: white; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .flex-h_block { |
| | | flex: 1; |
| | | } |
| | | |
| | | .top-card { |
| | | position: relative; |
| | | border-radius: 4px; |
| | | background: linear-gradient(90deg, #87CEB2, #6CD398); |
| | | color: white; |
| | | padding: 8px; |
| | | margin-left: 10px; |
| | | margin-right: 2px; |
| | | display: flex; |
| | | white-space: nowrap; |
| | | text-overflow: ellipsis; |
| | | } |
| | | |
| | | .top-card_2 { |
| | | background: linear-gradient(90deg, #A3D9F5, #88E1EC); |
| | | margin-left: 2px; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .top-card_main { |
| | | margin-left: 10px; |
| | | margin-right: 10px; |
| | | margin-bottom: 4px; |
| | | } |
| | | |
| | | .top-card>image { |
| | | width: 40px; |
| | | height: 40px; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .top-card .top-card__tag { |
| | | /* text-align: end; */ |
| | | font-size: 12px; |
| | | } |
| | | |
| | | .top-card .top-card__name { |
| | | font-size: 12px; |
| | | /* width: 100%; */ |
| | | /* font-weight: 600; */ |
| | | /* text-align: center; */ |
| | | /* margin: 16px; */ |
| | | } |
| | | |
| | | .history_time{ |
| | | /* background-color: red; */ |
| | | margin-left: 10px; |
| | | font-size: 14px; |
| | | font-weight: 550; |
| | | } |
| | | |
| | | .history_icon { |
| | | width: 10vw; |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | | } |
| | | |
| | | .history_icon .history_icon_1 { |
| | | width: 22px; |
| | | height: 22px; |
| | | background-color: #8DF1E0; |
| | | border-radius: 50%; |
| | | opacity: 0.2; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | .history_icon .history_icon_1>view { |
| | | width: 11px; |
| | | height: 11px; |
| | | background: #1addbd; |
| | | border-radius: 50%; |
| | | z-index: 10; |
| | | } |
| | | |
| | | .history_icon .history_icon_2 { |
| | | width: 0px; |
| | | height: 100px; |
| | | border: 1px dashed #80EFDC; |
| | | } |
| | |
| | | "navigationBarBackgroundColor": "#57E4CB", |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": { |
| | | "c-dialog": "/component/commondialog/commondialog" |
| | | "c-dialog": "/component/commondialog/commondialog", |
| | | "mp-icon": "/component/icon/icon" |
| | | } |
| | | } |
| | |
| | | <view class="e-title__2">{{sub1.title2}}</view> |
| | | <view class="e-content {{sub.select ? 'select' : ''}}" wx:for="{{sub1.sub2}}" wx:key="index" |
| | | data-index="{{index}}" wx:for-item="sub" data-group="{{sub1.group}}" bindtap="choose"> |
| | | <!-- <mp-icon icon="check" color="white" size="25"></mp-icon> --> |
| | | <view>{{sub.content}}</view> |
| | | <view>{{sub.score}}</view> |
| | | <!-- <view>{{sub.score}}</view> --> |
| | | </view> |
| | | </block> |
| | | </view> |
| | |
| | | score: options.score |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage: function () { |
| | | |
| | | } |
| | | }) |
| | |
| | | */ |
| | | data: { |
| | | ec: { |
| | | lazyLoad: false |
| | | lazyLoad: true |
| | | }, |
| | | creditText: '----------------------', |
| | | gradeDetails: [{ |
| | | name: 'èæ ¸å¾å', |
| | | name: 'èªè¯å¾å', |
| | | detail: '--' |
| | | }, { |
| | | name: 'é£é©æå', |
| | |
| | | name: 'é£é©ç级', |
| | | detail: '--' |
| | | }, { |
| | | name: 'èæ ¸å¨æ', |
| | | name: 'èªè¯å¨æ', |
| | | detail: '--' |
| | | }, { |
| | | name: 'èªè¯æ¶é´', |
| | | detail: '--' |
| | | }], |
| | | |
| | | //失åçç±»å |
| | | losePointsItem: [], |
| | | losePoints: [{ |
| | | ruleName: '----', |
| | | score: '--', |
| | | remark: '------------' |
| | | }, { |
| | | ruleName: '----', |
| | | score: '--', |
| | | remark: '------------' |
| | | baseRule: '', |
| | | name: '', |
| | | itemlist: [{ |
| | | ruleName: '----', |
| | | score: '--', |
| | | remark: '------------' |
| | | },{ |
| | | ruleName: '----', |
| | | score: '--', |
| | | remark: '------------' |
| | | }] |
| | | }] |
| | | }, |
| | | |
| | |
| | | let year = data.period.split('/')[0] |
| | | let month = data.period.split('/')[1].split('-')[0] |
| | | let gradeDetails = [{ |
| | | name: 'èæ ¸å¾å', |
| | | name: 'èªè¯å¾å', |
| | | detail: data.score |
| | | }, { |
| | | name: 'é£é©æå', |
| | |
| | | name: 'é£é©ç级', |
| | | detail: data.level |
| | | }, { |
| | | name: 'èæ ¸å¨æ', |
| | | name: 'èªè¯å¨æ', |
| | | detail: `${year}å¹´${month}æ` |
| | | }, { |
| | | name: 'èªè¯æ¶é´', |
| | | detail: moment(data.time).format("YYYY-MM-DD HH:mm") |
| | | }] |
| | | let losePointsItem = [] |
| | | let losePoints = [] |
| | | data.loseScore.forEach(l => { |
| | | losePoints.push({ |
| | | ruleName: l.first, |
| | | score: l.second, |
| | | remark: l.third |
| | | }) |
| | | }); |
| | | for (const key in data.loseScore) { |
| | | const s = data.loseScore[key]; |
| | | if (Object.keys(s).length > 0) { |
| | | losePointsItem.push(key) |
| | | for (const key1 in s) { |
| | | const rule = s[key1]; |
| | | let p = { |
| | | baseRule: key, |
| | | name: key1, |
| | | itemlist: [] |
| | | } |
| | | rule.forEach(r => { |
| | | p.itemlist.push({ |
| | | ruleName: r.first, |
| | | score: r.second, |
| | | remark: r.third |
| | | }) |
| | | }); |
| | | losePoints.push(p) |
| | | } |
| | | } |
| | | } |
| | | let classPoints = { |
| | | score: data.score, |
| | | level: data.level, |
| | |
| | | that.setData({ |
| | | creditText: creditText, |
| | | gradeDetails: gradeDetails, |
| | | losePoints: losePoints |
| | | losePoints: losePoints, |
| | | losePointsItem: losePointsItem |
| | | }) |
| | | setOption(that.chart, classPoints) |
| | | } |
| | |
| | | <image src="/res/icons/qmark2.png" class="mark"></image> |
| | | </view> |
| | | <view class="fyui-panel"> |
| | | <view class="fyui-panel_title">å¾å解读</view> |
| | | <view class="fyui-panel_title">èªè¯è§£è¯»</view> |
| | | <view class="fyui-panel_desc">{{creditText}}</view> |
| | | </view> |
| | | <!-- å¾å详æ
--> |
| | |
| | | <!-- å¤±åæ¡ç® --> |
| | | <view class="fyui-panel fyui-panel__max"> |
| | | <view class="fyui-panel_title">èªè¯è¯æ</view> |
| | | <view> |
| | | æ¬æ¬¡æµè¯ä¸»è¦å¤±åç±»å«ä¸º<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>项ï¼å
·ä½æ
åµå¦ä¸ï¼ |
| | | </view> |
| | | <block wx:for="{{losePoints}}" wx:key="index"> |
| | | <view class="{{index !=0 ? 'first' : ''}}"> |
| | | <view class="fyui-panel_title">{{index + 1}}. {{item.ruleName}}</view> |
| | | <view class="fyui-panel_desc">ç»åï¼<text style="color: orange;">{{item.score}}å</text></view> |
| | | <view class="fyui-panel_desc">{{item.remark}}</view> |
| | | <view class="fyui-panel_title">{{index + 1}}. ã<text style="color: orange;">{{item.baseRule}}</text>ã{{item.name}}</view> |
| | | <block wx:for="{{item.itemlist}}" wx:for-item="rule" wx:key="index"> |
| | | <view class="fyui-panel_desc"> |
| | | <view>é®é¢ï¼</view>{{rule.ruleName}} |
| | | </view> |
| | | <view class="fyui-panel_desc"> |
| | | <view>失åï¼</view><text style="color: orange;">{{rule.score}}å</text> |
| | | </view> |
| | | <view class="fyui-panel_desc"> |
| | | <view>建议ï¼</view>{{rule.remark}} |
| | | </view> |
| | | </block> |
| | | </view> |
| | | </block> |
| | | </view> |
| | |
| | | |
| | | .fyui-panel .last { |
| | | border-bottom: 0px rgba(214, 214, 214, 0.308) solid; |
| | | } |
| | | |
| | | .fyui-panel__max .fyui-panel_desc{ |
| | | display: flex; |
| | | } |
| | | |
| | | .fyui-panel__max .fyui-panel_desc>view{ |
| | | white-space: nowrap; |
| | | } |
| | |
| | | this.getLedgerType() |
| | | }, |
| | | |
| | | onPullDownRefresh(){ |
| | | console.log('onPullDownRefresh'); |
| | | wx.stopPullDownRefresh({ |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | }, |
| | | |
| | | getNextEvaluationTime() { |
| | | let now = moment().add(1, 'months') |
| | | this.setData({ |
| | |
| | | getNews() { |
| | | var that = this |
| | | let user = app.globalData.userInfo |
| | | lawservice.getLawRegulations(user.guid, 1, user.extension2, { |
| | | lawservice.getLawRegulations(user.guid, 1, { |
| | | sceneTypeId: user.extension2, |
| | | fileType: 1 |
| | | }, { |
| | | success(data) { |
| | | let laws = [] |
| | | data.forEach(d => { |
| | |
| | | let cTime = moment(c.cmCreateTime) |
| | | let leftDays = cTime.add(1, 'years').diff(moment(), 'days') |
| | | that.setData({ |
| | | promise: { |
| | | promsieInfo: { |
| | | leftDays: leftDays |
| | | } |
| | | }) |
| | |
| | | { |
| | | "navigationBarBackgroundColor": "#EAFFF1", |
| | | "enablePullDownRefresh":true, |
| | | "usingComponents": { |
| | | "cp-notice": "/component/notice/notice" |
| | | } |
| | |
| | | </view> |
| | | </view> --> |
| | | <view class="flex-h"> |
| | | <view class="top-card" bindtap="goto" data-index="0"> |
| | | <view class="top-card__score"><text class="top-card__num">{{historyPoint.score}}</text>å</view> |
| | | <view class="top-card__time">èªæµæºè¯å¾å ></view> |
| | | <view class="top-card__tag">ç¹å»æ¥çæ¬æèªæµæºè¯æ
åµ</view> |
| | | <image src="/res/icons/wm_assessment.png"></image> |
| | | <view class="flex-h_block"> |
| | | <view class="top-card" bindtap="goto" data-index="0"> |
| | | <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> |
| | | <view class="top-card" bindtap="goto" data-index="5"> |
| | | <view class="top-card__score"><text class="top-card__num">{{monthInfo.percent}}</text>%</view> |
| | | <view class="top-card__time">å°è´¦å®æç ></view> |
| | | <view class="top-card__tag">ç¹å»æ¥çæ¬æå°è´¦ä¸ä¼ æ
åµ</view> |
| | | <image src="/res/icons/wm_ledger.png"></image> |
| | | </view> |
| | | <view class="top-card" bindtap="goto" data-index="6"> |
| | | <view class="top-card__score">å©ä½<text class="top-card__num">{{promsieInfo.leftDays}}</text>天</view> |
| | | <view class="top-card__time">æ¿è¯ºææåè®¡æ¶ ></view> |
| | | <view class="top-card__tag">ç¹å»æ¥çæ¬ææ¿è¯ºå®ææ
åµ</view> |
| | | <image src="/res/icons/wm_commitment.png"></image> |
| | | <view class="flex-h_block"> |
| | | <view class="top-card top-card_2" bindtap="goto" data-index="5"> |
| | | <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> |
| | | <view class="top-card top-card_3" bindtap="goto" data-index="6"> |
| | | <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> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | /* pages/home/home.wxss */ |
| | | .page__hd { |
| | | background: linear-gradient(to bottom right, #D9FDFB, white); |
| | | /* background: linear-gradient(to bottom right, #D9FDFB, white); */ |
| | | padding: 0; |
| | | } |
| | | |
| | | .page__title { |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | .flex-h_block{ |
| | | flex: 1; |
| | | } |
| | | |
| | | .top-card { |
| | | position: relative; |
| | | border-radius: 4px; |
| | | background-color: #5bf0d6; |
| | | background-color: #DCFFF9; |
| | | /* background: linear-gradient(to bottom right, #a5f5e9, #62EAD2); */ |
| | | color: white; |
| | | color: #219372; |
| | | padding: 8px; |
| | | width: 26vw; |
| | | /* text-shadow: 1px 1px rgb(0, 0, 0, 0.4); */ |
| | | margin-left: 10px; |
| | | margin-right: 2px; |
| | | height: 20vh; |
| | | } |
| | | |
| | | .top-card_2 { |
| | | margin-left: 2px; |
| | | margin-right: 10px; |
| | | margin-bottom: 0.5vh; |
| | | height: 8.5vh; |
| | | background-color: #DDEEFF; |
| | | color: #2B7BCB; |
| | | } |
| | | |
| | | .top-card_3 { |
| | | margin-left: 2px; |
| | | margin-right: 10px; |
| | | margin-top: 0.5vh; |
| | | height: 8.5vh; |
| | | background-color: #FAFCF0; |
| | | color: #859438; |
| | | } |
| | | |
| | | .top-card>image{ |
| | | width: 15vh; |
| | | height: 18vh; |
| | | position: absolute; |
| | | bottom: 0px; |
| | | right: 0px; |
| | | } |
| | | |
| | | .top-card_2>image{ |
| | | width: 13vw; |
| | | height: 14vw; |
| | | position: absolute; |
| | | bottom: -2px; |
| | | right: -2px; |
| | | } |
| | | |
| | | .top-card_3>image{ |
| | | width: 13vw; |
| | | height: 14vw; |
| | | } |
| | | |
| | | .top-card .top-card__time { |
| | | /* text-align: end; */ |
| | | font-size: 12px; |
| | | color: #ffffffde; |
| | | color: #8BD5C8; |
| | | } |
| | | |
| | | .top-card_2 .top-card__time { |
| | | color: #95BEE7; |
| | | } |
| | | |
| | | .top-card_3 .top-card__time { |
| | | color: #BBC391; |
| | | } |
| | | |
| | | .top-card .top-card__score { |
| | |
| | | } |
| | | |
| | | .top-card .top-card__num { |
| | | font-size: 20px; |
| | | font-size: 26px; |
| | | font-weight: 600; |
| | | } |
| | | |
| | | .top-card .top-card__tag{ |
| | | font-size: 10px; |
| | | width: 12vw; |
| | | color: #ffffff5e; |
| | | color: #ffffffbd; |
| | | } |
| | | |
| | | .top-card .top-card__items { |
| | |
| | | // pages/learn/learn.js |
| | | const lawservice = require("../../service/lawservice") |
| | | const moment = require('../../utils/moment.min') |
| | | const app = getApp() |
| | | |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | } |
| | | ], |
| | | pageList: [ |
| | | |
| | | ], |
| | | banners: [ |
| | | { |
| | | banners: [ |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | ], |
| | | text1: [{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´4æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´3æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´2æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´2æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | }], |
| | | 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 |
| | | }] |
| | | },{ |
| | | banners: [ |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | ], |
| | | text1: [{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´4æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´3æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´2æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´2æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | }], |
| | | 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 |
| | | }] |
| | | },{ |
| | | banners: [ |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | ], |
| | | text1: [{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´4æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´3æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´2æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´2æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | }], |
| | | 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 |
| | | }] |
| | | },{ |
| | | banners: [ |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | '/res/icons/btn_bg_1.png', |
| | | '/res/icons/btn_bg_2.png', |
| | | ], |
| | | text1: [{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´4æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´3æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´2æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | },{ |
| | | title: "ä¼ä¸è¥ä¸æ§ç
§ãé£åç»è¥è®¸å¯è¯ä¸¢å¤±è¯¥å¦ä½è¡¥é¢", |
| | | time: "2022å¹´2æ5æ¥", |
| | | views: 2012, |
| | | pic: "/res/icons/temp_pic_1.png" |
| | | }], |
| | | 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 |
| | | }] |
| | | } |
| | | ] |
| | | 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) { |
| | |
| | | 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); //æ¥è¯¢åªä¸ä¸ªå
ç´ |
| | | that.tabsHeight('.page' + e.target.dataset.current); //æ¥è¯¢åªä¸ä¸ªå
ç´ |
| | | } |
| | | }, |
| | | bindChange: function (e) { |
| | |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad: function (options) { |
| | | this.tabsHeight('.page0'); |
| | | // 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) |
| | | }, |
| | | |
| | | gotoBanner(e) { |
| | | var index = e.currentTarget.dataset.index |
| | | let f = this.data.resources[index] |
| | | this.goto(f) |
| | | }, |
| | | gotoResource(e) { |
| | | var index = e.currentTarget.dataset.index |
| | | let f = this.data.resources[index] |
| | | this.goto(f) |
| | | }, |
| | | /** |
| | | * 页é¢è·³è½¬ |
| | | */ |
| | | goto: function (e) { |
| | | goto: function (f) { |
| | | var url = "" |
| | | var index = e.currentTarget.dataset.index |
| | | switch (index) { |
| | | case "0": |
| | | url = "" |
| | | break; |
| | | 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 "2": |
| | | url = "" |
| | | return; |
| | | case "3": |
| | | //å¾ç |
| | | case 3: |
| | | url = "" |
| | | break; |
| | | case "4": |
| | | //ç¯ä¿å®æ³ |
| | | url = "/pages/text/text" |
| | | break; |
| | | case "5": |
| | | //è§é¢ |
| | | case 4: |
| | | url = "/pages/module_common/pagevideo/pagevideo" |
| | | break; |
| | | } |
| | | if (url != "") { |
| | | wx.navigateTo({ |
| | | url: url |
| | | url: url, |
| | | success: (res) => { |
| | | // éè¿ eventChannel å被æå¼é¡µé¢ä¼ éæ°æ® |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', f) |
| | | }, |
| | | }) |
| | | } |
| | | } |
| | |
| | | "navigationBarTitleText": "宿³å¦ä¹ ", |
| | | "navigationBarBackgroundColor": "#65EAD2", |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": {} |
| | | "usingComponents": { |
| | | "mp-icon": "/component/icon/icon" |
| | | } |
| | | } |
| | |
| | | <!--pages/learn/learn.wxml--> |
| | | <view class="page "> |
| | | |
| | | <view class="swiper-tab"> |
| | | <!-- <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}};"> |
| | | </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 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='{{page.banners}}' wx:key='u'> |
| | | <swiper-item> |
| | | <image src='{{item}}' mode="aspectFill" class='swiper-item-images' /> |
| | | </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/btn_bg_3.png" class="image-btn__1" /> |
| | | </view> |
| | | <view class="flex-v"> |
| | | <view class="image-btn" bindtap="goto"> |
| | | <image src="../../res/icons/btn_bg_4.png" class="image-btn__2" /> |
| | | </view> |
| | | <view class="image-btn" bindtap="goto" data-index="2"> |
| | | <image src="../../res/icons/btn_bg_5.png" class="image-btn__2" /> |
| | | </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="{{page.text1}}" wx:key="index" data-index="index" wx:item="item"> |
| | | <view class="fyui-box fyui-panel" bindtap="goto" data-index="4"> |
| | | <view class="fyui-box__hd"> |
| | | <image src="{{item.pic}}" class="" /> |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content">{{item.title}}</view> |
| | | <view class="fyui-box__tag"> |
| | | <view>{{item.time}}</view> |
| | | <view class="flex-h"> |
| | | <image src="/res/icons/view.png" class="icon"></image>{{item.views}} |
| | | </view> |
| | | </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="{{page.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> |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | | </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="gotoBanner" /> |
| | | </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/btn_bg_3.png" class="image-btn__1" /> |
| | | </view> |
| | | <view class="flex-v"> |
| | | <view class="image-btn" bindtap="goto"> |
| | | <image src="../../res/icons/btn_bg_4.png" class="image-btn__2" /> |
| | | </view> |
| | | <view class="image-btn" bindtap="goto" data-index="2"> |
| | | <image src="../../res/icons/btn_bg_5.png" class="image-btn__2" /> |
| | | </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="gotoResource" 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> |
| | |
| | | .image-btn__2 { |
| | | width: 46vw; |
| | | height: 20vw; |
| | | } |
| | | |
| | | .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; |
| | | } |
| | |
| | | userRealName: app.globalData.userInfo.realname |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage: function () { |
| | | |
| | | } |
| | | }) |
| | |
| | | } |
| | | |
| | | .flex-v { |
| | | flex: 1; |
| | | justify-content: space-between; |
| | | margin-left: 20px; |
| | | } |
| | |
| | | } |
| | | |
| | | .user-name { |
| | | white-space: nowrap; |
| | | /* white-space: nowrap; */ |
| | | font-size: 16px; |
| | | font-weight: 600; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_common/pagevideo/pagevideo.js |
| | | const lawservice = require("../../../service/lawservice") |
| | | const moment = require('../../../utils/moment.min') |
| | | const app = getApp() |
| | | |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | video: {}, |
| | | resources: [] |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | 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, |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | this.getResources() |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | }, |
| | | |
| | | onReachBottom () { |
| | | console.log('onReachBottom'); |
| | | if (this.cPage && this.tPage) { |
| | | if (this.cPage < this.tPage) { |
| | | this.getResources(this.cPage + 1) |
| | | } |
| | | } |
| | | }, |
| | | |
| | | getResources(cPage = 1) { |
| | | var that = this |
| | | let user = app.globalData.userInfo |
| | | lawservice.getLawRegulations(user.guid, cPage, { |
| | | sceneTypeId: user.extension2, |
| | | fileType: 4 |
| | | }, { |
| | | 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 |
| | | }) |
| | | } |
| | | }, 4) |
| | | }, |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "è§é¢ææ¾", |
| | | "navigationBarBackgroundColor": "#65EAD2", |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--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.lrResourcetitle}}</view> |
| | | |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <view>{{video.lrPublishdate}}</view> |
| | | <view> |
| | | <image src="/res/icons/view.png" class="icon"></image>{{video.views}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="page__ft"> |
| | | <view class="title">ç¸å
³è§é¢</view> |
| | | <view wx:for="{{resources}}" wx:key="index" wx:item="item"> |
| | | <view class="fyui-box fyui-panel" 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"></image>{{item.views}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/module_common/pagevideo/pagevideo.wxss */ |
| | | .page__hd{ |
| | | padding: 0; |
| | | } |
| | | .video{ |
| | | width: 100%; |
| | | } |
| | | |
| | | .title{ |
| | | text-align: start; |
| | | padding: 0 16px; |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | const consultservice = require("../../../service/consultservice") |
| | | const app = getApp() |
| | | |
| | | /** |
| | | * æºè½å¨çº¿å¨è¯¢çæ¥è¯¢ä¸æ¥ç详æ
|
| | | */ |
| | | module.exports = Behavior({ |
| | | data: { |
| | | result: [] |
| | | }, |
| | | methods:{ |
| | | onReachBottom () { |
| | | console.log('onReachBottom'); |
| | | if (this.cPage && this.tPage) { |
| | | if (this.cPage < this.tPage) { |
| | | this.searchMore(this.cPage + 1) |
| | | } |
| | | } |
| | | }, |
| | | searchMore (cPage = 1) { |
| | | var that = this |
| | | wx.showLoading({ |
| | | title: 'æç´¢ä¸', |
| | | mask: true, |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | setTimeout(() => { |
| | | wx.hideLoading() |
| | | }, 20000); |
| | | consultservice.searchLaw(app.globalData.accessToken.userId, 'å¤§æ°æ±¡æ', 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.replace('\\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() |
| | | } |
| | | }, 2) |
| | | }, |
| | | /** |
| | | * æ¥çæ¥è¯¢ç»æè¯¦æ
|
| | | */ |
| | | 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/module_consult/consultdetail/consultdetail', |
| | | success: (res) => { |
| | | // éè¿ eventChannel å被æå¼é¡µé¢ä¼ éæ°æ® |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { |
| | | fileId: fileId |
| | | }) |
| | | }, |
| | | }) |
| | | break; |
| | | //æ³å¾æ³è§æ¡ç® |
| | | case 2: |
| | | const itemId = r.contents[i2].id |
| | | wx.navigateTo({ |
| | | url: '/pages/module_consult/consultdetailitem/consultdetailitem', |
| | | success: (res) => { |
| | | // éè¿ eventChannel å被æå¼é¡µé¢ä¼ éæ°æ® |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { |
| | | itemId: itemId |
| | | }) |
| | | }, |
| | | }) |
| | | break; |
| | | //æ§æ³æ¡ä¾ |
| | | case 3: |
| | | |
| | | break; |
| | | //ç¯ä¿é®é¢ |
| | | case 4: |
| | | |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | }, |
| | | } |
| | | }) |
| | |
| | | <view class="page"> |
| | | <view class="page__hd"> |
| | | <view class="f-title">ã{{content.mfName}}ã</view> |
| | | <view class="f-tag">å叿¶é´ï¼{{content.mfReleaseDate}}</view> |
| | | <!-- <view class="f-tag">å叿¶é´ï¼{{content.mfReleaseDate}}</view> --> |
| | | <text class="f-summary" user-select="true" decode="true" space="emsp">ãæè¦ãï¼{{content.mfSummary}}</text> |
| | | </view> |
| | | <view class="page__bd"> |
| | | <view class="fyui-panel"> |
| | | <view>ç®ç§°ï¼{{content.mfShortName}}</view> |
| | | <view>æå·ï¼{{content.mfReferenceNumber}}</view> |
| | | <!-- <view>ç®ç§°ï¼{{content.mfShortName}}</view> --> |
| | | <view>åå¸åä½ï¼{{content.mfReleaseOrg}}</view> |
| | | <view>å°åï¼{{content.mfMgtLevel}}</view> |
| | | </view> |
| | | <view class="fyui-panel"> |
| | | <view>æå·ï¼{{content.mfReferenceNumber}}</view> |
| | | <view>æä»¶ç±»å«ï¼{{content.mfFileType}}</view> |
| | | <!-- <view>æä»¶ä¸è½½</view> --> |
| | | <view>æä»¶çº§å«ï¼{{content.mfMgtLevel}}</view> |
| | | </view> |
| | | <view class="fyui-panel"> |
| | | <view>ç¸å
³è¡ä¸ï¼{{content.mfFileIndustry}}</view> |
| | | <view>ç¯ä¿è¦ç´ ï¼{{content.mfEpItemType}}ã{{content.mfEpItemSubtype}}</view> |
| | | <!-- <view>æä»¶ä¸è½½</view> --> |
| | | </view> |
| | | <view class="fyui-panel"> |
| | | <view>便®ï¼{{content.mfFileBasis}}</view> |
| | | </view> |
| | | <view class="fyui-panel"> |
| | | <view>çææ¶é´ï¼{{content.mfEffectiveDate}}</view> |
| | | <view>å叿¶é´ï¼{{content.mfReleaseDate}}</view> |
| | | <view>宿½æ¶é´ï¼{{content.mfEffectiveDate}}</view> |
| | | <view>修订æ
åµï¼{{content.mfFileRevise}}</view> |
| | | </view> |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_consult/consultdetailitem/consultdetailitem.js |
| | | const consultservice = require("../../../service/consultservice") |
| | | const app = getApp() |
| | | const behavior = require('../behaviors/behConsultItem') |
| | | |
| | | Page({ |
| | | behaviors: [behavior], |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | content:[], |
| | | more:[] |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | var that = this |
| | | this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) { |
| | | that.setData({ |
| | | itemId: data.itemId |
| | | }) |
| | | |
| | | that.getItem() |
| | | }) |
| | | this.searchMore(1) |
| | | }, |
| | | |
| | | getItem () { |
| | | var that = this |
| | | wx.showLoading({ |
| | | title: 'å è½½ä¸', |
| | | mask: true, |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | setTimeout(() => { |
| | | wx.hideLoading() |
| | | }, 20000); |
| | | consultservice.getMgtItem(app.globalData.accessToken.userId, this.data.itemId, { |
| | | success (res) { |
| | | res.miItemContent = res.miItemContent.replace('\\n', '<br/>') |
| | | that.setData({ |
| | | content: res |
| | | }) |
| | | }, |
| | | complete (res) { |
| | | wx.hideLoading() |
| | | } |
| | | }) |
| | | }, |
| | | }) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "navigationBarTitleText": "æ³è§ç»å", |
| | | "navigationBarBackgroundColor": "#57E4CB", |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_consult/consultdetailitem/consultdetailitem.wxml--> |
| | | <view class="page"> |
| | | <!-- <view class="page__hd"> |
| | | <view class="f-tag">å叿¶é´ï¼{{content.mfReleaseDate}}</view> |
| | | </view> --> |
| | | <view class="page__bd"> |
| | | <view class="fyui-panel"> |
| | | <rich-text class="f-title" nodes="{{content.miItemContent}}"></rich-text> |
| | | |
| | | <!-- <view>ç®ç§°ï¼{{content.mfShortName}}</view> --> |
| | | |
| | | </view> |
| | | |
| | | <view class="fyui-panel"> |
| | | <view>å
³é®è¯ï¼{{content.miKeyword}}</view> |
| | | </view> |
| | | |
| | | <view class="fyui-panel"> |
| | | <view>æ¥æºï¼ã{{content.mfName}}ã</view> |
| | | <view>ç« èï¼{{content.miChapterName}}</view> |
| | | <view>æ¡ç®ï¼{{content.miItemName}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="page__ft"> |
| | | <block wx:for="{{result}}" wx:key="i1" wx:for-item="catagory" wx:for-index="i1"> |
| | | <view class="page__hd"> |
| | | <view>ç¸å
³æ¡ç® ></view> |
| | | </view> |
| | | <view class="page__bd"> |
| | | <view class="fyui-panel"> |
| | | <block wx:if="{{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> |
| | | </view> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/module_consult/consultdetailitem/consultdetailitem.wxss */ |
| | | /* .page__hd { |
| | | padding: 0; |
| | | } */ |
| | | .page__ft{ |
| | | text-align: start; |
| | | } |
| | | |
| | | .f-title { |
| | | font-size: 17px; |
| | | font-weight: 600; |
| | | color: var(--fyui-text-color_1); |
| | | } |
| | | |
| | | .f-tag { |
| | | font-size: 12px; |
| | | color: var(--fyui-text-color_2); |
| | | text-align: end; |
| | | margin-bottom: 16px; |
| | | } |
| | | |
| | | .f-summary { |
| | | font-size: 14px; |
| | | color: var(--fyui-text-color_2); |
| | | } |
| | | |
| | | .fyui-panel{ |
| | | padding: 8px; |
| | | font-size: 14px; |
| | | color: var(--fyui-text-color_1); |
| | | } |
| | | |
| | | .fyui-panel>view{ |
| | | margin-bottom: 4px; |
| | | } |
| | | |
| | | |
| | | |
| | | .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); |
| | | } |
| | |
| | | */ |
| | | data: { |
| | | searchTips: '请è¾å
¥å
³é®åæç´¢', |
| | | hotTopics: [] |
| | | hotTopics: [], |
| | | |
| | | tabList: [{ |
| | | name: 'çé¨', |
| | | tag: 0 |
| | | }, { |
| | | name: 'æä»¶', |
| | | tag: 0 |
| | | }, { |
| | | name: 'æ¡ç®', |
| | | tag: 0 |
| | | }, { |
| | | name: 'æ¡ä¾', |
| | | tag: 0 |
| | | }], |
| | | |
| | | pageList: [ |
| | | [], |
| | | [], |
| | | [], |
| | | [], |
| | | ] |
| | | }, |
| | | |
| | | /** |
| | |
| | | r.mfClosingDate = that.formateTime(r.mfClosingDate) |
| | | }); |
| | | that.setData({ |
| | | hotTopics: res |
| | | 'pageList[0]': res, |
| | | 'pageList[1]': res |
| | | }) |
| | | } |
| | | }) |
| | |
| | | |
| | | gotoDetail(e) { |
| | | var i = e.currentTarget.dataset.index |
| | | var fileId = this.data.hotTopics[i].mfGuid |
| | | var fileId = this.data.pageList[0][i].mfGuid |
| | | wx.navigateTo({ |
| | | url: '/pages/module_consult/consultdetail/consultdetail', |
| | | success: (res) => { |
| | |
| | | }) |
| | | }, |
| | | |
| | | formateTime (t) { |
| | | formateTime(t) { |
| | | if (t) { |
| | | return moment(t).format("YYYYå¹´MMæDDæ¥") |
| | | return moment(t).format("YYYYå¹´MMæDDæ¥") |
| | | } else { |
| | | return undefined |
| | | } |
| | |
| | | "navigationBarBackgroundColor": "#57E4CB", |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": { |
| | | "mp-icon": "/component/icon/icon" |
| | | "mp-icon": "/component/icon/icon", |
| | | "switch-tab": "/component/switchtab/switchtab", |
| | | "mp-loading": "/component/loading/loading" |
| | | } |
| | | } |
| | |
| | | <view class="flex-h"> |
| | | <view class="card" bindtap="goto" data-index="0"> |
| | | <image src="/res/icons/con_pro_bg.png" class="card-bg" mode="scaleToFill" /> |
| | | <view class="card-title">常è§é®é¢</view> |
| | | <view class="card-abstract">常è§ä¼ä¸ç¯ä¿é®é¢</view> |
| | | <view class="card-title">ç¯ä¿é®é¢</view> |
| | | <view class="card-abstract">常è§ä¼ä¸é®é¢</view> |
| | | <image src="/res/icons/con_pro.png" mode="aspectFit" class="icon"></image> |
| | | </view> |
| | | <view class="divider"></view> |
| | | <view class="card middle" bindtap="goto" data-index="1"> |
| | | <image src="/res/icons/con_lib_bg.png" class="card-bg" mode="scaleToFill" /> |
| | | <view class="card-title">ç¯ä¿ç¥è¯åº</view> |
| | | <view class="card-abstract">ç¯ä¿æ³å¾æ³è§</view> |
| | | <view class="card-abstract">çæç¯å¢æ³å¾æ³è§</view> |
| | | <image src="/res/icons/con_lib.png" mode="aspectFit" class="icon"></image> |
| | | </view> |
| | | <view class="divider"></view> |
| | | <view class="card" bindtap="goto" data-index="2"> |
| | | <image src="/res/icons/con_qa_bg.png" class="card-bg" mode="scaleToFill" /> |
| | | <view class="card-title">æºè½å¨è¯¢</view> |
| | | <view class="card-abstract">ç¯ä¿ä¸å®¶ å¨çº¿å¨è¯¢</view> |
| | | <view class="card-abstract">ç¯ä¿æºè½å©æ</view> |
| | | <image src="/res/icons/con_qa.png" mode="aspectFit" class="icon"></image> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="fyui-cell fyui-cell_select"> |
| | | |
| | | <switch-tab tabList="{{tabList}}" pageList="{{pageList}}"> |
| | | <view slot="slot{{index}}" wx:for="{{pageList}}" wx:for-item="page" wx:key="index"> |
| | | <block wx:if="{{page.length > 0}}"> |
| | | |
| | | <view wx:for="{{page}}" wx:key="cIndex" wx:for-index="cIndex" data-index="{{cIndex}}" bindtap="gotoDetail"> |
| | | <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | {{item.mfName}} |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content tag"> |
| | | <view>æä»¶ç±»å«ï¼{{item.mfFileType}}</view> |
| | | <view>çææ¶é´ï¼{{item.mfEffectiveDate}}</view> |
| | | <view>æå·ï¼{{item.mfReferenceNumber}}</view> |
| | | <view>ç¸å
³è¡ä¸ -> {{item.mfFileIndustry}}</view> |
| | | </view> |
| | | <view class="fyui-box__content des">{{item.mfSummary}}</view> |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <text class="keyword">å
³é®è¯ï¼</text> |
| | | <view class="keyword-item"> |
| | | <text wx:for="{{item.mfKeywordLv1}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </block> |
| | | <view wx:else class="page__ft"> |
| | | <mp-loading duration="{{900}}" type="dot-gray" show="{{true}}" animated="{{true}}"></mp-loading> |
| | | |
| | | </view> |
| | | |
| | | </view> |
| | | </switch-tab> |
| | | |
| | | |
| | | <!-- <view class="fyui-cell fyui-cell_select"> |
| | | <view class="fyui-cell__bd">çé¨</view> |
| | | <view class="fyui-cell__ft">æ´å¤</view> |
| | | </view> |
| | | <view wx:for="{{hotTopics}}" wx:key="index" data-index="{{index}}" bindtap="gotoDetail"> |
| | | <!-- <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | <text class="" wx:for="{{item.tags}}" wx:key="i" data-index="i" wx:for-item="tag">{{tag}}</text> |
| | | {{item.name}} |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content">{{item.abstract}}</view> |
| | | |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <view>{{item.time}}</view> |
| | | <view>{{item.author}}</view> |
| | | </view> |
| | | </view> --> |
| | | <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | {{item.mfName}} |
| | | </view> |
| | | <view class="fyui-box__bd"> |
| | | <view class="fyui-box__content tag"> |
| | | <view>æä»¶ç±»å«ï¼{{item.mfFileType}}</view> |
| | | <view>çææ¶é´ï¼{{item.mfEffectiveDate}}</view> |
| | | <view>æå·ï¼{{item.mfReferenceNumber}}</view> |
| | | <view>ç¸å
³è¡ä¸ -> {{item.mfFileIndustry}}</view> |
| | | </view> |
| | | <view class="fyui-box__content des">{{item.mfSummary}}</view> |
| | | </view> |
| | | <view class="fyui-box__ft"> |
| | | <text class="keyword">å
³é®è¯ï¼</text> |
| | | <view class="keyword-item"> |
| | | <text wx:for="{{item.mfKeywordLv1}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | </view> |
| | | <view class="page__ft"> |
| | | |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | |
| | | .card .card-abstract { |
| | | font-size: 12px; |
| | | font-size: 11px; |
| | | color: var(--fyui-text-color_2); |
| | | } |
| | | |
| | |
| | | // pages/module_consult/consultresult/consultresult.js |
| | | const consultservice = require("../../../service/consultservice") |
| | | const app = getApp() |
| | | const behavior = require('../behaviors/behConsultItem') |
| | | |
| | | Page({ |
| | | |
| | | behaviors: [behavior], |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | keyword: 'asdad', |
| | | keyword: '', |
| | | result: [] |
| | | }, |
| | | |
| | |
| | | setTimeout(() => { |
| | | wx.hideLoading() |
| | | }, 20000); |
| | | consultservice.searchLaw(app.globalData.accessToken.userId, this.data.keyword, { |
| | | 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.replace('\\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: res |
| | | result |
| | | }) |
| | | console.log(result); |
| | | }, |
| | | complete (res) { |
| | | wx.hideLoading() |
| | |
| | | }) |
| | | }, |
| | | |
| | | gotoDetail (e) { |
| | | var i = e.currentTarget.dataset.index |
| | | var fileId = this.data.result[i].id |
| | | // 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/module_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/module_consult/consultdetail/consultdetail', |
| | | url: '/pages/module_consult/consultresultmore/consultresultmore', |
| | | success: (res) => { |
| | | // éè¿ eventChannel å被æå¼é¡µé¢ä¼ éæ°æ® |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { |
| | | fileId: fileId |
| | | typeId: typeId, |
| | | keyword: keyword |
| | | }) |
| | | }, |
| | | }) |
| | |
| | | <!--pages/module_consult/consultresult/consultresult.wxml--> |
| | | <view class="page"> |
| | | <view class="page__hd"> |
| | | <view><text>{{keyword}}</text>çæ³å¾æ³è§ ></view> |
| | | </view> |
| | | <view class="page__bd"> |
| | | <view class="fyui-panel"> |
| | | <view wx:for="{{result}}" wx:key="index" data-index="{{index}}" bindtap="gotoDetail"> |
| | | <view class="fyui-box fyui-box__text"> |
| | | <view class="fyui-box__hd"> |
| | | {{item.name}} |
| | | </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> |
| | | <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> |
| | | </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}} |
| | | </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 class="btn-more" data-typeid="{{catagory.typeId}}" bindtap="gotoMore">æ¥çæ´å¤</view> |
| | | </view> |
| | | </block> |
| | | <view class="page__ft"></view> |
| | | </view> |
| | | </view> |
| | |
| | | |
| | | .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); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/module_consult/consultresultmore/consultresultmore.js |
| | | const consultservice = require("../../../service/consultservice") |
| | | const app = getApp() |
| | | const behavior = require('../behaviors/behConsultItem') |
| | | |
| | | Page({ |
| | | behaviors: [behavior], |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | // result: [] |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | var that = this |
| | | this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) { |
| | | that.setData({ |
| | | keyword: data.keyword, |
| | | typeId: 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) => {}, |
| | | }) |
| | | 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.replace('\\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": {} |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/module_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> |
| | | <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}} |
| | | </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/module_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); |
| | | } |
| | |
| | | var i = e.currentTarget.dataset.index.split(',') |
| | | var indexGroup = [parseInt(i[0]), parseInt(i[1])] |
| | | var ledger = this.data.recordList[indexGroup[0]].ledgers[indexGroup[1]] |
| | | console.log(ledger); |
| | | wx.navigateTo({ |
| | | url: '/pages/module_ledger/ledgerupload/ledgerupload', |
| | | success: (res) => { |
| | |
| | | { |
| | | "navigationBarTitleText": "åå²å°è´¦", |
| | | "navigationBarBackgroundColor": "#57E4CB", |
| | | "usingComponents": { |
| | | "mp-icon": "/component/icon/icon" |
| | | } |
| | |
| | | <!--pages/module_ledger/ledgerHistory/ledgerhistory.wxml--> |
| | | <import src="/template/nodata/nodata.wxml"></import> |
| | | <import src="/template/nodata.wxml"></import> |
| | | <view class="page"> |
| | | <view class="page__hd"> |
| | | <view class="flex-h"> |
| | |
| | | </view> |
| | | <view class="ledger-group"> |
| | | <view wx:for="{{item.ledgers}}" wx:for-item="ledger" wx:for-index="i2" wx:key="i2" class="ledger-group_item" bindtap="gotoLedgerDetail" data-index="{{i1}},{{i2}}"> |
| | | <image class="" src="{{ledger.path1[0]}}"></image> |
| | | <image class="" src="{{ledger.path1[0]}}" mode="aspectFill"></image> |
| | | <view>{{ledger.ledgerName}}</view> |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | |
| | | .ledger-group_item{ |
| | | width: 30vw; |
| | | width: 46vw; |
| | | text-align: center; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .ledger-group_item>image{ |
| | | width: 28vw; |
| | | height: 28vw; |
| | | width: 40vw; |
| | | height: 40vw; |
| | | border-radius: 8px; |
| | | } |
| | | |
| | | .ledger-group_item>view{ |
| | | font-size: 12px; |
| | | margin-bottom: 8px; |
| | | } |
| | |
| | | this.getLedgerType(now.add(-1, 'M').format('YYYY-MM-DD'), r => { |
| | | this.setData({ |
| | | lastMonthInfo: r[2] |
| | | }, true) |
| | | }) //䏿 |
| | | }) |
| | | }, true) //䏿 |
| | | }, |
| | | |
| | | /** |
| | |
| | | monthInfo.overtime = moment().date() - this.DEADLINEDAY |
| | | monthInfo.percent = Math.round(monthInfo.finishedMust / monthInfo.totalMust * 100) |
| | | |
| | | console.log(lastMonth); |
| | | console.log(monthInfo); |
| | | |
| | | //éé¡¹å¡ |
| | | var t = [] |
| | | var p = [] |
| | |
| | | var i = e.currentTarget.dataset.index.split(',') |
| | | var indexGroup = [parseInt(i[0]), parseInt(i[1])] |
| | | var ledger = this.data.pageList[indexGroup[0]][indexGroup[1]] |
| | | console.log(indexGroup); |
| | | console.log(ledger); |
| | | |
| | | var that = this |
| | | wx.navigateTo({ |
| | |
| | | let that = this; |
| | | let query = wx.createSelectorQuery(); //å¿
é¡»è¦å
å建ä¸ä¸ªæ¥è¯¢ |
| | | query.select(element).boundingClientRect(function (rect) { |
| | | // let pageheight = that.data.pageheight.split('px')[0] |
| | | // pageheight = parseInt(pageheight) |
| | | // if (rect > pa) { |
| | | |
| | | // } |
| | | that.setData({ |
| | | pageheight: rect.height + 'px' |
| | | }); |
| | | console.log(rect.height); |
| | | let pageheight = that.data.pageheight.split('px')[0] |
| | | pageheight = parseInt(pageheight) |
| | | if (rect.height > pageheight) { |
| | | that.setData({ |
| | | pageheight: rect.height + 'px' |
| | | }); |
| | | } |
| | | }).exec(); |
| | | }, |
| | | swichNav: function (e) { |
| | |
| | | currentTab: e.target.dataset.current, |
| | | navScrollLeft: e.target.dataset.current >= 3 ? ((e.target.dataset.current) * 60) : 0 //夿å½åéä¸çä¸ªæ°æ¯å¦æ¯ç¬¬5个 |
| | | }) |
| | | that.tabsHeight('.page' + e.target.dataset.current); //æ¥è¯¢åªä¸ä¸ªå
ç´ |
| | | // that.tabsHeight('.page' + e.target.dataset.current); //æ¥è¯¢åªä¸ä¸ªå
ç´ |
| | | } |
| | | }, |
| | | bindChange: function (e) { |
| | |
| | | currentTab: e.detail.current, |
| | | navScrollLeft: e.detail.current >= 3 ? ((e.detail.current) * 60) : 0 //夿å½åéä¸çä¸ªæ°æ¯å¦æ¯ç¬¬5个 |
| | | }); |
| | | // that.tabsHeight('.page'+e.target.dataset.current); //æ¥è¯¢åªä¸ä¸ªå
ç´ |
| | | that.tabsHeight('.page' + e.detail.current); //æ¥è¯¢åªä¸ä¸ªå
ç´ |
| | | }, |
| | | |
| | | changeMonth(){ |
| | |
| | | <block wx:if="{{showThisMonth}}"> |
| | | <view class="head_row"> |
| | | <view class="head_row_item"> |
| | | <view class="head_tag">é填项</view> |
| | | <view class="head_1">{{thisMonthInfo.finishedSelect}}<text class="head_row_item_tag">/{{thisMonthInfo.totalSelect}}</text></view> |
| | | <view class="head_tag">å®æåº¦</view> |
| | | <view class="head_1 head_1_big">{{thisMonthInfo.percent}}<text class="head_row_item_tag">%</text></view> |
| | | </view> |
| | | <view class="head_row_item"> |
| | | <view class="head_tag">å¿
填项</view> |
| | | <view class="head_1">{{thisMonthInfo.finishedMust}}<text class="head_row_item_tag">/{{thisMonthInfo.totalMust}}</text></view> |
| | | </view> |
| | | <view class="head_row_item"> |
| | | <view class="head_tag">å®æåº¦</view> |
| | | <view class="head_1">{{thisMonthInfo.percent}}<text class="head_row_item_tag">%</text></view> |
| | | <view class="head_tag">é填项</view> |
| | | <view class="head_1">{{thisMonthInfo.finishedSelect}}<text class="head_row_item_tag">/{{thisMonthInfo.totalSelect}}</text></view> |
| | | </view> |
| | | </view> |
| | | <view class="head_row"> |
| | |
| | | <block wx:else> |
| | | <view class="head_row"> |
| | | <view class="head_row_item"> |
| | | <view class="head_tag">é填项</view> |
| | | <view class="head_1">{{lastMonthInfo.finishedSelect}}<text class="head_row_item_tag">/{{lastMonthInfo.totalSelect}}</text></view> |
| | | <view class="head_tag">å®æåº¦</view> |
| | | <view class="head_1">{{lastMonthInfo.percent}}<text class="head_row_item_tag">%</text></view> |
| | | </view> |
| | | <view class="head_row_item"> |
| | | <view class="head_tag">å¿
填项</view> |
| | | <view class="head_1">{{lastMonthInfo.finishedMust}}<text class="head_row_item_tag">/{{lastMonthInfo.totalMust}}</text></view> |
| | | </view> |
| | | <view class="head_row_item"> |
| | | <view class="head_tag">å®æåº¦</view> |
| | | <view class="head_1">{{lastMonthInfo.percent}}<text class="head_row_item_tag">%</text></view> |
| | | <view class="head_tag">é填项</view> |
| | | <view class="head_1">{{lastMonthInfo.finishedSelect}}<text class="head_row_item_tag">/{{lastMonthInfo.totalSelect}}</text></view> |
| | | </view> |
| | | </view> |
| | | <view class="head_row"> |
| | |
| | | </block> |
| | | </view> |
| | | <view class="head_right"> |
| | | <text class="head_tag" bindtap="gotoHistory">åå²è®°å½ ></text> |
| | | <text class="head_btn" bindtap="gotoHistory">åå²è®°å½ ></text> |
| | | </view> |
| | | </view> |
| | | <!-- </view> --> |
| | |
| | | |
| | | .head_tag{ |
| | | font-size: 12px; |
| | | color: rgba(255, 255, 255, 0.8); |
| | | color: white; |
| | | } |
| | | |
| | | .head_btn{ |
| | | background-color: rgb(11, 90, 77); |
| | | padding: 4px 6px; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | .head_btn:active{ |
| | | background-color: rgba(11, 90, 77, 0.5); |
| | | } |
| | | |
| | | .head_tag>text { |
| | |
| | | font-size: 30px; |
| | | } |
| | | |
| | | .head_1_big{ |
| | | font-size: 30px; |
| | | } |
| | | |
| | | .head_3 { |
| | | font-size: 12px; |
| | | margin-bottom: 16px; |
| | |
| | | imgFiles: [], |
| | | |
| | | remark: '', |
| | | remarkDisable: false |
| | | remarkDisable: false, |
| | | |
| | | previewImageUrls:[], |
| | | previewCurrent: 0, |
| | | showPreview: false, |
| | | }, |
| | | |
| | | /** |
| | |
| | | }, |
| | | |
| | | checkStatus() { |
| | | if (this.data.ledger.upLoad) { |
| | | if (this.data.ledger.path1) { |
| | | let imgFiles = this.data.ledger.path1 |
| | | let remark = this.data.ledger.remark1 == null ? '' : this.data.ledger.remark1 |
| | | let remarkDisable = true |
| | | this.setData({imgFiles, remark, remarkDisable}) |
| | | }else if (this.data.ledger.upLoad) { |
| | | var that = this |
| | | var userId = app.globalData.accessToken.userId |
| | | var typeId = this.data.ledger.ledgerSubTypeId |
| | |
| | | complete (res) { |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | previewImage(e) { |
| | | const { |
| | | index |
| | | } = e.currentTarget.dataset; |
| | | const previewImageUrls = this.data.imgFiles; |
| | | this.setData({ |
| | | previewImageUrls, |
| | | previewCurrent: index, |
| | | showPreview: true |
| | | }); |
| | | }, |
| | | }) |
| | |
| | | "navigationBarTextStyle": "white", |
| | | "usingComponents": { |
| | | "mp-upload":"/component/uploader/uploader", |
| | | "c-dialog": "/component/commondialog/commondialog" |
| | | "c-dialog": "/component/commondialog/commondialog", |
| | | "mp-gallery": "/component/gallery/gallery" |
| | | } |
| | | } |
| | |
| | | binduploadImg="uploadFile" binddelete="delImg"></mp-upload> |
| | | </view> |
| | | <view wx:else class="img-group"> |
| | | <view wx:for="{{imgFiles}}" > |
| | | <image class="img-group_img" src="{{item}}"></image> |
| | | <view wx:for="{{imgFiles}}" wx:key="index"> |
| | | <image class="img-group_img" src="{{item}}" mode="aspectFill" bindtap="previewImage" data-index="{{index}}"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <c-dialog show="{{showDialog}}" yes="确认" bindconfirm="submitLedger"> |
| | | <view>确认æ¯å¦æäº¤å°è´¦ï¼</view> |
| | | </c-dialog> |
| | | <mp-gallery class="gallery" hide-on-click="{{true}}" show-delete="{{false}}" show="{{showPreview}}" img-urls="{{previewImageUrls}}" current="{{previewCurrent}}"></mp-gallery> |
| | | </view> |
| | |
| | | }, |
| | | |
| | | loginWx() { |
| | | var that = this |
| | | wx.getUserProfile({ |
| | | lang: 'zh_CN', |
| | | desc: 'ç¨äºæ¾ç¤ºï¼æç¤ºç¨æ·å½åå·²ç»å½', |
| | | success(res) { |
| | | console.log(res); |
| | | wx.login({ |
| | | timeout: 10000, |
| | | success: (result) => { |
| | | console.log(result); |
| | | }, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | // wx.login({ |
| | | // timeout: 10000, |
| | | // success: (result) => { |
| | | // console.log(result); |
| | | // }, |
| | | // fail: (res) => {}, |
| | | // complete: (res) => {}, |
| | | // }) |
| | | |
| | | that.login() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | var that = this |
| | | wx.getStorage({ |
| | | key: 'accessToken', |
| | | success(res) { |
| | | success(res) { //è·åæåèªå¨ç»å½ |
| | | app.globalData.accessToken = res.data |
| | | that.setData({ |
| | | userName: res.data.userName, |
| | | password: res.data.password |
| | | }) |
| | | |
| | | wx.showLoading({ |
| | | title: 'ç»å½ä¸', |
| | | mask: true, |
| | | }) |
| | | setTimeout(() => { |
| | | wx.hideLoading() |
| | | }, 10000); |
| | | userservice.login(that.data.userName, that.data.password, { |
| | | success(data) { |
| | | if (data.success) { |
| | |
| | | that.setData({ |
| | | loading: false |
| | | }) |
| | | wx.hideLoading() |
| | | } |
| | | }) |
| | | }, |
| | | fail(e) { //è·å失败 |
| | | //åå°æ¥è¯¢å¾®ä¿¡æ¯å¦ç»å®è´¦å·ï¼æªç»å®å跳转注åçé¢ |
| | | wx.navigateTo({ |
| | | url: '/pages/module_user/userregistercompany/userregistercompany', |
| | | success: (result) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getUserInfo() { |
| | | var that = this |
| | | userservice.getUserInfo(app.globalData.accessToken.userId, { |
| | | success(data) { |
| | | app.globalData.userInfo = data |
| | |
| | | // pages/module_user/userregistercompany/userregistercompany.js |
| | | const userservice = require("../../../service/userservice") |
| | | const app = getApp() |
| | | |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | data: { |
| | | sceneTypes: [ |
| | | {value: '1', name: 'é¤é¥®'}, |
| | | {value: '7', name: '汽修'}, |
| | | {value: '6', name: 'å·¥ä¸ä¼ä¸' }, |
| | | {value: '2', name: 'å·¥å°'}, |
| | | {value: '3', name: 'ç 头'}, |
| | | {value: '4', name: 'å åº'}, |
| | | {value: '5', name: 'æ
æç«' }, |
| | | {value: '6', name: 'å·¥ä¸ä¼ä¸' }, |
| | | {value: '7', name: '汽修'}, |
| | | ], |
| | | sceneTypeIndex: 0, |
| | | |
| | |
| | | onSubmit: function () { |
| | | if (!this.submitCheck()) return |
| | | |
| | | |
| | | let msg = this.data.msg |
| | | let info = { |
| | | sceneType: this.data.sceneTypes[this.data.sceneTypeIndex].value, |
| | | userName: msg[0].value, |
| | | password: msg[1].value, |
| | | department: msg[3].value, |
| | | address: msg[4].value, |
| | | telephone: msg[5].value, |
| | | orgCode: msg[6].value |
| | | } |
| | | |
| | | wx.showLoading({ |
| | | title: '注åä¸', |
| | | mask: true, |
| | | }) |
| | | setTimeout(() => { |
| | | wx.hideLoading() |
| | | }, 10000); |
| | | var that = this |
| | | userservice.register(info, { |
| | | success(res) { |
| | | if (res.success) { |
| | | app.globalData.accessToken = { |
| | | userId: res.userId, |
| | | suserId: res.suserId, |
| | | } |
| | | that.getUserInfo() |
| | | } else { |
| | | wx.hideLoading({ |
| | | success: (res) => { |
| | | wx.showToast({ |
| | | title: 'ç¨æ·åç§°éå¤', |
| | | duration: 2000, |
| | | icon: 'error', |
| | | mask: true, |
| | | }) |
| | | }, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | return true |
| | | } |
| | | }, |
| | | |
| | | getUserInfo() { |
| | | userservice.getUserInfo(app.globalData.accessToken.userId, { |
| | | success(data) { |
| | | app.globalData.accessToken.userName = data.acountname |
| | | app.globalData.accessToken.password = data.acountname |
| | | wx.setStorage({ |
| | | key: 'accessToken', |
| | | data: app.globalData.accessToken, |
| | | }) |
| | | app.globalData.userInfo = data |
| | | wx.setStorage({ |
| | | key: 'userInfo', |
| | | data: data, |
| | | success: (result) => { |
| | | wx.switchTab({ |
| | | url: '/pages/home/home', |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | }) |
| | |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
| | |
| | | <!--pages/notice/notice.wxml--> |
| | | <import src="/template/nodata/nodata.wxml"></import> |
| | | <import src="/template/nodata.wxml"></import> |
| | | |
| | | <view class="page"> |
| | | <view class="swiper-tab"> |
| | |
| | | promise: [{ |
| | | period: 'æ¿è¯ºå¨æï¼2021å¹´1æ~2021å¹´12æ', |
| | | time: '2021å¹´1æ6æ¥å®æ', |
| | | picPath: '', |
| | | picPath: [], |
| | | pdfPath: '' |
| | | }], |
| | | deadline: "æ¿è¯ºæªæ¢æ¶é´ï¼----å¹´--æ--æ¥", |
| | |
| | | checkStatus() { |
| | | if (this.promiseHistory.length > 0) { |
| | | var first = this.promiseHistory[0] |
| | | var firstYear = moment(first.cmCreateTime).year() |
| | | if (firstYear >= this.data.year) { |
| | | var deadline = moment().add(1, 'years').endOf('year').format("YYYYå¹´MMæDDæ¥") |
| | | var cTime = moment(first.cmCreateTime) |
| | | let leftDays = cTime.add(1, 'years').diff(moment(), 'days') |
| | | // that.setData({ |
| | | // promsieInfo: { |
| | | // leftDays: leftDays |
| | | // } |
| | | // }) |
| | | if (leftDays > 0) { |
| | | var deadline = cTime.format("YYYY-MM-DD") |
| | | this.setData({ |
| | | text1: "徿£!æ¬æ¬¡æ¿è¯ºå·²å®æ", |
| | | text1: "æ¬æ¬¡æ¿è¯ºå·²å®æ", |
| | | text3: "æ¥çæ¿è¯º", |
| | | status: 1, |
| | | deadline: `䏿¬¡æ¿è¯ºæ¶é´ï¼${deadline}` |
| | | deadline: `æ¿è¯ºæææ¶é´ï¼å©ä½${leftDays}天` |
| | | }) |
| | | } else { |
| | | this.setData({ |
| | | text1: "å·²å¼å¯!è¯·åæ¶å®ææ¿è¯º", |
| | | text1: "è¯·åæ¶å®ææ¿è¯º", |
| | | text3: "廿¿è¯º", |
| | | status: 0, |
| | | }) |
| | |
| | | <view class="btn" bindtap="gotoPromise" data-status="{{status}}">{{text3}}</view> |
| | | </view> |
| | | <view wx:if="{{status == 1}}" bindtap="gotoPromise" data-status="{{status}}"> |
| | | <image class="file" src="{{promise[0].picPath}}"></image> |
| | | <image class="file" src="{{promise[0].picPath[0]}}" mode="aspectFit"></image> |
| | | <view class="tag">{{promise[0].time}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="page__bd"> |
| | |
| | | </view> |
| | | <view wx:for="{{promise}}" wx:key="index"> |
| | | <view class="p-cell fyui-panel"> |
| | | <view class="p-title"> 宿³ | æ¿è¯º</view> |
| | | <view class="p-title">| 宿³æ¿è¯º</view> |
| | | <view class="p-content">{{item.period}}</view> |
| | | <view class="p-tag">{{item.time}}</view> |
| | | <view class="p-btn" bindtap="gotoDetail" data-index="{{index}}">å»çç</view> |
| | |
| | | } |
| | | |
| | | .page__hd .tag { |
| | | font-size: 10px; |
| | | font-size: 12px; |
| | | color: #55A37D; |
| | | margin-top: 8px; |
| | | /* background-color: red; */ |
| | | text-align: end; |
| | | } |
| | | |
| | | .page__hd .btn { |
| | |
| | | |
| | | .page__hd .file { |
| | | width: 40vw; |
| | | margin-bottom: 2px; |
| | | height: 25vh; |
| | | } |
| | | |
| | | .p-cell{ |
| | |
| | | |
| | | startSign() { |
| | | var that = this |
| | | |
| | | wx.navigateTo({ |
| | | url: '/pages/promisesign/promisesign', |
| | | events: { |
| | |
| | | } |
| | | }, |
| | | }) |
| | | |
| | | // wx.getStorage({ |
| | | // key: 'signPath', |
| | | // success: (result) => { |
| | | // console.log(result.data); |
| | | // that.signOver(result.data) |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // wx.navigateTo({ |
| | | // url: '/pages/promisesign/promisesign', |
| | | // events: { |
| | | // onSignSuccess: function (imgPath) { |
| | | // console.log('signover:' + imgPath); |
| | | // that.signOver(imgPath) |
| | | // } |
| | | // }, |
| | | // }) |
| | | // }, |
| | | // complete: (res) => {}, |
| | | // }) |
| | | }, |
| | | |
| | | signOver(imgPath) { |
| | |
| | | */ |
| | | data: { |
| | | promise: { |
| | | picPath: '', |
| | | picPath: [], |
| | | pdfPath: '', |
| | | } |
| | | }, |
| | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload: function () { |
| | |
| | | complete: (res) => {}, |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage: function () { |
| | | |
| | | } |
| | | }) |
| | |
| | | <!--pages/promiseresult/promiseresult.wxml--> |
| | | <view class=""> |
| | | <image src="{{promise.picPath}}" class="image" show-menu-by-longpress="true" mode="widthFix"></image> |
| | | <image wx:for="{{promise.picPath}}" src="{{item}}" class="image" show-menu-by-longpress="true" mode="widthFix"></image> |
| | | <!-- <image src="https://fyami.com.cn:447/images/commitment-restaurant-1659927781518.jpg" class="image" show-menu-by-longpress="true" mode="widthFix"></image> --> |
| | | </view> |
| | |
| | | }, {}, true, true) |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage: function () { |
| | | |
| | | } |
| | | }) |
| | |
| | | onLoad: function (options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom: function () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage: function () { |
| | | |
| | | } |
| | | }) |
| | |
| | | |
| | | const originProperties = ['url', 'data', 'header', 'method', 'success', 'fail', 'complete']; |
| | | // const baseUrl = "http://127.0.0.1:8080" |
| | | // const baseUrl = "http://192.168.0.117:8080" |
| | | const baseUrl = "https://fyami.com.cn:447" |
| | | const baseUrl = "http://192.168.0.105: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/" |
| | | const baseFileUrl = baseUrl + "/meeting/file/" |
| | | const baseFileUrl = "https://fyami.com.cn:447/meeting/file/" |
| | | |
| | | function request(fun) { |
| | | if (fun.params != undefined) { |
| | |
| | | |
| | | module.exports = { |
| | | //æ ¹æ®å
³é®åæç´¢æ³å¾æ³è§ |
| | | searchLaw: function (userId, keyword, fun) { |
| | | searchLaw: function (userId, keyword, page, perPage, fun, type) { |
| | | let cb = { |
| | | url: `/consultation/search/law`, |
| | | params: { |
| | | userId: userId, |
| | | keyword: keyword |
| | | keyword: keyword, |
| | | page: page, |
| | | perPage: perPage |
| | | }, |
| | | } |
| | | if (type) { |
| | | cb.params.type = type |
| | | } |
| | | Object.assign(cb, fun) |
| | | $f.get(cb) |
| | | |
| | | let fun1 = util.deepCopy(cb) |
| | | fun1.success = function (res) { |
| | | if (res.success) { |
| | | if (cb.onPage) { |
| | | cb.onPage(res.head) |
| | | } |
| | | cb.success(res.data) |
| | | } else { |
| | | cb.fail(res.message) |
| | | } |
| | | } |
| | | |
| | | $f.get(fun1) |
| | | }, |
| | | |
| | | //è·åçé¨ |
| | |
| | | $f.get(cb) |
| | | }, |
| | | |
| | | //è·åæ³å¾æ³è§ |
| | | //è·åæ³å¾æ³è§æä»¶ |
| | | getMgtFile: function (userId, fileId, fun) { |
| | | let cb = { |
| | | url: `/consultation/law/file`, |
| | |
| | | |
| | | $f.get(fun1) |
| | | }, |
| | | |
| | | //è·åæ³å¾æ³è§æ¡ç® |
| | | getMgtItem: function (userId, itemId, fun) { |
| | | let cb = { |
| | | url: `/consultation/law/item`, |
| | | params: { |
| | | userId: userId, |
| | | itemId: itemId, |
| | | }, |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | // let fun1 = util.deepCopy(cb) |
| | | // fun1.success = function (res) { |
| | | // res.mfFileUrl = $f.baseFileUrl + res.mfFileUrl |
| | | // cb.success(res) |
| | | // } |
| | | |
| | | $f.get(cb) |
| | | }, |
| | | } |
| | |
| | | |
| | | module.exports = { |
| | | //æ¥æ¾å®æ³å¨æ |
| | | getLawRegulations: function (userId, page, sceneTypeId, fun) { |
| | | getLawRegulations: function (userId, page, condition, fun, perPage = 30) { |
| | | let cb = { |
| | | url: `/laws/condition/${userId}`, |
| | | params: { |
| | | page: page, |
| | | per_page: 30 |
| | | per_page: perPage |
| | | }, |
| | | data: { |
| | | sceneTypeId: sceneTypeId |
| | | } |
| | | data: condition |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | |
| | | }, |
| | | success: (result) => { |
| | | let res = JSON.parse(result.data) |
| | | res.data = res.data.map((value, index) => { |
| | | res.data[0] = res.data[0].split(';').map((value, index) => { |
| | | return $f.basePicUrl + value |
| | | }) |
| | | res.data[1] = $f.basePicUrl + res.data[1] |
| | | fun.success(res) |
| | | }, |
| | | fail: (res) => {fun.fail(res)}, |
| | | complete: (res) => {fun.complete(res)}, |
| | | fail: (res) => { |
| | | fun.fail(res) |
| | | }, |
| | | complete: (res) => { |
| | | fun.complete(res) |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | | //è·åç¨æ·æ¿è¯ºä¹¦åå²è®°å½ |
| | | getCommitment: function(userId, fun, page = 1, perPage = 30) { |
| | | getCommitment: function (userId, fun, page = 1, perPage = 30) { |
| | | let cb = { |
| | | url: '/commitment/letter', |
| | | params: { |
| | |
| | | let fun1 = util.deepCopy(cb) |
| | | fun1.success = function (res) { |
| | | res.forEach(r => { |
| | | r.cmUrl = $f.basePicUrl + r.cmUrl |
| | | r.cmUrl = r.cmUrl.split(';').map((url) => { |
| | | return $f.basePicUrl + url |
| | | }) |
| | | r.cmPdfUrl = $f.basePicUrl + r.cmPdfUrl |
| | | }); |
| | | cb.success(res) |
| | |
| | | const $f = require('./baserequest') |
| | | |
| | | module.exports = { |
| | | //注å |
| | | register: function (info, fun) { |
| | | let cb = { |
| | | url: '/userInfo/register2', |
| | | data: info, |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.post(cb) |
| | | }, |
| | | //ç»å½ |
| | | login: function (userName, password, fun) { |
| | | let cb = { |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template name="loading"> |
| | | <mp-loading type="circle"></mp-loading> |
| | | <!-- <mp-loading type="circle" tips="{{tips}}"></mp-loading> --> |
| | | <mp-loading duration="{{900}}" ext-class="demo0" type="dot-gray" show="{{true}}" animated="{{true}}"></mp-loading> |
| | | <mp-loading type="dot-white" ext-class="demo1"></mp-loading> |
| | | </template> |