| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019 |
- <template>
- <view>
- <view class="textbox">
- <view class="inputs">
- <u-search placeholder="请输入设备名称/编号" v-model="device_id" placeholder-color="#909696" :show-action="false"
- search-icon-color="#909696" @input="searchinput">
- </u-search>
- </view>
- <view class="tab">
- <view class="tab-content">
- <view class="tab-box tab-box-top">
- <view v-for="(item,index) in menuList" :key="index" @click="change(index,item)"
- v-if="isShow(item)"
- :class="['tab-item',current==index?'active':'']">
- <image class="img-icon" :src="item.app_menu_icon" mode=""></image>
- <view class="text">{{ getSlice(item.purview_name) }}</view>
- </view>
- </view>
- <u-empty v-if="!menuList.length && !loading" :image-size="100" text="暂无设备权限,请联系工作人员添加"></u-empty>
- </view>
- </view>
- <view class="listbox" v-if="menuList.length">
- <view class="second-tab">
- <view class="tab-box">
- <view
- v-for="(item,index) in list"
- :key="index"
- @click="changeDevice(item,index)"
- v-show="!item.url"
- :class="['tab-item',currents == index?'active':'']"
- >
- <text>{{item.purview_name}}</text>
- </view>
- </view>
- </view>
- <view class="third-tab">
- <view
- class="third-tab-item"
- @click="changeStatus('')"
- :class="{'active-tab' : device_status == ''}"
- >总计{{ counts }}</view>
- <view
- class="third-tab-item"
- @click="changeStatus('1')"
- :class="{'active-tab' : device_status == '1'}"
- >在线{{ online_counts }}</view>
- <view
- class="third-tab-item"
- @click="changeStatus('0')"
- :class="{'active-tab' : device_status == '0'}"
- >离线{{ offline_counts }}</view>
- </view>
- <scroll-view
- :scroll-top="0"
- :scroll-y="true"
- class="list scroll-Y"
- @scrolltoupper="upper"
- @scrolltolower="lower"
- @scroll="scroll"
- >
- <view class="list_item" v-for="(item, index) in eqlistdata" :key="index" @click="historys(item)">
- <view class="list_item_top">
- <p class="p1">
- <span class="title">{{ (item.name || '--' )}}</span>
- <span class="sub-title" @click.stop="modification(item)">信息修改</span>
- </p>
- <p class="online-status"
- v-if="item.status == 1 || item.is_online" >
- <image
- :src="$imageURL+'/bigdata_app/newImg/home/online1.png'"
- mode=""
- ></image>
- <text class="status-text-online">在线</text>
- </p>
- <p
- v-else
- class="online-status"
- >
- <image
- :src="$imageURL+'/bigdata_app/newImg/home/offline.png'"
- mode=""
- ></image>
- <text class="status-text-offline">离线</text>
- </p>
- </view>
- <view class="list_item_text">
- <p v-if="item.imei">
- <span class="label">IMEI</span>{{ (item.dui || item.imei) }}
- </p>
- <p>
- <span class="label">设备ID</span>{{ item.only_for_show || item.id || item.device_id }}
- </p>
- <p>
- <span class="label">上报时间</span>{{ (item.report || item.uptime) | timeFormat() }}
- </p>
- <p style="display:flex;align-items: center;">
- <span class="label">设备位置</span>
- <span class="nav-label">{{ (item.address|| '无') }}</span>
- </p>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
- <view class="loading" v-if="loadingtf">
- <image src="../../static/images/ajax-loader.gif" mode="" class="img"></image>
- </view>
- <view class="top" v-if="isTop" @click="top">
- <image
- :src="
- $imageURL+'/bigdata_app' +
- '/image/6209a98f0cb3b5086f2ca36152c9269.png'
- " mode=""></image>
- </view>
- </view>
- </template>
- <script>
- import {
- Debounce,
- Throttle
- } from '../../util/anitthro.js';
-
- export default {
- data() {
- return {
- list: [],
- pur_id: '',
- loading: false,
- currentPur_id:'',
- device_status: '',
- counts:0,
- online_counts:0,
- offline_counts:0,
- current: 0,
- currents: 0,
- total: 0,
- refreshData:'',
- page: 1,
- size: 10,
- eqlistdata: [],
- isTop: false,
- device_model: '',
- infoalter: false, // 权限设置,
- type_id: 0, //设备类型,
- imgpath: [],
- loadingtf: false,
- width: 0, //顶部搜索栏宽度
- device_id: '', //搜索设备ID
- menuList: []
- };
- },
- methods: {
- isShow(item){
- return item.pur_id != 422
- },
- getSlice(name){
- return name.slice(0,4)
- },
- modification(item) {
- uni.navigateTo({
- url:
- './seabox/modification?data=' +
- JSON.stringify(item) +
- '&id=' +
- this.type_id,
- });
- },
- changeStatus(status){
- this.device_status = status;
- Debounce(() => {
- this.page = 1;
- this.eqlist();
- }, 500)();
- },
- async getUserlogin() {
- this.list = [];
- this.loading = true;
- const res = await this.$myRequest({
- url: '/api/api_gateway?method=user.login.user_login_info',
- method: 'POST',
- data: {
- is_app: 1,
- },
- });
- this.loading = false;
- res.forEach(item=>{
- item.icon = '/bigdata_app/newImg/home/sqjd.png'
- })
- const menulist = res || [];
- const menuItem = menulist.find(item => item.purview_name == '智慧物联')
- this.menuList = menuItem.children || [];
- if(!this.pur_id){
- this.list = this.menuList[0].children || []
- this.pur_id = this.menuList[0].pur_id || '';
- this.current = 0;
- }else{
- this.list = this.menuList.find(item => item.pur_id == this.pur_id)?.children || []
- this.pur_id = this.menuList.find(item => item.pur_id == this.pur_id)?.pur_id || '';
- this.current = this.menuList.findIndex(item => item.pur_id == this.pur_id);
- }
- if(this.list.length > 1){
- if(this.list[0].purview_name != '全部'){
- this.list.unshift({
- device_type_id: '',
- purview_name: '全部'
- })
- }
- }
- this.type_id = this.list[0].device_type_id;
- this.initPage();
- },
- async eqlist(tf) {
- this.counts = 0;
- this.online_counts = 0;
- this.offline_counts = 0;
- this.loadingtf = true;
- let data = {
- device_type_id: this.type_id,
- page_num: this.page,
- page_size: this.size,
- pur_id: this.pur_id,
- device_status: this.device_status,
- device_id: this.device_id,
- device_model: this.device_model
- }
- const res = await this.$myRequest({
- url: '/api/api_gateway?method=device.app_device.app_device_list',
- data: data,
- });
- this.loadingtf = false;
- const status = res?.status || {};
- this.online_counts = status.online || 0;
- this.offline_counts = status.offline || 0;
- this.counts = (status.online || 0) + (status.offline || 0);
- this.total = res.total || 0;
- if (tf) {
- this.eqlistdata = this.eqlistdata.concat(res.data);
- } else {
- this.eqlistdata = res.data;
- }
- },
- change(index,itemData) {
- this.list = this.menuList[index].children || []
- const list = [];
- this.list.forEach(item=>{
- if(item.url){
- list.push(item)
- }
- })
- if(list.length > 1){
- if(this.list[0].purview_name != '全部'){
- this.list.unshift({
- device_type_id: '',
- purview_name: '全部'
- })
- }
- }
- this.current = index;
- const item = this.list[0];
- this.pur_id = itemData.pur_id || '';
- this.changeDevice(item,0);
- },
- changeDevice(item,index){
- this.currents = index;
- this.currentPur_id = item.pur_id || '';
- const name = item.menu;
- if (name === 'cbd4') {
- this.device_model = 11;
- } else if(name === 'cbd1'){
- this.device_model = 12;
- } else if(name === 'cbd3'){
- this.device_model = '';
- } else if(name === 'cbd5'){
- this.device_model = 13;
- } else if(name === 'cbd6'){
- this.device_model = 14;
- }else if(name === 'gkcbd1'){
- this.device_model = 15;
- } else if(name === 'zhiCbd'){
- this.device_model = 16;
- }else {
- this.device_model = item.device_model || '';
- }
- this.page = 1;
- this.eqlistdata = [];
- this.type_id = item.device_type_id;
- Debounce(() => {
- this.eqlist();
- }, 500)();
- },
- top() {
- uni.pageScrollTo({
- scrollTop: 0,
- duration: 500,
- });
- },
- initPage(){
- this.eqlistdata = [];
- this.currents = 0;
- this.page = 1;
- Debounce(() => {
- this.eqlist();
- }, 500)();
- this.width = 0;
- },
- historys(item) {
- const type_id = item.type_id;
- item.pur_id = this.pur_id;
- switch (type_id) {
- // 水肥新设备
- case 22:
- var obj = {};
- obj.d_id = item.d_id;
- obj.device_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- uni.navigateTo({
- url: '../waterandfernew/details?shebei=' + JSON.stringify(obj),
- });
- break;
- // 病虫害可视监测
- case 14:
- item.addtime = item.uptime;
- uni.navigateTo({
- url: '../cb/sy/detail?detail=' + JSON.stringify(item),
- });
- break;
- case 2:
- item.addtime = item.uptime;
- uni.navigateTo({
- url: '../prevention/equipmentdetails?shebei=' + JSON.stringify(item),
- });
- // uni.navigateTo({
- // url: '../scd/detail?info=' + JSON.stringify(item),
- // });
- break;
- case 38:
- var obj = {};
- obj.d_id = item.d_id;
- obj.equip_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- uni.navigateTo({
- url: '../environment/equipment-new?shebei=' + JSON.stringify(obj),
- });
- break;
- case 5:
- var obj = {};
- obj.d_id = item.d_id;
- obj.equip_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- uni.navigateTo({
- url: '../environment/equipment?shebei=' + JSON.stringify(obj),
- });
- break;
- case 6:
- uni.navigateTo({
- url: '/pages/webview/webview?device_id=' +
- item.id +
- '&accessToken=' +
- this.accessToken,
- });
- break;
- case 44:
- uni.navigateTo({
- url:
- '/pages/webviewdgp/webviewdgp?device_id=' +
- item.id +
- '&accessToken=' +
- uni.getStorageSync('session_key') +
- '&type=dgp',
- });
- break;
- case 3:
- item.addtime = item.uptime;
- item.type = item.type_id;
- uni.navigateTo({
- url: '../cbd/detail?info=' + JSON.stringify(item),
- });
- break;
- case 28:
- item.addtime = item.uptime;
- item.type = item.type_id;
- uni.navigateTo({
- url: '../cb/smallPest/smallPest?info=' + JSON.stringify(item),
- });
- break;
- case 4:
- item.addtime = item.uptime;
- item.type = item.type_id;
- uni.navigateTo({
- url: '../cb/equip-detail/equip-detail?info=' + JSON.stringify(item),
- });
- break;
- case 32:
- case 33:
- case 34:
- case 35:
- item.addtime = item.uptime;
- item.type = item.type_id;
- uni.navigateTo({
- url: '../cb/equip-detail/equip-detail-new?info=' +
- JSON.stringify(item),
- });
- break;
- case 7:
- item.addtime = item.uptime;
- item.type = item.type_id;
- // uni.navigateTo({
- // url: '../bzy/detail?info=' + JSON.stringify(item),
- // });
- if(item.pur_id == 458){
- uni.navigateTo({
- url: '../bzy/detail?info=' + JSON.stringify(item),
- });
- }else{
- uni.navigateTo({
- url: '../cb/equip-detail/equip-detail?info=' + JSON.stringify(item),
- });
- }
- break;
- case 8:
- uni.navigateTo({
- url: '../cb/thxydetail/thxydetail?imei=' + item.id,
- });
- break;
- case 29:
- uni.navigateTo({
- url: `../cb/nlNewXy/nlNewXy?imei=${item.id}&showId=${item.d_id}`,
- });
- break;
- case 24:
- uni.navigateTo({
- url: '../cb/zjxydetail/thxydetail?imei=' + item.id,
- });
- break;
- case 12:
- item.addtime = item.uptime;
- uni.navigateTo({
- url: '../cb/xctdetail/xctdetail?info=' + JSON.stringify(item),
- });
- break;
- case 13:
- var obj = {};
- obj.d_id = item.d_id;
- obj.device_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- uni.navigateTo({
- url: '../waterandfer/datails?shebei=' + JSON.stringify(obj),
- });
- break;
- case 15:
- var obj = {};
- obj.d_id = item.d_id;
- obj.device_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- obj.address = item.address || '无';
- uni.navigateTo({
- url: '../environment/gsequipment?shebei=' + JSON.stringify(obj),
- });
- break;
- case 17:
- break;
- case 18:
- var obj = {};
- obj.device_id = item.id;
- obj.is_online = item.status;
- uni.navigateTo({
- url: '../cb/shuifeiL/shuifeiL?detail=' + JSON.stringify(obj),
- });
- break;
- case 43:
- uni.navigateTo({
- url: "/pages/fmSys/details?info=" + JSON.stringify(item)
- })
- break;
- // case 44:
- // uni.navigateTo({
- // url: "/pages/webviewdgp/webview?device_id=" + item.id + "&accessToken=" + this.accessToken || uni
- // .getStorageSync('session_key') +
- // '&type=dgp'
- // })
- // break;
- case 11:
- var obj = {};
- obj.d_id = item.d_id;
- obj.device_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- obj.location = item.address;
- obj.type = 11;
- uni.navigateTo({
- url: '../disease/cmb?shebei=' + JSON.stringify(obj),
- });
- break;
- case 19:
- var obj = {};
- obj.d_id = item.d_id;
- obj.device_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- obj.location = item.address;
- obj.type = 19;
- uni.navigateTo({
- url: '../disease/cmb?shebei=' + JSON.stringify(obj),
- });
- break;
- case 20:
- var obj = {};
- obj.d_id = item.d_id;
- obj.device_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- obj.location = item.address;
- obj.type = 20;
- uni.navigateTo({
- url: '../disease/cmb?shebei=' + JSON.stringify(obj),
- });
- break;
- case 21:
- var obj = {};
- obj.d_id = item.d_id;
- obj.device_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- obj.location = item.address;
- obj.type = 21;
- uni.navigateTo({
- url: '../disease/cmb?shebei=' + JSON.stringify(obj),
- });
- break;
- case 26:
- var obj = {};
- obj.d_id = item.d_id;
- obj.device_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- obj.location = item.address;
- obj.type = 26;
- uni.navigateTo({
- url: '../disease/cmb?shebei=' + JSON.stringify(obj),
- });
- break;
- case 27:
- var obj = {};
- obj.d_id = item.d_id;
- obj.device_id = item.id;
- obj.is_online = item.status;
- obj.lat = item.lat;
- obj.lng = item.lng;
- obj.equip_name = item.name;
- obj.uptime = item.uptime;
- obj.location = item.address;
- obj.type = 26;
- uni.navigateTo({
- url: '../disease/mls/mls?shebei=' + JSON.stringify(obj),
- });
- break;
- case 25:
- item.addtime = item.uptime;
- uni.navigateTo({
- url: '../cb/xylps/detail/detail?detail=' + JSON.stringify(item),
- });
- break;
- case 40:
- item.addtime = item.uptime;
- uni.navigateTo({
- url: `../cb/shuifeizs/shuifeizs?devBid=${item.d_id}&devName=${item.name}&devStatus=${item.status}`,
- });
- break;
- case 42:
- item.addtime = item.uptime;
- uni.navigateTo({
- url: `../cb/wenshizs/wenshizs?devBid=${item.d_id}&devName=${item.name}&devStatus=${item.status}`,
- });
- break;
- case 45:
- item.addtime = item.uptime;
- uni.navigateTo({
- url: `../cb/shuifeizsFirst/shuifeizs?devBid=${item.d_id}&devName=${item.name}&devStatus=${item.status}`,
- });
- break;
- case 46:
- uni.navigateTo({
- url: `../deviceDetails/weatherStation/index?devBid=${item.id}&devName=${item.name}&devStatus=${item.status}&address=${item.address}&uptime=${item.uptime}&d_id=${item.d_id}&deviceType=46`,
- });
- break;
- case 47:
- uni.navigateTo({
- url: `../cb/zhamenFirst/zhamenzs?devBid=${item.d_id}&devName=${item.name}&devStatus=${item.status}`,
- });
- break;
- default:
- item.addtime = item.uptime;
- item.type = this.type_id;
- uni.navigateTo({
- url: '../cb/xy2.0/particulars?info=' + JSON.stringify(item),
- });
- break;
- }
- },
- searchinput() {
- Debounce(() => {
- this.eqlistdata = [];
- this.page = 1;
- this.eqlist();
- }, 1000)();
- },
- scrollTop(e) {},
- upper() {},
- lower() {
- if(this.eqlistdata.length >= this.total){
- return;
- }
- Debounce(() => {
- this.page++;
- this.eqlist(true);
- }, 500)();
- },
- scroll() {},
- },
- watch:{
- pur_id(){
- setTimeout(() => {
- this.getUserlogin();
- }, 100);
- },
- },
- onLoad() {
- const that = this;
- uni.$on('purId', (item) => {
- that.pur_id = item.purId;
- that.menu = item.menu;
- that.device_model = item.device_model;
- });
- uni.$on('refreshData', (refreshData) => {
- this.eqlist();
- });
- this.getUserlogin();
- },
- onShow() {
- // 监听刷新数据事件
- const refreshData = uni.getStorageSync('refreshData');
- if(!this.refreshData){
- this.refreshData = refreshData;
- // 如果发生改变,刷新数据
- if(refreshData){
- Debounce(() => {
- this.getUserlogin();
- }, 500)();
- }
- }else if(this.refreshData != refreshData){
- this.refreshData = refreshData;
- Debounce(() => {
- this.getUserlogin();
- }, 500)();
- }
- },
- onTabItemTap(e) {
- },
- onReachBottom() {
- if(this.eqlistdata.length >= this.total){
- return;
- }
- Debounce(() => {
- this.page++;
- this.eqlist(true);
- }, 500)();
- },
- onPageScroll(e) {
- //nvue暂不支持滚动监听,可用bindingx代替
- if (e.scrollTop > 200) {
- //距离大于200时显示
- this.isTop = true;
- } else {
- //距离小于200时隐藏
- this.isTop = false;
- }
- },
- };
- </script>
- <style lang="scss">
- page {
- background: linear-gradient(180deg, #ffffff00 0%, #F5F6FA 23.64%, #F5F6FA 100%), linear-gradient(102deg, #BFEADD 6.77%, #B8F1E7 40.15%, #B9EEF5 84.02%);
- }
- /deep/.uni-icons {
- font-size: 40rpx !important;
- }
- input{
- background: transparent !important;
- }
- .textbox {
- width: 100%;
- height: calc(100vh - 82rpx);
- padding-top: 82rpx;
- box-sizing: border-box;
- }
- .inputs {
- width: 65%;
- margin-left: 12rpx;
- /deep/.u-content {
- background-color: #fff !important;
- }
- /deep/.uni-input-wrapper {
- background-color: #fff !important;
- }
- }
- .utabs_box {
- width: 100%;
- position: fixed;
- top: 88px;
- background-color: #ffffff;
- z-index: 100;
- .utabs {
- width: 95%;
- margin: 0 auto;
- }
- }
- .loading {
- position: fixed;
- top: 440px;
- width: 95%;
- left: 2.5%;
- text-align: center;
- .img {
- width: 300rpx;
- height: 40rpx;
- }
- }
- .active-tab{
- border-radius: 8rpx;
- background: linear-gradient(0deg, #0bbc580f 0%, #0bbc580f 100%), #00000005;
- }
- .tab-box {
- font-size: 30rpx;
- box-sizing: border-box;
- width: 100%;
- height: 100%;
- overflow-y: hidden;
- overflow-x: auto;
- white-space: nowrap;
- // 去掉滚动条
- -ms-overflow-style: none;
- scrollbar-width: none;
- .tab-item {
- cursor: pointer;
- position: relative;
- text-align: center;
- display: inline-block;
- padding: 16rpx 24rpx;
- box-sizing: border-box;
- span {
- display: inline-block;
- }
- }
- }
- .tab-box-top{
- .tab-item {
- width: 140rpx;
- text-align: center;
- }
- }
- .tab {
- // background-color: #0BBC58;
- margin-top: 42rpx;
- margin-bottom: 38rpx;
- padding: 0 32rpx;
- .img-icon {
- width: 80rpx;
- height: 80rpx;
- margin-bottom: 12rpx;
- }
-
- .text {
- color: #303133;
- font-size: 24rpx;
- }
- .tab-content {
- width: 100%;
- height: 162rpx;
- }
- .tab-item.active {
- border-radius: 24rpx;
- background: linear-gradient(0deg, #0bbc580f 0%, #0bbc580f 100%), #00000005;
- }
- }
- .second-tab {
- height: 80rpx;
- .tab-item{
- font-size: 28rpx;
- color: #999999;
- }
- .tab-item.active {
- color: #303133;
- font-weight: 700;
- }
- .tab-item.active::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- width: 18px; /* 比文字略宽 */
- height: 18px;
- border: 3px solid #0BBC58;
- border-radius: 50%;
- border-color: transparent; /* 隐藏其他部分 */
- border-bottom-color: #0BBC58; /* 组合成45度角 */
- // transform: rotate(0deg); /* 调整角度 */
- }
- }
- .third-tab {
- margin: 8rpx 0;
- height: 64rpx;
- line-height: 64rpx;
- display: flex;
- justify-content: space-between;
- .third-tab-item {
- flex: 1;
- text-align: center;
- }
- }
- .list {
- width: 100%;
- background-color: #F5F6FA;
- // margin-bottom: 100rpx;
- overflow-y: auto;
- padding: 0 32rpx;
- box-sizing: border-box;
- .list_item {
- width: 100%;
- margin: 0 auto 24rpx;
- padding: 32rpx;
- box-sizing: border-box;
- position: relative;
- background-color: #ffffff;
- border-radius: 16rpx;
- .list_item_top {
- .p1 {
- width: 86%;
- font-size: 28rpx;
- overflow: hidden;
- display: flex;
- align-items: center;
- .title{
- max-width: 75%;
- color: #333333;
- font-size: 28rpx;
- font-weight: 700;
- margin-right: 8rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .sub-title{
- border-radius: 32rpx;
- border:2rpx solid #0bbc58;
- padding: 4rpx 12rpx;
- font-size: 22rpx;
- font-weight: 400;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- color:#0bbc58;
- margin-left: 20rpx;
- }
- }
- }
- .online-status{
- font-size: 28rpx;
- position: absolute;
- top:0rpx;
- text-align: center;
- right: 8rpx;
- top: 2rpx;
- width: 76px;
- height: 28px;
- // line-height: 28px;
- // border-radius: 0px 0px 0px 26px;
-
- // border: 1px solid #ffffff;
- image{
- width: 140rpx;
- height: 56rpx;
- }
- .status-text-online{
- color: #0BBC58;
- position: absolute;
- top: 0rpx;
- right: 0rpx;
- width: 120rpx;
- height: 56rpx;
- line-height: 56rpx;
- font-size: 26rpx;
- }
- .status-text-offline{
- color: #FB4E52;
- position: absolute;
- top: 0rpx;
- right: 0rpx;
- width: 120rpx;
- height: 56rpx;
- line-height: 56rpx;
- font-size: 26rpx;
- }
- }
- // .p2 {
-
- // color: #0BBC58;
- // background: #0bbc581a;
- // }
-
- // .p_out {
-
- // color: #FB4E52;
- // background: #fb4e521a;
- // }
- .list_item_text {
- margin-top: 20rpx;
-
- p {
- font-size: 24rpx;
- color: #303133;
- margin-top: 10rpx;
- word-break: break-all;
- }
- .label{
- color: #999999;
- text-align: left;
- margin-right: 32rpx;
- font-size: 24rpx;
- min-width: 90rpx;
- display: inline-block;
- }
- .nav-label{
- //超出隐藏
- display: inline-block;
- width: 70%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- .list_item_btn {
- width: 126rpx;
- color: #42b983;
- height: 40rpx;
- text-align: center;
- border: 1rpx solid #42b983;
- border-radius: 25rpx;
- font-size: 24rpx;
- line-height: 35rpx;
- position: absolute;
- bottom: 15rpx;
- right: 20rpx;
- }
- }
- }
- .top {
- position: fixed;
- right: 30px;
- bottom: 100px;
- z-index: 100;
- image {
- width: 100rpx;
- height: 100rpx;
- }
- }
- </style>
|