完成008A功能开发
This commit is contained in:
@ -53,23 +53,100 @@
|
||||
<text class="lbl">蓝牙名称</text>
|
||||
<text class="value valueFont">{{device.bluetoothName}}</text>
|
||||
</view>
|
||||
|
||||
<view class="item">
|
||||
<text class="lbl">设备状态</text>
|
||||
<text class="value valueFont">{{formData.sta_system}}</text>
|
||||
</view>
|
||||
<view class="item" @click.top="bleStatuToggle">
|
||||
<text class="lbl">蓝牙状态</text>
|
||||
<text class="value" :class="formData.bleStatu?'green':'red'">{{getbleStatu}}</text>
|
||||
</view>
|
||||
<view class="item">
|
||||
<text class="lbl">设备状态</text>
|
||||
<text class="value valueFont">{{formData.sta_system}}</text>
|
||||
<text class="lbl">信道:{{formData.sta_Channel}}</text>
|
||||
<text class="value green" @click.stop="ShowChannelEdit()">修改</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="lampMode">
|
||||
<view class="mode type " :class="{'active':formData.sta_Ms=='M'}" @click.stop="MsSetting('M')">
|
||||
<view class="txt center">M</view>
|
||||
</view>
|
||||
<view class="mode type" :class="{'active':formData.sta_Ms=='S'}" @click.stop="MsSetting('S')">
|
||||
<view class="txt center">S</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="optTitle">
|
||||
开关模式
|
||||
</view>
|
||||
<view class="btn-container">
|
||||
<view class="btn" @click.stop="btnSetting(0,'warnSwitch')" :class="{'active':Status.warnSwitch==0}">总开关
|
||||
</view>
|
||||
<view class="btn" @click.stop="btnSetting(-1,'warnSwitch')" :class="{'active':Status.warnSwitch==-1}">左侧
|
||||
</view>
|
||||
<view class="btn" @click.stop="btnSetting(1,'warnSwitch')" :class="{'active':Status.warnSwitch==1}">右侧
|
||||
</view>
|
||||
</view>
|
||||
<view class="lampMode">
|
||||
|
||||
<view class="mode " :class="getSwitchActive(item,index,'warn')" v-for="item,index in dic.warLight"
|
||||
v-on:click.stop="lightsetting(item,index,'warn')">
|
||||
<view class="leftImg">
|
||||
|
||||
<image class="img image" :src="item.img" mode="aspectFit"></image>
|
||||
<image class="img imageA" :src="item.imgA" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="rightTxt">
|
||||
<text class="bigTxt">{{item.text}}</text>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
<view class="optTitle">
|
||||
泛光灯
|
||||
</view>
|
||||
<view class="btn-container">
|
||||
<view class="btn" @click.stop="btnSetting(0,'fanSwitch')" :class="{'active':Status.fanSwitch==0}">前置</view>
|
||||
<view class="btn" @click.stop="btnSetting(-1,'fanSwitch')" :class="{'active':Status.fanSwitch==-1}">左侧
|
||||
</view>
|
||||
<view class="btn" @click.stop="btnSetting(1,'fanSwitch')" :class="{'active':Status.fanSwitch==1}">右侧</view>
|
||||
</view>
|
||||
|
||||
<view class="fanMode">
|
||||
<view class="fanItem" :class="getSwitchActive(item,index,'fan')" v-for="item,index in dic.fanLight"
|
||||
v-on:click.stop="lightsetting(item,index,'fan')">
|
||||
<view class="topImg">
|
||||
|
||||
<image class="img image" :src="item.img" mode="aspectFit"></image>
|
||||
<image class="img imageA" :src="item.imgA" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="bottomTxt">
|
||||
<text class="bigTxt">{{item.text}}</text>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<ProParams :id="device.id"></ProParams>
|
||||
|
||||
<MsgBox ref="msgPop" />
|
||||
|
||||
<global-loading ref="loading" />
|
||||
|
||||
<MsgBox ref="msgEditChannel">
|
||||
<view class="popup-prompt">
|
||||
<text class="popup-prompt-title">修改信道</text>
|
||||
<input class="popup-prompt-input" type="number" placeholder="大于0的整数"
|
||||
placeholder-class="popup-prompt-input-placeHolder" v-model="formData.tmp_Channel" />
|
||||
|
||||
</view>
|
||||
</MsgBox>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -112,11 +189,11 @@
|
||||
apiType: "listA",
|
||||
navbar: {
|
||||
icons: [{
|
||||
type:'msg',
|
||||
type: 'msg',
|
||||
src: '/static/images/common/msg.png'
|
||||
},
|
||||
{
|
||||
type:'share',
|
||||
type: 'share',
|
||||
src: '/static/images/common/shape.png'
|
||||
}
|
||||
],
|
||||
@ -125,31 +202,25 @@
|
||||
height: 90
|
||||
},
|
||||
usrToggle: true,
|
||||
bleLinkCnt: 0
|
||||
bleLinkCnt: 0,
|
||||
warnSwitch: 0,
|
||||
fanSwitch: 0
|
||||
},
|
||||
formData: {
|
||||
img: '/static/images/common/BJQ6075.png',
|
||||
battary: "", //电量
|
||||
xuhang: "", //续航
|
||||
imei: "", //imei
|
||||
Lon: "", //经度
|
||||
Lat: "", //纬度
|
||||
address: "", //地址
|
||||
modeCurr: "", //档位
|
||||
SOS: "", //sos
|
||||
lightCurr: "qiang", //照明模式
|
||||
company: "湖北消防总队", //单位
|
||||
usrname: "胡红军", //姓名
|
||||
job: "中队长", //职位
|
||||
usrid: "", //id
|
||||
msgTxt: "", //消息1
|
||||
qzwarn: false, //是否强制报警
|
||||
warnLevel: "", //报警级别
|
||||
staticWarn: false, //静止报警
|
||||
fourGStrenth: 0, //4G信号强度
|
||||
img: '/static/images/common/HBY008A.png',
|
||||
deviceId: "",
|
||||
sta_system: "", //设备状态,0关机,1仅充电,2开机未充电,3,开机且充电
|
||||
bleStatu: false
|
||||
sta_leftLight: null,
|
||||
sta_rightLight: null,
|
||||
sta_frontFan: null,
|
||||
sta_leftFan: null,
|
||||
sta_rightFan: null,
|
||||
sta_channel: null,
|
||||
sta_Ms: null,
|
||||
sta_PowerPercent: null,
|
||||
sta_PowerTime: null,
|
||||
sta_system: null,
|
||||
bleStatu: null,
|
||||
tmp_Channel: null
|
||||
},
|
||||
device: {
|
||||
id: "",
|
||||
@ -170,7 +241,58 @@
|
||||
detailPageUrl: "/pages/670/HBY670",
|
||||
showConfirm: false
|
||||
},
|
||||
|
||||
dic: {
|
||||
fanLight: [{
|
||||
text: '强光',
|
||||
value: 1,
|
||||
img: '/static/images/lightImg/qiang.png',
|
||||
imgA: '/static/images/lightImg/qiangActive.png',
|
||||
},
|
||||
{
|
||||
text: '工作光',
|
||||
value: 2,
|
||||
img: '/static/images/lightImg/work.png',
|
||||
imgA: '/static/images/lightImg/workActive.png',
|
||||
},
|
||||
{
|
||||
text: '爆闪',
|
||||
value: 4,
|
||||
img: '/static/images/lightImg/light.png',
|
||||
imgA: '/static/images/lightImg/lightActive.png',
|
||||
}
|
||||
],
|
||||
warLight: [{
|
||||
text: '红色长亮',
|
||||
value: 1,
|
||||
img: '/static/images/lightImg/liting.png',
|
||||
imgA: '/static/images/lightImg/litingActive.png',
|
||||
},
|
||||
{
|
||||
text: '红色爆闪',
|
||||
value: 2,
|
||||
img: '/static/images/lightImg/light.png',
|
||||
imgA: '/static/images/lightImg/lightActive.png',
|
||||
},
|
||||
{
|
||||
text: '红蓝双闪',
|
||||
value: 3,
|
||||
img: '/static/images/lightImg/rb.png',
|
||||
imgA: '/static/images/lightImg/rbActive.png',
|
||||
},
|
||||
{
|
||||
text: '黄色长亮',
|
||||
value: 4,
|
||||
img: '/static/images/lightImg/liting.png',
|
||||
imgA: '/static/images/lightImg/litingActive.png',
|
||||
},
|
||||
{
|
||||
text: '黄色爆闪',
|
||||
value: 5,
|
||||
img: '/static/images/lightImg/light.png',
|
||||
imgA: '/static/images/lightImg/lightActive.png',
|
||||
}
|
||||
]
|
||||
},
|
||||
permissions: []
|
||||
|
||||
}
|
||||
@ -250,9 +372,7 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
if (these.device.deviceImei) {
|
||||
these.initMQ();
|
||||
}
|
||||
|
||||
let f = ble.data.LinkedList.find((v) => {
|
||||
if (v.macAddress == device.deviceMac) {
|
||||
console.log("找到设备了", v);
|
||||
@ -263,7 +383,7 @@
|
||||
});
|
||||
if (!f) {
|
||||
these.showBleUnConnect();
|
||||
these.getDetail();
|
||||
|
||||
return;
|
||||
}
|
||||
let form = f.formData;
|
||||
@ -275,12 +395,8 @@
|
||||
these.formData[key] = form[key];
|
||||
}
|
||||
}
|
||||
if (these.formData['imei'] && !these.device.deviceImei) {
|
||||
these.initMQ();
|
||||
} else if (these.device.deviceImei) {
|
||||
these.formData['imei'] = these.device.deviceImei;
|
||||
}
|
||||
these.getDetail();
|
||||
|
||||
|
||||
|
||||
these.formData.bleStatu = 'connecting';
|
||||
ble.LinkBlue(f.deviceId, f.writeServiceId, f.wirteCharactId, f.notifyCharactId).then(res => {
|
||||
@ -294,6 +410,171 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
btnSetting(val, type) {
|
||||
if (this.Status[type] == val) {
|
||||
return;
|
||||
}
|
||||
this.Status[type] = val;
|
||||
},
|
||||
MsSetting(type) {
|
||||
let f = this.getDevice();
|
||||
|
||||
if (!f) {
|
||||
this.showBleUnConnect();
|
||||
return;
|
||||
}
|
||||
|
||||
let json = {
|
||||
ins_Ms: type
|
||||
};
|
||||
ble.sendString(f.deviceId, json).then(res => {
|
||||
MsgSuccess("发送设置指令成功,等待设备响应", '', this, null, false);
|
||||
}).catch(ex => {
|
||||
MsgError(ex.msg, '', this, null, false);
|
||||
});
|
||||
},
|
||||
ShowChannelEdit() {
|
||||
if (!this.permissions.includes('55') && this.Status.apiType !== 'listA') {
|
||||
MsgError("无操作权限", '', this, null, false);
|
||||
return;
|
||||
}
|
||||
|
||||
let f = this.getDevice();
|
||||
|
||||
if (!f) {
|
||||
this.showBleUnConnect();
|
||||
return;
|
||||
}
|
||||
|
||||
MsgPrompt(this, 'msgEditChannel', () => {
|
||||
let json = {
|
||||
ins_channel: this.formData.tmp_Channel
|
||||
};
|
||||
ble.sendString(f.deviceId, json).then(res => {
|
||||
MsgSuccess("发送设置指令成功,等待设备响应", '', this, null, false);
|
||||
}).catch(ex => {
|
||||
MsgError(ex.msg, '', this, null, false);
|
||||
});
|
||||
}, true, true);
|
||||
|
||||
},
|
||||
lightsetting(item, index, type) {
|
||||
debugger;
|
||||
if (!this.permissions.includes('1') && this.Status.apiType !== 'listA') {
|
||||
MsgError("无操作权限", '', this, null, false);
|
||||
return;
|
||||
}
|
||||
let f = this.getDevice();
|
||||
if (!f) {
|
||||
this.showBleUnConnect();
|
||||
return;
|
||||
}
|
||||
|
||||
let key = type == 'warn' ? 'warnSwitch' : 'fanSwitch'
|
||||
let json = {};
|
||||
switch (this.Status[key]) {
|
||||
case -1: //左
|
||||
if (type == 'warn') {
|
||||
if (this.formData.sta_leftLight == item.value) {
|
||||
json.ins_leftLight = 0;
|
||||
} else {
|
||||
json.ins_leftLight = item.value;
|
||||
}
|
||||
} else {
|
||||
if (this.formData.sta_leftFan == item.value) {
|
||||
json.ins_leftFan = 0;
|
||||
} else {
|
||||
json.ins_leftFan = item.value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case 0: //总开关
|
||||
if (type == 'warn') {
|
||||
if (this.formData.sta_leftLight == item.value && this.formData.sta_rightLight == item.value) {
|
||||
json.ins_leftLight = 0;
|
||||
json.ins_rightLight = 0;
|
||||
} else {
|
||||
json.ins_leftLight = item.value;
|
||||
json.ins_rightLight = item.value;
|
||||
}
|
||||
} else {
|
||||
if (this.formData.sta_leftFan == item.value && this.formData.sta_rightFan == item.value) {
|
||||
json.ins_frontFan = 0;
|
||||
|
||||
} else {
|
||||
json.ins_frontFan = item.value;
|
||||
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 1: //右
|
||||
if (type == 'warn') {
|
||||
if (this.formData.sta_rightLight == item.value) {
|
||||
json.ins_rightLight = 0;
|
||||
} else {
|
||||
json.ins_rightLight = item.value;
|
||||
}
|
||||
} else {
|
||||
if (this.formData.sta_rightFan == item.value) {
|
||||
json.ins_rightFan = 0;
|
||||
} else {
|
||||
json.ins_rightFan = item.value;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
ble.sendString(f.deviceId, json).then(res => {
|
||||
let keys = Object.keys(json);
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
let val = json[keys[i]];
|
||||
let key = keys[i].replace('ins_', 'sta_');
|
||||
this.formData[key] = val;
|
||||
}
|
||||
}).catch(ex => {
|
||||
MsgError(ex.msg, '', this, null, false);
|
||||
});
|
||||
|
||||
},
|
||||
getSwitchActive(item, index, type) {
|
||||
|
||||
let flag = false;
|
||||
let key = type == 'warn' ? 'warnSwitch' : 'fanSwitch'
|
||||
|
||||
switch (this.Status[key]) {
|
||||
case -1: //左
|
||||
|
||||
if (key == 'warnSwitch') {
|
||||
flag = this.formData.sta_leftLight == item.value;
|
||||
} else {
|
||||
flag = this.formData.sta_leftFan == item.value;
|
||||
}
|
||||
break;
|
||||
case 0: //总开关
|
||||
if (key == 'warnSwitch') {
|
||||
flag = this.formData.sta_leftLight == item.value && this.formData.sta_rightLight == item.value;
|
||||
} else {
|
||||
flag = this.formData.sta_frontFan == item.value;
|
||||
}
|
||||
break;
|
||||
case 1: //右
|
||||
if (key == 'warnSwitch') {
|
||||
flag = this.formData.sta_rightLight == item.value;
|
||||
} else {
|
||||
flag = this.formData.sta_rightFan == item.value;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (flag) {
|
||||
return 'active';
|
||||
}
|
||||
return '';
|
||||
},
|
||||
|
||||
bleStatuToggle() {
|
||||
let f = this.getDevice();
|
||||
if (!f) {
|
||||
@ -325,7 +606,11 @@
|
||||
let f = ble.data.LinkedList.find((v) => {
|
||||
return v.macAddress == these.device.deviceMac;
|
||||
});
|
||||
|
||||
// #ifdef WEB
|
||||
f = {
|
||||
deviceId: '123'
|
||||
}
|
||||
// #endif
|
||||
return f;
|
||||
},
|
||||
showBleUnConnect() {
|
||||
@ -352,32 +637,7 @@
|
||||
})
|
||||
|
||||
},
|
||||
initMQ() {
|
||||
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
if (mq) {
|
||||
|
||||
resolve();
|
||||
return;
|
||||
}
|
||||
console.log("正在初始化MQtt")
|
||||
mq = new MqttClient();
|
||||
mq.connect(() => {
|
||||
console.log("连接成功,开始订阅消息")
|
||||
// 订阅来自设备的状态更新
|
||||
const statusTopic =
|
||||
`A/${this.formData.imei?this.formData.imei:this.device.deviceImei}`;
|
||||
mq.subscribe(statusTopic, (payload, receive) => {
|
||||
console.log("mq收到消息", payload)
|
||||
let json = JSON.parse(payload);
|
||||
this.receivData(json);
|
||||
});
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
bleValueNotify: function(receive, device, path, recArr) { //订阅消息
|
||||
if (receive.deviceId !== this.formData.deviceId) {
|
||||
return;
|
||||
@ -413,13 +673,7 @@
|
||||
}
|
||||
if (res.deviceId == these.formData.deviceId) {
|
||||
this.formData.bleStatu = true;
|
||||
setTimeout(() => {
|
||||
hideLoading(these, 1000);
|
||||
});
|
||||
uni.showToast({
|
||||
icon: 'success',
|
||||
title: '蓝牙连接成功'
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
@ -694,10 +948,16 @@
|
||||
}
|
||||
|
||||
.lampMode {
|
||||
padding: 30rpx 0rpx;
|
||||
padding: 0rpx 0rpx;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
display: flex;
|
||||
align-content: space-around;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
justify-items: stretch;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.lampMode .mode {
|
||||
@ -713,11 +973,52 @@
|
||||
justify-content: flex-start;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
border: 0.5px solid #00000000;
|
||||
height: 140rpx;
|
||||
}
|
||||
|
||||
.lampMode .mode.active {
|
||||
|
||||
border: 1px solid rgba(174, 214, 0, 1);
|
||||
border: 1rpx solid rgba(174, 214, 0, 1);
|
||||
}
|
||||
|
||||
.lampMode .mode.active .bigTxt {
|
||||
|
||||
color: rgba(174, 214, 0, 1) !important;
|
||||
}
|
||||
|
||||
.lampMode .type {
|
||||
border-radius: 75rpx !important;
|
||||
box-sizing: border-box;
|
||||
border-style: solid;
|
||||
border-width: 5rpx;
|
||||
border-color: #00000000;
|
||||
padding: 5rpx;
|
||||
}
|
||||
|
||||
.lampMode .type .txt {
|
||||
color: rgba(255, 255, 255, 0.2);
|
||||
background-color: #00000000;
|
||||
font-family: "PingFang SC";
|
||||
font-size: 50rpx;
|
||||
font-weight: 400;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 70rpx;
|
||||
}
|
||||
|
||||
.lampMode .type.active {
|
||||
border-color: #AED600 !important;
|
||||
}
|
||||
|
||||
.lampMode .type.active .txt {
|
||||
background-color: #AED600 !important;
|
||||
color: rgba(26, 26, 26, 1) !important;
|
||||
}
|
||||
|
||||
.lampMode .mode.active:not(.type) {
|
||||
|
||||
border: 1rpx solid rgba(174, 214, 0, 1) !important;
|
||||
}
|
||||
|
||||
.lampMode .mode.active .bigTxt {
|
||||
@ -729,9 +1030,34 @@
|
||||
margin-left: 34rpx !important;
|
||||
}
|
||||
|
||||
.mode .leftImg .img {
|
||||
.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 .leftImg .img {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
|
||||
.mode .imageA {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mode.active .image {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mode.active .imageA {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.mode .rightTxt {
|
||||
@ -1070,7 +1396,7 @@
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 30rpx 0rpx 10rpx 30rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.sosContent {
|
||||
@ -1246,4 +1572,153 @@
|
||||
/deep/ .uni-navbar__placeholder {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.btn-container {
|
||||
width: 100%;
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 20rpx 0rpx;
|
||||
}
|
||||
|
||||
.btn-container .btn {
|
||||
width: 140rpx;
|
||||
height: 100%;
|
||||
border-radius: 8px;
|
||||
background-color: #2A2A2A;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
|
||||
font-family: "PingFang SC";
|
||||
font-style: Medium;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
line-height: 60rpx;
|
||||
letter-spacing: 0.14rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.btn-container .btn.active {
|
||||
background-color: rgba(174, 214, 0, 1) !important;
|
||||
color: rgba(26, 26, 26, 1) !important;
|
||||
}
|
||||
|
||||
.popup-prompt {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 30rpx 15%;
|
||||
}
|
||||
|
||||
|
||||
.popup-prompt-title {
|
||||
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
white-space: nowrap;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
font-family: PingFang SC;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
line-height: 40rpx;
|
||||
letter-spacing: 0.14rpx;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.popup-prompt-input {
|
||||
|
||||
width: 100%;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
box-sizing: border-box;
|
||||
border-bottom: 2rpx solid rgba(255, 255, 255, 0.4);
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.14px;
|
||||
}
|
||||
|
||||
.popup-prompt-input-placeHolder {
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
|
||||
font-family: PingFang SC;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
|
||||
letter-spacing: 0.14px;
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.fanMode {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 25rpx;
|
||||
}
|
||||
|
||||
.fanMode .fanItem {
|
||||
width: 25%;
|
||||
height: auto;
|
||||
min-height: 180rpx;
|
||||
padding: 24rpx 30rpx 18rpx 30rpx;
|
||||
background-color: rgba(26, 26, 26, 1);
|
||||
border-radius: 16rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
white-space: nowrap;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
border: 1rpx solid #00000000;
|
||||
font-family: "PingFang SC";
|
||||
font-style: Regular;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
|
||||
letter-spacing: 0.14rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fanMode .fanItem.active {
|
||||
color: rgba(174, 214, 0, 1) !important;
|
||||
border: 1rpx solid rgba(174, 214, 0, 1);
|
||||
}
|
||||
|
||||
.fanMode .fanItem .imageA {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fanMode .fanItem.active .imageA {
|
||||
display: inline !important;
|
||||
}
|
||||
|
||||
.fanMode .fanItem.active .image {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.fanItem .topImg {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.fanItem .topImg .img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.fanItem .bottomTxt {}
|
||||
</style>
|
||||
Reference in New Issue
Block a user