|
@@ -39,7 +39,9 @@
|
|
<view class="center-area-seting">
|
|
<view class="center-area-seting">
|
|
<view class="center-area-seting_title">会客模式</view>
|
|
<view class="center-area-seting_title">会客模式</view>
|
|
<view class="center-area-seting_center">
|
|
<view class="center-area-seting_center">
|
|
- <u-subsection :list="subsection.list" :current="subsection.current" mode="subsection" @change="subsectionChange"></u-subsection>
|
|
|
|
|
|
+ <view class="center-area-seting_center_itemSub" :class="[{ active: list.value == modal.form.workStatus }]" v-for="list in subsection.list" :key="list" @click="subsectionChange(list)">
|
|
|
|
+ {{ list.label }}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -47,6 +49,7 @@
|
|
<view class="center-area-seting_title">门禁配置</view>
|
|
<view class="center-area-seting_title">门禁配置</view>
|
|
<view class="center-area-seting_center">
|
|
<view class="center-area-seting_center">
|
|
<view class="center-area-seting_center_item" v-for="(baseListItem, baseListIndex) in baseList" :key="baseListIndex" v-show="baseListItem.status" @click="handle(baseListItem)">
|
|
<view class="center-area-seting_center_item" v-for="(baseListItem, baseListIndex) in baseList" :key="baseListIndex" v-show="baseListItem.status" @click="handle(baseListItem)">
|
|
|
|
+ <image class="center-area-seting_center_item_image" :src="baseListItem.imgPath" style="width: 25px; height: 25px"></image>
|
|
<view class="center-area-seting_center_item_title">{{ baseListItem.title }}</view>
|
|
<view class="center-area-seting_center_item_title">{{ baseListItem.title }}</view>
|
|
<view class="center-area-seting_center_item_subTitle">{{ baseListItem.subTitle }}</view>
|
|
<view class="center-area-seting_center_item_subTitle">{{ baseListItem.subTitle }}</view>
|
|
</view>
|
|
</view>
|
|
@@ -71,7 +74,7 @@
|
|
<view class="slot-content">
|
|
<view class="slot-content">
|
|
<view class="remark" style="" v-if="modal.type == '标识语'">
|
|
<view class="remark" style="" v-if="modal.type == '标识语'">
|
|
<u-textarea v-model="modal.form.remark" placeholder="请输入标识语" border="none" maxlength="200" style="padding: 0px" autoHeight></u-textarea>
|
|
<u-textarea v-model="modal.form.remark" placeholder="请输入标识语" border="none" maxlength="200" style="padding: 0px" autoHeight></u-textarea>
|
|
- <view class="remark_changeIt" @click="changeIt()">换一换</view>
|
|
|
|
|
|
+ <image class="remark_changeIt" src="@/static/images/door/ai.png" style="width: 25px; height: 25px" @click="changeIt()"></image>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="imgPath" v-if="modal.type == '屏保'">
|
|
<view class="imgPath" v-if="modal.type == '屏保'">
|
|
@@ -115,6 +118,7 @@ const state = reactive({
|
|
subTitle: "标识语/标语",
|
|
subTitle: "标识语/标语",
|
|
status: true,
|
|
status: true,
|
|
type: "remark",
|
|
type: "remark",
|
|
|
|
+ imgPath: "/static/images/door/setting_remark.png",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "star",
|
|
name: "star",
|
|
@@ -122,6 +126,7 @@ const state = reactive({
|
|
subTitle: "屏保/主题互动",
|
|
subTitle: "屏保/主题互动",
|
|
status: true,
|
|
status: true,
|
|
type: "imgPath",
|
|
type: "imgPath",
|
|
|
|
+ imgPath: "/static/images/door/setting_imgPath.png",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "photo",
|
|
name: "photo",
|
|
@@ -129,13 +134,18 @@ const state = reactive({
|
|
subTitle: "通行记录/人员通行记录",
|
|
subTitle: "通行记录/人员通行记录",
|
|
status: true,
|
|
status: true,
|
|
type: "record",
|
|
type: "record",
|
|
|
|
+ imgPath: "/static/images/door/setting_record.png",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
|
|
|
|
subsection: {
|
|
subsection: {
|
|
- list: ["办公", "会客", "外出", "勿扰"],
|
|
|
|
- current: 0,
|
|
|
|
- value: "",
|
|
|
|
|
|
+ list: [
|
|
|
|
+ { label: "办公", value: 1 },
|
|
|
|
+ { label: "会客", value: 2 },
|
|
|
|
+ { label: "外出", value: 3 },
|
|
|
|
+ { label: "勿扰", value: 4 },
|
|
|
|
+ ],
|
|
|
|
+ value: 1,
|
|
},
|
|
},
|
|
modal: {
|
|
modal: {
|
|
show: false,
|
|
show: false,
|
|
@@ -146,14 +156,16 @@ const state = reactive({
|
|
remark: "",
|
|
remark: "",
|
|
password: "",
|
|
password: "",
|
|
openMode: "",
|
|
openMode: "",
|
|
|
|
+ workStatus: 1,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
});
|
|
const { pageTitle, deviceUuid, baseList, subsection, modal } = toRefs(state);
|
|
const { pageTitle, deviceUuid, baseList, subsection, modal } = toRefs(state);
|
|
|
|
|
|
function subsectionChange(e) {
|
|
function subsectionChange(e) {
|
|
- state.subsection.current = e;
|
|
|
|
- state.subsection.value = state.subsection.list[e];
|
|
|
|
|
|
+ state.subsection.value = e.value;
|
|
|
|
+ state.modal.form.workStatus = e.value;
|
|
|
|
+ modalConfirm();
|
|
}
|
|
}
|
|
|
|
|
|
/** 操作按钮事件 */
|
|
/** 操作按钮事件 */
|
|
@@ -185,15 +197,16 @@ function modalConfirm() {
|
|
|
|
|
|
/** 换一换 */
|
|
/** 换一换 */
|
|
function changeIt() {
|
|
function changeIt() {
|
|
|
|
+ proxy.$modal.loading("加载中");
|
|
aiApi()
|
|
aiApi()
|
|
.changeIt({
|
|
.changeIt({
|
|
content: state.pageTitle + "每天一语简洁",
|
|
content: state.pageTitle + "每天一语简洁",
|
|
})
|
|
})
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- console.log(response);
|
|
|
|
const data = response.data;
|
|
const data = response.data;
|
|
state.modal.form.remark = "";
|
|
state.modal.form.remark = "";
|
|
state.modal.form.remark = data.reasoningContent;
|
|
state.modal.form.remark = data.reasoningContent;
|
|
|
|
+ proxy.$modal.closeLoading();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -235,6 +248,7 @@ onLoad((options) => {
|
|
state.modal.form.openMode = records.openMode;
|
|
state.modal.form.openMode = records.openMode;
|
|
state.modal.form.remark = records.remark;
|
|
state.modal.form.remark = records.remark;
|
|
state.modal.form.password = records.password;
|
|
state.modal.form.password = records.password;
|
|
|
|
+ state.modal.form.workStatus = records.workStatus ? records.workStatus : 1;
|
|
|
|
|
|
state.deviceUuid = records.deviceUuid;
|
|
state.deviceUuid = records.deviceUuid;
|
|
})
|
|
})
|
|
@@ -255,6 +269,9 @@ onUnload(() => {});
|
|
height: 180px;
|
|
height: 180px;
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
margin: 50px auto;
|
|
margin: 50px auto;
|
|
|
|
+ box-shadow: 0px 0px 10px rgba(60, 156, 255, 1.1);
|
|
|
|
+ // background: url("@/static/images/door/bg.png") no-repeat;
|
|
|
|
+ // background-size: 100% 100%;
|
|
|
|
|
|
&_icon {
|
|
&_icon {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
@@ -282,6 +299,25 @@ onUnload(() => {});
|
|
display: flex;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
+ &_itemSub {
|
|
|
|
+ width: calc(25% - 10px);
|
|
|
|
+ padding: 10px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ border-radius: 40px;
|
|
|
|
+ box-shadow: 0px 0px 10px rgba(60, 156, 255, 0.1);
|
|
|
|
+ background-color: #f2f6ff;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ &_itemSub:nth-child(2),
|
|
|
|
+ &_itemSub:nth-child(3) {
|
|
|
|
+ margin: 0 10px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .active {
|
|
|
|
+ background-color: #3c9cff;
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+
|
|
&_item {
|
|
&_item {
|
|
width: calc(50% - 10px);
|
|
width: calc(50% - 10px);
|
|
padding: 15px;
|
|
padding: 15px;
|
|
@@ -325,7 +361,8 @@ onUnload(() => {});
|
|
|
|
|
|
&_changeIt {
|
|
&_changeIt {
|
|
position: absolute;
|
|
position: absolute;
|
|
- right: 0;
|
|
|
|
|
|
+ right: -18px;
|
|
|
|
+ bottom: -18px;
|
|
z-index: 5;
|
|
z-index: 5;
|
|
color: #2979ff;
|
|
color: #2979ff;
|
|
}
|
|
}
|