feat: 标签组件封装
This commit is contained in:
1 parent
9bac216d7a
commit
34a62d2f3e
37 files changed
+185
-214
No files matched your search
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatQuickAccess.js","sources":["pages/chat/ChatQuickAccess.vue"],"sourcesContent":["<template>\n\t<view class=\"quick-access\">\n\t\t<view class=\"quick-access-scroll\">\n\t\t\t<view class=\"quick-access-item\" v-for=\"(item, index) in itemList\" :key=\"index\" @click=\"sendReply(item.title)\">\n\t\t\t\t<image class=\"quick-access-item-bg\" src=\"/static/quick/quick_icon_bg.png\" mode=\"aspectFill\"></image>\n\t\t\t\t<view class=\"quick-access-item-title\">\n\t\t\t\t\t<image :src=\"item.icon\"></image>\n\t\t\t\t\t<text>{{ item.title }}</text>\n\t\t\t\t</view>\n\t\t\t\t<text class=\"quick-access-item-content\">{{ item.content }}</text>\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script setup>\n\timport { onMounted, ref } from 'vue';\n\tconst itemList = ref([])\n\t\n\tconst emits = defineEmits(['replySent']);\n\t\n\tconst sendReply = (text) => {\n\t\temits('replySent', text); // 向父组件传递数据\n\t}\n\t\n\tonMounted(() => {\n\t\tinitData()\n\t})\n\t\n\tconst initData = () => {\n\t\titemList.value = [\n\t\t\t{\n\t\t\t\ticon: '/static/quick/quick_icon_yuding.png',\n\t\t\t\ttitle: '预定门票',\n\t\t\t\tcontent: '快速预定天沐温泉门票',\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: '/static/quick/quick_icon_find.png',\n\t\t\t\ttitle: '探索发现',\n\t\t\t\tcontent: '亲子、团建等更多玩法',\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: '/static/quick/quick_icon_call.png',\n\t\t\t\ttitle: '呼叫服务',\n\t\t\t\tcontent: '加床、订麻将机...',\n\t\t\t},\n\t\t\t{\n\t\t\t\ticon: '/static/quick/quick_icon_order.png',\n\t\t\t\ttitle: '我的订单',\n\t\t\t\tcontent: '快速查看订单',\n\t\t\t}\n\t\t] \n\t}\n\t\n</script>\n\n<style lang=\"scss\" scoped>\n\t.quick-access {\n\t\twidth: 100%;\n\t\t\n\t\t&-scroll {\n\t\t display: flex;\n\t\t flex-direction: row;\n\t\t overflow-x: auto;\n\t\t white-space: nowrap;\n\t\t -webkit-overflow-scrolling: touch; \n\t\t \n\t\t /* 隐藏滚动条 */\n\t\t scrollbar-width: none; \n\t\t &::-webkit-scrollbar {\n\t\t display: none; \n\t\t }\n\t\t }\n\t\t\n\t\t.quick-access-item {\n\t\t\tflex: 0 0 104px; \n\t\t\tborder-radius: 8px;\n\t\t\tmargin: 4px 4px 8px 4px;\n\t\t\tbox-shadow: 0 2px 5px 0px rgba(0,0,0,0.1);\n\t\t\tpadding: 12px;\n\t\t\tdisplay: inline-flex; \n\t\t\tflex-direction: column;\n\t\t\t\t\t\t\n\t\t\tposition: relative;\n\t\t\t\n\t\t\t&:first-child {\n\t\t\t\tmargin-left: 12px;\n\t\t\t}\n\t\t\t\t\n\t\t\t&:last-child {\n\t\t\t\tmargin-right: 12px;\n\t\t\t}\n\t\t\t\n\t\t\t.quick-access-item-bg {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tz-index: 0;\n\t\t\t\tborder-radius: 8px;\n\t\t\t\twidth: 128px;\n\t\t\t\theight: 56px;\n\t\t\t}\n\t\t\t\n\t\t\t.quick-access-item-title {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tz-index: 1;\n\t\t\t\t\n\t\t\t\timage {\n\t\t\t\t\twidth: 16px;\n\t\t\t\t\theight: 16px;\n\t\t\t\t\tmargin-right: 4px;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttext {\n\t\t\t\t\tfont-family: PingFang SC, PingFang SC;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\tcolor: #201F32;\n\t\t\t\t\tline-height: 16px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t.quick-access-item-content {\n\t\t\t\tz-index: 1;\n\t\t\t\tmargin-top: 4px;\n\t\t\t\tfont-family: PingFang SC, PingFang SC;\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 10px;\n\t\t\t\tcolor: #678CAD;\n\t\t\t\tline-height: 18px;\n\t\t\t}\n\t\t}\n\t}\n\n</style>\n"],"names":["ref","onMounted"],"mappings":";;;;;;;AAiBC,UAAM,WAAWA,cAAG,IAAC,EAAE;AAEvB,UAAM,QAAQ;AAEd,UAAM,YAAY,CAAC,SAAS;AAC3B,YAAM,aAAa,IAAI;AAAA,IACvB;AAEDC,kBAAAA,UAAU,MAAM;AACf,eAAU;AAAA,IACZ,CAAE;AAED,UAAM,WAAW,MAAM;AACtB,eAAS,QAAQ;AAAA,QAChB;AAAA,UACC,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QACT;AAAA,QACD;AAAA,UACC,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QACT;AAAA,QACD;AAAA,UACC,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QACT;AAAA,QACD;AAAA,UACC,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QACT;AAAA,MACD;AAAA,IACD;;;;;;;;;;;;;;;;;;;"}
|
||||
{"version":3,"file":"ChatQuickAccess.js","sources":["pages/chat/ChatQuickAccess.vue"],"sourcesContent":["<template>\r\n\t<view class=\"quick-access\">\r\n\t\t<view class=\"quick-access-scroll\">\r\n\t\t\t<view class=\"quick-access-item\" v-for=\"(item, index) in itemList\" :key=\"index\" @click=\"sendReply(item.title)\">\r\n\t\t\t\t<image class=\"quick-access-item-bg\" src=\"/static/quick/quick_icon_bg.png\" mode=\"aspectFill\"></image>\r\n\t\t\t\t<view class=\"quick-access-item-title\">\r\n\t\t\t\t\t<image :src=\"item.icon\"></image>\r\n\t\t\t\t\t<text>{{ item.title }}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<text class=\"quick-access-item-content\">{{ item.content }}</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport { onMounted, ref } from 'vue';\r\n\tconst itemList = ref([])\r\n\t\r\n\tconst emits = defineEmits(['replySent']);\r\n\t\r\n\tconst sendReply = (text) => {\r\n\t\temits('replySent', text); // 向父组件传递数据\r\n\t}\r\n\t\r\n\tonMounted(() => {\r\n\t\tinitData()\r\n\t})\r\n\t\r\n\tconst initData = () => {\r\n\t\titemList.value = [\r\n\t\t\t{\r\n\t\t\t\ticon: '/static/quick/quick_icon_yuding.png',\r\n\t\t\t\ttitle: '预定门票',\r\n\t\t\t\tcontent: '快速预定天沐温泉门票',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ticon: '/static/quick/quick_icon_find.png',\r\n\t\t\t\ttitle: '探索发现',\r\n\t\t\t\tcontent: '亲子、团建等更多玩法',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ticon: '/static/quick/quick_icon_call.png',\r\n\t\t\t\ttitle: '呼叫服务',\r\n\t\t\t\tcontent: '加床、订麻将机...',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ticon: '/static/quick/quick_icon_order.png',\r\n\t\t\t\ttitle: '我的订单',\r\n\t\t\t\tcontent: '快速查看订单',\r\n\t\t\t}\r\n\t\t] \r\n\t}\r\n\t\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.quick-access {\r\n\t\twidth: 100%;\r\n\t\t\r\n\t\t&-scroll {\r\n\t\t display: flex;\r\n\t\t flex-direction: row;\r\n\t\t overflow-x: auto;\r\n\t\t white-space: nowrap;\r\n\t\t -webkit-overflow-scrolling: touch; \r\n\t\t \r\n\t\t /* 隐藏滚动条 */\r\n\t\t scrollbar-width: none; \r\n\t\t &::-webkit-scrollbar {\r\n\t\t display: none; \r\n\t\t }\r\n\t\t }\r\n\t\t\r\n\t\t.quick-access-item {\r\n\t\t\tflex: 0 0 104px; \r\n\t\t\tborder-radius: 8px;\r\n\t\t\tmargin: 4px 4px 8px 4px;\r\n\t\t\tbox-shadow: 0 2px 5px 0px rgba(0,0,0,0.1);\r\n\t\t\tpadding: 12px;\r\n\t\t\tdisplay: inline-flex; \r\n\t\t\tflex-direction: column;\r\n\t\t\t\t\t\t\r\n\t\t\tposition: relative;\r\n\t\t\t\r\n\t\t\t&:first-child {\r\n\t\t\t\tmargin-left: 12px;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t&:last-child {\r\n\t\t\t\tmargin-right: 12px;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t.quick-access-item-bg {\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\ttop: 0;\r\n\t\t\t\tleft: 0;\r\n\t\t\t\tz-index: 0;\r\n\t\t\t\tborder-radius: 8px;\r\n\t\t\t\twidth: 128px;\r\n\t\t\t\theight: 56px;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t.quick-access-item-title {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tz-index: 1;\r\n\t\t\t\t\r\n\t\t\t\timage {\r\n\t\t\t\t\twidth: 16px;\r\n\t\t\t\t\theight: 16px;\r\n\t\t\t\t\tmargin-right: 4px;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ttext {\r\n\t\t\t\t\tfont-family: PingFang SC, PingFang SC;\r\n\t\t\t\t\tfont-weight: 500;\r\n\t\t\t\t\tfont-size: 12px;\r\n\t\t\t\t\tcolor: #201F32;\r\n\t\t\t\t\tline-height: 16px;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t.quick-access-item-content {\r\n\t\t\t\tz-index: 1;\r\n\t\t\t\tmargin-top: 4px;\r\n\t\t\t\tfont-family: PingFang SC, PingFang SC;\r\n\t\t\t\tfont-weight: 400;\r\n\t\t\t\tfont-size: 10px;\r\n\t\t\t\tcolor: #678CAD;\r\n\t\t\t\tline-height: 18px;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n</style>\r\n"],"names":["ref","onMounted"],"mappings":";;;;;;;AAiBC,UAAM,WAAWA,cAAG,IAAC,EAAE;AAEvB,UAAM,QAAQ;AAEd,UAAM,YAAY,CAAC,SAAS;AAC3B,YAAM,aAAa,IAAI;AAAA,IACvB;AAEDC,kBAAAA,UAAU,MAAM;AACf,eAAU;AAAA,IACZ,CAAE;AAED,UAAM,WAAW,MAAM;AACtB,eAAS,QAAQ;AAAA,QAChB;AAAA,UACC,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QACT;AAAA,QACD;AAAA,UACC,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QACT;AAAA,QACD;AAAA,UACC,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QACT;AAAA,QACD;AAAA,UACC,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QACT;AAAA,MACD;AAAA,IACD;;;;;;;;;;;;;;;;;;;"}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script setup>\nimport { onLaunch, onShow, onHide } from \"@dcloudio/uni-app\";\n\nonLaunch(() => {\n console.log(\"App Launch\");\n});\n\nonShow(() => {\n console.log(\"App Show\");\n});\n\nonHide(() => {\n console.log(\"App Hide\");\n});\n</script>\n\n<style lang=\"scss\">\n/* 添加全局样式 */\npage,\nbody,\n#app {\n font-family: PingFang SC, PingFang SC;\n height: 100vh;\n width: 100vw;\n}\n</style>\n","import App from './App'\n\n// #ifndef VUE3\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()\n// #endif\n\n// #ifdef VUE3\nimport { createSSRApp } from 'vue'\nexport function createApp() {\n const app = createSSRApp(App)\n return {\n app\n }\n}\n// #endif"],"names":["onLaunch","uni","onShow","onHide","createSSRApp","App"],"mappings":";;;;;;;;;;AAGAA,kBAAAA,SAAS,MAAM;AACbC,oBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,IAC1B,CAAC;AAEDC,kBAAAA,OAAO,MAAM;AACXD,oBAAAA,MAAA,MAAA,OAAA,gBAAY,UAAU;AAAA,IACxB,CAAC;AAEDE,kBAAAA,OAAO,MAAM;AACXF,oBAAAA,MAAA,MAAA,OAAA,iBAAY,UAAU;AAAA,IACxB,CAAC;;;;;ACEM,SAAS,YAAY;AAC1B,QAAM,MAAMG,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script setup>\r\nimport { onLaunch, onShow, onHide } from \"@dcloudio/uni-app\";\r\n\r\nonLaunch(() => {\r\n console.log(\"App Launch\");\r\n});\r\n\r\nonShow(() => {\r\n console.log(\"App Show\");\r\n});\r\n\r\nonHide(() => {\r\n console.log(\"App Hide\");\r\n});\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n/* 添加全局样式 */\r\npage,\r\nbody,\r\n#app {\r\n font-family: PingFang SC, PingFang SC;\r\n height: 100vh;\r\n width: 100vw;\r\n}\r\n</style>\r\n","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport { createSSRApp } from 'vue'\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n return {\r\n app\r\n }\r\n}\r\n// #endif"],"names":["onLaunch","uni","onShow","onHide","createSSRApp","App"],"mappings":";;;;;;;;;;AAGAA,kBAAAA,SAAS,MAAM;AACbC,oBAAAA,MAAY,MAAA,OAAA,gBAAA,YAAY;AAAA,IAC1B,CAAC;AAEDC,kBAAAA,OAAO,MAAM;AACXD,oBAAAA,MAAA,MAAA,OAAA,gBAAY,UAAU;AAAA,IACxB,CAAC;AAEDE,kBAAAA,OAAO,MAAM;AACXF,oBAAAA,MAAA,MAAA,OAAA,iBAAY,UAAU;AAAA,IACxB,CAAC;;;;;ACEM,SAAS,YAAY;AAC1B,QAAM,MAAMG,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"assets.js","sources":["static/quick/quick_icon_bg.png","static/logo.png","static/input_voice_icon.png","static/input_send_icon.png","static/hello_xiaomu_icon@2x.png","static/hello_logo_icon@2x.png","static/top_bg_icon.png","static/drawer_icon.png","static/wave_icon.png","static/test/mk_img_1.png","components/OrderCardItem/images/icon_order.png"],"sourcesContent":["export default \"__VITE_ASSET__ff753b35__\"","export default \"__VITE_ASSET__46719607__\"","export default \"__VITE_ASSET__76f969d6__\"","export default \"__VITE_ASSET__e6bd7a29__\"","export default \"__VITE_ASSET__2eba501c__\"","export default \"__VITE_ASSET__51733f19__\"","export default \"__VITE_ASSET__ead16fdc__\"","export default \"__VITE_ASSET__a9576f2b__\"","export default \"__VITE_ASSET__d889f8a8__\"","export default \"__VITE_ASSET__c4efe7df__\"","export default \"__VITE_ASSET__911ae60f__\""],"names":[],"mappings":";AAAA,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,aAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,aAAA;ACAf,MAAe,aAAA;;;;;;;;;;;;"}
|
||||
{"version":3,"file":"assets.js","sources":["static/quick/quick_icon_bg.png","static/logo.png","static/input_voice_icon.png","static/input_send_icon.png","static/hello_xiaomu_icon@2x.png","static/hello_logo_icon@2x.png","static/top_bg_icon.png","static/drawer_icon.png","static/wave_icon.png","static/test/mk_img_1.png"],"sourcesContent":["export default \"__VITE_ASSET__ff753b35__\"","export default \"__VITE_ASSET__46719607__\"","export default \"__VITE_ASSET__76f969d6__\"","export default \"__VITE_ASSET__e6bd7a29__\"","export default \"__VITE_ASSET__2eba501c__\"","export default \"__VITE_ASSET__51733f19__\"","export default \"__VITE_ASSET__ead16fdc__\"","export default \"__VITE_ASSET__a9576f2b__\"","export default \"__VITE_ASSET__d889f8a8__\"","export default \"__VITE_ASSET__c4efe7df__\""],"names":[],"mappings":";AAAA,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,aAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,eAAA;ACAf,MAAe,aAAA;ACAf,MAAe,aAAA;;;;;;;;;;;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"vendor.js","sources":["E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@vue/shared/dist/shared.esm-bundler.js","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-shared/dist/uni-shared.es.js","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-mp-weixin/dist/uni.api.esm.js","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-console/dist/mp.esm.js","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-mp-weixin/dist/uni.mp.esm.js","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-app/dist/uni-app.es.js"],"sourcesContent":["/**\n* @vue/shared v3.4.21\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nfunction makeMap(str, expectsLowerCase) {\n const set = new Set(str.split(\",\"));\n return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);\n}\n\nconst EMPTY_OBJ = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze({}) : {};\nconst EMPTY_ARR = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze([]) : [];\nconst NOOP = () => {\n};\nconst NO = () => false;\nconst isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter\n(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);\nconst isModelListener = (key) => key.startsWith(\"onUpdate:\");\nconst extend = Object.assign;\nconst remove = (arr, el) => {\n const i = arr.indexOf(el);\n if (i > -1) {\n arr.splice(i, 1);\n }\n};\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key);\nconst isArray = Array.isArray;\nconst isMap = (val) => toTypeString(val) === \"[object Map]\";\nconst isSet = (val) => toTypeString(val) === \"[object Set]\";\nconst isDate = (val) => toTypeString(val) === \"[object Date]\";\nconst isRegExp = (val) => toTypeString(val) === \"[object RegExp]\";\nconst isFunction = (val) => typeof val === \"function\";\nconst isString = (val) => typeof val === \"string\";\nconst isSymbol = (val) => typeof val === \"symbol\";\nconst isObject = (val) => val !== null && typeof val === \"object\";\nconst isPromise = (val) => {\n return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);\n};\nconst objectToString = Object.prototype.toString;\nconst toTypeString = (value) => objectToString.call(value);\nconst toRawType = (value) => {\n return toTypeString(value).slice(8, -1);\n};\nconst isPlainObject = (val) => toTypeString(val) === \"[object Object]\";\nconst isIntegerKey = (key) => isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key;\nconst isReservedProp = /* @__PURE__ */ makeMap(\n // the leading comma is intentional so empty string \"\" is also included\n \",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted\"\n);\nconst isBuiltInDirective = /* @__PURE__ */ makeMap(\n \"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo\"\n);\nconst cacheStringFunction = (fn) => {\n const cache = /* @__PURE__ */ Object.create(null);\n return (str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n};\nconst camelizeRE = /-(\\w)/g;\nconst camelize = cacheStringFunction((str) => {\n return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n});\nconst hyphenateRE = /\\B([A-Z])/g;\nconst hyphenate = cacheStringFunction(\n (str) => str.replace(hyphenateRE, \"-$1\").toLowerCase()\n);\nconst capitalize = cacheStringFunction((str) => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n});\nconst toHandlerKey = cacheStringFunction((str) => {\n const s = str ? `on${capitalize(str)}` : ``;\n return s;\n});\nconst hasChanged = (value, oldValue) => !Object.is(value, oldValue);\nconst invokeArrayFns = (fns, arg) => {\n for (let i = 0; i < fns.length; i++) {\n fns[i](arg);\n }\n};\nconst def = (obj, key, value) => {\n Object.defineProperty(obj, key, {\n configurable: true,\n enumerable: false,\n value\n });\n};\nconst looseToNumber = (val) => {\n const n = parseFloat(val);\n return isNaN(n) ? val : n;\n};\nconst toNumber = (val) => {\n const n = isString(val) ? Number(val) : NaN;\n return isNaN(n) ? val : n;\n};\nlet _globalThis;\nconst getGlobalThis = () => {\n return _globalThis || (_globalThis = typeof globalThis !== \"undefined\" ? globalThis : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : {});\n};\nconst identRE = /^[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*$/;\nfunction genPropsAccessExp(naLine truncated
|
||||
{"version":3,"file":"vendor.js","sources":["C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@vue/shared/dist/shared.esm-bundler.js","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-shared/dist/uni-shared.es.js","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-mp-weixin/dist/uni.api.esm.js","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-console/dist/mp.esm.js","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-mp-weixin/dist/uni.mp.esm.js","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-app/dist/uni-app.es.js"],"sourcesContent":["/**\n* @vue/shared v3.4.21\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nfunction makeMap(str, expectsLowerCase) {\n const set = new Set(str.split(\",\"));\n return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);\n}\n\nconst EMPTY_OBJ = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze({}) : {};\nconst EMPTY_ARR = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze([]) : [];\nconst NOOP = () => {\n};\nconst NO = () => false;\nconst isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter\n(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);\nconst isModelListener = (key) => key.startsWith(\"onUpdate:\");\nconst extend = Object.assign;\nconst remove = (arr, el) => {\n const i = arr.indexOf(el);\n if (i > -1) {\n arr.splice(i, 1);\n }\n};\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key);\nconst isArray = Array.isArray;\nconst isMap = (val) => toTypeString(val) === \"[object Map]\";\nconst isSet = (val) => toTypeString(val) === \"[object Set]\";\nconst isDate = (val) => toTypeString(val) === \"[object Date]\";\nconst isRegExp = (val) => toTypeString(val) === \"[object RegExp]\";\nconst isFunction = (val) => typeof val === \"function\";\nconst isString = (val) => typeof val === \"string\";\nconst isSymbol = (val) => typeof val === \"symbol\";\nconst isObject = (val) => val !== null && typeof val === \"object\";\nconst isPromise = (val) => {\n return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);\n};\nconst objectToString = Object.prototype.toString;\nconst toTypeString = (value) => objectToString.call(value);\nconst toRawType = (value) => {\n return toTypeString(value).slice(8, -1);\n};\nconst isPlainObject = (val) => toTypeString(val) === \"[object Object]\";\nconst isIntegerKey = (key) => isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key;\nconst isReservedProp = /* @__PURE__ */ makeMap(\n // the leading comma is intentional so empty string \"\" is also included\n \",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted\"\n);\nconst isBuiltInDirective = /* @__PURE__ */ makeMap(\n \"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo\"\n);\nconst cacheStringFunction = (fn) => {\n const cache = /* @__PURE__ */ Object.create(null);\n return (str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n};\nconst camelizeRE = /-(\\w)/g;\nconst camelize = cacheStringFunction((str) => {\n return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n});\nconst hyphenateRE = /\\B([A-Z])/g;\nconst hyphenate = cacheStringFunction(\n (str) => str.replace(hyphenateRE, \"-$1\").toLowerCase()\n);\nconst capitalize = cacheStringFunction((str) => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n});\nconst toHandlerKey = cacheStringFunction((str) => {\n const s = str ? `on${capitalize(str)}` : ``;\n return s;\n});\nconst hasChanged = (value, oldValue) => !Object.is(value, oldValue);\nconst invokeArrayFns = (fns, arg) => {\n for (let i = 0; i < fns.length; i++) {\n fns[i](arg);\n }\n};\nconst def = (obj, key, value) => {\n Object.defineProperty(obj, key, {\n configurable: true,\n enumerable: false,\n value\n });\n};\nconst looseToNumber = (val) => {\n const n = parseFloat(val);\n return isNaN(n) ? val : n;\n};\nconst toNumber = (val) => {\n const n = isString(val) ? Number(val) : NaN;\n return isNaN(n) ? val : n;\n};\nlet _globalThis;\nconst getGlobalThis = () => {\n return _globalThis || (_globalThis = typeof globalThis !== \"undefined\" ? globalThis : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : {});\n};\nconst identRE = /^[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*$/;\nfunction genPropsAccessExp(naLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["components/TagsGroup/index.vue","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL2NvbXBvbmVudHMvVGFnc0dyb3VwL2luZGV4LnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"tags-group\">\r\n <view class=\"tag-item\" v-for=\"(tag, index) in tags\" :key=\"index\">\r\n {{ tag }}\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script setup>\r\nconst tags = [\r\n '门票套餐',\r\n '民俗活动',\r\n '车程路况'\r\n];\r\n</script>\r\n\r\n<style scoped>\r\n@import './styles/index.scss';\r\n</style>","import Component from 'D:/www/YGChatCS/components/TagsGroup/index.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;AASA,UAAM,OAAO;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,IACF;;;;;;;;;;;;;;ACZA,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatModel.js","sources":["model/ChatModel.ts"],"sourcesContent":["\nexport enum MessageRole {\n\tAI = \"AI\",\n\tME = \"ME\",\n\tOTHER = \"OTHER\"\n}\n\nexport enum MessageType {\n\tTEXT = 'TEXT',\n\tIMAGE = 'IMAGE'\n}\n\n\n\nexport interface TextContent {\n type: MessageType;\n text: string;\n}\n\nexport interface ImageContent {\n type: MessageType;\n url: string;\n}\n\nexport type MessageContent = TextContent | ImageContent;\n\nexport interface ChatModel {\n\tmsgId: string;\n\tmsgType: MessageRole;\n\tmsg: string;\n\tmsgContent?: MessageContent;\n}\n\n\n\n"],"names":["MessageRole","MessageType"],"mappings":";AACY,IAAA,gCAAAA,iBAAL;AACNA,eAAA,IAAK,IAAA;AACLA,eAAA,IAAK,IAAA;AACLA,eAAA,OAAQ,IAAA;AAHGA,SAAAA;AAAA,GAAA,eAAA,CAAA,CAAA;AAMA,IAAA,gCAAAC,iBAAL;AACNA,eAAA,MAAO,IAAA;AACPA,eAAA,OAAQ,IAAA;AAFGA,SAAAA;AAAA,GAAA,eAAA,CAAA,CAAA;;;"}
|
||||
{"version":3,"file":"ChatModel.js","sources":["model/ChatModel.ts"],"sourcesContent":["\r\nexport enum MessageRole {\r\n\tAI = \"AI\",\r\n\tME = \"ME\",\r\n\tOTHER = \"OTHER\"\r\n}\r\n\r\nexport enum MessageType {\r\n\tTEXT = 'TEXT',\r\n\tIMAGE = 'IMAGE'\r\n}\r\n\r\n\r\n\r\nexport interface TextContent {\r\n type: MessageType;\r\n text: string;\r\n}\r\n\r\nexport interface ImageContent {\r\n type: MessageType;\r\n url: string;\r\n}\r\n\r\nexport type MessageContent = TextContent | ImageContent;\r\n\r\nexport interface ChatModel {\r\n\tmsgId: string;\r\n\tmsgType: MessageRole;\r\n\tmsg: string;\r\n\tmsgContent?: MessageContent;\r\n}\r\n\r\n\r\n\r\n"],"names":["MessageRole","MessageType"],"mappings":";AACY,IAAA,gCAAAA,iBAAL;AACNA,eAAA,IAAK,IAAA;AACLA,eAAA,IAAK,IAAA;AACLA,eAAA,OAAQ,IAAA;AAHGA,SAAAA;AAAA,GAAA,eAAA,CAAA,CAAA;AAMA,IAAA,gCAAAC,iBAAL;AACNA,eAAA,MAAO,IAAA;AACPA,eAAA,OAAQ,IAAA;AAFGA,SAAAA;AAAA,GAAA,eAAA,CAAA,CAAA;;;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatCardAI.js","sources":["E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0Q2FyZEFJLnZ1ZQ"],"sourcesContent":["import Component from 'D:/YGChatCS/pages/chat/ChatCardAI.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"ChatCardAI.js","sources":["C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL2NoYXQvQ2hhdENhcmRBSS52dWU"],"sourcesContent":["import Component from 'D:/www/YGChatCS/pages/chat/ChatCardAI.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatCardMine.js","sources":["E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0Q2FyZE1pbmUudnVl"],"sourcesContent":["import Component from 'D:/YGChatCS/pages/chat/ChatCardMine.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"ChatCardMine.js","sources":["C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL2NoYXQvQ2hhdENhcmRNaW5lLnZ1ZQ"],"sourcesContent":["import Component from 'D:/www/YGChatCS/pages/chat/ChatCardMine.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatMainList.js","sources":["pages/chat/ChatMainList.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0TWFpbkxpc3QudnVl"],"sourcesContent":["<template>\n <view class=\"chat-container\" @touchend=\"handleTouchEnd\">\n <!-- 顶部的背景 -->\n <chat-top-bg-img class=\"chat-container-bg\"></chat-top-bg-img>\n\n <!-- 顶部自定义导航栏 -->\n <view\n class=\"nav-bar-container\"\n :style=\"{\n paddingTop: statusBarHeight + 'px',\n backgroundColor: navBgColor,\n }\"\n >\n <chat-top-nav-bar @openDrawer=\"openDrawer\"></chat-top-nav-bar>\n </view>\n\n <view class=\"chat-container-msg-list\">\n <!-- logo栏 -->\n <chat-top-banner class=\"chat-container-top-bannar\"></chat-top-banner>\n\n <!-- 消息列表(可滚动区域) -->\n <scroll-view\n scroll-y\n :scroll-into-view=\"lastMsgId\"\n :scroll-with-animation=\"true\"\n class=\"area-msg-list\"\n >\n <view style=\"padding: 6px 12px\">\n <OneFeelMK001></OneFeelMK001>\n </view>\n <view style=\"padding: 6px 12px\">\n <OneFeelMK001></OneFeelMK001>\n </view>\n <view style=\"padding: 6px 12px\">\n <OneFeelMK001></OneFeelMK001>\n </view>\n\n <OrderCardItem />\n\n <view\n class=\"area-msg-list-content\"\n v-for=\"item in chatMsgList\"\n :key=\"item.msgId\"\n :id=\"item.msgId\"\n >\n <template v-if=\"item.msgType === MessageRole.AI\">\n <ChatCardAI class=\"message-item message-item-ai\" :text=\"item.msg\">\n <image\n v-if=\"\n item.msgContent && item.msgContent.type === MessageType.IMAGE\n \"\n src=\"/static/logo.png\"\n style=\"width: 100px; height: 100px\"\n ></image>\n <OneFeelMK001></OneFeelMK001>\n </ChatCardAI>\n </template>\n\n <template v-else-if=\"item.msgType === MessageRole.ME\">\n <ChatCardMine\n class=\"message-item message-item-mine\"\n :text=\"item.msg\"\n >\n </ChatCardMine>\n </template>\n <template v-else>\n <text class=\"message-item message-item-other\">{{ item.msg }}</text>\n </template>\n </view>\n\n <!-- 底部锚点(用于滚动到底部) -->\n <view :id=\"lastMsgId\"></view>\n </scroll-view>\n\n <!-- 输入框区域 -->\n <view class=\"footer-area\">\n <ChatMoreTips @replySent=\"handleReply\"></ChatMoreTips>\n <ChatQuickAccess @replySent=\"handleReply\"></ChatQuickAccess>\n\n <view class=\"area-input\">\n <!-- 发送语音 -->\n <view class=\"input-container-voice\">\n <image src=\"/static/input_voice_icon.png\"></image>\n </view>\n <!-- 输入框 -->\n <textarea\n class=\"textarea\"\n type=\"text\"\n placeholder=\"快速订票,呼叫服务\"\n cursor-spacing=\"65\"\n confirm-type=\"done\"\n v-model=\"inputMessage\"\n @confirm=\"sendMessage\"\n @touchend=\"handleNoHideKeyboard\"\n :confirm-hold=\"true\"\n auto-height\n :show-confirm-bar=\"false\"\n :hold-keyboard=\"holdKeyboard\"\n maxlength=\"300\"\n />\n <view class=\"input-container-send\" @click=\"sendMessage\">\n <image src=\"/static/input_send_icon.png\"></image>\n </view>\n </view>\n </view>\n </view>\n </view>\n</template>\n\n<script setup lang=\"ts\">\nimport { onMounted, getCurrentInstance, nextTick } from \"vue\";\nimport { ref, watch } from \"vue\";\nimport { defineEmits } from \"vue\";\nimport { onLoad } from \"@dcloudio/uni-app\";\nimport ChatTopBanner from \"./ChatTopBanner.vue\";\nimport ChatTopBgImg from \"./ChatTopBgImg.vue\";\nimport ChatTopNavBar from \"./ChatTopNavBar.vue\";\nimport ChatCardAI from \"./ChatCardAI.vue\";\nimport ChatCardMine from \"./ChatCardMine.vue\";\nimport ChatQuickAccess from \"./ChatQuickAccess.vue\";\nimport ChatMoreTips from \"./ChatMoreTips.vue\";\nimport { MessageRole, ChatModel, MessageType } from \"../../model/ChatModel\";\nimport OneFeelMK001 from \"../module/OneFeelMK001.vue\";\nimport OrderCardItem from \"@/components/OrderCardItem/index.vue\";\n\nconst instance = getCurrentInstance(); // 获取当前组件实例\n\n// 导航栏相关\nconst statusBarHeight = ref(20);\nconst navBgColor = ref(\"rgba(66, 173, 249, 0)\");\nconst navOpacity = ref(0);\n\nconst timer = ref(null);\nconst holdKeyboard = ref(false); // focus时,点击页面的时候不收起键盘\nconst holdKeyboardFlag = ref(true); // 是否在键盘弹出,点击界面时关闭键盘\n\nconst chatMsgLine truncated
|
||||
{"version":3,"file":"ChatMainList.js","sources":["pages/chat/ChatMainList.vue","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL2NoYXQvQ2hhdE1haW5MaXN0LnZ1ZQ"],"sourcesContent":["<template>\r\n\t<view class=\"chat-container\" @touchend=\"handleTouchEnd\">\r\n\t\t<!-- 顶部的背景 -->\r\n\t\t<chat-top-bg-img class=\"chat-container-bg\"></chat-top-bg-img>\r\n\t\t\r\n\t\t<!-- 顶部自定义导航栏 -->\r\n\t\t<view class=\"nav-bar-container\" :style=\"{\r\n\t\t paddingTop: statusBarHeight + 'px',\r\n\t\t backgroundColor: navBgColor,\r\n\t\t }\">\r\n\t\t\t<chat-top-nav-bar @openDrawer=\"openDrawer\"></chat-top-nav-bar>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"chat-container-msg-list\">\r\n\t\t\t<!-- logo栏 -->\r\n\t\t\t<chat-top-banner class=\"chat-container-top-bannar\"></chat-top-banner>\r\n\t\t\t\r\n\t\t\t<!-- 消息列表(可滚动区域) -->\r\n\t\t\t<scroll-view\r\n\t\t\t scroll-y\r\n\t\t\t :scroll-into-view=\"lastMsgId\"\r\n\t\t\t :scroll-with-animation=\"true\"\r\n\t\t\t class=\"area-msg-list\"\r\n\t\t\t>\r\n\r\n\t\t\t<TagsGroup />\r\n\t\t\t\r\n\t\t\t<view style=\"padding: 6px 12px;\">\r\n\t\t\t\t<OneFeelMK001></OneFeelMK001>\r\n\t\t\t</view>\r\n\t\t\t<view style=\"padding: 6px 12px;\">\r\n\t\t\t\t<OneFeelMK001></OneFeelMK001>\r\n\t\t\t</view>\r\n\t\t\t<view style=\"padding: 6px 12px;\">\r\n\t\t\t\t<OneFeelMK001></OneFeelMK001>\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t <view class=\"area-msg-list-content\" v-for=\"item in chatMsgList\" :key=\"item.msgId\" :id=\"item.msgId\">\r\n\t\t\t\t <template v-if=\"item.msgType === MessageRole.AI\">\r\n\t\t\t\t\t <ChatCardAI class=\"message-item message-item-ai\" :text=\"item.msg\"> \r\n\t\t\t\t\t \t<image v-if=\"item.msgContent && item.msgContent.type === MessageType.IMAGE\" src=\"/static/logo.png\" style=\"width: 100px;height: 100px;\"></image>\r\n\t\t\t\t\t\t<OneFeelMK001></OneFeelMK001>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t </ChatCardAI>\t\t\t \r\n\t\t\t\t </template>\r\n\t\t\t\t \r\n\t\t\t\t <template v-else-if=\"item.msgType === MessageRole.ME\">\r\n\t\t\t\t\t <ChatCardMine class=\"message-item message-item-mine\" :text=\"item.msg\">\r\n\t\t\t\t\t </ChatCardMine> \r\n\t\t\t\t </template>\r\n\t\t\t\t <template v-else>\r\n\t\t\t\t\t <text class=\"message-item message-item-other\">{{item.msg}}</text>\r\n\t\t\t\t </template>\t \r\n\t\t\t </view>\r\n\t\t\t <!-- 底部锚点(用于滚动到底部) -->\r\n\t\t\t <view :id=\"lastMsgId\"></view>\r\n\t\t\t</scroll-view>\r\n\t\t\t\t\r\n\t\t\t<!-- 输入框区域 -->\r\n\t\t\t<view class=\"footer-area\">\r\n\t\t\t\t<ChatMoreTips @replySent=\"handleReply\"></ChatMoreTips>\r\n\t\t\t\t<ChatQuickAccess @replySent=\"handleReply\"></ChatQuickAccess>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"area-input\">\r\n\t\t\t\t <!-- 发送语音 -->\r\n\t\t\t\t <view class=\"input-container-voice\">\r\n\t\t\t\t \t<image src='/static/input_voice_icon.png'></image>\r\n\t\t\t\t </view>\r\n\t\t\t\t <!-- 输入框 -->\r\n\t\t\t\t <textarea\r\n\t\t\t\t class=\"textarea\"\r\n\t\t\t\t type=\"text\"\r\n\t\t\t\t\tplaceholder=\"快速订票,呼叫服务\"\r\n\t\t\t\t cursor-spacing=\"65\"\r\n\t\t\t\t confirm-type='done'\r\n\t\t\t\t v-model=\"inputMessage\"\r\n\t\t\t\t @confirm=\"sendMessage\"\r\n\t\t\t\t @touchend=\"handleNoHideKeyboard\"\r\n\t\t\t\t :confirm-hold=\"true\"\r\n\t\t\t\t auto-height\r\n\t\t\t\t :show-confirm-bar='false'\r\n\t\t\t\t :hold-keyboard=\"holdKeyboard\"\r\n\t\t\t\t maxlength=\"300\"\r\n\t\t\t\t />\r\n\t\t\t\t <view class=\"input-container-send\" @click=\"sendMessage\">\r\n\t\t\t\t \t<image src='/static/input_send_icon.png'></image>\r\n\t\t\t\t </view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\n\timport { onMounted, getCurrentInstance, nextTick } from 'vue'\r\n\timport { ref, watch } from 'vue'\r\n\timport { defineEmits } from 'vue'\r\n\timport { onLoad } from '@dcloudio/uni-app';\r\n\timport ChatTopBanner from './ChatTopBanner.vue';\r\n\timport ChatTopBgImg from './ChatTopBgImg.vue';\r\n\timport ChatTopNavBar from './ChatTopNavBar.vue';\r\n\timport ChatCardAI from './ChatCardAI.vue';\r\n\timport ChatCardMine from './ChatCardMine.vue';\r\n\timport ChatQuickAccess from './ChatQuickAccess.vue';\r\n\timport ChatMoreTips from './ChatMoreTips.vue';\r\n\t\r\n\timport { MessageRole, ChatModel, MessageType } from '../../model/ChatModel';\r\n\t\r\n\timport OneFeelMK001 from '../module/OneFeelMK001.vue';\r\n\timport TagsGroup from '@/components/TagsGroup/index.vue'\r\n\t\r\n\t\r\n\tconst instance = getCurrentInstance(); // 获取当前组件实例\r\n\t\r\n\t// 导航栏相关\r\n\tconst statusBarHeight = ref(20);\r\n\tconst navBgColor = ref('rgba(66, 173, 249, 0)');\r\n\tconst navOpacity = ref(0);\r\n\r\n\tconst timer = ref(null)\r\n\tconst holdKeyboard = ref(false) // focus时,点击页面的时候不收起键盘\r\n\tconst holdLine truncated
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatMoreTips.js","sources":["pages/chat/ChatMoreTips.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0TW9yZVRpcHMudnVl"],"sourcesContent":["<template>\n\t<view class=\"more-tips\">\n\t\t<view class=\"more-tips-scroll\">\n\t\t\t<view class=\"more-tips-item\" v-for=\"(item, index) in itemList\" :key=\"index\">\n\t\t\t\t<text class=\"more-tips-item-title\" @click=\"sendReply(item.title)\">{{ item.title }}</text>\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script setup>\n\timport { onMounted, ref } from 'vue';\n\tconst itemList = ref([])\n\tconst emits = defineEmits(['replySent']);\n\n\tconst sendReply = (text) => {\n\t\temits('replySent', text); // 向父组件传递数据\n\t}\n\t\n\tonMounted(() => {\n\t\tinitData()\n\t})\n\t\n\tconst initData = () => {\n\t\titemList.value = [\n\t\t\t{\n\t\t\t\ttitle: '定温泉票',\n\t\t\t},\n\t\t\t{\n\t\t\t\ttitle: '定酒店',\n\t\t\t},\n\t\t\t{\n\t\t\t\ttitle: '优惠套餐',\n\t\t\t},\n\t\t\t{\n\t\t\t\ttitle: '亲子玩法',\n\t\t\t},\n\t\t\t{\n\t\t\t\ttitle: '了解交通',\n\t\t\t},\n\t\t\t{\n\t\t\t\ttitle: '看看酒店',\n\t\t\t},\n\t\t\t{\n\t\t\t\ttitle: '看看美食',\n\t\t\t}\n\t\t] \n\t}\n\t\n</script>\n\n<style lang=\"scss\" scoped>\n\t.more-tips {\n\t\twidth: 100%;\n\t\t\n\t\t&-scroll {\n\t\t display: flex;\n\t\t flex-direction: row;\n\t\t overflow-x: auto;\n\t\t white-space: nowrap;\n\t\t -webkit-overflow-scrolling: touch; \n\t\t \n\t\t /* 隐藏滚动条 */\n\t\t scrollbar-width: none; \n\t\t &::-webkit-scrollbar {\n\t\t display: none; \n\t\t }\n\t\t }\n\t\t\n\t\t.more-tips-item {\n\t\t\tborder-radius: 8px;\n\t\t\tmargin: 4px;\n\t\t\tbox-shadow: 0 2px 5px 0px rgba(0,0,0,0.1);\n\t\t\tbackground-color: #FFFFFF;\n\t\t\tpadding: 2px 12px;\n\t\t\tdisplay: flex; \n\t\t\tflex-direction: column;\n\t\t\tmin-width: 46px;\n\t\t\t\n\t\t\t&:first-child {\n\t\t\t\tmargin-left: 12px;\n\t\t\t}\n\t\t\t\t\n\t\t\t&:last-child {\n\t\t\t\tmargin-right: 12px;\n\t\t\t}\n\t\t\t\n\t\t\t.more-tips-item-title {\n\t\t\t\tfont-family: PingFang SC, PingFang SC;\n\t\t\t\tfont-weight: 500;\n\t\t\t\tfont-size: 12px;\n\t\t\t\tcolor: #00A6FF;\n\t\t\t\tline-height: 24px;\n\t\t\t\ttext-align: center;\n\t\t\t}\n\t\t}\n\t}\n</style>\n","import Component from 'D:/YGChatCS/pages/chat/ChatMoreTips.vue'\nwx.createComponent(Component)"],"names":["ref","onMounted"],"mappings":";;;;;;AAYC,UAAM,WAAWA,cAAG,IAAC,EAAE;AACvB,UAAM,QAAQ;AAEd,UAAM,YAAY,CAAC,SAAS;AAC3B,YAAM,aAAa,IAAI;AAAA,IACvB;AAEDC,kBAAAA,UAAU,MAAM;AACf,eAAU;AAAA,IACZ,CAAE;AAED,UAAM,WAAW,MAAM;AACtB,eAAS,QAAQ;AAAA,QAChB;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,MACD;AAAA,IACD;;;;;;;;;;;;;;;AC9CF,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"ChatMoreTips.js","sources":["pages/chat/ChatMoreTips.vue","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL2NoYXQvQ2hhdE1vcmVUaXBzLnZ1ZQ"],"sourcesContent":["<template>\r\n\t<view class=\"more-tips\">\r\n\t\t<view class=\"more-tips-scroll\">\r\n\t\t\t<view class=\"more-tips-item\" v-for=\"(item, index) in itemList\" :key=\"index\">\r\n\t\t\t\t<text class=\"more-tips-item-title\" @click=\"sendReply(item.title)\">{{ item.title }}</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport { onMounted, ref } from 'vue';\r\n\tconst itemList = ref([])\r\n\tconst emits = defineEmits(['replySent']);\r\n\r\n\tconst sendReply = (text) => {\r\n\t\temits('replySent', text); // 向父组件传递数据\r\n\t}\r\n\t\r\n\tonMounted(() => {\r\n\t\tinitData()\r\n\t})\r\n\t\r\n\tconst initData = () => {\r\n\t\titemList.value = [\r\n\t\t\t{\r\n\t\t\t\ttitle: '定温泉票',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttitle: '定酒店',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttitle: '优惠套餐',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttitle: '亲子玩法',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttitle: '了解交通',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttitle: '看看酒店',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttitle: '看看美食',\r\n\t\t\t}\r\n\t\t] \r\n\t}\r\n\t\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.more-tips {\r\n\t\twidth: 100%;\r\n\t\t\r\n\t\t&-scroll {\r\n\t\t display: flex;\r\n\t\t flex-direction: row;\r\n\t\t overflow-x: auto;\r\n\t\t white-space: nowrap;\r\n\t\t -webkit-overflow-scrolling: touch; \r\n\t\t \r\n\t\t /* 隐藏滚动条 */\r\n\t\t scrollbar-width: none; \r\n\t\t &::-webkit-scrollbar {\r\n\t\t display: none; \r\n\t\t }\r\n\t\t }\r\n\t\t\r\n\t\t.more-tips-item {\r\n\t\t\tborder-radius: 8px;\r\n\t\t\tmargin: 4px;\r\n\t\t\tbox-shadow: 0 2px 5px 0px rgba(0,0,0,0.1);\r\n\t\t\tbackground-color: #FFFFFF;\r\n\t\t\tpadding: 2px 12px;\r\n\t\t\tdisplay: flex; \r\n\t\t\tflex-direction: column;\r\n\t\t\tmin-width: 46px;\r\n\t\t\t\r\n\t\t\t&:first-child {\r\n\t\t\t\tmargin-left: 12px;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t&:last-child {\r\n\t\t\t\tmargin-right: 12px;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t.more-tips-item-title {\r\n\t\t\t\tfont-family: PingFang SC, PingFang SC;\r\n\t\t\t\tfont-weight: 500;\r\n\t\t\t\tfont-size: 12px;\r\n\t\t\t\tcolor: #00A6FF;\r\n\t\t\t\tline-height: 24px;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\r\n","import Component from 'D:/www/YGChatCS/pages/chat/ChatMoreTips.vue'\nwx.createComponent(Component)"],"names":["ref","onMounted"],"mappings":";;;;;;AAYC,UAAM,WAAWA,cAAG,IAAC,EAAE;AACvB,UAAM,QAAQ;AAEd,UAAM,YAAY,CAAC,SAAS;AAC3B,YAAM,aAAa,IAAI;AAAA,IACvB;AAEDC,kBAAAA,UAAU,MAAM;AACf,eAAU;AAAA,IACZ,CAAE;AAED,UAAM,WAAW,MAAM;AACtB,eAAS,QAAQ;AAAA,QAChB;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,QACD;AAAA,UACC,OAAO;AAAA,QACP;AAAA,MACD;AAAA,IACD;;;;;;;;;;;;;;;AC9CF,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatQuickAccess.js","sources":["E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvY2hhdC9DaGF0UXVpY2tBY2Nlc3MudnVl"],"sourcesContent":["import MiniProgramPage from 'D:/YGChatCS/pages/chat/ChatQuickAccess.vue'\nwx.createPage(MiniProgramPage)"],"names":["MiniProgramPage"],"mappings":";;AACA,GAAG,WAAWA,gBAAe,eAAA;"}
|
||||
{"version":3,"file":"ChatQuickAccess.js","sources":["C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvY2hhdC9DaGF0UXVpY2tBY2Nlc3MudnVl"],"sourcesContent":["import MiniProgramPage from 'D:/www/YGChatCS/pages/chat/ChatQuickAccess.vue'\nwx.createPage(MiniProgramPage)"],"names":["MiniProgramPage"],"mappings":";;AACA,GAAG,WAAWA,gBAAe,eAAA;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatQuickAccess2.js","sources":["E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniPage:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0UXVpY2tBY2Nlc3MudnVl"],"sourcesContent":["import MiniProgramPage from 'D:/YGChatCS/pages/chat/ChatQuickAccess.vue'\nwx.createPage(MiniProgramPage)"],"names":["MiniProgramPage"],"mappings":";;AACA,GAAG,WAAWA,gBAAe,eAAA;"}
|
||||
{"version":3,"file":"ChatQuickAccess2.js","sources":["C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniPage:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL2NoYXQvQ2hhdFF1aWNrQWNjZXNzLnZ1ZQ"],"sourcesContent":["import MiniProgramPage from 'D:/www/YGChatCS/pages/chat/ChatQuickAccess.vue'\nwx.createPage(MiniProgramPage)"],"names":["MiniProgramPage"],"mappings":";;AACA,GAAG,WAAWA,gBAAe,eAAA;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatTopBanner.js","sources":["pages/chat/ChatTopBanner.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0VG9wQmFubmVyLnZ1ZQ"],"sourcesContent":["<template>\n\t<view class=\"top-bg-content\" :style=\"{marginTop: marginContentTop + 'px'}\">\n\t\t<view class=\"top-item1\">\n\t\t\t<view class=\"top-item1-left\">\n\t\t\t\t<image src=\"/static/hello_xiaomu_icon@2x.png\"></image>\n\t\t\t\t<text>2025/02/10 多云 -3~6℃</text>\t\t\t\t\t\t \n\t\t\t</view>\n\t\t\t<view class=\"top-item1-right\">\n\t\t\t\t<image src=\"/static/hello_logo_icon@2x.png\" ></image>\n\t\t\t</view>\t\t\t \t\t\t \n\t\t</view>\n\t</view>\n</template>\n\n<script setup>\n\timport { ref } from 'vue';\n\timport { onLoad } from '@dcloudio/uni-app';\n\t\n\tconst statusBarHeight = ref(20);\n\tconst marginContentTop = ref(44) \n\t\n\tonLoad(() => {\n\t uni.getSystemInfo({\n\t success: (res) => {\n\t statusBarHeight.value = res.statusBarHeight || 20;\n\t\t marginContentTop.value += statusBarHeight.value;\n\t }\n\t });\n\t});\n\t\n</script>\n\n<style lang=\"scss\" scoped>\n\t.top-bg-content {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-end;\n\t\talign-items: stretch;\n\t\tflex-direction: column;\n\t}\n\t\n\t.top-item1 {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tjustify-content: space-between;\n\t\tmargin: 0 46px 0 32px;\n\t\t\n\t\t.top-item1-left {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: flex-end;\n\t\t\t\n\t\t\timage {\n\t\t\t\twidth: 118px;\n\t\t\t\theight: 52px;\n\t\t\t}\n\t\t\ttext {\n\t\t\t\tfont-family: PingFang SC, PingFang SC;\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 12px;\n\t\t\t\tcolor: #1E4C69;\n\t\t\t\tline-height: 24px;\n\t\t\t\ttext-align: justify;\n\t\t\t\tfont-style: normal;\n\t\t\t\ttext-transform: none;\n\t\t\t}\n\t\t}\n\t\t\n\t\t.top-item1-right {\n\t\t\timage {\n\t\t\t\twidth: 96px;\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\t}\n</style>","import Component from 'D:/YGChatCS/pages/chat/ChatTopBanner.vue'\nwx.createComponent(Component)"],"names":["ref","onLoad","uni"],"mappings":";;;;;;AAkBC,UAAM,kBAAkBA,kBAAI,EAAE;AAC9B,UAAM,mBAAmBA,cAAG,IAAC,EAAE;AAE/BC,kBAAAA,OAAO,MAAM;AACXC,oBAAAA,MAAI,cAAc;AAAA,QAChB,SAAS,CAAC,QAAQ;AAChB,0BAAgB,QAAQ,IAAI,mBAAmB;AAClD,2BAAiB,SAAS,gBAAgB;AAAA,QACxC;AAAA,MACN,CAAI;AAAA,IACJ,CAAE;;;;;;;;;;;AC3BF,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"ChatTopBanner.js","sources":["pages/chat/ChatTopBanner.vue","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL2NoYXQvQ2hhdFRvcEJhbm5lci52dWU"],"sourcesContent":["<template>\r\n\t<view class=\"top-bg-content\" :style=\"{marginTop: marginContentTop + 'px'}\">\r\n\t\t<view class=\"top-item1\">\r\n\t\t\t<view class=\"top-item1-left\">\r\n\t\t\t\t<image src=\"/static/hello_xiaomu_icon@2x.png\"></image>\r\n\t\t\t\t<text>2025/02/10 多云 -3~6℃</text>\t\t\t\t\t\t \r\n\t\t\t</view>\r\n\t\t\t<view class=\"top-item1-right\">\r\n\t\t\t\t<image src=\"/static/hello_logo_icon@2x.png\" ></image>\r\n\t\t\t</view>\t\t\t \t\t\t \r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport { ref } from 'vue';\r\n\timport { onLoad } from '@dcloudio/uni-app';\r\n\t\r\n\tconst statusBarHeight = ref(20);\r\n\tconst marginContentTop = ref(44) \r\n\t\r\n\tonLoad(() => {\r\n\t uni.getSystemInfo({\r\n\t success: (res) => {\r\n\t statusBarHeight.value = res.statusBarHeight || 20;\r\n\t\t marginContentTop.value += statusBarHeight.value;\r\n\t }\r\n\t });\r\n\t});\r\n\t\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.top-bg-content {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: flex-end;\r\n\t\talign-items: stretch;\r\n\t\tflex-direction: column;\r\n\t}\r\n\t\r\n\t.top-item1 {\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: row;\r\n\t\tjustify-content: space-between;\r\n\t\tmargin: 0 46px 0 32px;\r\n\t\t\r\n\t\t.top-item1-left {\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-direction: column;\r\n\t\t\tjustify-content: flex-end;\r\n\t\t\t\r\n\t\t\timage {\r\n\t\t\t\twidth: 118px;\r\n\t\t\t\theight: 52px;\r\n\t\t\t}\r\n\t\t\ttext {\r\n\t\t\t\tfont-family: PingFang SC, PingFang SC;\r\n\t\t\t\tfont-weight: 400;\r\n\t\t\t\tfont-size: 12px;\r\n\t\t\t\tcolor: #1E4C69;\r\n\t\t\t\tline-height: 24px;\r\n\t\t\t\ttext-align: justify;\r\n\t\t\t\tfont-style: normal;\r\n\t\t\t\ttext-transform: none;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t.top-item1-right {\r\n\t\t\timage {\r\n\t\t\t\twidth: 96px;\r\n\t\t\t\theight: 96px;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>","import Component from 'D:/www/YGChatCS/pages/chat/ChatTopBanner.vue'\nwx.createComponent(Component)"],"names":["ref","onLoad","uni"],"mappings":";;;;;;AAkBC,UAAM,kBAAkBA,kBAAI,EAAE;AAC9B,UAAM,mBAAmBA,cAAG,IAAC,EAAE;AAE/BC,kBAAAA,OAAO,MAAM;AACXC,oBAAAA,MAAI,cAAc;AAAA,QAChB,SAAS,CAAC,QAAQ;AAChB,0BAAgB,QAAQ,IAAI,mBAAmB;AAClD,2BAAiB,SAAS,gBAAgB;AAAA,QACxC;AAAA,MACN,CAAI;AAAA,IACJ,CAAE;;;;;;;;;;;AC3BF,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatTopBgImg.js","sources":["E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0VG9wQmdJbWcudnVl"],"sourcesContent":["import Component from 'D:/YGChatCS/pages/chat/ChatTopBgImg.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"ChatTopBgImg.js","sources":["C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL2NoYXQvQ2hhdFRvcEJnSW1nLnZ1ZQ"],"sourcesContent":["import Component from 'D:/www/YGChatCS/pages/chat/ChatTopBgImg.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ChatTopNavBar.js","sources":["pages/chat/ChatTopNavBar.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvY2hhdC9DaGF0VG9wTmF2QmFyLnZ1ZQ"],"sourcesContent":["<template>\n\t<view class=\"nav-bar\">\n\t <view class=\"nav-item\" @click=\"openDrawer\">\n\t <image src=\"/static/drawer_icon.png\" mode=\"aspectFit\" class=\"nav-item-icon\"></image>\n\t </view>\n\t</view>\n</template>\n\n<script setup>\n\timport { defineEmits } from 'vue'\n\t\n\tconst emits = defineEmits(['openDrawer'])\n\t\n\tconst openDrawer = () => {\n\t\temits('openDrawer')\n\t\tconsole.log('=============打开抽屉')\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.nav-bar {\n\t display: flex;\n\t align-items: center;\n\t height: 44px;\n\t padding: 0 15px;\n\t \n\t .nav-item {\n\t width: 24px;\n\t height: 24px;\n\t margin-right: 10px;\n\t }\n\t .nav-item-icon {\n\t\t width: 100%;\n\t\t height: 100%;\n\t }\n\t}\n</style>","import Component from 'D:/YGChatCS/pages/chat/ChatTopNavBar.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;;;;;;AAWC,UAAM,QAAQ;AAEd,UAAM,aAAa,MAAM;AACxB,YAAM,YAAY;AAClBA,oBAAAA,yDAAY,mBAAmB;AAAA,IAC/B;;;;;;;;;;ACfF,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"ChatTopNavBar.js","sources":["pages/chat/ChatTopNavBar.vue","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL2NoYXQvQ2hhdFRvcE5hdkJhci52dWU"],"sourcesContent":["<template>\r\n\t<view class=\"nav-bar\">\r\n\t <view class=\"nav-item\" @click=\"openDrawer\">\r\n\t <image src=\"/static/drawer_icon.png\" mode=\"aspectFit\" class=\"nav-item-icon\"></image>\r\n\t </view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport { defineEmits } from 'vue'\r\n\t\r\n\tconst emits = defineEmits(['openDrawer'])\r\n\t\r\n\tconst openDrawer = () => {\r\n\t\temits('openDrawer')\r\n\t\tconsole.log('=============打开抽屉')\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.nav-bar {\r\n\t display: flex;\r\n\t align-items: center;\r\n\t height: 44px;\r\n\t padding: 0 15px;\r\n\t \r\n\t .nav-item {\r\n\t width: 24px;\r\n\t height: 24px;\r\n\t margin-right: 10px;\r\n\t }\r\n\t .nav-item-icon {\r\n\t\t width: 100%;\r\n\t\t height: 100%;\r\n\t }\r\n\t}\r\n</style>","import Component from 'D:/www/YGChatCS/pages/chat/ChatTopNavBar.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;;;;;;AAWC,UAAM,QAAQ;AAEd,UAAM,aAAa,MAAM;AACxB,YAAM,YAAY;AAClBA,oBAAAA,yDAAY,mBAAmB;AAAA,IAC/B;;;;;;;;;;ACfF,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"DrawerHome.js","sources":["pages/drawer/DrawerHome.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvZHJhd2VyL0RyYXdlckhvbWUudnVl"],"sourcesContent":["<template>\n\t<view class=\"drawer-home\"> \n\t\t<view class=\"drawer-home-nav\">\n\t\t\t<text>抽屉页面</text>\n\t\t</view>\n\t\t\n\t\t<button @click=\"closeDrawer\" type=\"default\">关闭</button>\n\t\t<view class=\"drawer-list\">\n\t\t\t<view v-for=\"(item,index) in 100\" :key=\"index\">\n\t\t\t\t<text class=\"message-item\">{{item}}</text>\n\t\t\t</view>\n\t\t</view>\n\t\t\n\t</view>\n</template>\n\n<script setup>\n\timport { defineEmits } from 'vue'\n\tconst emits = defineEmits(['closeDrawer'])\n\t\n\tconst closeDrawer = () => {\n\t\temits('closeDrawer')\n\t\tconsole.log('=============关闭抽屉')\n\t}\n\t\n</script>\n\n<style lang=\"scss\" scoped>\n\t.drawer-home {\n\t\twidth: 100%;\n\t\theight: 100vh;\n\t\tbackground-color: #E9F3F7;\n\t\tpadding-top: 44px;\n\t\t\n\t\t.drawer-home-nav {\n\t\t\tpadding: 12px;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\t\t\t\n\t\t\ttext {\n\t\t\t\tfont-size: 20px;\n\t\t\t\ttext-align: center;\n\t\t\t}\n\t\t}\n\t\t\n\t\t.drawer-list {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\theight: 100%;\n\t\t\toverflow-y: scroll;\n\t\t}\n\t\t\n\t\t.message-item {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\t\t\tbackground-color: white;\n\t\t\tmargin: 6px 12px;\n\t\t\tpadding: 8px 24px;\n\t\t\tborder-radius: 4px;\n\t\t\tfont-size: 14px;\n\t\t\tbox-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n\t\t\t\n\t\t\ttext {\n\t\t\t\tfont-family: PingFang SC, PingFang SC;\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 14px;\n\t\t\t\tcolor: #333333;\n\t\t\t}\n\t\t}\n\t}\n</style>","import Component from 'D:/YGChatCS/pages/drawer/DrawerHome.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;;;;;AAkBC,UAAM,QAAQ;AAEd,UAAM,cAAc,MAAM;AACzB,YAAM,aAAa;AACnBA,oBAAAA,wDAAY,mBAAmB;AAAA,IAC/B;;;;;;;;;;;;;;;ACtBF,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"DrawerHome.js","sources":["pages/drawer/DrawerHome.vue","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL2RyYXdlci9EcmF3ZXJIb21lLnZ1ZQ"],"sourcesContent":["<template>\r\n\t<view class=\"drawer-home\"> \r\n\t\t<view class=\"drawer-home-nav\">\r\n\t\t\t<text>抽屉页面</text>\r\n\t\t</view>\r\n\t\t\r\n\t\t<button @click=\"closeDrawer\" type=\"default\">关闭</button>\r\n\t\t<view class=\"drawer-list\">\r\n\t\t\t<view v-for=\"(item,index) in 100\" :key=\"index\">\r\n\t\t\t\t<text class=\"message-item\">{{item}}</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport { defineEmits } from 'vue'\r\n\tconst emits = defineEmits(['closeDrawer'])\r\n\t\r\n\tconst closeDrawer = () => {\r\n\t\temits('closeDrawer')\r\n\t\tconsole.log('=============关闭抽屉')\r\n\t}\r\n\t\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.drawer-home {\r\n\t\twidth: 100%;\r\n\t\theight: 100vh;\r\n\t\tbackground-color: #E9F3F7;\r\n\t\tpadding-top: 44px;\r\n\t\t\r\n\t\t.drawer-home-nav {\r\n\t\t\tpadding: 12px;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\t\r\n\t\t\ttext {\r\n\t\t\t\tfont-size: 20px;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t.drawer-list {\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-direction: column;\r\n\t\t\theight: 100%;\r\n\t\t\toverflow-y: scroll;\r\n\t\t}\r\n\t\t\r\n\t\t.message-item {\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\tbackground-color: white;\r\n\t\t\tmargin: 6px 12px;\r\n\t\t\tpadding: 8px 24px;\r\n\t\t\tborder-radius: 4px;\r\n\t\t\tfont-size: 14px;\r\n\t\t\tbox-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\r\n\t\t\t\r\n\t\t\ttext {\r\n\t\t\t\tfont-family: PingFang SC, PingFang SC;\r\n\t\t\t\tfont-weight: 400;\r\n\t\t\t\tfont-size: 14px;\r\n\t\t\t\tcolor: #333333;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>","import Component from 'D:/www/YGChatCS/pages/drawer/DrawerHome.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;;;;;AAkBC,UAAM,QAAQ;AAEd,UAAM,cAAc,MAAM;AACzB,YAAM,aAAa;AACnBA,oBAAAA,wDAAY,mBAAmB;AAAA,IAC/B;;;;;;;;;;;;;;;ACtBF,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["pages/index/index.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvaW5kZXgudnVl"],"sourcesContent":["<template>\n\t<ex-drawer ref='drawer' width=\"488\">\n\t\t<!-- 抽屉页面 -->\n\t\t<view class=\"mian-drawer\" slot=\"drawerContent\">\n\t\t\t<drawer-home @closeDrawer=\"closeDrawer\" ></drawer-home>\n\t\t</view>\n\t\t\n\t\t<!-- 主页面 -->\n\t\t<view class=\"mian-container\" slot=\"containerContent\">\n\t\t\t<chat-main-list @openDrawer=\"openDrawer\"></chat-main-list>\n\t\t</view>\n\t</ex-drawer>\t\n\t\n</template>\n\n<script setup>\n\timport { ref, onMounted } from 'vue'\n\timport exDrawer from '@/third/ex-drawer/ex-drawer.vue'\n\timport DrawerHome from '@/pages/drawer/DrawerHome.vue'\n\timport ChatMainList from '../chat/ChatMainList.vue'\n\t\n\tconst drawer = ref()\n\t\n\tconst openDrawer = () => {\n\t\tdrawer.value.open()\n\t}\n\t\n\tconst closeDrawer = () => {\n\t\tdrawer.value.close()\n\t}\n\n</script>\n\n<style lang=\"scss\" scoped>\n\t.mian-drawer{\n\t\theight: 100vh;\n\t\tbackground-color: #ffffff;\n\t}\n\t.mian-container{\n\t\twidth: 100vw;\n\t\theight: 100vh;\n\t\tbackground-color: #ffffff;\n\t}\n</style>","import MiniProgramPage from 'D:/YGChatCS/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["ref"],"mappings":";;;;;AAiBC,MAAM,WAAW,MAAW;AAC5B,MAAM,aAAa,MAAW;AAC9B,MAAM,eAAe,MAAW;;;;AAEhC,UAAM,SAASA,cAAAA,IAAK;AAEpB,UAAM,aAAa,MAAM;AACxB,aAAO,MAAM,KAAM;AAAA,IACnB;AAED,UAAM,cAAc,MAAM;AACzB,aAAO,MAAM,MAAO;AAAA,IACpB;;;;;;;;;;;;;;;;AC5BF,GAAG,WAAW,eAAe;"}
|
||||
{"version":3,"file":"index.js","sources":["pages/index/index.vue","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvaW5kZXgudnVl"],"sourcesContent":["<template>\r\n\t<ex-drawer ref='drawer' width=\"488\">\r\n\t\t<!-- 抽屉页面 -->\r\n\t\t<view class=\"mian-drawer\" slot=\"drawerContent\">\r\n\t\t\t<drawer-home @closeDrawer=\"closeDrawer\" ></drawer-home>\r\n\t\t</view>\r\n\t\t\r\n\t\t<!-- 主页面 -->\r\n\t\t<view class=\"mian-container\" slot=\"containerContent\">\r\n\t\t\t<chat-main-list @openDrawer=\"openDrawer\"></chat-main-list>\r\n\t\t</view>\r\n\t</ex-drawer>\t\r\n\t\r\n</template>\r\n\r\n<script setup>\r\n\timport { ref, onMounted } from 'vue'\r\n\timport exDrawer from '@/third/ex-drawer/ex-drawer.vue'\r\n\timport DrawerHome from '@/pages/drawer/DrawerHome.vue'\r\n\timport ChatMainList from '../chat/ChatMainList.vue'\r\n\t\r\n\tconst drawer = ref()\r\n\t\r\n\tconst openDrawer = () => {\r\n\t\tdrawer.value.open()\r\n\t}\r\n\t\r\n\tconst closeDrawer = () => {\r\n\t\tdrawer.value.close()\r\n\t}\r\n\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.mian-drawer{\r\n\t\theight: 100vh;\r\n\t\tbackground-color: #ffffff;\r\n\t}\r\n\t.mian-container{\r\n\t\twidth: 100vw;\r\n\t\theight: 100vh;\r\n\t\tbackground-color: #ffffff;\r\n\t}\r\n</style>","import MiniProgramPage from 'D:/www/YGChatCS/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["ref"],"mappings":";;;;;AAiBC,MAAM,WAAW,MAAW;AAC5B,MAAM,aAAa,MAAW;AAC9B,MAAM,eAAe,MAAW;;;;AAEhC,UAAM,SAASA,cAAAA,IAAK;AAEpB,UAAM,aAAa,MAAM;AACxB,aAAO,MAAM,KAAM;AAAA,IACnB;AAED,UAAM,cAAc,MAAM;AACzB,aAAO,MAAM,MAAO;AAAA,IACpB;;;;;;;;;;;;;;;;AC5BF,GAAG,WAAW,eAAe;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"OneFeelMK001.js","sources":["E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvcGFnZXMvbW9kdWxlL09uZUZlZWxNSzAwMS52dWU"],"sourcesContent":["import Component from 'D:/YGChatCS/pages/module/OneFeelMK001.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"OneFeelMK001.js","sources":["C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3BhZ2VzL21vZHVsZS9PbmVGZWVsTUswMDEudnVl"],"sourcesContent":["import Component from 'D:/www/YGChatCS/pages/module/OneFeelMK001.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"ex-drawer.js","sources":["third/ex-drawer/ex-drawer.vue","E:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovWUdDaGF0Q1MvdGhpcmQvZXgtZHJhd2VyL2V4LWRyYXdlci52dWU"],"sourcesContent":["<template>\r\n\t<!-- <view class=\"ex-drawer\" @touchstart=\"containerStart\" @touchend=\"containerEnd\" @touchmove=\"containerMove\"> -->\r\n\t<!-- 移除手势 -->\n\t<view class=\"ex-drawer\"> \r\n\t\t<!-- 抽屉 -->\r\n\t\t<view class=\"ex-drawer-warp\" :class=\"{ move: move }\" :style=\"{ width: `${width}rpx`, left: `-${width}rpx`, transform: `translate3d(${differential}px,0,0)`,backfaceVisibility:`hidden`, }\">\r\n\t\t\t<!-- 抽屉内容插槽 -->\r\n\t\t\t<slot name=\"drawerContent\"></slot>\r\n\t\t</view>\r\n\t\t<!-- 主容器 -->\r\n\t\t<view class=\"ex-container-warp\" :class=\"maskShow == true ? 'container prevent' : 'container'\">\r\n\t\t\t<!-- 遮罩 -->\r\n\t\t\t<view v-show=\"maskShow\" class=\"mask\" @tap=\"close\"></view>\r\n\t\t\t<!-- 主容器内容插槽 -->\r\n\t\t\t<slot name=\"containerContent\"></slot>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmaskShow: false,\r\n\t\t\tstartX: 0,\r\n\t\t\tstartY: 0,\r\n\t\t\tmoveX: 0,\r\n\t\t\tmoveY: 0,\r\n\t\t\tstartExcursion: 0,\r\n\t\t\tdifferential: 0,\r\n\t\t\tisDirection: null,\r\n\t\t\tiswidth: null,\r\n\t\t\tmove: false\r\n\t\t};\r\n\t},\r\n\tprops: {\r\n\t\twidth: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t}\r\n\t},\r\n\tmethods: {\r\n\t\tcontainerStart(e) {\r\n\t\t\tthis.isDirection = null;\r\n\t\t\tthis.move = false;\r\n\t\t\tthis.startX = e.changedTouches[0].clientX;\r\n\t\t\tthis.startY = e.changedTouches[0].clientY;\r\n\t\t\tthis.startExcursion = this.differential;\r\n\t\t},\r\n\t\tcontainerMove(e) {\r\n\t\t\tthis.moveX = e.changedTouches[0].clientX;\r\n\t\t\tthis.moveY = e.changedTouches[0].clientY;\r\n\t\t\tlet X = Math.abs(this.moveX - this.startX);\r\n\t\t\tlet Y = Math.abs(this.moveY - this.startY);\r\n\t\t\tlet differential = this.startExcursion + this.moveX - this.startX;\r\n\t\t\tdifferential = Math.min(uni.upx2px(this.width), differential);\r\n\t\t\tdifferential = Math.max(0, differential);\r\n\t\t\tthis.isDirection == null ? (this.isDirection = Y / X > Math.sqrt(3) / 3) : ``;\r\n\t\t\tif (!this.isDirection) {\r\n\t\t\t\tthis.differential = differential;\r\n\t\t\t\tif(this.differential == 0 ){\r\n\t\t\t\t\tthis.containerEnd()\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.maskShow = true\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tcontainerEnd() {\r\n\t\t\tif (this.isDirection != null) {\r\n\t\t\t\tif (!this.isDirection) {\r\n\t\t\t\t\tthis.iswidth = this.differential > (uni.upx2px(this.width) * 2) / 6;\r\n\t\t\t\t\tthis.differential > 0 && this.differential < uni.upx2px(this.width) ? (this.move = true) : ``;\r\n\t\t\t\t}\r\n\t\t\t\tthis.differential = this.iswidth ? uni.upx2px(this.width) : 0;\r\n\t\t\t\tthis.differential == 0 ? this.maskShow = false : ``;\r\n\t\t\t}\r\n\t\t},\r\n\t\tclose(){\r\n\t\t\tif(this.maskShow){\r\n\t\t\t\tthis.move = true\r\n\t\t\t\tthis.differential = 0;\t\r\n\t\t\t\tif(this.differential == 0 ){\r\n\t\t\t\t\tthis.maskShow = false\r\n\t\t\t\t\tthis.iswidth=false\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\topen(){\r\n\t\t\tif(!this.maskShow){\r\n\t\t\t\tthis.move = true\r\n\t\t\t\tthis.differential = uni.upx2px(this.width);\t\r\n\t\t\t\tif(this.differential == uni.upx2px(this.width) ){\r\n\t\t\t\t\tthis.maskShow = true\r\n\t\t\t\t\tthis.iswidth=true\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style>\r\n.ex-drawer {\r\n\tdisplay: flex;\r\n\talign-items: flex-start;\r\n\tjustify-content: flex-start;\r\n}\r\n.ex-drawer-warp {\r\n\tposition: fixed;\r\n\tz-index: 1000;\r\n\ttouch-action: none;\r\n}\r\n.mask {\r\n\tposition: fixed;\r\n\tleft: 0rpx;\r\n\twidth: 100vw;\r\n\theight: 100vh;\r\n\tz-index: 999;\r\n\tbackground-color:#000000;filter:Alpha(Opacity=60);opacity:0.3;\r\n}\r\n.prevent {\r\n\ttouch-action: none;\r\n}\r\n.move {\r\n\ttransition: transform 0.3s ease;\r\n}\r\n</style>\n","import Component from 'D:/YGChatCS/third/ex-drawer/ex-drawer.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;AAoBA,MAAK,YAAU;AAAA,EACd,OAAO;AACN,WAAO;AAAA,MACN,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,gBAAgB;AAAA,MAChB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,SAAS;AAAA,MACT,MAAM;AAAA;EAEP;AAAA,EACD,OAAO;AAAA,IACN,OAAO;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACA;AAAA,EACD,SAAS;AAAA,IACR,eAAe,GAAG;AACjB,WAAK,cAAc;AACnB,WAAK,OAAO;AACZ,WAAK,SAAS,EAAE,eAAe,CAAC,EAAE;AAClC,WAAK,SAAS,EAAE,eAAe,CAAC,EAAE;AAClC,WAAK,iBAAiB,KAAK;AAAA,IAC3B;AAAA,IACD,cAAc,GAAG;AAChB,WAAK,QAAQ,EAAE,eAAe,CAAC,EAAE;AACjC,WAAK,QAAQ,EAAE,eAAe,CAAC,EAAE;AACjC,UAAI,IAAI,KAAK,IAAI,KAAK,QAAQ,KAAK,MAAM;AACzC,UAAI,IAAI,KAAK,IAAI,KAAK,QAAQ,KAAK,MAAM;AACzC,UAAI,eAAe,KAAK,iBAAiB,KAAK,QAAQ,KAAK;AAC3D,qBAAe,KAAK,IAAIA,cAAG,MAAC,OAAO,KAAK,KAAK,GAAG,YAAY;AAC5D,qBAAe,KAAK,IAAI,GAAG,YAAY;AACvC,WAAK,eAAeLine truncated
|
||||
{"version":3,"file":"ex-drawer.js","sources":["third/ex-drawer/ex-drawer.vue","C:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovd3d3L1lHQ2hhdENTL3RoaXJkL2V4LWRyYXdlci9leC1kcmF3ZXIudnVl"],"sourcesContent":["<template>\r\n\t<!-- <view class=\"ex-drawer\" @touchstart=\"containerStart\" @touchend=\"containerEnd\" @touchmove=\"containerMove\"> -->\r\n\t<!-- 移除手势 -->\n\t<view class=\"ex-drawer\"> \r\n\t\t<!-- 抽屉 -->\r\n\t\t<view class=\"ex-drawer-warp\" :class=\"{ move: move }\" :style=\"{ width: `${width}rpx`, left: `-${width}rpx`, transform: `translate3d(${differential}px,0,0)`,backfaceVisibility:`hidden`, }\">\r\n\t\t\t<!-- 抽屉内容插槽 -->\r\n\t\t\t<slot name=\"drawerContent\"></slot>\r\n\t\t</view>\r\n\t\t<!-- 主容器 -->\r\n\t\t<view class=\"ex-container-warp\" :class=\"maskShow == true ? 'container prevent' : 'container'\">\r\n\t\t\t<!-- 遮罩 -->\r\n\t\t\t<view v-show=\"maskShow\" class=\"mask\" @tap=\"close\"></view>\r\n\t\t\t<!-- 主容器内容插槽 -->\r\n\t\t\t<slot name=\"containerContent\"></slot>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmaskShow: false,\r\n\t\t\tstartX: 0,\r\n\t\t\tstartY: 0,\r\n\t\t\tmoveX: 0,\r\n\t\t\tmoveY: 0,\r\n\t\t\tstartExcursion: 0,\r\n\t\t\tdifferential: 0,\r\n\t\t\tisDirection: null,\r\n\t\t\tiswidth: null,\r\n\t\t\tmove: false\r\n\t\t};\r\n\t},\r\n\tprops: {\r\n\t\twidth: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t}\r\n\t},\r\n\tmethods: {\r\n\t\tcontainerStart(e) {\r\n\t\t\tthis.isDirection = null;\r\n\t\t\tthis.move = false;\r\n\t\t\tthis.startX = e.changedTouches[0].clientX;\r\n\t\t\tthis.startY = e.changedTouches[0].clientY;\r\n\t\t\tthis.startExcursion = this.differential;\r\n\t\t},\r\n\t\tcontainerMove(e) {\r\n\t\t\tthis.moveX = e.changedTouches[0].clientX;\r\n\t\t\tthis.moveY = e.changedTouches[0].clientY;\r\n\t\t\tlet X = Math.abs(this.moveX - this.startX);\r\n\t\t\tlet Y = Math.abs(this.moveY - this.startY);\r\n\t\t\tlet differential = this.startExcursion + this.moveX - this.startX;\r\n\t\t\tdifferential = Math.min(uni.upx2px(this.width), differential);\r\n\t\t\tdifferential = Math.max(0, differential);\r\n\t\t\tthis.isDirection == null ? (this.isDirection = Y / X > Math.sqrt(3) / 3) : ``;\r\n\t\t\tif (!this.isDirection) {\r\n\t\t\t\tthis.differential = differential;\r\n\t\t\t\tif(this.differential == 0 ){\r\n\t\t\t\t\tthis.containerEnd()\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.maskShow = true\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tcontainerEnd() {\r\n\t\t\tif (this.isDirection != null) {\r\n\t\t\t\tif (!this.isDirection) {\r\n\t\t\t\t\tthis.iswidth = this.differential > (uni.upx2px(this.width) * 2) / 6;\r\n\t\t\t\t\tthis.differential > 0 && this.differential < uni.upx2px(this.width) ? (this.move = true) : ``;\r\n\t\t\t\t}\r\n\t\t\t\tthis.differential = this.iswidth ? uni.upx2px(this.width) : 0;\r\n\t\t\t\tthis.differential == 0 ? this.maskShow = false : ``;\r\n\t\t\t}\r\n\t\t},\r\n\t\tclose(){\r\n\t\t\tif(this.maskShow){\r\n\t\t\t\tthis.move = true\r\n\t\t\t\tthis.differential = 0;\t\r\n\t\t\t\tif(this.differential == 0 ){\r\n\t\t\t\t\tthis.maskShow = false\r\n\t\t\t\t\tthis.iswidth=false\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\topen(){\r\n\t\t\tif(!this.maskShow){\r\n\t\t\t\tthis.move = true\r\n\t\t\t\tthis.differential = uni.upx2px(this.width);\t\r\n\t\t\t\tif(this.differential == uni.upx2px(this.width) ){\r\n\t\t\t\t\tthis.maskShow = true\r\n\t\t\t\t\tthis.iswidth=true\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style>\r\n.ex-drawer {\r\n\tdisplay: flex;\r\n\talign-items: flex-start;\r\n\tjustify-content: flex-start;\r\n}\r\n.ex-drawer-warp {\r\n\tposition: fixed;\r\n\tz-index: 1000;\r\n\ttouch-action: none;\r\n}\r\n.mask {\r\n\tposition: fixed;\r\n\tleft: 0rpx;\r\n\twidth: 100vw;\r\n\theight: 100vh;\r\n\tz-index: 999;\r\n\tbackground-color:#000000;filter:Alpha(Opacity=60);opacity:0.3;\r\n}\r\n.prevent {\r\n\ttouch-action: none;\r\n}\r\n.move {\r\n\ttransition: transform 0.3s ease;\r\n}\r\n</style>\n","import Component from 'D:/www/YGChatCS/third/ex-drawer/ex-drawer.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;AAoBA,MAAK,YAAU;AAAA,EACd,OAAO;AACN,WAAO;AAAA,MACN,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,gBAAgB;AAAA,MAChB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,SAAS;AAAA,MACT,MAAM;AAAA;EAEP;AAAA,EACD,OAAO;AAAA,IACN,OAAO;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACA;AAAA,EACD,SAAS;AAAA,IACR,eAAe,GAAG;AACjB,WAAK,cAAc;AACnB,WAAK,OAAO;AACZ,WAAK,SAAS,EAAE,eAAe,CAAC,EAAE;AAClC,WAAK,SAAS,EAAE,eAAe,CAAC,EAAE;AAClC,WAAK,iBAAiB,KAAK;AAAA,IAC3B;AAAA,IACD,cAAc,GAAG;AAChB,WAAK,QAAQ,EAAE,eAAe,CAAC,EAAE;AACjC,WAAK,QAAQ,EAAE,eAAe,CAAC,EAAE;AACjC,UAAI,IAAI,KAAK,IAAI,KAAK,QAAQ,KAAK,MAAM;AACzC,UAAI,IAAI,KAAK,IAAI,KAAK,QAAQ,KAAK,MAAM;AACzC,UAAI,eAAe,KAAK,iBAAiB,KAAK,QAAQ,KAAK;AAC3D,qBAAe,KAAK,IAAIA,cAAG,MAAC,OAAO,KAAK,KAAK,GAAG,YAAY;AAC5D,qBAAe,KAAK,IAAI,GAAG,YAAY;AACvC,Line truncated
|
||||
Reference in new issue
Block a user