5 files added
28 files modified
| | |
| | | var qcloud = require('./lib/index'); |
| | | //app.js |
| | | App({ |
| | | onLaunch: function () { |
| | | onLaunch: function() { |
| | | // 展示本地存储能力 |
| | | var logs = wx.getStorageSync('logs') || [] |
| | | logs.unshift(Date.now()) |
| | |
| | | globalData: { |
| | | userInfo: null, |
| | | pageData: {}, |
| | | //url: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge', |
| | | // url: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge', |
| | | // url: 'http://1p885086k1.iok.la/nsjc-charge', |
| | | url: 'http://localhost:6060/nsjc-charge', |
| | | // url: 'http://localhost:6060/nsjc-charge', |
| | | imgUrl: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge', |
| | | // url: 'http://nsjc.vaiwan.com/nsjc-charge', |
| | | url: 'http://nsjc.vaiwan.com/nsjc-charge', |
| | | // imgUrl: 'http://nsjc.vaiwan.com/nsjc-charge' |
| | | }, |
| | | // 过滤数组 |
| | | where: (collection, source) => { |
| | | var sourceKeys = Object.keys(source); |
| | | return collection.filter(function (obj) { |
| | | return collection.filter(function(obj) { |
| | | for (var i = 0; i < sourceKeys.length; i++) { |
| | | if (!obj.hasOwnProperty(sourceKeys[i]) || obj[sourceKeys[i]] !== source[sourceKeys[i]]) { |
| | | return false; |
| | |
| | | }, |
| | | |
| | | //控制是否能够编辑 |
| | | judgeDisable: function (status) { |
| | | judgeDisable: function(status) { |
| | | if (status == null || status == 0 || status == 4) { |
| | | return false; //可以 |
| | | } else { |
| | |
| | | }, |
| | | |
| | | //提示弹窗 |
| | | showModal: function (warn) { |
| | | showModal: function(warn) { |
| | | wx.showModal({ |
| | | title: '提示', |
| | | content: warn |
| | | }) |
| | | }, |
| | | //添加图片 |
| | | joinPicture: function (e, these, associateTypeId, attId) { |
| | | joinPicture: function(e, these, associateTypeId, attId) { |
| | | var th = this; |
| | | var index = e.currentTarget.dataset.index; |
| | | var associateTypeId = e.currentTarget.dataset.associatetypeid || associateTypeId; |
| | |
| | | }, |
| | | |
| | | // 上传视频 |
| | | joinVideo: function (e, these, associateTypeId, attId) { |
| | | joinVideo: function(e, these, associateTypeId, attId) { |
| | | var th = this; |
| | | var index = e.currentTarget.dataset.index; |
| | | var associateTypeId = e.currentTarget.dataset.associatetypeid || associateTypeId; |
| | |
| | | }) |
| | | }, |
| | | //上传文件 |
| | | upload: function (these, path, associateTypeId, way, id) { |
| | | upload: function(these, path, associateTypeId, way, id) { |
| | | console.log(these) |
| | | console.log(path) |
| | | console.log(associateTypeId) |
| | |
| | | associateTypeId: associateTypeId, |
| | | batch |
| | | }, |
| | | success: function (res) { |
| | | success: function(res) { |
| | | console.log(res) |
| | | var evalList = these.data.evalList; |
| | | var evalListType = 'evalList' + associateTypeId; |
| | |
| | | }, |
| | | }) |
| | | }, |
| | | complete: function () { |
| | | complete: function() { |
| | | wx.hideToast(); //隐藏Toast |
| | | } |
| | | }) |
| | |
| | | }, |
| | | |
| | | //删除图片 |
| | | clearImg: function (e, these) { |
| | | clearImg: function(e, these) { |
| | | var id = e.currentTarget.id; |
| | | var index = e.currentTarget.dataset.index; |
| | | var associateTypeId = e.currentTarget.dataset.associatetypeid; |
| | |
| | | }), |
| | | wx.request({ |
| | | url: this.globalData.url + '/api/v1/attachment/delete/' + id, |
| | | success: function (res) { |
| | | success: function(res) { |
| | | if (res.data.code == 0) { |
| | | console.log('删除成功!') |
| | | } |
| | | }, |
| | | complete: function () { |
| | | complete: function() { |
| | | wx.hideToast(); //隐藏Toast |
| | | } |
| | | }) |
| | |
| | | }, |
| | | |
| | | // 预览图片 |
| | | previewImage: function (e) { |
| | | previewImage: function(e) { |
| | | wx.previewImage({ |
| | | current: e.currentTarget.dataset.src, // 当前显示图片的http链接 |
| | | urls: [e.currentTarget.dataset.src] // 需要预览的图片http链接列表 |
| | |
| | | }, |
| | | |
| | | //转换时间戳 |
| | | formatDate: function (ts) { |
| | | formatDate: function(ts) { |
| | | var now = new Date(ts); |
| | | var year = now.getFullYear(); |
| | | var month = now.getMonth() + 1; |
| | |
| | | }, |
| | | |
| | | //转换时间戳 |
| | | formatDateday: function (ts) { |
| | | formatDateday: function(ts) { |
| | | var now = new Date(ts); |
| | | var year = now.getFullYear(); |
| | | var month = now.getMonth() + 1; |
| | |
| | | }, |
| | | |
| | | // 页面正在开发中 |
| | | developIng: function () { |
| | | developIng: function() { |
| | | wx.navigateTo({ |
| | | url: '../developIng/developIng', |
| | | }) |
| | | }, |
| | | |
| | | // 判断时间段 |
| | | period: function () { |
| | | period: function() { |
| | | var now = new Date(), |
| | | hour = now.getHours(), |
| | | word = '';; |
| | |
| | | }, |
| | | |
| | | // 根据身份证获取生日,性别,年龄 |
| | | IdCard: function (UUserCard, num) { |
| | | IdCard: function(UUserCard, num) { |
| | | if (num == 1) { |
| | | //获取出生日期 |
| | | var birth = UUserCard.substring(6, 10) + "-" + UUserCard.substring(10, 12) + "-" + UUserCard.substring(12, 14); |
| | |
| | | } |
| | | return age; |
| | | } |
| | | }, |
| | | getPermission: function(url) { |
| | | wx.getLocation({ |
| | | success: function(res) { |
| | | wx.navigateTo({ |
| | | url, |
| | | }) |
| | | }, |
| | | fail: function() { |
| | | wx.getSetting({ |
| | | success: function(res) { |
| | | var statu = res.authSetting; |
| | | if (!statu['scope.userLocation']) { |
| | | wx.showModal({ |
| | | title: '是否授权当前位置', |
| | | content: '需要获取您的地理位置,请确认授权,否则地图功能将无法使用', |
| | | success: function(tip) { |
| | | if (tip.confirm) { |
| | | wx.openSetting({ |
| | | success: function(data) { |
| | | if (data.authSetting["scope.userLocation"] === true) { |
| | | wx.showToast({ |
| | | title: '授权成功', |
| | | icon: 'success', |
| | | duration: 1000 |
| | | }) |
| | | //授权成功之后,再调用chooseLocation选择地方 |
| | | wx.getLocation({ |
| | | success: function(res) { |
| | | wx.navigateTo({ |
| | | url, |
| | | }) |
| | | }, |
| | | }) |
| | | } else { |
| | | wx.showToast({ |
| | | title: '授权失败', |
| | | icon: 'success', |
| | | duration: 1000 |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | fail: function(res) { |
| | | wx.showToast({ |
| | | title: '调用授权窗口失败', |
| | | icon: 'success', |
| | | duration: 1000 |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | }) |
| | |
| | | "pages/pfyy/pfyy", |
| | | "pages/rzcx/rzcx", |
| | | "pages/rzcxList/rzcxList", |
| | | "pages/createSub/createSub" |
| | | "pages/createSub/createSub", |
| | | "pages/warning/warning" |
| | | ], |
| | | "networkTimeout": { |
| | | "request": 60000 |
| | |
| | | @import "colorui/icon.wxss"; |
| | | |
| | | .container { |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | |
| | | } |
| | | var that = this; |
| | | wx.request({ |
| | | url: app.globalData.url + '/api/activityInfo/activityApply', |
| | | url: app.globalData.url + '/api/activity/activityApply', |
| | | data: peopleInfo, |
| | | method: 'POST', |
| | | header: { |
| | |
| | | }, |
| | | success: function (res) { |
| | | if (res.data.code == 0) { |
| | | wx.reLaunch({ |
| | | url: '../index/index', |
| | | wx.navigateBack({ |
| | | delta: 1 |
| | | }, wx.showToast({ |
| | | title: '报名成功!', |
| | | icon: 'success', |
| | |
| | | { |
| | | "navigationBarTitleText": "活动一览", |
| | | "navigationBarTitleText": "南检活动", |
| | | "backgroundTextStyle": "light", |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | |
| | | confirm: true, |
| | | value1: '', |
| | | answer: [], |
| | | id: '' |
| | | id: '', |
| | | disabled: false |
| | | }, |
| | | // 去单选页面 |
| | | toRadio(e) { |
| | |
| | | var that = this; |
| | | wx.request({ |
| | | url: app.globalData.url + '/api/question/find/' + id, |
| | | data: { |
| | | userId: wx.getStorageSync("user").id |
| | | }, |
| | | success: function(res) { |
| | | console.log(res) |
| | | if (res.data.code == 0) { |
| | |
| | | [_m]: { |
| | | "paper": { |
| | | "title": res.data.data.title, |
| | | "des": res.data.data.content |
| | | "des": res.data.data.content || '' |
| | | }, |
| | | "psqList": res.data.data.questionDtos |
| | | // "psqList": [{ |
| | | // "isMust": 1, |
| | | // "type": 1, |
| | | // "question": "111", |
| | | // "answerslist": [{ |
| | | // "answer": "11" |
| | | // }, { |
| | | // "answer": "111" |
| | | // }, { |
| | | // "answer": "11" |
| | | // }, { |
| | | // "answer": "111" |
| | | // }], |
| | | // 'value': [] |
| | | // }, { |
| | | // "isMust": 1, |
| | | // "type": 1, |
| | | // "question": "11111", |
| | | // "answerslist": [{ |
| | | // "answer": "111" |
| | | // }, { |
| | | // "answer": "111" |
| | | // }], |
| | | // value: [] |
| | | // }, { |
| | | // "isMust": 1, |
| | | // "type": 0, |
| | | // "question": "11111" |
| | | // }, { |
| | | // "isMust": 0, |
| | | // "type": 1, |
| | | // "question": "wqwqw", |
| | | // "answerslist": [{ |
| | | // "answer": "qw" |
| | | // }, { |
| | | // "answer": "wqw" |
| | | // }, { |
| | | // "answer": "wqw" |
| | | // }] |
| | | // }] |
| | | } |
| | | |
| | | }); |
| | | } else if (res.data.code == 3) { |
| | | that.setData({ |
| | | id: res.data.data.id, |
| | | [_m]: { |
| | | "paper": { |
| | | "title": res.data.data.title, |
| | | "des": res.data.data.content || '' |
| | | }, |
| | | "psqList": res.data.data.questionDtos |
| | | }, |
| | | disabled: true |
| | | |
| | | }); |
| | | } else { |
| | | wx.showModal({ |
| | | title: '提示', |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <button class="btn" catchtap='submit'>提交</button> |
| | | <button class="btn" wx:if="{{!disabled}}" catchtap='submit'>提交</button> |
| | | <button class="btn" wx:if="{{disabled}}" disabled catchtap='submit'>已提交</button> |
| | |
| | | // pages/dxal/dxal.js |
| | | import { |
| | | $startWuxRefresher, |
| | | $stopWuxRefresher, |
| | | $stopWuxLoader |
| | | } from '../../templeteDist/wuxDist/index'; |
| | | // import { |
| | | // $startWuxRefresher, |
| | | // $stopWuxRefresher, |
| | | // $stopWuxLoader |
| | | // } from '../../templeteDist/wuxDist/index'; |
| | | |
| | | var app = getApp(); |
| | | |
| | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad: function (options) { |
| | | $startWuxRefresher(); |
| | | onLoad: function(options) { |
| | | this.showList() |
| | | }, |
| | | |
| | | showList: function () { |
| | | showList: function() { |
| | | var that = this; |
| | | // wx.showLoading(); |
| | | wx.showLoading(); |
| | | wx.request({ |
| | | url: app.globalData.url + '/api/v1/searchLaw/search?page=1&size=' + this.data.count + '&words=' + this.data.value, |
| | | success: function (res) { |
| | | // wx.hideLoading(); |
| | | success: function(res) { |
| | | wx.hideLoading(); |
| | | console.log('res.data.data', res.data.data.data) |
| | | console.log('res', res) |
| | | if (res.data.code == 0) { |
| | | that.setData({ |
| | | items: [...res.data.data.data] |
| | | }) |
| | | $stopWuxRefresher() |
| | | $stopWuxLoader('#wux-refresher', this, true) |
| | | |
| | | } else { |
| | | wx.showToast({ |
| | | title: res.data.msg, |
| | |
| | | content: 'Wux Weapp' |
| | | })), |
| | | |
| | | linkFunction: function (event) { |
| | | linkFunction: function(event) { |
| | | var str = event.currentTarget.dataset['str']; |
| | | var id = event.currentTarget.dataset['id']; |
| | | wx.navigateTo({ |
| | |
| | | }) |
| | | }, |
| | | |
| | | showInput: function () { |
| | | showInput: function() { |
| | | this.setData({ |
| | | inputShowed: true |
| | | }); |
| | | }, |
| | | |
| | | hideInput: function () { |
| | | hideInput: function() { |
| | | this.setData({ |
| | | inputVal: "", |
| | | inputShowed: false |
| | | }); |
| | | }, |
| | | clearInput: function () { |
| | | clearInput: function() { |
| | | this.setData({ |
| | | inputVal: "" |
| | | }, () => {}); |
| | | }, |
| | | |
| | | onChange(e) { |
| | | searchIcon(e) { |
| | | console.log('onChange', e) |
| | | this.setData({ |
| | | value: e.detail.value, |
| | |
| | | console.log('onFocus', e) |
| | | }, |
| | | onBlur(e) { |
| | | console.log('onBlur', e) |
| | | this.setData({ |
| | | value: e.detail.value |
| | | }) |
| | | this.showList(); |
| | | console.log('onBlur', e); |
| | | this.showList() |
| | | }, |
| | | onConfirm(e) { |
| | | console.log('onConfirm', e) |
| | | console.log('onConfirm', e); |
| | | this.showList() |
| | | }, |
| | | onClear(e) { |
| | | console.log('onClear', e) |
| | |
| | | <!-- <view class="cu-bar bg-white search solid-top fixed" style="top:{{CustomBar}}px"> |
| | | <view class="cu-bar bg-white search solid-top fixed" style="top:0px"> |
| | | <view class="search-form round"> |
| | | <text class="cuIcon-search"></text> |
| | | <input type="text" placeholder="搜索" confirm-type="search" bindinput="searchIcon"></input> |
| | | <wux-search-bar clear value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel"/> |
| | | <input type="text" placeholder="搜索" value="{{ value }}" confirm-type="search" bindblur="onBlur" bindinput="searchIcon" bindconfirm="onConfirm"></input> |
| | | </view> |
| | | </view> --> |
| | | <wux-search-bar class="zscqdxal-top" clear value="{{ value }}" controlled placeholder="搜索" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel"/> |
| | | <!-- <wux-search-bar clear show-cancel value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel" /> --> |
| | | </view> |
| | | <!-- <wux-search-bar clear show-cancel value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel" /> --> |
| | | |
| | | |
| | | <wux-refresher id="wux-refresher" bind:pulling="onPulling" bind:refresh="onRefresh" bind:loadmore="onLoadmore" scrollTop="{{scrollTop}}"> |
| | | <view class="weui-panel weui-panel_access"> |
| | | <view class="weui-panel__bd"> |
| | | <view class="weui-media-box weui-media-box_text" wx:for="{{ items }}" wx:key=""> |
| | | <!-- <view class="weui-media-box__title weui-media-box__title_in-text">{{ item.title }}</view> |
| | | <view class="weui-panel weui-panel_access"> |
| | | <view class="weui-panel__bd"> |
| | | <view class="weui-media-box weui-media-box_text" wx:for="{{ items }}" wx:key=""> |
| | | <!-- <view class="weui-media-box__title weui-media-box__title_in-text">{{ item.title }}</view> |
| | | <view class="weui-media-box__desc">{{ item.content }}</view> --> |
| | | <view class="zhwj-b-main" data-str="flcxInfo" data-id="{{item.code_id}}" bindtap='linkFunction'> |
| | | <view class="zhwj-b-head-l"> |
| | | <view class="zhwj-b-head-l-title text-black"><rich-text nodes="{{item.code_name}}"></rich-text></view> |
| | | <view class="text-grey">{{item.law_type}} {{item.issuing_agency}} {{item.release}} {{item.implement_date}}</view> |
| | | <view class="zhwj-b-main" data-str="flcxInfo" data-id="{{item.code_id}}" bindtap='linkFunction'> |
| | | <view class="zhwj-b-head-l"> |
| | | <view class="zhwj-b-head-l-title text-black"> |
| | | <rich-text nodes="{{item.code_name}}"></rich-text> |
| | | </view> |
| | | <!-- <view class="zhwj-b-head-r"> |
| | | <view class="text-grey">{{item.law_type}} {{item.issuing_agency}} {{item.release}} {{item.implement_date}}</view> |
| | | </view> |
| | | <!-- <view class="zhwj-b-head-r"> |
| | | <image mode='widthFix' src="{{dongtai1_1}}"></image> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </wux-refresher> |
| | | </view> |
| | |
| | | height: 100%; |
| | | } |
| | | |
| | | .flex1 { |
| | | flex: 1; |
| | | overflow-y: scroll; |
| | | .zscqdxal-top { |
| | | top: 0; |
| | | position: fixed; |
| | | width: 100%; |
| | | } |
| | | |
| | | .weui-media-box { |
| | | padding: 0 15px; |
| | | } |
| | | |
| | | .zhwj-b-main { |
| | | display: flex; |
| | | /* border-bottom: 1px solid #ebf2fa; */ |
| | | } |
| | | |
| | | .zhwj-b-head-l { |
| | | margin: 6px; |
| | | padding: 6px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | width: 100%; |
| | | } |
| | | |
| | | .zhwj-b-head-r { |
| | | margin: 6px; |
| | | } |
| | | |
| | | .zhwj-b-head-r image { |
| | | width: 108px; |
| | | height: 80px; |
| | | } |
| | | |
| | | .zhwj-b { |
| | | background-color: #fff; |
| | | } |
| | |
| | | var id = e.currentTarget.dataset['id']; |
| | | var str = e.currentTarget.dataset['str']; |
| | | var flag = e.currentTarget.dataset['flag']; |
| | | var signStatus = e.currentTarget.dataset['signstatus']; |
| | | wx.navigateTo({ |
| | | url: '../' + str + '/' + str + '?id=' + id + '&flag=' + flag |
| | | url: '../' + str + '/' + str + '?id=' + id + '&flag=' + flag + '&signStatus=' + signStatus |
| | | }) |
| | | }, |
| | | |
| | |
| | | |
| | | <view class="fzpx"> |
| | | <view class="cu-card dynamic"> |
| | | <view class="cu-item shadow" wx:for="{{ items }}" wx:key="{{item.id}}" bindtap='link' data-str="fzpxInfo" data-flag="{{item.flag}}" data-id="{{item.id}}"> |
| | | <view class="cu-item shadow" wx:for="{{ items }}" data-signStatus="{{item.signStatus}}" wx:key="{{item.id}}" bindtap='link' data-str="fzpxInfo" data-flag="{{item.flag}}" data-id="{{item.id}}"> |
| | | <view class="fzpx-list"> |
| | | <view class="fzpx-list-img"> |
| | | <image src="{{item.attList[0].imgPath}}" mode="aspectFit"></image> |
| | |
| | | </view> |
| | | <!-- |
| | | <view class="fzpx-list-b-right" data-str="fzpxInfo" data-id="3" bindtap='linkFunction'>我要报名</view> --> |
| | | <button class="cu-btn bg-blue" wx:if="{{ item.flag == true}}">我要报名</button> |
| | | <button class="cu-btn bg-blue" style="width:98px" wx:if="{{ item.activityStatus==1 && item.flag == true}}">我要报名</button> |
| | | |
| | | <button class="cu-btn" wx:else>已报名</button> |
| | | <button class="cu-btn" style="width:98px" wx:if="{{ item.activityStatus ==2 && item.flag == false}}">已报名</button> |
| | | <span wx:if="{{ item.activityStatus ==2 && item.flag == true}}"></span> |
| | | <button class="cu-btn" style="width:98px" wx:if="{{ item.activityStatus ==3 }}">已结束</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | id: "", |
| | | topattList: [], |
| | | bottomattList: [], |
| | | statequeId: '' |
| | | statequeId: '', |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad: function(options) { |
| | | console.log('options', options) |
| | | var that = this; |
| | | that.setData({ |
| | | id: options.id, |
| | | signStatus: options.signStatus || '', |
| | | signStatus: options.signStatus || '1', |
| | | flag: options.flag || '', |
| | | loading: true |
| | | }); |
| | |
| | | //跳转问卷调查 |
| | | businessSchedule: function(e) { |
| | | var id = e.currentTarget.dataset['id']; |
| | | wx.navigateTo({ |
| | | url: '/pages/createSub/createSub?id=' + id, |
| | | }) |
| | | var questatus = e.currentTarget.dataset['questatus']; |
| | | if (questatus == 4) { |
| | | wx.navigateTo({ |
| | | url: '/pages/warning/warning?msg=1', |
| | | }) |
| | | } else { |
| | | wx.navigateTo({ |
| | | url: '/pages/createSub/createSub?id=' + id, |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | inputChange: function(e) { |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="fzpxInfo-main-group" wx:if="{{statequeId}}" data-id="{{statequeId}}" bindtap='businessSchedule'> |
| | | <view class="fzpxInfo-main-group" wx:if="{{statequeId&&signStatus !=='2'}}" data-id="{{statequeId}}" data-queStatus="{{activity.queStatus}}" bindtap="businessSchedule"> |
| | | <view class="fzpxInfo-main-group-title">问卷调查</view> |
| | | <view style="display: flex; line-height:48rpx;"> |
| | | <image class="index-pane-icon " src="{{user}} " /> |
| | |
| | | <!-- <text class="cuIcon-favorfill lg text-blue"></text> --> |
| | | <view class="headLineInfo"> |
| | | <view class="info-source">{{item.createTime}}</view> |
| | | <view class="info-viewer">{{item.readCount}}人观看</view> |
| | | <view class="info-viewer">观看次数{{item.readCount}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <!--lawPublicityDetail.wxml--> |
| | | <import src="../wxParse/wxParse.wxml" /> |
| | | <view class="detail"> |
| | | <!-- <template is="wxParse" data="{{wxParseData:article.nodes}}" /> --> |
| | | <!-- <view wx:for="{{attList.attList21}}" wx:key="{{key}}"> --> |
| | | <!-- <video id="myVideo" src="{{item.path}}" |
| | | <!-- <template is="wxParse" data="{{wxParseData:article.nodes}}" /> --> |
| | | <!-- <view wx:for="{{attList.attList21}}" wx:key="{{key}}"> --> |
| | | <!-- <video id="myVideo" src="{{item.path}}" |
| | | danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video> --> |
| | | <view class="video-area"> |
| | | <video id="myVideo" src="{{data.attList[0].path}}" danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video> |
| | | </view> |
| | | |
| | | <view class="content-left"> |
| | | <view class="headLineTitle"> |
| | | {{data.title}} |
| | | </view> |
| | | <!-- <text class="cuIcon-favorfill lg text-blue"></text> --> |
| | | <view class="headLineInfo"> |
| | | <view class="info-source">{{data.createTime}}</view> |
| | | <view class="info-viewer">{{data.readCount}}人观看</view> |
| | | </view> |
| | | </view> |
| | | <view wx:for="{{data.attList}}" data-index="{{index}}" wx:key="index"> |
| | | <view class="video-area" style="margin:12px 0"> |
| | | <video id="myVideo" src="{{item.path}}" danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video> |
| | | </view> |
| | | </view> |
| | | <view class="content-left"> |
| | | <view class="headLineTitle"> |
| | | {{data.title}} |
| | | </view> |
| | | <!-- <text class="cuIcon-favorfill lg text-blue"></text> --> |
| | | <view class="headLineInfo"> |
| | | <view class="info-source">{{data.createTime}}</view> |
| | | <!-- <view class="info-viewer">观看次数{{data.readCount}}</view> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | sjxf: app.globalData.imgUrl + '/image/sjxf.svg', |
| | | user: app.globalData.imgUrl + '/image/user.svg', |
| | | gyssp: app.globalData.imgUrl + '/image/suishoupai.svg', |
| | | boy: '../../utils/boy.svg', |
| | | shce: app.globalData.imgUrl + '/image/saoheichue.svg', |
| | | userCenter: app.globalData.imgUrl + '/image/icon_geren.svg', |
| | | llz: app.globalData.imgUrl + '/image/icon_lianluo.svg', |
| | |
| | | <image class="eight-pane-icon " src="{{tsjy}} " /> |
| | | <div class="eight-pane-title ">信息公开</div> |
| | | </div> |
| | | <div class="eight-pane-bottom-item " bindtap="junctionStation"> |
| | | <image class="eight-pane-icon " src="{{llz}} " /> |
| | | <div class="eight-pane-title ">人大联络站</div> |
| | | <div class="eight-pane-bottom-item " data-str="zhwj" bindtap='linkFunction'> |
| | | <image class="eight-pane-icon " src="{{boy}} " /> |
| | | <div class="eight-pane-title ">智慧未检</div> |
| | | </div> |
| | | <div class="eight-pane-bottom-item " bindtap="dissDetail"> |
| | | <image class="eight-pane-icon " src="{{gyssp}} " /> |
| | |
| | | <view class='VerticalNav-flex-t'> |
| | | <view class="bg-img" bindtap='activity' style="background-image: url('https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1576727840095&di=c57a0f0d43a2b175981b679f8e328428&imgtype=0&src=http%3A%2F%2Fwx2.sinaimg.cn%2Fcrop.0.0.738.415.1000%2F006ba4mely1fmndnl221jj30m50bjq5i.jpg');margin: 6px;height: 78px;flex: 1; line-height: 78px;"> |
| | | <view class="bg-shadeTop"> |
| | | 活动一览 |
| | | 南检活动 |
| | | </view> |
| | | </view> |
| | | <view class="bg-img" style="margin: 6px;height: 78px;flex: 1; line-height: 78px;"> |
| | |
| | | dataSet: [] |
| | | }, |
| | | |
| | | navbarTap: function (e) { |
| | | navbarTap: function(e) { |
| | | this.setData({ |
| | | currentTab: e.currentTarget.dataset.idx |
| | | }) |
| | |
| | | |
| | | }, |
| | | |
| | | showList: function (tab) { |
| | | showList: function(tab) { |
| | | var userinfo = wx.getStorageSync("user"); |
| | | var that = this; |
| | | var id = userinfo.id |
| | |
| | | } |
| | | wx.request({ |
| | | url: app.globalData.url + '/api/businessAggr/draftQuery?page=1&size=' + that.data[sizeQty] + '&userId=' + id + '&flag=message' + str, |
| | | success: function (res) { |
| | | success: function(res) { |
| | | if (res.data.code == 0) { |
| | | (res.data.data.content).forEach(e => { |
| | | (e.createTime) = app.formatDate(e.createTime) |
| | |
| | | }) |
| | | }, |
| | | |
| | | businessSchedule: function (event) { |
| | | businessSchedule: function(event) { |
| | | var id = event.currentTarget.id; |
| | | var businessType = this.data.dataSet[id].businessType; |
| | | var businessId = this.data.dataSet[id].businessId; |
| | |
| | | var flag = this.data.dataSet[id].flag || ''; |
| | | var picType = this.data.dataSet[id].picType || ''; |
| | | if (businessType == "公益随手拍") { |
| | | wx.navigateTo({ |
| | | url: '../publicSnapshot/publicSnapshot?id=' + businessId + '&type=' + picType, |
| | | }) |
| | | app.getPermission('../publicSnapshot/publicSnapshot?id=' + businessId + '&type=' + picType) |
| | | |
| | | } else if (businessType == "扫黑除恶") { |
| | | wx.navigateTo({ |
| | | url: '../scanEvildoing/scanEvildoing?id=' + businessId, |
| | |
| | | } |
| | | }, |
| | | |
| | | onLoad: function () { |
| | | onLoad: function() { |
| | | this.showList(0) |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | onReachBottom: function () { |
| | | onReachBottom: function() { |
| | | if (this.data.hasMoreData) { |
| | | this.showList(this.data.currentTab) |
| | | this.setData({ |
| | |
| | | //接口 |
| | | var openId = wx.getStorageSync("openId"); |
| | | var that = this; |
| | | wx.showLoading(); |
| | | wx.request({ |
| | | url: app.globalData.url + '/api/ma/user/findByOpenId?openId=' + openId, |
| | | success: function(res) { |
| | | wx.hideLoading(); |
| | | if (res.data.code == '0') { |
| | | var data = res.data.data; |
| | | if (data.idcard) { |
| | | if (!data.birthday) { |
| | | data.birthday = app.IdCard(data.idcard, 1); |
| | | } |
| | | if (!data.wxSex) { |
| | | data.wxSex = app.IdCard(data.idcard, 2); |
| | | } |
| | | } else { |
| | | data.birthday = '1985-01-01' |
| | | if (!data.userType) { |
| | | data.userType = 0; |
| | | } |
| | | if (!data.birthday) { |
| | | data.birthday = '1985-01-01'; |
| | | } |
| | | if (!data.wxSex) { |
| | | data.wxSex = app.IdCard(data.idcard, 2); |
| | | } |
| | | if (data.nation == "0") { |
| | | data.nation = 0; |
| | | } else { |
| | | data.nation = that.data.nations.findIndex(e => e == data.nation); |
| | | } |
| | | if (!data.userType) { |
| | | data.userType = 0 |
| | | } |
| | | var attList = data.attachments || []; |
| | | var evalList1001 = app.where(attList, { |
| | |
| | | id |
| | | })) |
| | | } |
| | | console.log('data', data) |
| | | that.setData({ |
| | | peopleInfo: data, |
| | | evalList, |
| | |
| | | picType: '', |
| | | evalList: {}, |
| | | picturesInfo: {}, |
| | | ReplyLogs:[] |
| | | ReplyLogs: [] |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad: function (options) { |
| | | onLoad: function(options) { |
| | | var that = this; |
| | | console.log(options) |
| | | let id = options.id |
| | |
| | | var userinfo = wx.getStorageSync("user"); |
| | | wx.request({ |
| | | url: app.globalData.url + '/api/v1/appointment/find?id=' + id, |
| | | success: function (res) { |
| | | success: function(res) { |
| | | console.log(res.data.data.lawAppointment) |
| | | if (res.data.code == 0) { |
| | | var data1 = res.data.data.ReplyLogs || []; |
| | |
| | | picturesInfo: { |
| | | ...res.data.data.lawAppointment, |
| | | createId: userinfo.id, |
| | | activitiesTime: app.formatDateday(res.data.data.lawAppointment.activitiesTime) |
| | | activitiesTime: app.formatDateday(res.data.data.lawAppointment.activitiesTime || new Date()) |
| | | }, |
| | | ReplyLogs: data1, |
| | | disabled |
| | |
| | | }) |
| | | }, |
| | | |
| | | inputChange: function (e) { |
| | | inputChange: function(e) { |
| | | var name = e.currentTarget.dataset.name; |
| | | this.setData({ |
| | | picturesInfo: { |
| | |
| | | |
| | | }, |
| | | |
| | | reply: function (e) { |
| | | reply: function(e) { |
| | | var that = this; |
| | | var openId = wx.getStorageSync("openId") |
| | | var obj = { |
| | |
| | | header: { |
| | | "Content-Type": "application/json" |
| | | }, |
| | | success: function (res) { |
| | | success: function(res) { |
| | | if (res.data.code == 0) { |
| | | wx.showToast({ |
| | | title: '提交回复成功', |
| | | icon: 'success', |
| | | duration: 2000 |
| | | }) |
| | | setTimeout(function () { |
| | | setTimeout(function() { |
| | | wx.navigateBack({ |
| | | changed: true |
| | | }); //返回上一页 |
| | |
| | | }) |
| | | }, |
| | | |
| | | submit: function (e) { |
| | | submit: function(e) { |
| | | var picturesInfo = this.data.picturesInfo; |
| | | if (!picturesInfo.schoolName) { |
| | | return app.showModal("请填写学校名称!"); |
| | |
| | | return app.showModal("请填写联系人!"); |
| | | } |
| | | if (!picturesInfo.contactPhone) { |
| | | return app.showModal("请填写联系方式!"); |
| | | return app.showModal("请填写手机号码!"); |
| | | } |
| | | if (/^[1]([3-9])[0-9]{9}$/.test(picturesInfo.contactPhone) == false) { |
| | | return app.showModal("手机号码有误!"); |
| | | } |
| | | if (!picturesInfo.activitiesTime) { |
| | | return app.showModal("请填写活动时间!"); |
| | |
| | | header: { |
| | | "Content-Type": "application/json" |
| | | }, |
| | | success: function (res) { |
| | | success: function(res) { |
| | | if (res.data.code == 0) { |
| | | wx.showToast({ |
| | | title: '提交成功', |
| | | icon: 'success', |
| | | duration: 2000 |
| | | }) |
| | | setTimeout(function () { |
| | | setTimeout(function() { |
| | | wx.reLaunch({ |
| | | url: '../zhwj/zhwj', |
| | | }) |
| | |
| | | <div class="publicSnapshot-main"> |
| | | <span class="red-title">*</span> |
| | | <span>联系方式</span> |
| | | <input data-name="contactPhone" bindinput="inputChange" disabled="{{disabled}}" value='{{picturesInfo.contactPhone}}'></input> |
| | | <input type="number" data-name="contactPhone" bindinput="inputChange" disabled="{{disabled}}" value='{{picturesInfo.contactPhone}}'></input> |
| | | </div> |
| | | <div class="publicSnapshot-main"> |
| | | <span class="red-title">*</span> |
| | | <span>活动时间</span> |
| | | <picker mode="date" value="{{picturesInfo.activitiesTime}}" data-name="activitiesTime" disabled="{{disabled}}" bindchange="inputChange"> |
| | | <picker mode="date" value="{{picturesInfo.activitiesTime}}" class='picker-margin' data-name="activitiesTime" disabled="{{disabled}}" bindchange="inputChange"> |
| | | <view class="picker"> |
| | | {{picturesInfo.activitiesTime}} |
| | | </view> |
| | |
| | | <div class="publicSnapshot-main"> |
| | | <span class="red-title">*</span> |
| | | <span>活动场地</span> |
| | | <input data-name="activitiesAddress" bindinput="inputChange" disabled="{{disabled}}" value='{{picturesInfo.activitiesAddress}}'></input> |
| | | <input type="text" data-name="activitiesAddress" bindinput="inputChange" disabled="{{disabled}}" value='{{picturesInfo.activitiesAddress}}'></input> |
| | | </div> |
| | | <div class="publicSnapshot-main" style='display:block'> |
| | | <view class="zhghInfo-center-title"> |
| | |
| | | /* pages/pfyy/pfyy.wxss */ |
| | | |
| | | input { |
| | | font-size: 14px; |
| | | color: #999; |
| | | text-align: right; |
| | | flex: 1; |
| | | } |
| | | |
| | | .border-bottom { |
| | |
| | | } |
| | | |
| | | textarea { |
| | | box-sizing: border-box; |
| | | box-sizing: border-box; |
| | | width: 100%; |
| | | height: 100px; |
| | | display: block; |
| | |
| | | .publicSnapshot-main span:nth-child(2) { |
| | | font-size: 14px; |
| | | color: #333; |
| | | margin-right: auto; |
| | | width: 20%; |
| | | } |
| | | |
| | |
| | | height: 22px; |
| | | } |
| | | |
| | | .publicSnapshot-main .person_w{ |
| | | .publicSnapshot-main .person_w { |
| | | display: inline-block; |
| | | font-size: 14px; |
| | | color: #333; |
| | | margin-right: auto; |
| | | width: auto; |
| | | } |
| | | |
| | | .picker-margin { |
| | | text-align: right; |
| | | flex: 1; |
| | | } |
| | | |
| | | .publicSnapshot-main-picker { |
| | |
| | | .publicSnapshot-status-time-right { |
| | | font-size: 14px; |
| | | } |
| | | .contantType-picker{ |
| | | |
| | | .contantType-picker { |
| | | font-size: 14px; |
| | | } |
| | | .contantType-picker-div{ |
| | | display:flex; |
| | | width: 31% |
| | | |
| | | .contantType-picker-div { |
| | | display: flex; |
| | | width: 31%; |
| | | } |
| | | |
| | | .publicSnapshot-main-img { |
| | | width: 16px; |
| | | height: 22px; |
| | | } |
| | | |
| | | .msg-reply-view-content { |
| | | overflow: auto; |
| | | padding:5px 0px 5px 20px; |
| | | padding: 5px 0px 5px 20px; |
| | | } |
| | | |
| | | .msg-reply-view-content::-webkit-scrollbar { |
| | |
| | | submit: function(e) { |
| | | var picturesInfo = this.data.picturesInfo; |
| | | |
| | | if (!picturesInfo.createrName) { |
| | | return app.showModal("请填写申请人姓名!"); |
| | | } |
| | | if (this.data.evalList.evalList1019.length == 0) { |
| | | return app.showModal("请上传照片!"); |
| | | } |
| | | if (!picturesInfo.reason) { |
| | | return app.showModal("请填写申请理由!"); |
| | | } |
New file |
| | |
| | | // pages/warning/warning.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页面的初始数据 |
| | | */ |
| | | data: { |
| | | msg: '' |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad: function(options) { |
| | | console.log(options.msg) |
| | | |
| | | this.setData({ |
| | | msg: options.msg == 1 ? '问卷已回收' : '页面警告' |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面初次渲染完成 |
| | | */ |
| | | onReady: function() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow: function() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面隐藏 |
| | | */ |
| | | onHide: function() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面卸载 |
| | | */ |
| | | onUnload: function() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh: function() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | onReachBottom: function() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage: function() { |
| | | |
| | | } |
| | | }) |
New file |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
New file |
| | |
| | | <!--pages/warning/warning.wxml--> |
| | | <div class="developIng"> |
| | | <icon type="info" size="70" style='margin:50px' /> |
| | | <text selectable='true' bindlongtap='copy' style='font-size:16px;width:60%;text-align:center;'>{{msg}}</text> |
| | | <!-- <text selectable='true' bindlongtap='copy' style='font-size:20px;'>http://www.ajxxgk.jcy.gov.cn</text> --> |
| | | <!-- <div class='copy' bindtap="copyBtn" style='margin:50px'>一键复制</div> --> |
| | | </div> |
New file |
| | |
| | | /* pages/warning/warning.wxss */ |
| | | |
| | | page { |
| | | /* width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; */ |
| | | } |
| | | |
| | | .developIng { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | image { |
| | | width: 135rpx; |
| | | height: 90rpx; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | |
| | | .copy { |
| | | font-size: 18px; |
| | | color: #fff; |
| | | background: linear-gradient(#33c3ff, #1790ff); |
| | | width: 335px; |
| | | height: 50px; |
| | | line-height: 30px; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | border-radius: 2px; |
| | | box-shadow: 0px 4px 8px 0px rgba(196, 222, 255, 1); |
| | | } |
| | |
| | | if (!this.data.thisData.createrMobile) { |
| | | return app.showModal("请填写手机号码!"); |
| | | } |
| | | if (/^[1]([3-9])[0-9]{9}$/.test(this.data.thisData.createrMobile)==false){ |
| | | return app.showModal("手机号码有误!"); |
| | | } |
| | | if (!this.data.thisData.createrAddress) { |
| | | return app.showModal("请填写联系方式!"); |
| | | return app.showModal("请填写联系地址!"); |
| | | } |
| | | } |
| | | wx.request({ |
| | |
| | | wx.showToast({ |
| | | title: '提交成功!', |
| | | icon: 'success', |
| | | duration: 2000 |
| | | }) |
| | | wx.navigateBack({ |
| | | delta: 2 |
| | | duration: 2000, |
| | | success: function() { |
| | | setTimeout(function() { |
| | | //要延时执行的代码 |
| | | wx.navigateBack({ |
| | | delta: 2 |
| | | }) |
| | | }, 1000) //延迟时间 |
| | | }, |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | checkMobile: function() { |
| | | var sMobile = document.mobileform.mobile.value |
| | | if (!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(sMobile))) { |
| | | alert("不是完整的11位手机号或者正确的手机号前七位"); |
| | | document.mobileform.mobile.focus(); |
| | | return false; |
| | | } |
| | | }, |
| | | |
| | | // 选择地理位置 |
| | | chooseLocation: function(e) { |
| | | const that = this; |
| | |
| | | <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view> |
| | | </view> |
| | | <view class="zhgh-list-b-right"> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?'bg-green':item.status=='进行中'?'bg-orange':'bg-grey'}}">{{item.status}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view> |
| | | </view> |
| | | <view class="zhgh-list-b-right"> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?'bg-green':item.status=='进行中'?'bg-orange':'bg-grey'}}">{{item.status}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view> |
| | | </view> |
| | | <view class="zhgh-list-b-right"> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?'bg-green':item.status=='进行中'?'bg-orange':'bg-grey'}}">{{item.status}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view> |
| | | </view> |
| | | <view class="zhgh-list-b-right"> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?'bg-green':item.status=='进行中'?'bg-orange':'bg-grey'}}">{{item.status}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view> |
| | | </view> |
| | | <view class="zhgh-list-b-right"> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view> |
| | | <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?'bg-green':item.status=='进行中'?'bg-orange':'bg-grey'}}">{{item.status}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | // pages/dxal/dxal.js |
| | | import { |
| | | $startWuxRefresher, |
| | | $stopWuxRefresher, |
| | | $stopWuxLoader |
| | | } from '../../templeteDist/wuxDist/index'; |
| | | // import { |
| | | // $startWuxRefresher, |
| | | // $stopWuxRefresher, |
| | | // $stopWuxLoader |
| | | // } from '../../templeteDist/wuxDist/index'; |
| | | |
| | | var app = getApp(); |
| | | |
| | |
| | | scrollTop: 0, |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad: function (options) { |
| | | $startWuxRefresher(); |
| | | |
| | | onShow: function(options) { |
| | | this.showList() |
| | | }, |
| | | |
| | | showList: function () { |
| | | showList: function() { |
| | | var that = this; |
| | | // wx.showLoading(); |
| | | wx.showLoading(); |
| | | wx.request({ |
| | | url: app.globalData.url + '/api/v1/searchLaw/caseSearch?page=1&size=' + this.data.count + '&words=' + this.data.value, |
| | | success: function (res) { |
| | | // wx.hideLoading(); |
| | | success: function(res) { |
| | | wx.hideLoading(); |
| | | console.log('res.data.data', res.data.data.data) |
| | | console.log('res', res) |
| | | if (res.data.code == 0) { |
| | | that.setData({ |
| | | items: [...res.data.data.data] |
| | | }) |
| | | $stopWuxRefresher() |
| | | $stopWuxLoader('#wux-refresher', this, true) |
| | | // $stopWuxRefresher() |
| | | // $stopWuxLoader('#wux-refresher', this, true) |
| | | } else { |
| | | wx.showToast({ |
| | | title: res.data.msg, |
| | |
| | | content: 'Wux Weapp' |
| | | })), |
| | | |
| | | linkFunction: function (event) { |
| | | linkFunction: function(event) { |
| | | var str = event.currentTarget.dataset['str']; |
| | | var id = event.currentTarget.dataset['id']; |
| | | wx.navigateTo({ |
| | |
| | | }) |
| | | }, |
| | | |
| | | showInput: function () { |
| | | showInput: function() { |
| | | this.setData({ |
| | | inputShowed: true |
| | | }); |
| | | }, |
| | | |
| | | hideInput: function () { |
| | | hideInput: function() { |
| | | this.setData({ |
| | | inputVal: "", |
| | | inputShowed: false |
| | | }); |
| | | }, |
| | | clearInput: function () { |
| | | clearInput: function() { |
| | | this.setData({ |
| | | inputVal: "" |
| | | }, () => {}); |
| | | }, |
| | | |
| | | onChange(e) { |
| | | searchIcon(e) { |
| | | console.log('onChange', e) |
| | | this.setData({ |
| | | value: e.detail.value, |
| | |
| | | console.log('onFocus', e) |
| | | }, |
| | | onBlur(e) { |
| | | console.log('onBlur', e) |
| | | this.setData({ |
| | | value: e.detail.value |
| | | }) |
| | | this.showList(); |
| | | console.log('onBlur', e); |
| | | this.showList() |
| | | }, |
| | | onConfirm(e) { |
| | | console.log('onConfirm', e) |
| | | console.log('onConfirm', e); |
| | | this.showList() |
| | | }, |
| | | onClear(e) { |
| | | console.log('onClear', e) |
| | |
| | | }, |
| | | onCancel(e) { |
| | | console.log('onCancel', e) |
| | | this.setData({ |
| | | value: '', |
| | | }) |
| | | }, |
| | | }) |
| | |
| | | <!-- <view class="cu-bar bg-white search solid-top fixed" style="top:{{CustomBar}}px"> |
| | | <view class="cu-bar bg-white search solid-top fixed" style="top:0px"> |
| | | <view class="search-form round"> |
| | | <text class="cuIcon-search"></text> |
| | | <input type="text" placeholder="搜索" confirm-type="search" bindinput="searchIcon"></input> |
| | | <wux-search-bar clear value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel"/> |
| | | <input type="text" placeholder="搜索" value="{{ value }}" confirm-type="search" bindblur="onBlur" bindinput="searchIcon" bindconfirm="onConfirm"></input> |
| | | </view> |
| | | </view> --> |
| | | <wux-search-bar class="zscqdxal-top" clear value="{{ value }}" controlled placeholder="搜索" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel"/> |
| | | <!-- <wux-search-bar clear show-cancel value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel" /> --> |
| | | |
| | | |
| | | <wux-refresher id="wux-refresher" bind:pulling="onPulling" bind:refresh="onRefresh" bind:loadmore="onLoadmore" scrollTop="{{scrollTop}}"> |
| | | <view class="weui-panel weui-panel_access"> |
| | | <view class="weui-panel__bd"> |
| | | <view class="weui-media-box weui-media-box_text" wx:for="{{ items }}" wx:key=""> |
| | | <!-- <view class="weui-media-box__title weui-media-box__title_in-text">{{ item.title }}</view> |
| | | </view> |
| | | <!-- <wux-search-bar class="zscqdxal-top" value="{{ value }}" controlled placeholder="搜索" bind:change="onChange" bind:focus="onFocus" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel"/> --> |
| | | <!-- <wux-search-bar clear show-cancel value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel" /> --> |
| | | <view class="weui-panel weui-panel_access"> |
| | | <view class="weui-panel__bd"> |
| | | <view class="weui-media-box weui-media-box_text" wx:for="{{ items }}" wx:key=""> |
| | | <!-- <view class="weui-media-box__title weui-media-box__title_in-text">{{ item.title }}</view> |
| | | <view class="weui-media-box__desc">{{ item.content }}</view> --> |
| | | <view class="zhwj-b-main" data-str="zscqdxalInfo" data-id="{{item.case_id}}" bindtap='linkFunction'> |
| | | <view class="zhwj-b-head-l"> |
| | | <view class="zhwj-b-head-l-title text-black"><rich-text nodes="{{item.title}}"></rich-text></view> |
| | | <view class="text-grey">{{item.case_number}} | 裁决日期{{item.decide_date}}</view> |
| | | <view class="zhwj-b-main" data-str="zscqdxalInfo" data-id="{{item.case_id}}" bindtap='linkFunction'> |
| | | <view class="zhwj-b-head-l"> |
| | | <view class="zhwj-b-head-l-title text-black"> |
| | | <rich-text nodes="{{item.title}}"></rich-text> |
| | | </view> |
| | | <!-- <view class="zhwj-b-head-r"> |
| | | <view class="text-grey">{{item.case_number}} | 裁决日期{{item.decide_date}}</view> |
| | | </view> |
| | | <!-- <view class="zhwj-b-head-r"> |
| | | <image mode='widthFix' src="{{dongtai1_1}}"></image> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </wux-refresher> |
| | | </view> |
New file |
| | |
| | | <svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><defs><style>.cls-1{fill:#5d9fe9;}.cls-2{fill:#ed9796;}</style></defs><title>未成年</title><path class="cls-1" d="M19.26,24H2.5A2.5,2.5,0,0,1,0,21.5V6.5A2.5,2.5,0,0,1,2.5,4h22A2.5,2.5,0,0,1,27,6.5V18.17a.5.5,0,0,1-1,0V6.5A1.5,1.5,0,0,0,24.5,5H2.5A1.5,1.5,0,0,0,1,6.5v15A1.5,1.5,0,0,0,2.5,23H19.26a.5.5,0,1,1,0,1Z"/><path class="cls-1" d="M23,26a5,5,0,1,1,5-5A5,5,0,0,1,23,26Zm0-9a4,4,0,1,0,4,4A4,4,0,0,0,23,17Z"/><rect class="cls-1" x="22.5" y="18.04" width="1" height="3.46"/><rect class="cls-1" x="22.5" y="22.49" width="1" height="1"/><path class="cls-1" d="M7.5,15.5A3.5,3.5,0,1,1,11,12,3.5,3.5,0,0,1,7.5,15.5Zm0-6A2.5,2.5,0,1,0,10,12,2.5,2.5,0,0,0,7.5,9.5Z"/><path class="cls-1" d="M11.5,19.5h-8A.5.5,0,0,1,3,19a4.5,4.5,0,0,1,9,0A.5.5,0,0,1,11.5,19.5ZM4,18.5H11A3.5,3.5,0,0,0,4,18.5Z"/><rect class="cls-2" x="14" y="8.5" width="9" height="1"/><rect class="cls-2" x="14" y="13.5" width="9" height="1"/><rect class="cls-2" x="14" y="18.5" width="3" height="1"/></svg> |