|
@@ -2,8 +2,11 @@
|
|
|
<!-- 修改logo -->
|
|
|
<div class="page flex-col">
|
|
|
<s-header :name="$t('device.customLogo.customLogo')" :noback="false"></s-header>
|
|
|
-
|
|
|
- <div class="wrap1 flex-col">
|
|
|
+ <div class="block2 flex-row justify-between">
|
|
|
+ <div class="block3 flex-col"></div>
|
|
|
+ <span class="info2">{{ $t('device.equipmentName') }}:{{ deviceDetail ? deviceDetail.name : '' }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="wrap1 flex-col o-pt-15">
|
|
|
<van-field v-model="logoNumber"
|
|
|
type="digit"
|
|
|
:label="$t('device.customLogo.logoLabel')"
|
|
@@ -17,7 +20,6 @@
|
|
|
class="volumeChangeButton"
|
|
|
@click="submitChange">{{ $t('device.customLogo.registerButton') }}</van-button>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -41,13 +43,13 @@ export default defineComponent({
|
|
|
// 初始化页面获取列表
|
|
|
onMounted(async () => {
|
|
|
await getDeviceDetailFun();
|
|
|
+ console.log(deviceDetail.value.name);
|
|
|
});
|
|
|
|
|
|
const getDeviceDetailFun = async () => {
|
|
|
const { data } = await getDeviceDetal({id : deviceId});
|
|
|
if (data.code === '00000') {
|
|
|
deviceDetail.value = data.data;
|
|
|
- // volume.value = data.data.volume ? data.data.volume : 0;
|
|
|
} else { Toast.fail(data.message); }
|
|
|
}
|
|
|
|
|
@@ -59,7 +61,6 @@ export default defineComponent({
|
|
|
// }
|
|
|
const { data } = await customLogo({
|
|
|
id: deviceId,
|
|
|
- // adminId:
|
|
|
})
|
|
|
if (data.code === '00000') {
|
|
|
Toast.success(t('device.modificationSucceeded'));
|
|
@@ -89,21 +90,7 @@ export default defineComponent({
|
|
|
width: 100%;
|
|
|
height: calc(100vh - 44px);
|
|
|
overflow: hidden;
|
|
|
- .van-slider {
|
|
|
- width: 92%;
|
|
|
- height: 4px;
|
|
|
- margin: 0 auto;
|
|
|
- margin-top: 35px;
|
|
|
- background-color: #dfdfe5;
|
|
|
- .van-slider__bar {
|
|
|
- background-color: rgba(77, 193, 147, 1);
|
|
|
- }
|
|
|
- .van-slider__button {
|
|
|
- background-color: rgba(77, 193, 147, 1);
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
.volumeChangeButton {
|
|
|
background-color: #4d6add;
|
|
|
width: 220px;
|
|
@@ -114,75 +101,33 @@ export default defineComponent({
|
|
|
.wrap1 {
|
|
|
width: 100%;
|
|
|
height: 274px;
|
|
|
- .box2 {
|
|
|
- background-color: rgba(255, 255, 255, 1);
|
|
|
- z-index: 23;
|
|
|
- height: 54px;
|
|
|
- margin-top: 1px;
|
|
|
- width: 100%;
|
|
|
- position: relative;
|
|
|
- .section3 {
|
|
|
- width: 162px;
|
|
|
- height: 20px;
|
|
|
- margin: 17px 0 0 15px;
|
|
|
- .box3 {
|
|
|
- background-color: rgba(128, 150, 236, 1);
|
|
|
- border-radius: 2px;
|
|
|
- width: 4px;
|
|
|
- height: 12px;
|
|
|
- margin-top: 4px;
|
|
|
- }
|
|
|
- .info1 {
|
|
|
- width: 150px;
|
|
|
- height: 20px;
|
|
|
- overflow-wrap: break-word;
|
|
|
- color: rgba(64, 77, 116, 1);
|
|
|
- font-size: 14px;
|
|
|
- font-family: PingFangSC-Medium;
|
|
|
- text-align: left;
|
|
|
- white-space: nowrap;
|
|
|
- line-height: 20px;
|
|
|
- display: block;
|
|
|
- }
|
|
|
- }
|
|
|
- .img1 {
|
|
|
- z-index: 31;
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- top: 53px;
|
|
|
- width: 100%;
|
|
|
- height: 2px;
|
|
|
- }
|
|
|
- }
|
|
|
- .box4 {
|
|
|
- width: 147px;
|
|
|
- height: 14px;
|
|
|
- margin: 19px 0 0 15px;
|
|
|
- .word3 {
|
|
|
- width: 104px;
|
|
|
- height: 13px;
|
|
|
- overflow-wrap: break-word;
|
|
|
- color: rgba(64, 77, 116, 1);
|
|
|
- font-size: 13px;
|
|
|
- text-align: left;
|
|
|
- white-space: nowrap;
|
|
|
- line-height: 13px;
|
|
|
- margin-top: 1px;
|
|
|
- display: block;
|
|
|
- }
|
|
|
- .word4 {
|
|
|
- width: 33px;
|
|
|
- height: 13px;
|
|
|
- overflow-wrap: break-word;
|
|
|
- color: rgba(64, 77, 116, 1);
|
|
|
- font-size: 15px;
|
|
|
- font-family: PingFangSC-Medium;
|
|
|
- text-align: left;
|
|
|
- white-space: nowrap;
|
|
|
- line-height: 15px;
|
|
|
- display: block;
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+ .block2 {
|
|
|
+ width: 162px;
|
|
|
+ height: 20px;
|
|
|
+ margin: 18px 0 0 15px;
|
|
|
+
|
|
|
+ .block3 {
|
|
|
+ background-color: rgba(128, 150, 236, 1);
|
|
|
+ border-radius: 2px;
|
|
|
+ width: 4px;
|
|
|
+ height: 12px;
|
|
|
+ margin-top: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .info2 {
|
|
|
+ width: 150px;
|
|
|
+ height: 20px;
|
|
|
+ overflow-wrap: break-word;
|
|
|
+ color: rgba(64, 77, 116, 1);
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFangSC-Medium;
|
|
|
+ text-align: left;
|
|
|
+ white-space: nowrap;
|
|
|
+ line-height: 20px;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|