|
@@ -0,0 +1,70 @@
|
|
|
+<template>
|
|
|
+ <div class="actionSheet" >
|
|
|
+ <img :src="url" alt="" @mousedown="md" @mouseup="mu" class="qr" />
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+// @ is an alias to /src
|
|
|
+// let sT = 0;
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "Applyreal",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ url: "https://dangjian-web.oss-cn-chengdu.aliyuncs.com/img/qr.png",
|
|
|
+ };
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ document.title = '车险';
|
|
|
+ console.log(window.cmp.sdk)
|
|
|
+ },
|
|
|
+ computed: {},
|
|
|
+ methods: {
|
|
|
+ md() {
|
|
|
+ console.log("---")
|
|
|
+ // sT = Date.now();
|
|
|
+ // let s = window.setTimeout(() => {
|
|
|
+ // window.clearInterval(s);
|
|
|
+ // if (sT === 0) return;
|
|
|
+ this.downimg();
|
|
|
+ // }, 1000);
|
|
|
+ },
|
|
|
+ mu() {
|
|
|
+ console.log("+++")
|
|
|
+ // sT = 0;
|
|
|
+ },
|
|
|
+ downimg() {
|
|
|
+ console.log("长按",window.cmp)
|
|
|
+ window.cmp.dialog.actionSheet(
|
|
|
+ [{ key: 1, name: "操作组item1" }],
|
|
|
+ "取消",
|
|
|
+ function selectedCallback() {
|
|
|
+ //do something with result
|
|
|
+ },
|
|
|
+ function cancelCallback() {
|
|
|
+ //do something with tap cancel button
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
+ },
|
|
|
+ beforeUnmount: function () {},
|
|
|
+ components: {},
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
+.actionSheet{
|
|
|
+ background-image: url('https://djweb.smcic.net/img/cx.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.actionSheet .qr{
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ width: 100%;
|
|
|
+ transform: translateY(-60%)
|
|
|
+}
|
|
|
+</style>
|