6 files modified
19 files deleted
| | |
| | | |
| | | <script> |
| | | import pageNav from '@/components/page-nav/page-nav.vue'; |
| | | import list from "./demo.config.js"; |
| | | // import list from "./demo.config.js"; |
| | | export default { |
| | | components: { |
| | | pageNav |
| | | }, |
| | | data() { |
| | | let list = [{ |
| | | groupName: '基础功能', |
| | | list: [{ |
| | | path: '/pages/alarm_list/integral/integral', |
| | | icon: 'cell', |
| | | title: '查积分', |
| | | }, { |
| | | path: '/pages/grabOrders/taskCount/taskCount/grabOrders', |
| | | icon: 'sticky', |
| | | title: '查任务', |
| | | }] |
| | | }, |
| | | { |
| | | groupName: '业务功能', |
| | | list: [{ |
| | | path: 'pages/alarm_list/organ/organ', |
| | | icon: 'layout', |
| | | title: '组织申请', |
| | | }, { |
| | | path: 'pages/alarm_list/industry/industry', |
| | | icon: 'tabbar', |
| | | title: '行业政策', |
| | | }, |
| | | { |
| | | path: 'pages/grabOrders/personnelCount/personnelCount', |
| | | icon: 'tabbar', |
| | | title: '人员统计', |
| | | }, |
| | | ] |
| | | } |
| | | ]; |
| | | |
| | | let who = this.$store.state.roleid == "1417092295132561409" ? |
| | | "民警" : |
| | | (this.$store.state.roleid == "1430798487303671810" ? |
| | | '管理员' : |
| | | this.$store.state.roleid == "1123598816738675201" ? |
| | | '超级管理员' : |
| | | "其他") |
| | | // console.log(this.$store.state.roleid) |
| | | // console.log(who) |
| | | let lists = []; |
| | | for (let k in list) { |
| | | let listin = list[k].list; |
| | | lists.push(list[k]); |
| | | lists[k].list = []; |
| | | for (let kin in listin) { |
| | | if (who == "其他") { |
| | | if (listin[kin].title == "人员统计") { |
| | | continue; |
| | | } |
| | | } |
| | | lists[k].list.push(listin[kin]) |
| | | } |
| | | } |
| | | // console.log(lists) |
| | | return { |
| | | list: list, |
| | | list: lists, |
| | | title: '基础功能示例合集', |
| | | desc: '众多示例覆盖开发过程的各个需求,正在不断完善中。可让您快速集成,开箱即用。' |
| | | } |
| | |
| | | <view class="swiper-item"> |
| | | <scroll-view scroll-y :style="{ height: useHeight, width: '100%' }" @scrolltolower="onreachBottom"> |
| | | <page0 :listData="leftdata" :swiperCurrent="0" v-if="item.name == '正在进行'" @openOnce="openOnce" |
| | | @getOrders="getOrders"></page0> |
| | | @getOrders="getOrders" @outOrders="outOrders"></page0> |
| | | <page1 :listData="rightdata" :swiperCurrent="1" v-if="item.name == '可参与'" @openOnce="openOnce" |
| | | @getOrders="getOrders"></page1> |
| | | <page2 :listData="overdata" :swiperCurrent="2" v-if="item.name == '已完成'" @openOnce="openOnce" |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | //取消任务 |
| | | outOrders(d) { |
| | | let that = this; |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + |
| | | `taskqd/cancelTask?rid=${d.rid}&serid=${d.serid}&name=${that.$store.state.puserName}`, |
| | | method: "get", |
| | | // data: d, |
| | | header: { |
| | | "content-type": "application/x-www-form-urlencoded", |
| | | }, |
| | | success(res) { |
| | | const data = res.data.msg; |
| | | if (data == "操作成功") { |
| | | uni.showToast({ |
| | | title: data, |
| | | duration: 2000, |
| | | }); |
| | | } |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | } |
| | | }) |
| | | }, |
| | | //实时位置传递 |
| | | setNowposition(rid, jd, wd) { |
| | | console.log(uni.getStorageSync("ids") || this.$store.state.puserID, rid, jd, wd); |
| | |
| | | tasktype: '0' |
| | | }; |
| | | let isWhere = val == 0 ? "可参与" : val == 1 ? "正在进行" : "已完成"; |
| | | if (val == 1) { |
| | | if (val == 0) { |
| | | d.jurisdiction = this.$store.state.UserData.jurisdiction; |
| | | d.workjurisdiction = this.$store.state.UserData.workjurisdiction; |
| | | } |
| | |
| | | item = b.item, |
| | | that = this; |
| | | console.log(val, item) |
| | | |
| | | if (val == 0) { //正在进行 |
| | | if (item.type == "2") { //开始任务按钮 |
| | | // that.useWebScoketApi(item.id, item.serid, "start"); |
| | |
| | | <script> |
| | | import page0 from "./inPage/page0.vue"; |
| | | import page1 from "./inPage/page1.vue"; |
| | | import page2 from "./inPage/page2.vue"; |
| | | export default { |
| | | components: { |
| | | page0, |
| | | page1, |
| | | page2 |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | item = b.item, |
| | | that = this; |
| | | console.log(val, item) |
| | | |
| | | if (val == 0) { //正在进行 |
| | | if (item.type == "2") { //开始任务按钮 |
| | | // that.useWebScoketApi(item.id, item.serid, "start"); |
| | |
| | | <template> |
| | | <view> |
| | | <view class="advisory-big"> |
| | | <view class="m-top"> |
| | | </view> |
| | | <view class="bomBut"> |
| | | <view style="width: 400rpx;padding-left: 30rpx;"> |
| | | <u-tabs :list="list" :is-scroll="false"></u-tabs> |
| | | </view> |
| | | <u-row gutter="16"> |
| | | <u-col span="7"> |
| | | <view class="bom-text">当前积分</view> |
| | | <view class="bom-int">{{dqjf}}</view> |
| | | </u-col> |
| | | <u-col span="5"> |
| | | <view class="bom-text">累计积分</view> |
| | | <view class="bom-int">{{ljjf}}</view> |
| | | </u-col> |
| | | </u-row> |
| | | </view> |
| | | |
| | | <view class="bomList"> |
| | | <view class=""> |
| | | <u-dropdown border-bottom="true"> |
| | | <u-dropdown-item v-model="value1" @change="change" title="收支类型" :options="options1"></u-dropdown-item> |
| | | </u-dropdown> |
| | | </view> |
| | | |
| | | <scroll-view id="articleBox" :style="{ height: swiperHeight + 'px' }" class="article-content" scroll-y |
| | | style="width: 100%; margin-top: 15rpx;"> |
| | | <view v-for="i in data" class="advisory-model" @click="goDetail(i)"> |
| | | <view class="advisory-left"> |
| | | <view class="advisory-title-top"> |
| | | <view class="advisory-title">{{i.access}}</view> |
| | | </view> |
| | | <view class="advisory-title-down"> |
| | | <view class="advisory-title-time">{{i.time}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="advisory-right"> |
| | | <view v-if="i.type =='2'" class="advisory-title-integral">- {{i.integral}}</view> |
| | | <view v-if="i.type =='1'" class="advisory-title-integraladd">+{{i.integral}}</view> |
| | | </view> |
| | | <u-line class="advisory-line" color="#ebebeb" /> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | dqjf:"暂无", |
| | | ljjf:"暂无", |
| | | list: [{ |
| | | name: '积分明细' |
| | | }, { |
| | | name: '' |
| | | }, { |
| | | name: '', |
| | | }], |
| | | options1: [{ |
| | | label: '全部', |
| | | value: 1, |
| | | }, |
| | | { |
| | | label: '积分获取', |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: '积分支出', |
| | | value: 3, |
| | | } |
| | | ], |
| | | value1: 1, |
| | | data: [], |
| | | swiperHeight: 0 |
| | | } |
| | | }, |
| | | methods: { |
| | | onLoad() { |
| | | this.getData(1); |
| | | }, |
| | | getData(e){ |
| | | var that = this; |
| | | uni.request({ |
| | | url:that.$store.state.piAPI + '/integral/selectCount?uid='+this.$store.state.puserID+"&type="+e, |
| | | method:'POST', |
| | | success(res) { |
| | | that.dqjf = res.data.data.sjf; |
| | | that.ljjf = res.data.data.zjf.integral; |
| | | that.data = res.data.data.list; |
| | | } |
| | | }); |
| | | }, |
| | | goDetail() { |
| | | |
| | | }, |
| | | change(e){ |
| | | this.getData(e); |
| | | }, |
| | | onReady() { |
| | | let that = this; |
| | | uni.getSystemInfo({ |
| | | success(e) { |
| | | console.log(e); |
| | | let { |
| | | windowWidth, |
| | | windowHeight, |
| | | safeArea |
| | | } = e; |
| | | const query = uni.createSelectorQuery().in(that); |
| | | query |
| | | .select('#articleBox') |
| | | .boundingClientRect(data => { |
| | | that.swiperHeight = (safeArea.bottom - data.top - 50); |
| | | }) |
| | | .exec(); |
| | | } |
| | | }); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .advisory-big { |
| | | width: 100%; |
| | | height: 100vh; |
| | | background-color: #f7f7f7; |
| | | } |
| | | |
| | | .bomBut { |
| | | width: 93%; |
| | | margin: 0 auto; |
| | | height: 7.5rem; |
| | | z-index: 999; |
| | | border-radius: 10px; |
| | | margin-top: -2.5rem; |
| | | background-color: #fff; |
| | | } |
| | | |
| | | .bomList { |
| | | width: 93%; |
| | | margin: 0 auto; |
| | | height: 30rem; |
| | | z-index: 999; |
| | | border-radius: 10px; |
| | | margin-top: 1rem; |
| | | background-color: #fff; |
| | | } |
| | | |
| | | .bom-text { |
| | | font-size: 30rpx; |
| | | font-family: PingFang SC; |
| | | color: #585b61; |
| | | padding-left: 30rpx; |
| | | } |
| | | |
| | | .bom-int { |
| | | font-size: 40rpx; |
| | | font-family: PingFang SC; |
| | | color: #ff910a; |
| | | font-weight: bold; |
| | | padding-left: 30rpx; |
| | | padding-top: 10rpx; |
| | | } |
| | | |
| | | .m-top { |
| | | width: 100%; |
| | | height: 3rem; |
| | | border-radius: 0px 0px 20px 20px; |
| | | background-image: linear-gradient(to bottom, #103289, #174cd1); |
| | | color: #fff; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .u-row { |
| | | margin: 10rpx 0; |
| | | } |
| | | |
| | | .demo-layout { |
| | | height: 80rpx; |
| | | border-radius: 8rpx; |
| | | } |
| | | |
| | | .bg-purple { |
| | | background: #d3dce6; |
| | | } |
| | | |
| | | .bg-purple-light { |
| | | background: #e5e9f2; |
| | | } |
| | | |
| | | .bg-purple-dark { |
| | | background: #99a9bf; |
| | | } |
| | | |
| | | .advisory-model { |
| | | width: 93%; |
| | | margin: 0 auto; |
| | | margin-top: 0.5rem; |
| | | height: 3rem; |
| | | background-color: #FFF; |
| | | } |
| | | |
| | | .advisory-title { |
| | | font-size: 15px; |
| | | font-weight: 550; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | display: -webkit-box; |
| | | -webkit-line-clamp: 2; |
| | | -webkit-box-orient: vertical; |
| | | } |
| | | |
| | | .advisory-title-down { |
| | | /* background-color: #0078A8; */ |
| | | width: 100%; |
| | | height: 25%; |
| | | font-size: 12px; |
| | | font-weight: 350; |
| | | color: #808080; |
| | | padding-top: 10rpx; |
| | | } |
| | | |
| | | .advisory-title-time { |
| | | position: relative; |
| | | } |
| | | |
| | | .advisory-right { |
| | | // background-color: #222222; |
| | | left: 25%; |
| | | top: 30%; |
| | | position: relative; |
| | | } |
| | | |
| | | .advisory-left { |
| | | width: 64%; |
| | | height: 80%; |
| | | float: left; |
| | | position: relative; |
| | | // background-color: #00FFFF; |
| | | left: 3%; |
| | | top: 10%; |
| | | } |
| | | |
| | | .advisory-line { |
| | | top: 70%; |
| | | position: relative; |
| | | } |
| | | |
| | | .advisory-title-integraladd{ |
| | | color: #00aaff; |
| | | } |
| | | |
| | | .advisory-title-integral{ |
| | | color: #ff0000; |
| | | } |
| | | </style> |
| | |
| | | return |
| | | } |
| | | store.commit('getUserData', res.data) |
| | | // console.log(res.data,123542); |
| | | console.log(res.data, 123542); |
| | | data.isit = true |
| | | store.state.roleid = res.data.role_id; //角色id |
| | | data.userName = res.data.nick_name //警袁姓名 |
| | | data.userID = res.data.user_id //警袁id |
| | | data.avatar = res.data.avatar //头像 |
| | |
| | | store.commit('login', data) |
| | | |
| | | wx.request({ |
| | | url: "http://223.82.109.183:2080/api/userVip/getUserVipInfo?idCardNo=" + res |
| | | url: "http://223.82.109.183:2080/api/userVip/getUserVipInfo?idCardNo=" + |
| | | res |
| | | .data.cardid, |
| | | method: 'get', |
| | | success: (result) => { |
| | |
| | | message: { |
| | | useName: '过客', |
| | | }, |
| | | roleid:'',//角色id |
| | | logPath: '', |
| | | piAPI: apis.api, |
| | | // piAPI: 'http://223.82.109.183:2082/api/', |
| | | // piAPI: 'http://192.168.0.110:83/', |
| | | piAPI: 'http://192.168.0.222:83/', |
| | | //piAPI: 'http://223.82.109.183:2082/api/', |
| | | BaopiAPI: 'http://223.82.109.183:2080/api/', |
| | | // BaopiAPI: 'http://223.82.109.183:2080/api/', |
| | | puserName: '', |
| | | puserID: '', |
| | | puserIphone: '', |