调整一些组件样式
@ -6,10 +6,12 @@
|
|||||||
:buttonTextColor="item.buttonTextColor" :iconUrl="item.iconUrl" :message="item.message"
|
:buttonTextColor="item.buttonTextColor" :iconUrl="item.iconUrl" :message="item.message"
|
||||||
:buttonText="item.buttonText" @buttonClick="okCallback(item,index)" :visiblePrompt="item.visiblePrompt"
|
:buttonText="item.buttonText" @buttonClick="okCallback(item,index)" :visiblePrompt="item.visiblePrompt"
|
||||||
:promptTitle="item.promptTitle" v-model="item.modelValue" @closePop="closePop(item)"
|
:promptTitle="item.promptTitle" v-model="item.modelValue" @closePop="closePop(item)"
|
||||||
:buttonCancelText="item.buttonCancelText" :showCancel="item.showCancel"
|
:buttonCancelText="item.buttonCancelText" :showCancel="item.showCancel" :showSlot="item.showSlot"
|
||||||
:showHeader="item.showHeader" :headerTxt="item.headerTxt"
|
:showHeader="item.showHeader" :headerTxt="item.headerTxt"
|
||||||
|
|
||||||
@cancelPop="cancelClick(item,index)" />
|
@cancelPop="cancelClick(item,index)" >
|
||||||
|
<slot />
|
||||||
|
</MessagePopup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -48,10 +50,10 @@
|
|||||||
this.closePop(item);
|
this.closePop(item);
|
||||||
},
|
},
|
||||||
closePop: function(item) {
|
closePop: function(item) {
|
||||||
debugger;
|
|
||||||
if (item) {
|
if (item) {
|
||||||
this.Msgboxs.find((v, i) => {
|
this.Msgboxs.find((v, i) => {
|
||||||
debugger;
|
|
||||||
if (item.key && v.key) {
|
if (item.key && v.key) {
|
||||||
if (item.key === v.key) {
|
if (item.key === v.key) {
|
||||||
this.Msgboxs.splice(i, 1);
|
this.Msgboxs.splice(i, 1);
|
||||||
@ -79,7 +81,7 @@
|
|||||||
showPop: true, //是否显示弹窗
|
showPop: true, //是否显示弹窗
|
||||||
popType: 'custom',
|
popType: 'custom',
|
||||||
bgColor: '#383934bd',
|
bgColor: '#383934bd',
|
||||||
borderColor: '#BBE600',
|
borderColor: '#BBE6004d',
|
||||||
textColor: '#ffffffde',
|
textColor: '#ffffffde',
|
||||||
buttonBgColor: '#BBE600',
|
buttonBgColor: '#BBE600',
|
||||||
buttonTextColor: '#232323DE',
|
buttonTextColor: '#232323DE',
|
||||||
@ -116,7 +118,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!json.borderColor) {
|
if (!json.borderColor) {
|
||||||
json.borderColor = '#BBE600';
|
json.borderColor = '#BBE6004d';
|
||||||
json.buttonBgColor = '#BBE600';
|
json.buttonBgColor = '#BBE600';
|
||||||
}
|
}
|
||||||
json.showPop = true;
|
json.showPop = true;
|
||||||
@ -137,21 +139,37 @@
|
|||||||
error: {
|
error: {
|
||||||
icoUrl: '/static/images/common/uploadErr.png',
|
icoUrl: '/static/images/common/uploadErr.png',
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434"
|
buttonBgColor: "#E03434",
|
||||||
|
bgColor:'#38393466',
|
||||||
|
buttonTextColor:'#FFFFFFde'
|
||||||
},
|
},
|
||||||
succ: {
|
succ: {
|
||||||
icoUrl: '/static/images/common/success.png',
|
icoUrl: '/static/images/common/success.png',
|
||||||
borderColor: "#BBE600",
|
borderColor: "#BBE6004d",
|
||||||
buttonBgColor: "#BBE600"
|
buttonBgColor: "#BBE600",
|
||||||
|
bgColor:'#38393466'
|
||||||
},
|
},
|
||||||
warn: {
|
warn: {
|
||||||
icoUrl: '/static/images/common/warning.png',
|
icoUrl: '/static/images/common/warning.png',
|
||||||
borderColor: "#FFC84E",
|
borderColor: "#FFC84E4d",
|
||||||
buttonBgColor: "#FFC84E",
|
buttonBgColor: "#FFC84E",
|
||||||
|
bgColor:'#38393466'
|
||||||
},
|
},
|
||||||
info:{
|
info:{
|
||||||
borderColor: "#BBE600",
|
borderColor: "#BBE6004d",
|
||||||
buttonBgColor: "#BBE600"
|
buttonBgColor: "#BBE600",
|
||||||
|
bgColor:'#38393466'
|
||||||
|
},
|
||||||
|
prompt:{
|
||||||
|
|
||||||
|
|
||||||
|
borderColor: "#aed6004d",
|
||||||
|
buttonBgColor: "#aed600",
|
||||||
|
bgColor:'#38393466',
|
||||||
|
buttonTextColor:'#232323de',
|
||||||
|
showSlot:true,
|
||||||
|
showCancel:true,
|
||||||
|
buttonCancelText:'取消'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +189,13 @@
|
|||||||
borderColor: cfg[type].borderColor,
|
borderColor: cfg[type].borderColor,
|
||||||
buttonBgColor: cfg[type].buttonBgColor,
|
buttonBgColor: cfg[type].buttonBgColor,
|
||||||
buttonText: btnTxt ? btnTxt : '确定',
|
buttonText: btnTxt ? btnTxt : '确定',
|
||||||
okCallback: okCallback ? okCallback : this.closePop
|
okCallback: okCallback ? okCallback : this.closePop,
|
||||||
|
buttonTextColor:cfg[type].buttonTextColor,
|
||||||
|
bgColor:cfg[type].bgColor,
|
||||||
|
showSlot:cfg[type].showSlot,
|
||||||
|
showCancel:cfg[type].showCancel,
|
||||||
|
buttonCancelText:cfg[type].buttonCancelText
|
||||||
|
|
||||||
};
|
};
|
||||||
return this.showPop(options);
|
return this.showPop(options);
|
||||||
|
|
||||||
|
|||||||
@ -142,8 +142,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
transform: translateZ(0);
|
transform: translateZ(0);
|
||||||
/* 启用GPU加速 */
|
margin-top: 0rpx;
|
||||||
margin-top: -150rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 刻度容器 */
|
/* 刻度容器 */
|
||||||
|
|||||||
@ -66,7 +66,9 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<ProParams :id="device.id"></ProParams>
|
<ProParams :id="device.id"></ProParams>
|
||||||
|
|
||||||
<MsgBox ref="msgPop" />
|
<MsgBox ref="msgPop" />
|
||||||
|
|
||||||
<global-loading ref="loading" />
|
<global-loading ref="loading" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -85,7 +87,8 @@
|
|||||||
MsgClose,
|
MsgClose,
|
||||||
MsgWarning,
|
MsgWarning,
|
||||||
showPop,
|
showPop,
|
||||||
MsgInfo
|
MsgInfo,
|
||||||
|
MsgPrompt
|
||||||
} from '@/utils/MsgPops.js'
|
} from '@/utils/MsgPops.js'
|
||||||
import Common from '@/utils/Common.js';
|
import Common from '@/utils/Common.js';
|
||||||
import BleTool from '@/utils/BleHelper.js'
|
import BleTool from '@/utils/BleHelper.js'
|
||||||
@ -227,7 +230,7 @@
|
|||||||
|
|
||||||
eventChannel = this.getOpenerEventChannel();
|
eventChannel = this.getOpenerEventChannel();
|
||||||
|
|
||||||
eventChannel.on('detailData', function(data) {
|
eventChannel.on('detailData', (data)=> {
|
||||||
|
|
||||||
console.log("收到父页面的参数:" + JSON.stringify(data));
|
console.log("收到父页面的参数:" + JSON.stringify(data));
|
||||||
var device = data.data;
|
var device = data.data;
|
||||||
@ -1196,7 +1199,7 @@
|
|||||||
.navbarRight .img {
|
.navbarRight .img {
|
||||||
width: 35rpx;
|
width: 35rpx;
|
||||||
height: 35rpx;
|
height: 35rpx;
|
||||||
margin-right: 20rpx;
|
margin-right: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-navbar--fixed {
|
.uni-navbar--fixed {
|
||||||
|
|||||||
@ -623,7 +623,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -1360,7 +1360,7 @@ onFreqChanging(e){
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -1196,7 +1196,7 @@
|
|||||||
.navbarRight .img {
|
.navbarRight .img {
|
||||||
width: 35rpx;
|
width: 35rpx;
|
||||||
height: 35rpx;
|
height: 35rpx;
|
||||||
margin-right: 20rpx;
|
margin-right: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-navbar--fixed {
|
.uni-navbar--fixed {
|
||||||
|
|||||||
@ -1365,7 +1365,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -1410,7 +1410,7 @@ display: flex;
|
|||||||
.navbarRight .img {
|
.navbarRight .img {
|
||||||
width: 35rpx;
|
width: 35rpx;
|
||||||
height: 35rpx;
|
height: 35rpx;
|
||||||
margin-right: 20rpx;
|
margin-right: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-navbar--fixed {
|
.uni-navbar--fixed {
|
||||||
|
|||||||
@ -1252,7 +1252,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -748,7 +748,7 @@ import request, { baseURL } from '@/utils/request.js';
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -1912,7 +1912,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
showCancel: true,
|
showCancel: true,
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
console.log("1111");
|
console.log("1111");
|
||||||
@ -2858,7 +2858,7 @@
|
|||||||
.navbarRight .img {
|
.navbarRight .img {
|
||||||
width: 35rpx;
|
width: 35rpx;
|
||||||
height: 35rpx;
|
height: 35rpx;
|
||||||
margin-right: 20rpx;
|
margin-right: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-navbar--fixed {
|
.uni-navbar--fixed {
|
||||||
|
|||||||
@ -840,7 +840,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -708,7 +708,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
// console.log("1111");
|
// console.log("1111");
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -688,7 +688,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
// console.log("1111");
|
// console.log("1111");
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -556,7 +556,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
showCancel: true,
|
showCancel: true,
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
console.log("1111");
|
console.log("1111");
|
||||||
|
|||||||
@ -739,7 +739,7 @@ import request, { baseURL } from '@/utils/request.js';
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -822,7 +822,7 @@ import request, { baseURL } from '@/utils/request.js';
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -180,7 +180,7 @@
|
|||||||
<view class="item" @click="lightSetting('close')" :class="formData.lightCurr=='close'?'active':''">
|
<view class="item" @click="lightSetting('close')" :class="formData.lightCurr=='close'?'active':''">
|
||||||
<view class="imgContent center">
|
<view class="imgContent center">
|
||||||
<image class="img"
|
<image class="img"
|
||||||
:src="formData.lightCurr=='close'?'/static/images/lightImg/jieNActive.png':'/static/images/lightImg/jieN.png'"
|
:src="formData.lightCurr=='close'?'/static/images/lightImg/closeLightActive.png':'/static/images/lightImg/closeLight.png'"
|
||||||
mode="aspectFit"></image>
|
mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="txt">关闭</view>
|
<view class="txt">关闭</view>
|
||||||
@ -340,7 +340,7 @@
|
|||||||
borderColor: '#BBE600',
|
borderColor: '#BBE600',
|
||||||
textColor: '#ffffffde',
|
textColor: '#ffffffde',
|
||||||
buttonBgColor: '#BBE600',
|
buttonBgColor: '#BBE600',
|
||||||
buttonTextColor: '#232323DE',
|
buttonTextColor: '#FFFFFFDE',
|
||||||
|
|
||||||
iconUrl: '',
|
iconUrl: '',
|
||||||
message: '您确定要这样做吗?',
|
message: '您确定要这样做吗?',
|
||||||
@ -725,7 +725,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
showCancel: true,
|
showCancel: true,
|
||||||
cancelCallback: () => {
|
cancelCallback: () => {
|
||||||
// this.closePop();
|
// this.closePop();
|
||||||
@ -1178,6 +1178,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde",
|
||||||
okCallback: null,
|
okCallback: null,
|
||||||
buttonText: "确定"
|
buttonText: "确定"
|
||||||
},these)
|
},these)
|
||||||
@ -1221,6 +1222,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde"
|
||||||
},these);
|
},these);
|
||||||
|
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@ -1286,6 +1288,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde"
|
||||||
},these);
|
},these);
|
||||||
|
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@ -1368,6 +1371,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde",
|
||||||
okCallback: null,
|
okCallback: null,
|
||||||
buttonText: "确定"
|
buttonText: "确定"
|
||||||
},these)
|
},these)
|
||||||
@ -1440,6 +1444,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde"
|
||||||
},these);
|
},these);
|
||||||
|
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@ -1562,6 +1567,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor:"#FFFFFFde",
|
||||||
okCallback: OpenSOS,
|
okCallback: OpenSOS,
|
||||||
buttonText: "开启"
|
buttonText: "开启"
|
||||||
},these);
|
},these);
|
||||||
@ -1591,6 +1597,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde",
|
||||||
okCallback: null,
|
okCallback: null,
|
||||||
buttonText: "确定"
|
buttonText: "确定"
|
||||||
},these)
|
},these)
|
||||||
@ -1633,6 +1640,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde"
|
||||||
},these);
|
},these);
|
||||||
|
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@ -2193,6 +2201,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde",
|
||||||
okCallback: null,
|
okCallback: null,
|
||||||
buttonText: "确定"
|
buttonText: "确定"
|
||||||
},these)
|
},these)
|
||||||
@ -2314,6 +2323,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde",
|
||||||
okCallback: null,
|
okCallback: null,
|
||||||
buttonText: "确定"
|
buttonText: "确定"
|
||||||
},these)
|
},these)
|
||||||
@ -2532,6 +2542,7 @@
|
|||||||
iconUrl: "/static/images/common/uploadErr.png",
|
iconUrl: "/static/images/common/uploadErr.png",
|
||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
|
buttonTextColor: "#FFFFFFde",
|
||||||
okCallback: null,
|
okCallback: null,
|
||||||
buttonText: "确定"
|
buttonText: "确定"
|
||||||
},these)
|
},these)
|
||||||
@ -2922,17 +2933,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.usrinfo .btnSend {
|
.usrinfo .btnSend {
|
||||||
line-height: 65rpx;
|
background-color: rgb(187, 230, 0);
|
||||||
border-radius: 8px;
|
|
||||||
width: 120rpx;
|
|
||||||
height: 65rpx;
|
|
||||||
color: rgba(35, 35, 35, 0.87);
|
color: rgba(35, 35, 35, 0.87);
|
||||||
font-family: PingFang SC;
|
height: 50rpx;
|
||||||
font-size: 24rpx;
|
line-height: 50rpx;
|
||||||
font-weight: 400;
|
border-radius: 16rpx;
|
||||||
letter-spacing: 0.15rpx;
|
font-size: 26rpx;
|
||||||
|
width: 112rpx;
|
||||||
|
white-space: nowrap;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #BBE600;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.usrinfo .item {
|
.usrinfo .item {
|
||||||
@ -3330,7 +3339,7 @@
|
|||||||
.navbarRight .img{
|
.navbarRight .img{
|
||||||
width: 35rpx;
|
width: 35rpx;
|
||||||
height: 35rpx;
|
height: 35rpx;
|
||||||
margin-right: 20rpx;
|
margin-right: 30rpx;
|
||||||
}
|
}
|
||||||
.uni-navbar--fixed{
|
.uni-navbar--fixed{
|
||||||
top:0rpx;
|
top:0rpx;
|
||||||
|
|||||||
@ -628,7 +628,7 @@
|
|||||||
borderColor: "#e034344d",
|
borderColor: "#e034344d",
|
||||||
buttonBgColor: "#E03434",
|
buttonBgColor: "#E03434",
|
||||||
buttonText: '去连接',
|
buttonText: '去连接',
|
||||||
buttonTextColor: '#232323de',
|
buttonTextColor: '#FFFFFFde',
|
||||||
okCallback: function() {
|
okCallback: function() {
|
||||||
console.log("1111");
|
console.log("1111");
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -88,6 +88,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 按钮组 -->
|
<!-- 按钮组 -->
|
||||||
<view class="popup-buttons">
|
<view class="popup-buttons">
|
||||||
|
<button class="btn cancelBtn" @click="closePopup('delete')">取消</button>
|
||||||
<button class="btn agreeBtn" @click="handleBtn">确定</button>
|
<button class="btn agreeBtn" @click="handleBtn">确定</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -98,14 +99,15 @@
|
|||||||
<view class="popup-content">
|
<view class="popup-content">
|
||||||
<view>
|
<view>
|
||||||
<view class="popup-flex">
|
<view class="popup-flex">
|
||||||
<text>设备名称</text>
|
<text>名称</text>
|
||||||
<input type="text" v-model="deviceName" placeholder="请输入设备名称" class="popup-input"
|
<input type="text" v-model="deviceName" placeholder="请输入名称" class="popup-input"
|
||||||
@click.stop />
|
@click.stop />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 按钮组 -->
|
<!-- 按钮组 -->
|
||||||
<view class="popup-buttons" style="margin-top:50rpx;">
|
<view class="popup-buttons" style="margin-top:50rpx;">
|
||||||
|
<button class="btn cancelBtn" @click="closePopup('rename')">取消</button>
|
||||||
<button class="btn agreeBtn4" @click="handleBtnName">确定</button>
|
<button class="btn agreeBtn4" @click="handleBtnName">确定</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -878,12 +880,25 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
/* 文字居中 */
|
/* 文字居中 */
|
||||||
/* 设置最小宽度 */
|
/* 设置最小宽度 */
|
||||||
|
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.tab-item.active {
|
||||||
color: rgba(187, 230, 0, 1);
|
color: #bbe600;
|
||||||
border-bottom: 6rpx solid rgba(187, 230, 0, 1);
|
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.tab-item.active::before{
|
||||||
|
content: "";
|
||||||
|
background-color: #bbe600;
|
||||||
|
position: absolute;
|
||||||
|
top: 90%;
|
||||||
|
left:35%;
|
||||||
|
width: 30%;
|
||||||
|
height: 6rpx;
|
||||||
|
border-radius: 6rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sendFlex {
|
.sendFlex {
|
||||||
@ -1133,14 +1148,32 @@
|
|||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px solid rgba(255, 200, 78, 0.3);
|
border: 1px solid #E034344d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.cancelBtn{
|
||||||
|
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
width: 170rpx !important;
|
||||||
|
background-color: #00000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.agreement-popupC .cancelBtn{
|
||||||
|
border:1rpx solid #E034344d;
|
||||||
|
color:#E03434;
|
||||||
|
}
|
||||||
|
|
||||||
|
.agreement-popupD .cancelBtn{
|
||||||
|
border: 1rpx solid rgba(255, 255, 255, 0.6);
|
||||||
|
color:rgba(255, 255, 255, 0.6);
|
||||||
|
}
|
||||||
.agreement-popupD {
|
.agreement-popupD {
|
||||||
width: 70%;
|
width: 75%;
|
||||||
background-color: rgb(42, 42, 42);
|
background-color: rgb(42, 42, 42);
|
||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
padding: 40rpx;
|
padding: 40rpx 5rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px solid rgba(187, 230, 0, 0.3);
|
border: 1px solid rgba(187, 230, 0, 0.3);
|
||||||
}
|
}
|
||||||
@ -1162,6 +1195,7 @@
|
|||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
text-indent: 5rpx;
|
text-indent: 5rpx;
|
||||||
|
width: calc(100% - 75rpx);
|
||||||
}
|
}
|
||||||
|
|
||||||
.svg {
|
.svg {
|
||||||
@ -1182,8 +1216,8 @@
|
|||||||
|
|
||||||
/* 同意按钮 */
|
/* 同意按钮 */
|
||||||
.agreeBtn {
|
.agreeBtn {
|
||||||
background: #FFC84E;
|
background: #E03434;
|
||||||
color: #232323;
|
color: #FFFFFF;
|
||||||
border: none;
|
border: none;
|
||||||
width: 170rpx !important;
|
width: 170rpx !important;
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 2.0 KiB |
BIN
static/images/lightImg/closeLightActive.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
@ -14,7 +14,9 @@ import {
|
|||||||
|
|
||||||
class BleReceive {
|
class BleReceive {
|
||||||
constructor(_ref) {
|
constructor(_ref) {
|
||||||
|
if(_ref){
|
||||||
this.ref = _ref;
|
this.ref = _ref;
|
||||||
|
}
|
||||||
this.StorageKey = "linkedDevices";
|
this.StorageKey = "linkedDevices";
|
||||||
this.HandlerMap = {
|
this.HandlerMap = {
|
||||||
'/pages/6155/deviceDetail': this.Receive_6155.bind(this),
|
'/pages/6155/deviceDetail': this.Receive_6155.bind(this),
|
||||||
|
|||||||
@ -2,7 +2,8 @@ var MsgType = {
|
|||||||
error: "error",
|
error: "error",
|
||||||
succ: "succ",
|
succ: "succ",
|
||||||
warn: "warn",
|
warn: "warn",
|
||||||
info:'info'
|
info:'info',
|
||||||
|
prompt:'prompt'
|
||||||
}
|
}
|
||||||
var time = null;
|
var time = null;
|
||||||
// 显示成功
|
// 显示成功
|
||||||
@ -74,6 +75,26 @@ export const MsgInfo = (msg, btnTxt, ev, isClear,btnCallback) => {
|
|||||||
return option;
|
return option;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//显示捕获窗口,用于自定义弹窗内容
|
||||||
|
export const MsgPrompt = ( ev,refName, btnCallback,isClear) => {
|
||||||
|
if (!ev) {
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (!ev.$refs[refName]) {
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
let option = ev.$refs[refName].showMsg("", "", MsgType.prompt,btnCallback);
|
||||||
|
if (isClear === undefined || isClear) {
|
||||||
|
createClear(ev);
|
||||||
|
}
|
||||||
|
|
||||||
|
return option;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 隐藏loading
|
// 隐藏loading
|
||||||
|
|||||||