|
@@ -2,13 +2,14 @@
|
|
<vue-drag-resize
|
|
<vue-drag-resize
|
|
id="drag"
|
|
id="drag"
|
|
class="drag-container"
|
|
class="drag-container"
|
|
- :isActive="true"
|
|
|
|
w="auto"
|
|
w="auto"
|
|
h="auto"
|
|
h="auto"
|
|
:x="left"
|
|
:x="left"
|
|
:y="top"
|
|
:y="top"
|
|
:z="zIndex"
|
|
:z="zIndex"
|
|
|
|
+ :isActive="false"
|
|
:isResizable="false"
|
|
:isResizable="false"
|
|
|
|
+ :isDraggable="false"
|
|
:parent-limitation="true"
|
|
:parent-limitation="true"
|
|
v-if="dialogConfig.show"
|
|
v-if="dialogConfig.show"
|
|
@clicked="setZIndex(dialogConfig.dialogId)"
|
|
@clicked="setZIndex(dialogConfig.dialogId)"
|
|
@@ -105,15 +106,26 @@
|
|
style="height: calc(100% - 55px)"
|
|
style="height: calc(100% - 55px)"
|
|
v-if="dialogConfig.type == 1"
|
|
v-if="dialogConfig.type == 1"
|
|
>
|
|
>
|
|
- <div class="content_info" v-if="enable">{{ info }}</div>
|
|
|
|
- <div class="content_info" v-else>
|
|
|
|
- <div>
|
|
|
|
- 将卡号为“{{ recognizedNumber }}”卡片,同{{
|
|
|
|
- dialogConfig.data.name
|
|
|
|
- }}人员进行绑定!
|
|
|
|
|
|
+ <div class="content_info">
|
|
|
|
+ <el-input
|
|
|
|
+ ref="myInput"
|
|
|
|
+ v-model="recognizedNumber"
|
|
|
|
+ rows="1"
|
|
|
|
+ type="textarea"
|
|
|
|
+ style="
|
|
|
|
+ font-size: 30px;
|
|
|
|
+ font-family: 'Microsoft YaHei';
|
|
|
|
+ width: auto;
|
|
|
|
+ "
|
|
|
|
+ />
|
|
|
|
+ <div style="margin-top: 10px" v-if="enable">{{ info }}</div>
|
|
|
|
+ <div style="margin-top: 10px" v-else>
|
|
|
|
+ 将卡号为“{{
|
|
|
|
+ recognizedNumber ? recognizedNumber : "--"
|
|
|
|
+ }}”卡片,同{{ dialogConfig.data.name }}人员进行绑定!
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="btn-box" v-if="!enable">
|
|
|
|
|
|
+ <div class="btn-box">
|
|
<el-button
|
|
<el-button
|
|
class="btn-cancel"
|
|
class="btn-cancel"
|
|
style="width: 100px; height: 60px; font-size: x-large"
|
|
style="width: 100px; height: 60px; font-size: x-large"
|
|
@@ -138,15 +150,21 @@
|
|
style="height: calc(100% - 55px)"
|
|
style="height: calc(100% - 55px)"
|
|
v-if="dialogConfig.type == 2"
|
|
v-if="dialogConfig.type == 2"
|
|
>
|
|
>
|
|
- <div class="content_info" v-if="enable">{{ info }}</div>
|
|
|
|
- <div class="content_info" v-else>
|
|
|
|
- <div>
|
|
|
|
- 将卡号为“{{ person.cardNo }}”卡片,同{{
|
|
|
|
- person.name ? person.name : ""
|
|
|
|
- }}人员解除绑定!
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="content_info">
|
|
|
|
+ <el-input
|
|
|
|
+ ref="myInput"
|
|
|
|
+ v-model="recognizedNumber"
|
|
|
|
+ rows="1"
|
|
|
|
+ type="textarea"
|
|
|
|
+ style="
|
|
|
|
+ font-size: 30px;
|
|
|
|
+ font-family: 'Microsoft YaHei';
|
|
|
|
+ width: auto;
|
|
|
|
+ "
|
|
|
|
+ />
|
|
|
|
+ <div style="margin-top: 10px">{{ info }}</div>
|
|
</div>
|
|
</div>
|
|
- <div class="btn-box" v-if="!enable">
|
|
|
|
|
|
+ <div class="btn-box">
|
|
<el-button
|
|
<el-button
|
|
class="btn-cancel"
|
|
class="btn-cancel"
|
|
style="width: 100px; height: 60px; font-size: x-large"
|
|
style="width: 100px; height: 60px; font-size: x-large"
|
|
@@ -172,7 +190,11 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
-import { getPersonByCardNo, savePerson } from "@/API/custom";
|
|
|
|
|
|
+import {
|
|
|
|
+ getPersonByCardNo,
|
|
|
|
+ savePerson,
|
|
|
|
+ bindAndUnbindrecord,
|
|
|
|
+} from "@/API/custom";
|
|
import Dayjs from "dayjs";
|
|
import Dayjs from "dayjs";
|
|
export default {
|
|
export default {
|
|
name: "RiskTipDialog",
|
|
name: "RiskTipDialog",
|
|
@@ -181,7 +203,7 @@ export default {
|
|
type: Object,
|
|
type: Object,
|
|
default: () => {
|
|
default: () => {
|
|
return {
|
|
return {
|
|
- dialogId: "",
|
|
|
|
|
|
+ dialogId: "10000",
|
|
show: false, //是否显示
|
|
show: false, //是否显示
|
|
title: "新窗口-请指定URL",
|
|
title: "新窗口-请指定URL",
|
|
width: 960, //px宽度
|
|
width: 960, //px宽度
|
|
@@ -193,7 +215,7 @@ export default {
|
|
center: true, //是否居中定位
|
|
center: true, //是否居中定位
|
|
type: 1,
|
|
type: 1,
|
|
data: {},
|
|
data: {},
|
|
- zIndex: 5,
|
|
|
|
|
|
+ zIndex: 10000,
|
|
dataIndex: 0,
|
|
dataIndex: 0,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -207,8 +229,10 @@ export default {
|
|
left: 0,
|
|
left: 0,
|
|
enable: true,
|
|
enable: true,
|
|
recognizedNumber: "",
|
|
recognizedNumber: "",
|
|
|
|
+ unbindNumber: "",
|
|
person: { name: "" },
|
|
person: { name: "" },
|
|
- info: "刷卡识别。。。请刷卡",
|
|
|
|
|
|
+ info: "刷卡识别中。。。请刷卡",
|
|
|
|
+ response: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -217,9 +241,12 @@ export default {
|
|
// 弹窗打开关闭时,更新全局变量
|
|
// 弹窗打开关闭时,更新全局变量
|
|
if (newVal) {
|
|
if (newVal) {
|
|
console.log("将要打开" + this.dialogConfig.dialogId);
|
|
console.log("将要打开" + this.dialogConfig.dialogId);
|
|
- setTimeout(() => {
|
|
|
|
- this.recognizedNumber = "2652310818"; //2652310818
|
|
|
|
- }, 1000);
|
|
|
|
|
|
+ // 强制将焦点返回到el-input
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ if (this.$refs.myInput) {
|
|
|
|
+ this.$refs.myInput.focus();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
} else {
|
|
} else {
|
|
this.$store.dispatch("dialog/removeRiskDialog", this.dialogConfig);
|
|
this.$store.dispatch("dialog/removeRiskDialog", this.dialogConfig);
|
|
}
|
|
}
|
|
@@ -238,11 +265,12 @@ export default {
|
|
recognizedNumber: {
|
|
recognizedNumber: {
|
|
//深度监听,可监听到对象、数组的变化
|
|
//深度监听,可监听到对象、数组的变化
|
|
handler(newVal) {
|
|
handler(newVal) {
|
|
|
|
+ this.recognizedNumber = newVal.replace(/(\r\n|\n|\r)/gm, "");
|
|
console.log("获取人员信息");
|
|
console.log("获取人员信息");
|
|
if (newVal.length > 2) {
|
|
if (newVal.length > 2) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.getPersonByRFID();
|
|
this.getPersonByRFID();
|
|
- }, 2000);
|
|
|
|
|
|
+ }, 500);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
deep: true,
|
|
deep: true,
|
|
@@ -261,6 +289,31 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
window.addEventListener("resize", this.pxToRem);
|
|
window.addEventListener("resize", this.pxToRem);
|
|
|
|
+ // 添加触摸事件监听
|
|
|
|
+ this.$el.addEventListener("touchstart", this.handleTouchStart, {
|
|
|
|
+ passive: false,
|
|
|
|
+ });
|
|
|
|
+ document.addEventListener("touchmove", this.handleTouchMove, {
|
|
|
|
+ passive: false,
|
|
|
|
+ });
|
|
|
|
+ document.addEventListener("touchend", this.handleTouchEnd, {
|
|
|
|
+ passive: false,
|
|
|
|
+ });
|
|
|
|
+ // 为按钮添加额外的触摸事件支持
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ const buttons = this.$el.querySelectorAll(".el-button, .dialog-close");
|
|
|
|
+ buttons.forEach((btn) => {
|
|
|
|
+ btn.addEventListener(
|
|
|
|
+ "touchstart",
|
|
|
|
+ (e) => {
|
|
|
|
+ e.stopPropagation();
|
|
|
|
+ e.preventDefault();
|
|
|
|
+ btn.click();
|
|
|
|
+ },
|
|
|
|
+ { passive: false }
|
|
|
|
+ );
|
|
|
|
+ });
|
|
|
|
+ });
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapGetters(["riskDialogs", "alarmAudio"]),
|
|
...mapGetters(["riskDialogs", "alarmAudio"]),
|
|
@@ -320,19 +373,71 @@ export default {
|
|
});
|
|
});
|
|
if (res.code === 20000) {
|
|
if (res.code === 20000) {
|
|
this.enable = false; //切换内容
|
|
this.enable = false; //切换内容
|
|
- this.person = res.data.content ? res.data.content[0] : {};
|
|
|
|
|
|
+ this.person = res.data.content ? res.data.content[0] : { cardNo: 0 };
|
|
console.log("当前人员:", res, this.person);
|
|
console.log("当前人员:", res, this.person);
|
|
|
|
+ } else {
|
|
|
|
+ this.person = { cardNo: 0 };
|
|
}
|
|
}
|
|
} catch (err) {
|
|
} catch (err) {
|
|
- console.log(err);
|
|
|
|
|
|
+ console.log(err, 123);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async savePersonInfo(person) {
|
|
async savePersonInfo(person) {
|
|
try {
|
|
try {
|
|
const res = await savePerson(person);
|
|
const res = await savePerson(person);
|
|
- if (res.code === 20000) {
|
|
|
|
- console.log("当前人员信息保存:", person);
|
|
|
|
|
|
+ this.response = res;
|
|
|
|
+ if (this.dialogConfig.type == 1) {
|
|
|
|
+ console.log("绑定成功");
|
|
|
|
+ this.bindRecord(person);
|
|
|
|
+ }
|
|
|
|
+ if (this.dialogConfig.type == 2) {
|
|
|
|
+ console.log("解绑成功");
|
|
|
|
+ this.unbindRecord(person);
|
|
}
|
|
}
|
|
|
|
+ } catch (err) {
|
|
|
|
+ console.log(err);
|
|
|
|
+ console.log("绑定失败");
|
|
|
|
+ this.enable = true;
|
|
|
|
+ this.info = err.msg;
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.recognizedNumber = "";
|
|
|
|
+ }, 2000);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ async bindRecord(person) {
|
|
|
|
+ try {
|
|
|
|
+ console.log("绑定记录基础信息:", person);
|
|
|
|
+ const record = {
|
|
|
|
+ field001: person.name, //姓名
|
|
|
|
+ field002: person.typeName, //人员类型
|
|
|
|
+ field003: person.telephone, //联系方式
|
|
|
|
+ field004: person.cardNo, //卡号
|
|
|
|
+ field005: Dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"), //绑卡时间
|
|
|
|
+ field006: person.cause, //进站目的
|
|
|
|
+ pageId: "839895523707068416", //绑卡
|
|
|
|
+ };
|
|
|
|
+ const res = await bindAndUnbindrecord(record);
|
|
|
|
+ console.log("绑定记录反馈信息:", res);
|
|
|
|
+ } catch (err) {
|
|
|
|
+ console.log(err);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ async unbindRecord(person) {
|
|
|
|
+ try {
|
|
|
|
+ console.log("解绑记录基础信息:", person);
|
|
|
|
+ const record = {
|
|
|
|
+ field001: person.name, //姓名
|
|
|
|
+ field002: person.typeName, //人员类型
|
|
|
|
+ field003: person.telephone, //联系方式
|
|
|
|
+ field004: this.unbindNumber, //卡号
|
|
|
|
+ field005: Dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"), //还卡时间
|
|
|
|
+ pageId: "839895640526823424", //还卡
|
|
|
|
+ };
|
|
|
|
+ const res = await bindAndUnbindrecord(record);
|
|
|
|
+ console.log("解绑记录反馈信息:", res);
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.unbindNumber = "";
|
|
|
|
+ }, 500);
|
|
} catch (err) {
|
|
} catch (err) {
|
|
console.log(err);
|
|
console.log(err);
|
|
}
|
|
}
|
|
@@ -344,18 +449,31 @@ export default {
|
|
this.enable = true;
|
|
this.enable = true;
|
|
this.info = "卡片已绑定人员,请换刷卡片";
|
|
this.info = "卡片已绑定人员,请换刷卡片";
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- this.recognizedNumber = "123333333";
|
|
|
|
- }, 2000);
|
|
|
|
|
|
+ this.recognizedNumber = "";
|
|
|
|
+ }, 500);
|
|
} else {
|
|
} else {
|
|
console.log("即将绑定");
|
|
console.log("即将绑定");
|
|
//绑卡逻辑
|
|
//绑卡逻辑
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.handleDeal();
|
|
|
|
+ }, 1000);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.dialogConfig.type == 2) {
|
|
if (this.dialogConfig.type == 2) {
|
|
if (this.person) {
|
|
if (this.person) {
|
|
if (this.person.cardNo && this.person.cardNo.length > 0) {
|
|
if (this.person.cardNo && this.person.cardNo.length > 0) {
|
|
console.log("即将解绑");
|
|
console.log("即将解绑");
|
|
|
|
+ this.enable = false;
|
|
|
|
+ this.info =
|
|
|
|
+ "将卡号为" +
|
|
|
|
+ this.recognizedNumber +
|
|
|
|
+ "卡片,同" +
|
|
|
|
+ this.person.name +
|
|
|
|
+ "人员解除绑定!";
|
|
//退卡逻辑
|
|
//退卡逻辑
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // this.handleDeal();
|
|
|
|
+ // }, 1000);
|
|
} else {
|
|
} else {
|
|
console.log("未绑定人员!");
|
|
console.log("未绑定人员!");
|
|
this.enable = true;
|
|
this.enable = true;
|
|
@@ -363,10 +481,14 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.enable = true;
|
|
this.enable = true;
|
|
this.info = "卡片未绑定人员,请换刷卡片";
|
|
this.info = "卡片未绑定人员,请换刷卡片";
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.recognizedNumber = "";
|
|
|
|
+ }, 500);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleClose() {
|
|
handleClose() {
|
|
|
|
+ this.recognizedNumber = "";
|
|
this.dialogConfig.show = false;
|
|
this.dialogConfig.show = false;
|
|
this.enable = true;
|
|
this.enable = true;
|
|
//this.$store.dispatch('home/setNavActive', this.dialogConfig.title)
|
|
//this.$store.dispatch('home/setNavActive', this.dialogConfig.title)
|
|
@@ -380,9 +502,16 @@ export default {
|
|
if (this.dialogConfig.type == 1) {
|
|
if (this.dialogConfig.type == 1) {
|
|
//绑卡
|
|
//绑卡
|
|
this.dialogConfig.data.cardNo = this.recognizedNumber;
|
|
this.dialogConfig.data.cardNo = this.recognizedNumber;
|
|
|
|
+ this.dialogConfig.data.accessControlIds = [
|
|
|
|
+ "789185403352522752", // 进站识别
|
|
|
|
+ "789185626355277824", // 出站识别
|
|
|
|
+ "833420345783361536",
|
|
|
|
+ "830088938663190528",
|
|
|
|
+ "833426645288230912",
|
|
|
|
+ ];
|
|
|
|
+ console.log("绑定", this.dialogConfig.data);
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- // this.savePersonInfo(this.dialogConfig.data);
|
|
|
|
- console.log("绑定", this.dialogConfig.data);
|
|
|
|
|
|
+ this.savePersonInfo(this.dialogConfig.data);
|
|
}, 200);
|
|
}, 200);
|
|
//回传信息
|
|
//回传信息
|
|
this.$store.dispatch("dialog/setPersonInfo", {
|
|
this.$store.dispatch("dialog/setPersonInfo", {
|
|
@@ -398,18 +527,17 @@ export default {
|
|
if (this.dialogConfig.type == 2) {
|
|
if (this.dialogConfig.type == 2) {
|
|
//解绑
|
|
//解绑
|
|
this.person.cardNo = "";
|
|
this.person.cardNo = "";
|
|
|
|
+ this.unbindNumber = this.recognizedNumber;
|
|
|
|
+ this.person.accessControlIds = [];
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- // this.savePersonInfo(this.person);
|
|
|
|
- console.log("解绑", this.person);
|
|
|
|
|
|
+ this.savePersonInfo(this.person);
|
|
|
|
+ // console.log("解绑", this.person);
|
|
}, 200);
|
|
}, 200);
|
|
- this.enable = true;
|
|
|
|
- this.info = "刷卡识别中。。。请刷卡";
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // this.recognizedNumber = "1231231233";
|
|
|
|
- // }, 2000);
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // this.recognizedNumber = "1423885022";
|
|
|
|
- // }, 2000);
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.recognizedNumber = "";
|
|
|
|
+ this.enable = true;
|
|
|
|
+ this.info = "刷卡识别中。。。请刷卡";
|
|
|
|
+ }, 1000);
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log(error);
|
|
console.log(error);
|
|
@@ -419,12 +547,66 @@ export default {
|
|
// 点击时根据id,动态改变zindex值
|
|
// 点击时根据id,动态改变zindex值
|
|
this.$store.dispatch("dialog/setDialogZIndex", val);
|
|
this.$store.dispatch("dialog/setDialogZIndex", val);
|
|
},
|
|
},
|
|
|
|
+ // 添加触摸事件处理方法
|
|
|
|
+ handleTouchStart(e) {
|
|
|
|
+ if (e.touches.length === 1) {
|
|
|
|
+ this.handleDown({
|
|
|
|
+ clientX: e.touches[0].clientX,
|
|
|
|
+ clientY: e.touches[0].clientY,
|
|
|
|
+ target: e.target,
|
|
|
|
+ });
|
|
|
|
+ e.preventDefault();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ handleTouchMove(e) {
|
|
|
|
+ if (e.touches.length === 1) {
|
|
|
|
+ this.handleMove({
|
|
|
|
+ clientX: e.touches[0].clientX,
|
|
|
|
+ clientY: e.touches[0].clientY,
|
|
|
|
+ });
|
|
|
|
+ e.preventDefault();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ handleTouchEnd() {
|
|
|
|
+ this.handleUp();
|
|
|
|
+ },
|
|
|
|
+ // 修改触摸事件处理方法
|
|
|
|
+ handleTouchStart(e) {
|
|
|
|
+ const target = e.target;
|
|
|
|
+ // 如果是按钮元素,直接触发点击事件
|
|
|
|
+ if (
|
|
|
|
+ target.classList.contains("el-button") ||
|
|
|
|
+ target.closest(".el-button") ||
|
|
|
|
+ target.classList.contains("dialog-close")
|
|
|
|
+ ) {
|
|
|
|
+ target.click();
|
|
|
|
+ e.preventDefault();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (e.touches.length === 1) {
|
|
|
|
+ this.handleDown({
|
|
|
|
+ clientX: e.touches[0].clientX,
|
|
|
|
+ clientY: e.touches[0].clientY,
|
|
|
|
+ target: e.target,
|
|
|
|
+ });
|
|
|
|
+ e.preventDefault();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ beforeDestroy() {
|
|
|
|
+ // 添加触摸事件移除
|
|
|
|
+ this.$el.removeEventListener("touchstart", this.handleTouchStart);
|
|
|
|
+ document.removeEventListener("touchmove", this.handleTouchMove);
|
|
|
|
+ document.removeEventListener("touchend", this.handleTouchEnd);
|
|
|
|
+ // 原有鼠标事件移除...
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
.drag-container {
|
|
.drag-container {
|
|
|
|
+ touch-action: manipulation; /* 优化触摸响应 */
|
|
box-shadow: 0 0 0px rgba(255, 255, 255, 0), 0 0 0px rgba(255, 255, 255, 0);
|
|
box-shadow: 0 0 0px rgba(255, 255, 255, 0), 0 0 0px rgba(255, 255, 255, 0);
|
|
animation: glow 2s infinite;
|
|
animation: glow 2s infinite;
|
|
pointer-events: auto;
|
|
pointer-events: auto;
|
|
@@ -549,7 +731,7 @@ export default {
|
|
.content_info {
|
|
.content_info {
|
|
text-align: center;
|
|
text-align: center;
|
|
font-size: 0.15rem;
|
|
font-size: 0.15rem;
|
|
- margin-top: 60px;
|
|
|
|
|
|
+ margin-top: 20px;
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
::v-deep .el-form-item__label {
|
|
::v-deep .el-form-item__label {
|
|
@@ -584,6 +766,24 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .btn-box {
|
|
|
|
+ .el-button {
|
|
|
|
+ /* 增加按钮触摸区域 */
|
|
|
|
+ min-width: 100px;
|
|
|
|
+ min-height: 60px;
|
|
|
|
+ padding: 15px 25px;
|
|
|
|
+ /* 防止触摸时样式变化 */
|
|
|
|
+ &:active {
|
|
|
|
+ transform: scale(0.98);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .dialog-close {
|
|
|
|
+ /* 增加关闭按钮触摸区域 */
|
|
|
|
+ width: 44px;
|
|
|
|
+ height: 44px;
|
|
|
|
+ padding: 10px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.contentiframe {
|
|
.contentiframe {
|
|
width: 100%;
|
|
width: 100%;
|