1609 lines
35 KiB
Vue
1609 lines
35 KiB
Vue
<template>
|
|
<view class="content contentBg">
|
|
<view class="eq">
|
|
<view class="leftImg" @click.stop="previewImg(formData.img)">
|
|
<image class="img" :src="formData.img?formData.img:'/static/images/4877/4877equip.png'"
|
|
mode="aspectFit"></image>
|
|
</view>
|
|
<view class="rightTxt">
|
|
<view class="row">
|
|
<image class="img" src="/static/images/6155/DeviceDetail/battry.png" mode="aspectFit"></image>
|
|
<view class="txt">
|
|
<view class="bigTxt">{{formData.sta_battery}}%</view>
|
|
<view class="smallTxt">电量</view>
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<image class="img" src="/static/images/6155/DeviceDetail/time.png" mode="aspectFit"></image>
|
|
<view class="txt">
|
|
<view class="bigTxt">{{formData.xuhang}}</view>
|
|
<view class="smallTxt">续航时间</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="eqinfo">
|
|
<view class="item">
|
|
<text class="lbl">蓝牙名称</text>
|
|
<text class="value">{{formData.blename}}</text>
|
|
</view>
|
|
<view class="item">
|
|
<text class="lbl">设备名称</text>
|
|
<text class="value">{{formData.deviceName}}</text>
|
|
</view>
|
|
<view class="item">
|
|
<text class="lbl">蓝牙状态</text>
|
|
<text class="value" :class="formData.bleStatu?'green':'red'">{{formData.bleStatu?'已连接':'未连接'}}</text>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="lamp">
|
|
<view class="title">
|
|
<text>SOS</text>
|
|
<view @click.stop="sosSetting({val:'sos_off'})">
|
|
<image class="img" src="/static/images/common/close.png" mode="aspectFit"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="lampMode">
|
|
<view class="mode fleft " v-for="item,index in dic.SOS"
|
|
:class="{active:formData.sta_SOSType===item.val,marginLeft:index%2==1}"
|
|
v-on:click.stop="sosSetting(item,index)">
|
|
<view class="leftImg">
|
|
<image class="img" :class="(formData.sta_SOSType!==item.val || !item.activeImg)?'':'displayNone'"
|
|
:src="item.img" mode="aspectFit"></image>
|
|
<image class="img" :class="(formData.sta_SOSType===item.val && item.activeImg)?'':'displayNone'"
|
|
:src="item.activeImg" mode="aspectFit"></image>
|
|
</view>
|
|
<view class="rightTxt">
|
|
<text class="bigTxt">{{item['text']}}</text>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="clear"></view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="lamp">
|
|
<view class="title">
|
|
<text>单色配组</text>
|
|
<view @click.stop="groupSetting({val:'off'})">
|
|
<image class="img" src="/static/images/common/close.png" mode="aspectFit"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="lampMode">
|
|
<view class="mode fleft " v-for="item,index in dic.gropus"
|
|
:class="{active:formData.sta_GroupType===item.val,marginLeft:index%2==1}"
|
|
v-on:click.stop="groupSetting(item,index)">
|
|
<view class="leftImg">
|
|
<image class="img" :class="formData.sta_GroupType!==item.val?'':'displayNone'"
|
|
src="/static/images/4877/lightt.png" mode="aspectFit"></image>
|
|
<image class="img" :class="formData.sta_GroupType===item.val?'':'displayNone'" :src="item.activeImg"
|
|
mode="aspectFit"></image>
|
|
</view>
|
|
<view class="rightTxt">
|
|
<text class="bigTxt">{{item['text']}}</text>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="clear"></view>
|
|
</view>
|
|
|
|
<view class="lamp noPadding">
|
|
<view class="title">箭头模式</view>
|
|
<view class="smlltitle">
|
|
箭头朝向
|
|
|
|
</view>
|
|
</view>
|
|
<view class="arrowContent marginTop10">
|
|
<view class="modeSetting">
|
|
|
|
<view class="arrow" @click.stop="ArrowSet('red_front')"
|
|
:class="formData.sta_ArrowType=='red_front'?'active':''">
|
|
<view class="outCircle">
|
|
<view class="item">
|
|
<image class="img nomal" src="/static/images/4877/arrow.png" mode="aspectFit"></image>
|
|
<image class="img activity" src="/static/images/4877/arrowActive.png" mode="aspectFit">
|
|
</image>
|
|
</view>
|
|
</view>
|
|
<view class="text">红色朝前</view>
|
|
</view>
|
|
<view class="arrow" @click.stop="ArrowSet('green_back')"
|
|
:class="formData.sta_ArrowType=='green_back'?'active':''">
|
|
<view class="outCircle">
|
|
<view class="item">
|
|
<image class="img nomal translate" src="/static/images/4877/arrow.png" mode="aspectFit">
|
|
</image>
|
|
<image class="img activity translate" src="/static/images/4877/arrowActive.png"
|
|
mode="aspectFit"></image>
|
|
</view>
|
|
</view>
|
|
<view class="text">绿色朝后</view>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
<view class="lamp noPadding">
|
|
|
|
<view class="smlltitle">
|
|
双向频闪
|
|
|
|
</view>
|
|
</view>
|
|
<view class="arrowContent marginTop10">
|
|
<view class="modeSetting">
|
|
|
|
<view class="arrow" @click.stop="ArrowSet('red_all')"
|
|
:class="formData.sta_ArrowType=='red_all'?'active':''">
|
|
<view class="outCircle">
|
|
<view class="item">
|
|
<image class="img nomal" src="/static/images/4877/arrowLR.png" mode="aspectFit"></image>
|
|
<image class="img activity" src="/static/images/4877/arrowLRActive.png" mode="aspectFit">
|
|
</image>
|
|
</view>
|
|
</view>
|
|
<view class="text">红色双向</view>
|
|
</view>
|
|
<view class="arrow" @click.stop="ArrowSet('green_all')"
|
|
:class="formData.sta_ArrowType=='green_all'?'active':''">
|
|
<view class="outCircle">
|
|
<view class="item">
|
|
<image class="img nomal translate" src="/static/images/4877/arrowLR.png" mode="aspectFit">
|
|
</image>
|
|
<image class="img activity translate" src="/static/images/4877/arrowLRActive.png"
|
|
mode="aspectFit"></image>
|
|
</view>
|
|
</view>
|
|
<view class="text">绿色双向</view>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="proinfo lamp">
|
|
<text class="title">产品信息</text>
|
|
<view class="itemcontent">
|
|
<view class="item" @click="proParam()">
|
|
<image class="img" src="/static/images/6155/DeviceDetail/param.png" mode="aspectFit"></image>
|
|
<text class="txt">产品参数</text>
|
|
</view>
|
|
<view class="item" @click="handRemark()">
|
|
<image class="img" src="/static/images/6155/DeviceDetail/remark.png" mode="aspectFit"></image>
|
|
<text class="txt">操作说明</text>
|
|
</view>
|
|
<view class="item" @click="handVideo()">
|
|
<image class="img" src="/static/images/6155/DeviceDetail/video.png" mode="aspectFit"></image>
|
|
<text class="txt">操作视频</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 弹窗通知 -->
|
|
<MessagePopup :visible="Status.Pop.showPop" :type="Status.Pop.popType" :bgColor="Status.Pop.bgColor"
|
|
:borderColor="Status.Pop.borderColor" :textColor="Status.Pop.textColor"
|
|
:buttonBgColor="Status.Pop.buttonBgColor" :buttonTextColor="Status.Pop.buttonTextColor"
|
|
:iconUrl="Status.Pop.iconUrl" :message="Status.Pop.message" :buttonText="Status.Pop.buttonText"
|
|
@buttonClick="HidePop" :visiblePrompt="Status.Pop.visiblePrompt" :promptTitle="Status.Pop.promptTitle"
|
|
v-model="Status.Pop.modelValue" @closePop="closePop" :buttonCancelText="Status.Pop.buttonCancelText"
|
|
:showCancel="Status.Pop.showCancel" @cancelPop="closePop" />
|
|
|
|
<!-- 下方菜单 -->
|
|
<!-- <BottomSlideMenuPlus :config="Status.BottomMenu" @close="closeMenu" @itemClick="handleItemClick"
|
|
@btnClick="btnClick">
|
|
<view>
|
|
<view class="addIco">
|
|
<view class="icoContent center" v-on:click.stop="checkImgUpload()">
|
|
<image mode="aspectFit" class="img" src="/static/images/6155/DeviceDetail/add.png"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</BottomSlideMenuPlus> -->
|
|
|
|
<global-loading ref="loading" />
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import gbk from '@/utils/gbk.js'
|
|
import BleTool from '@/utils/BleHelper.js'
|
|
import BleReceive from '@/utils/BleReceive';
|
|
import {
|
|
showLoading,
|
|
hideLoading,
|
|
updateLoading
|
|
} from '@/utils/loading.js'
|
|
import {
|
|
request,
|
|
baseURL
|
|
} from '../../utils/request';
|
|
|
|
import usrApi from '@/api/670/HBY670.js'
|
|
const pagePath = "/pages/4877/BJQ4877";
|
|
|
|
var ble = null;
|
|
var these = null;
|
|
var recei = null;
|
|
var interval = null;
|
|
export default {
|
|
data() {
|
|
return {
|
|
Status: {
|
|
pageHide: false,
|
|
Pop: {
|
|
showPop: false, //是否显示弹窗
|
|
popType: 'custom',
|
|
bgColor: '#383934bd',
|
|
borderColor: '#BBE600',
|
|
textColor: '#ffffffde',
|
|
buttonBgColor: '#BBE600',
|
|
buttonTextColor: '#232323DE',
|
|
iconUrl: '',
|
|
message: '您确定要这样做吗?',
|
|
buttonText: '确定',
|
|
clickEvt: '',
|
|
visiblePrompt: false,
|
|
promptTitle: '设备名称',
|
|
modelValue: '',
|
|
visibleClose: false,
|
|
okCallback: null,
|
|
buttonCancelText: '',
|
|
showCancel: false,
|
|
},
|
|
BottomMenu: {
|
|
show: false,
|
|
showHeader: true,
|
|
menuItems: [{
|
|
text: '强光',
|
|
icon: '/static/images/6155/DeviceDetail/qiang.png'
|
|
},
|
|
{
|
|
text: '弱光',
|
|
icon: '/static/images/6155/DeviceDetail/ruo.png'
|
|
},
|
|
{
|
|
text: '爆闪',
|
|
icon: '/static/images/6155/DeviceDetail/shan.png'
|
|
}
|
|
],
|
|
activeIndex: -1,
|
|
bgColor: '#2a2a2a',
|
|
itemBgColor: '#3a3a3a',
|
|
textColor: '#ffffffde',
|
|
textAlign: 'flex-start',
|
|
title: '主灯模式',
|
|
showDivider: false,
|
|
dividerColor: '#00000000',
|
|
dividerThickness: '0rpx',
|
|
dividerMargin: '10rpx',
|
|
itemHeight: '80rpx',
|
|
type: '',
|
|
showBtn: true,
|
|
btnBgColor: "#bbe600",
|
|
btnText: "确定",
|
|
btnTextColor: "#232323de",
|
|
showMask: true,
|
|
maskBgColor: '#00000066',
|
|
showClose: false
|
|
},
|
|
usrToggle: true,
|
|
},
|
|
formData: {
|
|
img: '/static/images/4877/4877equip.png',
|
|
sta_battery: '',
|
|
xuhang: '',
|
|
blename: '',
|
|
deviceId: '',
|
|
deviceName: '',
|
|
RSSI: '',
|
|
statu: '',
|
|
macAddress: '',
|
|
bleStatu: false,
|
|
sta_address: '',
|
|
sta_VoiceType: '',
|
|
sta_VoiceVolume: '',
|
|
sta_LightType: '',
|
|
sta_LightFreq: '',
|
|
sta_LightDimmer: '',
|
|
sta_system: ''
|
|
|
|
},
|
|
dic: {
|
|
SOS: [{
|
|
text: '声光报警',
|
|
val: 'sos',
|
|
img: '/static/images/4877/sg.png',
|
|
activeImg: '/static/images/4877/sgActive.png'
|
|
},
|
|
{
|
|
text: '泛光照明',
|
|
val: 'fan',
|
|
img: '/static/images/4877/fan.png',
|
|
activeImg: '/static/images/4877/fanActive.png'
|
|
}
|
|
],
|
|
gropus: [{
|
|
text: '红配组',
|
|
val: 'red_group',
|
|
img: '/static/images/4877/light.png',
|
|
activeImg: '/static/images/4877/lightActive.png'
|
|
},
|
|
{
|
|
text: '蓝配组',
|
|
val: 'blue_group',
|
|
img: '/static/images/4877/light.png',
|
|
activeImg: '/static/images/4877/lightActive.png'
|
|
},
|
|
{
|
|
text: '绿配组',
|
|
val: 'green_group',
|
|
img: '/static/images/4877/light.png',
|
|
activeImg: '/static/images/4877/lightActive.png'
|
|
},
|
|
{
|
|
text: '黄配组',
|
|
val: 'yellow_group',
|
|
img: '/static/images/4877/light.png',
|
|
activeImg: '/static/images/4877/lightActive.png'
|
|
}
|
|
|
|
]
|
|
},
|
|
device: {
|
|
id: "",
|
|
deviceName: "",
|
|
deviceImei: "",
|
|
deviceMac: "",
|
|
communicationMode: 0,
|
|
devicePic: "",
|
|
typeName: "",
|
|
bluetoothName: null,
|
|
deviceStatus: null,
|
|
bindingTime: "",
|
|
onlineStatus: 0,
|
|
battery: "0",
|
|
latitude: null,
|
|
longitude: null,
|
|
alarmStatus: null,
|
|
detailPageUrl: "/pages/650/HBY650",
|
|
showConfirm: false
|
|
},
|
|
}
|
|
},
|
|
|
|
onUnload() {
|
|
console.log("页面卸载,释放资源");
|
|
ble.removeAllCallback(pagePath);
|
|
},
|
|
onLoad: function() {
|
|
these = this;
|
|
recei = BleReceive.getBleReceive();
|
|
ble = BleTool.getBleTool();
|
|
|
|
|
|
ble.addReceiveCallback(this.bleValueNotify, pagePath);
|
|
ble.addStateBreakCallback(this.bleStateBreak, pagePath);
|
|
ble.addStateRecoveryCallback(this.bleStateRecovry, pagePath);
|
|
ble.addDisposeCallback(this.deviceDispose, pagePath);
|
|
ble.addRecoveryCallback(this.deviceRecovry, pagePath);
|
|
|
|
|
|
let eventChannel = this.getOpenerEventChannel();
|
|
|
|
eventChannel.on('detailData', function(data) {
|
|
|
|
// console.log("收到父页面的参数:" + JSON.stringify(data));
|
|
var device = data.data;
|
|
these.device = device;
|
|
let f = ble.data.LinkedList.find((v) => {
|
|
if (v.macAddress == device.deviceMac) {
|
|
// console.log("找到设备了", v);
|
|
these.formData.deviceId = v.deviceId;
|
|
return true;
|
|
}
|
|
return false;
|
|
});
|
|
if (!f) {
|
|
|
|
|
|
these.showBleUnConnect();
|
|
|
|
return;
|
|
}
|
|
let form = f.formData;
|
|
if (form) {
|
|
let keys = Object.keys(form);
|
|
for (var i = keys.length; i >= 0; i--) {
|
|
let key = keys[i];
|
|
these.formData[key] = form[key];
|
|
}
|
|
}
|
|
these.formData.blename = f.name ? f.name : "Unname";
|
|
these.formData.deviceName = device.deviceName;
|
|
these.formData.img = device.devicePic;
|
|
these.formData.bleStatu = false;
|
|
these.formData.deviceId = f.deviceId;
|
|
ble.LinkBlue(f.deviceId, f.writeServiceId, f.wirteCharactId, f.notifyCharactId).then(res => {
|
|
these.formData.bleStatu = true;
|
|
});
|
|
these.setBleFormData();
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
onHide: function() {
|
|
this.Status.pageHide = true;
|
|
},
|
|
onShow() {
|
|
this.Status.pageHide = false;
|
|
},
|
|
computed: {
|
|
|
|
},
|
|
methods: {
|
|
ArrowSet(val) {
|
|
let f = this.getDevice();
|
|
if (!f) {
|
|
this.showBleUnConnect();
|
|
return;
|
|
}
|
|
if (this.formData.sta_ArrowType === val) {
|
|
this.formData.sta_ArrowType = 'arrow_off';
|
|
} else {
|
|
this.formData.sta_ArrowType = val;
|
|
}
|
|
|
|
var json = {
|
|
ins_ArrowType: this.formData.sta_ArrowType
|
|
}
|
|
json = JSON.stringify(json);
|
|
ble.sendString(f.deviceId, json, f.writeServiceId, f.wirteCharactId, 30)
|
|
.catch(ex => {
|
|
this.showMsg(ex.msg);
|
|
});
|
|
},
|
|
groupSetting(item, index) {
|
|
let f = this.getDevice();
|
|
if (!f) {
|
|
this.showBleUnConnect();
|
|
return;
|
|
}
|
|
if (this.formData.sta_GroupType === item.val) {
|
|
this.formData.sta_GroupType = '';
|
|
} else {
|
|
this.formData.sta_GroupType = item.val;
|
|
}
|
|
|
|
var json = {
|
|
ins_GroupType: this.formData.sta_GroupType
|
|
}
|
|
json = JSON.stringify(json);
|
|
ble.sendString(f.deviceId, json, f.writeServiceId, f.wirteCharactId, 30)
|
|
.catch(ex => {
|
|
this.showMsg(ex.msg);
|
|
});
|
|
},
|
|
showUnWarn(val) {
|
|
this.showPop({
|
|
message: '确定解除声光报警模式?',
|
|
iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png",
|
|
borderColor: "#e034344d",
|
|
buttonBgColor: "#E03434",
|
|
okCallback: () => {
|
|
clearInterval(interval);
|
|
|
|
this.sosSetting({
|
|
val: val
|
|
});
|
|
},
|
|
buttonText: "解除",
|
|
showCancel: true,
|
|
buttonCancelText: '取消'
|
|
|
|
});
|
|
},
|
|
sosSetting(item, index) {
|
|
let f = this.getDevice();
|
|
if (!f) {
|
|
this.showBleUnConnect();
|
|
return;
|
|
}
|
|
let task = () => {
|
|
|
|
|
|
var json = {
|
|
ins_SOSType: this.formData.sta_SOSType == item.val ? 'sos_off' : item.val
|
|
}
|
|
json = JSON.stringify(json);
|
|
ble.sendString(f.deviceId, json, f.writeServiceId, f.wirteCharactId, 30).then(res => {
|
|
|
|
if (this.formData.sta_SOSType === item.val) {
|
|
this.formData.sta_SOSType = 'sos_off';
|
|
} else {
|
|
this.formData.sta_SOSType = item.val;
|
|
}
|
|
|
|
if (this.formData.sta_SOSType == 'sos') {
|
|
this.formData.warnTime = 0;
|
|
clearInterval(interval);
|
|
interval = setInterval(() => {
|
|
this.formData.warnTime += 1;
|
|
}, 1000)
|
|
}
|
|
|
|
|
|
})
|
|
.catch(ex => {
|
|
this.showMsg(ex.msg);
|
|
});
|
|
}
|
|
if (item.val === 'sos') {
|
|
this.showPop({
|
|
message: '确定开启声光报警模式?',
|
|
iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png",
|
|
borderColor: "#e034344d",
|
|
buttonBgColor: "#E03434",
|
|
okCallback: task,
|
|
buttonText: "开启",
|
|
showCancel: true,
|
|
buttonCancelText: '取消'
|
|
});
|
|
|
|
} else {
|
|
if (index !== undefined && this.formData.sta_SOSType == 'sos') {
|
|
this.showUnWarn(item.val);
|
|
} else {
|
|
task();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
},
|
|
deviceRecovry(res) {
|
|
if (this.Status.pageHide) {
|
|
return;
|
|
}
|
|
if (res.deviceId == these.formData.deviceId) {
|
|
this.formData.bleStatu = true;
|
|
setTimeout(() => {
|
|
hideLoading(these, 1000);
|
|
});
|
|
uni.showToast({
|
|
icon: 'success',
|
|
title: '蓝牙连接成功'
|
|
});
|
|
}
|
|
|
|
},
|
|
deviceDispose(res) {
|
|
if (this.Status.pageHide) {
|
|
return;
|
|
}
|
|
if (res.deviceId == these.formData.deviceId) {
|
|
this.formData.bleStatu = false;
|
|
setTimeout(() => {
|
|
hideLoading(these, 1000);
|
|
});
|
|
uni.showToast({
|
|
icon: 'fail',
|
|
title: '蓝牙连接已断开'
|
|
});
|
|
}
|
|
|
|
},
|
|
bleStateBreak() {
|
|
if (this.Status.pageHide) {
|
|
return;
|
|
}
|
|
//蓝牙适配器不可用
|
|
this.formData.bleStatu = false;
|
|
uni.showToast({
|
|
icon: 'fail',
|
|
title: '蓝牙已不可用'
|
|
})
|
|
hideLoading(this);
|
|
},
|
|
bleStateRecovry() {
|
|
console.log("蓝牙可用");
|
|
if (this.Status.pageHide) {
|
|
return;
|
|
}
|
|
console.log("蓝牙可用");
|
|
//蓝牙适配器再次可用,尝试恢复连接
|
|
showLoading(this, {
|
|
text: "蓝牙恢复可用,正在连接设备"
|
|
});
|
|
ble.LinkBlue(these.formData.deviceId).then(() => {
|
|
these.formData.bleStatu = true;
|
|
updateLoading(these, {
|
|
text: '连接成功'
|
|
});
|
|
}).catch(ex => {
|
|
updateLoading(these, {
|
|
text: ex.msg
|
|
})
|
|
}).finally(() => {
|
|
setTimeout(() => {
|
|
hideLoading(these);
|
|
}, 1000);
|
|
|
|
});
|
|
},
|
|
previewImg(img) {
|
|
if (!img) {
|
|
return;
|
|
}
|
|
|
|
uni.previewImage({
|
|
urls: [img]
|
|
})
|
|
},
|
|
getWarnStyle(index) {
|
|
let className = "";
|
|
switch (this.formData.warnLevel) {
|
|
case "无预警":
|
|
break;
|
|
case "弱预警":
|
|
if (index <= 1) {
|
|
className = "active";
|
|
}
|
|
break;
|
|
case "中预警":
|
|
if (index <= 3) {
|
|
className = "active";
|
|
}
|
|
break;
|
|
case "强预警":
|
|
if (index <= 4) {
|
|
className = "active";
|
|
}
|
|
break;
|
|
case "非常强预警":
|
|
if (index <= 5) {
|
|
className = "active";
|
|
}
|
|
break;
|
|
}
|
|
|
|
return className;
|
|
},
|
|
bleValueNotify: function(receive, device, path, recArr) { //订阅消息
|
|
if (receive.deviceId !== this.formData.deviceId) {
|
|
return;
|
|
}
|
|
console.log("收到设备的数据", receive)
|
|
let json = recei.ReceiveData(receive, device, pagePath, recArr);
|
|
|
|
|
|
let key = 'sta_VoiceDate';
|
|
if (key in json) {
|
|
|
|
let val = json[key];
|
|
console.log("22222", val)
|
|
if (val === 'start') {
|
|
//开始发包
|
|
|
|
this.sendHex();
|
|
return;
|
|
} else if (val === 'finish') {
|
|
|
|
|
|
uni.showModal({
|
|
title: '提示',
|
|
content: "发送完成"
|
|
});
|
|
return;
|
|
} else {
|
|
//重新发送某一包
|
|
|
|
|
|
|
|
if (val > this.audioData.packetCtn) {
|
|
|
|
return;
|
|
}
|
|
|
|
this.sendHex(val);
|
|
return;
|
|
}
|
|
}
|
|
|
|
let keys = Object.keys(json);
|
|
|
|
keys.forEach(key => {
|
|
if (key in this.formData) {
|
|
this.formData[key] = json[key];
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
getDevice: function() {
|
|
|
|
// console.log("LinkedList=", ble.data.LinkedList);
|
|
// console.log("formData=", these.formData);
|
|
let f = ble.data.LinkedList.find((v) => {
|
|
return v.macAddress == these.device.deviceMac;
|
|
});
|
|
|
|
return f;
|
|
},
|
|
|
|
|
|
setBleFormData() {
|
|
ble.data.LinkedList.find((v) => {
|
|
if (v.deviceId == these.formData.deviceId) {
|
|
v.formData = these.formData;
|
|
|
|
return true;
|
|
}
|
|
return false;
|
|
});
|
|
|
|
uni.setStorageSync(ble.StorageKey, ble.data.LinkedList);
|
|
},
|
|
showBleUnConnect() {
|
|
|
|
this.showPop({
|
|
message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备",
|
|
iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png",
|
|
borderColor: "#e034344d",
|
|
buttonBgColor: "#E03434",
|
|
buttonText: '去连接',
|
|
buttonTextColor: '#232323de',
|
|
okCallback: function() {
|
|
|
|
uni.navigateTo({
|
|
url: "/pages/common/addBLE/addEquip",
|
|
events: {
|
|
BindOver: function(data) {
|
|
console.log(data)
|
|
these.formData.bleStatu = true;
|
|
}
|
|
},
|
|
success: function(res) {
|
|
// 通过eventChannel向被打开页面传送数据
|
|
res.eventChannel.emit('detailData', {
|
|
data: these.device
|
|
})
|
|
},
|
|
fail(ex) {
|
|
console.log("跳转失败", ex);
|
|
}
|
|
})
|
|
}
|
|
});
|
|
},
|
|
|
|
proParam: function() {
|
|
|
|
uni.navigateTo({
|
|
url: '/pages/common/productDes/index?id=' + this.device.id,
|
|
success(ev) {
|
|
|
|
}
|
|
});
|
|
},
|
|
handRemark: function() {
|
|
uni.navigateTo({
|
|
url: '/pages/common/operatingInstruct/index?id=' + this.device.id,
|
|
success(ev) {
|
|
|
|
}
|
|
});
|
|
},
|
|
handVideo: function() {
|
|
uni.navigateTo({
|
|
url: '/pages/common/operationVideo/index?id=' + this.device.id,
|
|
success(ev) {
|
|
|
|
}
|
|
});
|
|
},
|
|
|
|
|
|
|
|
closePop: function() {
|
|
this.Status.Pop.showPop = false;
|
|
|
|
if (this.Status.Pop.cancelCallback) {
|
|
this.Status.Pop.cancelCallback();
|
|
}
|
|
},
|
|
HidePop: function() {
|
|
if (this.Status.Pop.clickEvt == 'SendUsr') {
|
|
|
|
}
|
|
|
|
|
|
this.Status.Pop.showPop = false;
|
|
if (this.Status.Pop.okCallback) {
|
|
this.Status.Pop.okCallback();
|
|
}
|
|
},
|
|
showPop: function(option) {
|
|
hideLoading(this);
|
|
let def = {
|
|
showPop: true, //是否显示弹窗
|
|
popType: 'custom',
|
|
bgColor: '#383934bd',
|
|
borderColor: '#BBE600',
|
|
textColor: '#ffffffde',
|
|
buttonBgColor: '#BBE600',
|
|
buttonTextColor: '#232323DE',
|
|
iconUrl: '',
|
|
message: '',
|
|
buttonText: '确定',
|
|
clickEvt: '',
|
|
visiblePrompt: false,
|
|
promptTitle: '',
|
|
modelValue: '',
|
|
visibleClose: false,
|
|
okCallback: null,
|
|
showSlot: false,
|
|
buttonCancelText: '',
|
|
showCancel: false,
|
|
}
|
|
|
|
let keys = Object.keys(def);
|
|
|
|
for (let i = 0; i < keys.length; i++) {
|
|
let key = keys[i];
|
|
if (key in option) {
|
|
continue;
|
|
}
|
|
this.Status.Pop[key] = def[key];
|
|
}
|
|
if (option) {
|
|
keys = Object.keys(option);
|
|
for (let i = 0; i < keys.length; i++) {
|
|
let key = keys[i];
|
|
|
|
this.Status.Pop[key] = option[key];
|
|
}
|
|
}
|
|
|
|
if (!option.borderColor) {
|
|
option.borderColor = '#BBE600';
|
|
option.buttonBgColor = '#BBE600';
|
|
}
|
|
these.Status.Pop.showPop = true;
|
|
},
|
|
showMsg(msg, isSucc) {
|
|
let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png';
|
|
let borderColor = "#e034344d";
|
|
let buttonBgColor = "#E03434";
|
|
if (isSucc) {
|
|
icoUrl = '/static/images/common/success.png';
|
|
borderColor = "#BBE600";
|
|
buttonBgColor = "#BBE600";
|
|
}
|
|
this.showPop({
|
|
message: msg,
|
|
iconUrl: icoUrl,
|
|
borderColor: borderColor,
|
|
buttonBgColor: buttonBgColor,
|
|
buttonText: '确定',
|
|
okCallback: null
|
|
});
|
|
},
|
|
btnClick() {
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.content {
|
|
padding: 30rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.eq {
|
|
width: 100%;
|
|
height: 250rpx;
|
|
border-radius: 8px;
|
|
background: rgba(26, 26, 26, 1);
|
|
box-sizing: border-box;
|
|
padding: 24rpx 28rpx;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.eq .leftImg {
|
|
box-sizing: border-box;
|
|
padding: 36rpx;
|
|
border-radius: 16rpx;
|
|
background: rgba(42, 42, 42, 0.5);
|
|
}
|
|
|
|
.eq .leftImg,
|
|
.eq .rightTxt {
|
|
width: 50%;
|
|
height: 100%;
|
|
}
|
|
|
|
.eq .rightTxt {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: nowrap;
|
|
align-content: flex-start;
|
|
justify-content: space-evenly;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.eq .leftImg .img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.eq .rightTxt .img {
|
|
width: 52rpx;
|
|
height: 52rpx;
|
|
}
|
|
|
|
.eq .rightTxt .row {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
padding-left: 50rpx;
|
|
}
|
|
|
|
.eq .rightTxt .row .txt {
|
|
padding-left: 20rpx;
|
|
}
|
|
|
|
.eq .bigTxt {
|
|
color: rgba(255, 255, 255, 0.87);
|
|
font-family: PingFang SC;
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.eq .smallTxt {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-family: PingFang SC;
|
|
font-size: 24rpx;
|
|
font-weight: 400;
|
|
}
|
|
|
|
|
|
.eqinfo {
|
|
border-radius: 16rpx;
|
|
background: rgba(26, 26, 26, 1);
|
|
box-sizing: border-box;
|
|
padding: 14rpx 0rpx;
|
|
}
|
|
|
|
.eqinfo .item {
|
|
width: 100%;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
padding: 0rpx 28rpx;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.eqinfo .lbl {
|
|
color: rgba(255, 255, 255, 0.87);
|
|
font-family: PingFang SC;
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
|
|
letter-spacing: 0.07px;
|
|
text-align: left;
|
|
}
|
|
|
|
.eqinfo .value {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-family: PingFang SC;
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
|
|
letter-spacing: 0.07px;
|
|
text-align: left;
|
|
}
|
|
|
|
.lamp {
|
|
margin-top: 24rpx;
|
|
}
|
|
|
|
.lamp .title {
|
|
width: 100%;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
padding: 0rpx 28rpx;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.lamp.noPadding .title,
|
|
.lamp.noPadding .smlltitle {
|
|
padding: 0rpx 0rpx !important;
|
|
}
|
|
|
|
.lamp .smlltitle {
|
|
width: 100%;
|
|
|
|
line-height: 15rpx;
|
|
padding: 0rpx 28rpx;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 26rpx;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
|
|
|
|
}
|
|
|
|
|
|
.lamp .title .img {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.lampMode {
|
|
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
.lampMode .mode {
|
|
width: calc(calc(100% - 34rpx) / 2);
|
|
border-radius: 8px;
|
|
margin-top: 20rpx;
|
|
background: rgba(26, 26, 26, 1);
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding: 30rpx;
|
|
box-sizing: border-box;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-color: #00000000;
|
|
}
|
|
|
|
.lampMode .mode.active {
|
|
|
|
border-color: #aed600 !important;
|
|
}
|
|
|
|
.lampMode .mode.active .bigTxt {
|
|
|
|
color: #aed600 !important;
|
|
}
|
|
|
|
.mode.marginLeft {
|
|
margin-left: 34rpx !important;
|
|
}
|
|
|
|
.mode .leftImg {
|
|
width: 70rpx;
|
|
height: 70rpx;
|
|
border-radius: 4px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.mode.active .leftImg {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.mode .leftImg .img {
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
}
|
|
|
|
.mode .rightTxt {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: nowrap;
|
|
align-content: flex-start;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
padding-left: 20rpx;
|
|
}
|
|
|
|
.mode .bigTxt {
|
|
color: rgba(255, 255, 255, 0.87);
|
|
font-family: PingFang SC;
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
|
|
letter-spacing: 0.07px;
|
|
|
|
}
|
|
|
|
.mode .smallTxt {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-family: PingFang SC;
|
|
font-size: 24rpx;
|
|
font-weight: 400;
|
|
|
|
letter-spacing: 0.07px;
|
|
|
|
}
|
|
|
|
.usrinfo {
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 24rpx 28rpx;
|
|
background: rgba(26, 26, 26, 1);
|
|
}
|
|
|
|
.usrtitle {
|
|
color: rgba(255, 255, 255, 0.87);
|
|
font-family: PingFang SC;
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
height: 40rpx;
|
|
line-height: 40rpx;
|
|
letter-spacing: 0.07px;
|
|
|
|
}
|
|
|
|
.usrinfo .btnSend {
|
|
line-height: 65rpx;
|
|
border-radius: 8px;
|
|
width: 120rpx;
|
|
height: 65rpx;
|
|
color: rgba(35, 35, 35, 0.87);
|
|
font-family: PingFang SC;
|
|
font-size: 24rpx;
|
|
font-weight: 400;
|
|
letter-spacing: 0.15rpx;
|
|
text-align: center;
|
|
background-color: #BBE600;
|
|
}
|
|
|
|
.usrinfo .item {
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
line-height: 90rpx;
|
|
height: 90rpx;
|
|
background: rgba(42, 42, 42, 1);
|
|
margin-top: 24rpx;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
}
|
|
|
|
.usrinfo .lbl {
|
|
width: 120rpx;
|
|
height: 100%;
|
|
padding-left: 24rpx;
|
|
box-sizing: border-box;
|
|
|
|
text-align: right;
|
|
|
|
color: rgba(255, 255, 255, 0.87);
|
|
font-family: PingFang SC;
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
|
|
letter-spacing: 0.07px;
|
|
|
|
}
|
|
|
|
.usrinfo .value {
|
|
width: calc(100% - 120rpx);
|
|
height: 100%;
|
|
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
|
|
letter-spacing: 0.07px;
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
.usrinfo .value .uni-input-input {
|
|
color: rgba(255, 255, 255, 0.87);
|
|
font-family: PingFang SC;
|
|
|
|
}
|
|
|
|
|
|
.usrplace {
|
|
color: rgba(255, 255, 255, 0.4);
|
|
font-family: PingFang SC;
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
letter-spacing: 0.07px;
|
|
text-align: left;
|
|
}
|
|
|
|
.proinfo .itemcontent {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: space-evenly;
|
|
}
|
|
|
|
.proinfo .item {
|
|
width: 180rpx;
|
|
height: 180rpx;
|
|
box-sizing: border-box;
|
|
padding: 40rpx;
|
|
border-radius: 16rpx;
|
|
background: rgba(26, 26, 26, 1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.proinfo .item .img {
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
|
|
|
|
}
|
|
|
|
.proinfo .item .txt {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-family: PingFang SC;
|
|
font-size: 24rpx;
|
|
font-weight: 400;
|
|
margin-top: 20rpx;
|
|
letter-spacing: 0.07px;
|
|
text-align: left;
|
|
}
|
|
|
|
|
|
.slider-container {
|
|
padding: 0px;
|
|
}
|
|
|
|
|
|
|
|
|
|
.addIco {
|
|
width: 100%;
|
|
height: 360rpx;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.icoContent {
|
|
width: 240rpx;
|
|
height: 240rpx;
|
|
border-radius: 8rpx;
|
|
|
|
|
|
background: rgba(58, 58, 58, 1);
|
|
}
|
|
|
|
.icoContent .img {
|
|
width: 70rpx;
|
|
height: 70rpx;
|
|
}
|
|
|
|
.arrowContent {
|
|
border-radius: 16rpx;
|
|
background: rgba(26, 26, 26, 1);
|
|
width: 100%;
|
|
padding: 30rpx 0rpx;
|
|
}
|
|
|
|
.modeSetting {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.modeSetting .arrow {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.modeSetting .arrow .text {
|
|
margin-top: 15rpx;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
|
|
font-family: PingFang SC;
|
|
font-size: 24rpx;
|
|
font-weight: 400;
|
|
|
|
letter-spacing: 0.14rpx;
|
|
|
|
}
|
|
|
|
.modeSetting .arrow .outCircle {
|
|
width: 150rpx;
|
|
height: 150rpx;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border: 4rpx solid #00000000;
|
|
border-radius: 50%;
|
|
background: rgba(42, 42, 42, 1);
|
|
}
|
|
|
|
.modeSetting .arrow .item {
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modeSetting .arrow.active .outCircle {
|
|
border: 4rpx solid rgba(174, 214, 0, 1);
|
|
padding: 4rpx;
|
|
}
|
|
|
|
.modeSetting .item.active .p100 {
|
|
background: rgba(174, 214, 0, 1);
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
.modeSetting .item .img {
|
|
width: 52rpx;
|
|
height: 56rpx;
|
|
}
|
|
|
|
.modeSetting .item .img.translate {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.modeSetting .arrow .activity {
|
|
display: none;
|
|
}
|
|
|
|
.modeSetting .arrow.active .nomal {
|
|
display: none;
|
|
}
|
|
|
|
.modeSetting .arrow.active .item {
|
|
background: rgba(174, 214, 0, 1);
|
|
}
|
|
|
|
.modeSetting .arrow.active .activity {
|
|
display: block !important;
|
|
}
|
|
|
|
.usrinfo .image {
|
|
width: 30rpx;
|
|
height: 40rpx;
|
|
}
|
|
|
|
.usrinfo .img {
|
|
width: 30rpx;
|
|
height: 40rpx;
|
|
}
|
|
|
|
.content {
|
|
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
height: auto;
|
|
}
|
|
|
|
.contentBg {
|
|
background-color: #121212;
|
|
color: #ffffffde;
|
|
}
|
|
|
|
.fleft {
|
|
float: left;
|
|
}
|
|
|
|
.fright {
|
|
float: right;
|
|
}
|
|
|
|
.clear {
|
|
clear: both;
|
|
}
|
|
|
|
.displayNone {
|
|
display: none !important;
|
|
}
|
|
|
|
.p100 {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.center {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.centerLeft {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
}
|
|
|
|
.warnnig {
|
|
border-radius: 16rpx;
|
|
width: 100%;
|
|
height: 70rpx;
|
|
line-height: 70rpx;
|
|
background: rgba(224, 52, 52, 1);
|
|
box-sizing: border-box;
|
|
padding: 0rpx 30rpx;
|
|
margin-top: 20rpx;
|
|
color: rgba(255, 255, 255, 0.87);
|
|
font-family: 'PingFang SC';
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.netContent {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: flex-end;
|
|
justify-content: space-around;
|
|
align-items: flex-end;
|
|
width: 50rpx;
|
|
}
|
|
|
|
.net {
|
|
width: 7rpx;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.net.netone {
|
|
height: 11rpx;
|
|
}
|
|
|
|
.net.nettwo {
|
|
height: 17rpx;
|
|
}
|
|
|
|
.net.netsiri {
|
|
height: 23rpx;
|
|
}
|
|
|
|
.net.netfour {
|
|
height: 29rpx;
|
|
}
|
|
|
|
.net.netfive {
|
|
height: 35rpx;
|
|
}
|
|
|
|
.net.active {
|
|
background: #FFFFFF !important;
|
|
}
|
|
|
|
.marginTop10 {
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.warnnig {
|
|
border-radius: 16rpx;
|
|
width: 100%;
|
|
height: 70rpx;
|
|
line-height: 70rpx;
|
|
background: rgba(224, 52, 52, 1);
|
|
box-sizing: border-box;
|
|
padding: 0rpx 30rpx;
|
|
margin-top: 20rpx;
|
|
color: rgba(255, 255, 255, 0.87);
|
|
font-family: 'PingFang SC';
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
</style> |