feat: 第一次上传代码
This commit is contained in:
21
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardAI.js
vendored
Normal file
21
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardAI.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "ChatCardAI",
|
||||
props: {
|
||||
text: {
|
||||
type: String,
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(__props.text)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-efbf549a"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatCardAI.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardAI.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardAI.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardAI.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardAI.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="chat-ai data-v-efbf549a"><text class="data-v-efbf549a">{{a}}</text><slot></slot></view>
|
||||
48
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardAI.wxss
vendored
Normal file
48
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardAI.wxss
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.chat-ai.data-v-efbf549a {
|
||||
margin: 6px 12px;
|
||||
padding: 16px;
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 4px 20px 20px 20px;
|
||||
border: 1px solid;
|
||||
border-color: #FFFFFF;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.chat-ai text.data-v-efbf549a {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
line-height: 22px;
|
||||
text-align: justify;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
}
|
||||
21
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardMine.js
vendored
Normal file
21
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardMine.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "ChatCardMine",
|
||||
props: {
|
||||
text: {
|
||||
type: String,
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(__props.text)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f46289cb"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatCardMine.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardMine.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardMine.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardMine.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardMine.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="chat-mine data-v-f46289cb"><text class="data-v-f46289cb">{{a}}</text><slot></slot></view>
|
||||
48
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardMine.wxss
vendored
Normal file
48
unpackage/dist/dev/mp-weixin/pages/chat/ChatCardMine.wxss
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.chat-mine.data-v-f46289cb {
|
||||
margin: 6px 12px;
|
||||
padding: 8px 16px;
|
||||
background-color: #00A6FF;
|
||||
box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 20px 4px 20px 20px;
|
||||
border: 1px solid;
|
||||
border-color: #FFFFFF;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.chat-mine text.data-v-f46289cb {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #FFFFFF;
|
||||
line-height: 22px;
|
||||
text-align: justify;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
}
|
||||
133
unpackage/dist/dev/mp-weixin/pages/chat/ChatList.js
vendored
Normal file
133
unpackage/dist/dev/mp-weixin/pages/chat/ChatList.js
vendored
Normal file
@@ -0,0 +1,133 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
if (!Math) {
|
||||
(ChatTopBgImg + ChatTopNavBar + ChatTopBanner + ChatCardAI + ChatCardMine + ChatMoreTips + ChatQuickAccess)();
|
||||
}
|
||||
const ChatTopBanner = () => "./ChatTopBanner.js";
|
||||
const ChatTopBgImg = () => "./ChatTopBgImg.js";
|
||||
const ChatTopNavBar = () => "./ChatTopNavBar.js";
|
||||
const ChatCardAI = () => "./ChatCardAI.js";
|
||||
const ChatCardMine = () => "./ChatCardMine.js";
|
||||
const ChatQuickAccess = () => "./ChatQuickAccess2.js";
|
||||
const ChatMoreTips = () => "./ChatMoreTips.js";
|
||||
const _sfc_main = {
|
||||
__name: "ChatList",
|
||||
emits: ["openDrawer"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const statusBarHeight = common_vendor.ref(20);
|
||||
const navBgColor = common_vendor.ref("rgba(66, 173, 249, 0)");
|
||||
common_vendor.ref(0);
|
||||
const timer = common_vendor.ref(null);
|
||||
const holdKeyboard = common_vendor.ref(false);
|
||||
const holdKeyboardFlag = common_vendor.ref(true);
|
||||
common_vendor.ref("");
|
||||
const chatMsgList = common_vendor.ref([]);
|
||||
const inputMessage = common_vendor.ref("");
|
||||
const lastMsgId = common_vendor.ref("");
|
||||
holdKeyboard.value = true;
|
||||
const emits = __emit;
|
||||
const openDrawer = () => {
|
||||
emits("openDrawer");
|
||||
common_vendor.index.__f__("log", "at pages/chat/ChatList.vue:112", "=============打开抽屉");
|
||||
};
|
||||
common_vendor.onLoad(() => {
|
||||
common_vendor.index.getSystemInfo({
|
||||
success: (res) => {
|
||||
statusBarHeight.value = res.statusBarHeight || 20;
|
||||
}
|
||||
});
|
||||
});
|
||||
common_vendor.onMounted(() => {
|
||||
initData();
|
||||
});
|
||||
const initData = () => {
|
||||
for (let i = 0; i < 30; i++) {
|
||||
chatMsgList.value.push({
|
||||
mid: `msg_${i}`,
|
||||
msg: `消息${i}`
|
||||
});
|
||||
}
|
||||
};
|
||||
const handleTouchEnd = () => {
|
||||
clearTimeout(timer.value);
|
||||
timer.value = setTimeout(() => {
|
||||
if (handleNoHideKeyboard.value) {
|
||||
common_vendor.index.hideKeyboard();
|
||||
}
|
||||
holdKeyboardFlag.value = true;
|
||||
}, 50);
|
||||
};
|
||||
const handleNoHideKeyboard = () => {
|
||||
holdKeyboardFlag.value = false;
|
||||
};
|
||||
const sendMessage = () => {
|
||||
handleNoHideKeyboard();
|
||||
chatMsgList.value.push({
|
||||
mid: `msg_${chatMsgList.value.length}`,
|
||||
msg: `新消息${inputMessage.value}`
|
||||
});
|
||||
inputMessage.value = "";
|
||||
common_vendor.index.__f__("log", "at pages/chat/ChatList.vue:231", JSON.stringify(chatMsgList.value));
|
||||
};
|
||||
common_vendor.watch(chatMsgList, (newVal) => {
|
||||
if (newVal.length > 0) {
|
||||
lastMsgId.value = newVal[newVal.length - 1].mid;
|
||||
common_vendor.nextTick$1(() => {
|
||||
lastMsgId.value = "";
|
||||
common_vendor.nextTick$1(() => {
|
||||
lastMsgId.value = newVal[newVal.length - 1].mid;
|
||||
});
|
||||
});
|
||||
}
|
||||
}, { deep: true });
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(openDrawer),
|
||||
b: statusBarHeight.value + "px",
|
||||
c: navBgColor.value,
|
||||
d: common_vendor.f(chatMsgList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: index === 0
|
||||
}, index === 0 ? {
|
||||
b: common_assets._imports_0,
|
||||
c: "205c7d43-3-" + i0,
|
||||
d: common_vendor.p({
|
||||
text: "查信息、预定下单、探索玩法、呼叫服务、我通通可以满足,快试试问我问题吧!"
|
||||
})
|
||||
} : index === 1 ? {
|
||||
f: "205c7d43-4-" + i0,
|
||||
g: common_vendor.p({
|
||||
text: "查信息、预定下单、探索玩法"
|
||||
})
|
||||
} : index === 3 ? {
|
||||
i: "205c7d43-5-" + i0,
|
||||
j: common_vendor.p({
|
||||
text: "推荐双卧私汤套房。【房间十设施十服务能力】房问为两室一厅两卫,房问为一个2米大床房和一个标问,可2加床,最多可 住6人; 房问内带麻将机、带汗蒸房,带阳台泡池,厨房 可烹饪; 【内容玩法】房间内可打麻将、泡汤、长形茶几 可坐10人,可打德州、惯蛋等娱乐活动;阳台泡池旁可加碳火进行BBQ(食材需自带);带小朋友的家长,小朋友可玩酒店内游乐场淘气堡。 【内容玩法】饮食方面酒店自助餐不限量供应,提供西餐、泰餐、中餐自助,距酒店10分钟车程可达老宇号息烽正宗辣子鸡。 【特别体验】近期“有为妃作歹”主题泼水活动。"
|
||||
})
|
||||
} : {
|
||||
k: common_vendor.t(item.msg)
|
||||
}, {
|
||||
e: index === 1,
|
||||
h: index === 3,
|
||||
l: item.mid,
|
||||
m: item.mid
|
||||
});
|
||||
}),
|
||||
e: lastMsgId.value,
|
||||
f: common_assets._imports_1,
|
||||
g: common_vendor.o(sendMessage),
|
||||
h: common_vendor.o(handleNoHideKeyboard),
|
||||
i: holdKeyboard.value,
|
||||
j: inputMessage.value,
|
||||
k: common_vendor.o(($event) => inputMessage.value = $event.detail.value),
|
||||
l: common_assets._imports_2,
|
||||
m: common_vendor.o(sendMessage),
|
||||
n: common_vendor.o(handleTouchEnd)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-205c7d43"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatList.js.map
|
||||
12
unpackage/dist/dev/mp-weixin/pages/chat/ChatList.json
vendored
Normal file
12
unpackage/dist/dev/mp-weixin/pages/chat/ChatList.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"chat-top-banner": "./ChatTopBanner",
|
||||
"chat-top-bg-img": "./ChatTopBgImg",
|
||||
"chat-top-nav-bar": "./ChatTopNavBar",
|
||||
"chat-card-a-i": "./ChatCardAI",
|
||||
"chat-card-mine": "./ChatCardMine",
|
||||
"chat-quick-access": "./ChatQuickAccess",
|
||||
"chat-more-tips": "./ChatMoreTips"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatList.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatList.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="chat-container data-v-205c7d43" bindtouchend="{{n}}"><chat-top-bg-img class="chat-container-bg data-v-205c7d43" u-i="205c7d43-0" bind:__l="__l"></chat-top-bg-img><view class="nav-bar-container data-v-205c7d43" style="{{'padding-top:' + b + ';' + ('background-color:' + c)}}"><chat-top-nav-bar class="data-v-205c7d43" bindopenDrawer="{{a}}" u-i="205c7d43-1" bind:__l="__l"></chat-top-nav-bar></view><view class="chat-container-msg-list data-v-205c7d43"><chat-top-banner class="chat-container-top-bannar data-v-205c7d43" u-i="205c7d43-2" bind:__l="__l"></chat-top-banner><view class="area-msg-list data-v-205c7d43" scroll-y="true" scroll-into-view="{{e}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="l" class="data-v-205c7d43" id="{{item.m}}"><chat-card-a-i wx:if="{{item.a}}" u-s="{{['d']}}" class="message-item message-item-ai data-v-205c7d43" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"><image class="data-v-205c7d43" src="{{item.b}}" style="width:100px;height:100px"></image></chat-card-a-i><chat-card-mine wx:elif="{{item.e}}" u-s="{{['d']}}" class="message-item message-item-mine data-v-205c7d43" u-i="{{item.f}}" bind:__l="__l" u-p="{{item.g}}"><text class="data-v-205c7d43"> MM </text></chat-card-mine><chat-card-a-i wx:elif="{{item.h}}" class="message-item message-item-ai data-v-205c7d43" u-i="{{item.i}}" bind:__l="__l" u-p="{{item.j}}"></chat-card-a-i><text wx:else class="message-item message-item-other data-v-205c7d43">{{item.k}}</text></view></view><view class="footer-area data-v-205c7d43"><chat-more-tips class="data-v-205c7d43" u-i="205c7d43-6" bind:__l="__l"></chat-more-tips><chat-quick-access class="data-v-205c7d43" u-i="205c7d43-7" bind:__l="__l"></chat-quick-access><view class="area-input data-v-205c7d43"><view class="input-container-voice data-v-205c7d43"><image class="data-v-205c7d43" src="{{f}}"></image></view><block wx:if="{{r0}}"><textarea class="textarea data-v-205c7d43" type="text" placeholder="快速订票,呼叫服务" cursor-spacing="65" confirm-type="done" bindconfirm="{{g}}" bindtouchend="{{h}}" confirm-hold="{{true}}" auto-height show-confirm-bar="{{false}}" hold-keyboard="{{i}}" maxlength="300" value="{{j}}" bindinput="{{k}}"/></block><view class="input-container-send data-v-205c7d43" bindtap="{{m}}"><image class="data-v-205c7d43" src="{{l}}"></image></view></view></view></view></view>
|
||||
156
unpackage/dist/dev/mp-weixin/pages/chat/ChatList.wxss
vendored
Normal file
156
unpackage/dist/dev/mp-weixin/pages/chat/ChatList.wxss
vendored
Normal file
@@ -0,0 +1,156 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.chat-container.data-v-205c7d43 {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #E9F3F7;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
/* 顶部导航栏样式 */
|
||||
}
|
||||
.chat-container .chat-container-bg.data-v-205c7d43 {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 0;
|
||||
height: 270px;
|
||||
background: linear-gradient(180deg, #42ADF9 0%, #6CD1FF 51%, #E9F3F7 99%);
|
||||
}
|
||||
.chat-container .nav-bar-container.data-v-205c7d43 {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 999;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.chat-container .chat-container-msg-list.data-v-205c7d43 {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
z-index: 1;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
.chat-container .chat-container-top-bannar.data-v-205c7d43 {
|
||||
width: 100vw;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
.chat-container .area-msg-list.data-v-205c7d43 {
|
||||
overflow-y: auto;
|
||||
width: 100vw;
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
padding: 4px 0 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.chat-container .area-msg-list .message-item.data-v-205c7d43 {
|
||||
display: flex;
|
||||
}
|
||||
.chat-container .area-msg-list .message-item-ai.data-v-205c7d43 {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.chat-container .area-msg-list .message-item-mine.data-v-205c7d43 {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.chat-container .area-msg-list .message-item-other.data-v-205c7d43 {
|
||||
justify-content: center;
|
||||
background-color: white;
|
||||
margin: 6px 12px;
|
||||
padding: 8px 24px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.chat-container .area-msg-list .message-item-other text.data-v-205c7d43 {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
}
|
||||
.footer-area.data-v-205c7d43 {
|
||||
box-sizing: border-box;
|
||||
padding: 12px 12px 24px 12px;
|
||||
width: 100vw;
|
||||
height: auto;
|
||||
background-color: #E9F3F7;
|
||||
}
|
||||
.area-input.data-v-205c7d43 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 22px;
|
||||
background-color: #FFFFFF;
|
||||
box-shadow: 0px 0px 20px 0px rgba(52, 25, 204, 0.05);
|
||||
}
|
||||
.area-input .input-container-voice.data-v-205c7d43 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
flex-shrink: 0;
|
||||
align-self: flex-end;
|
||||
}
|
||||
.area-input .input-container-voice image.data-v-205c7d43 {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
.area-input .input-container-send.data-v-205c7d43 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
flex-shrink: 0;
|
||||
align-self: flex-end;
|
||||
}
|
||||
.area-input .input-container-send image.data-v-205c7d43 {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.area-input .textarea.data-v-205c7d43 {
|
||||
flex: 1;
|
||||
max-height: 92px;
|
||||
min-height: 22px;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
margin-bottom: 2px;
|
||||
align-items: center;
|
||||
}
|
||||
.data-v-205c7d43::-webkit-scrollbar {
|
||||
display: none;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
-webkit-appearance: none;
|
||||
background: transparent;
|
||||
color: transparent;
|
||||
}
|
||||
157
unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.js
vendored
Normal file
157
unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.js
vendored
Normal file
@@ -0,0 +1,157 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const model_ChatModel = require("../../model/ChatModel.js");
|
||||
if (!Math) {
|
||||
(ChatTopBgImg + ChatTopNavBar + ChatTopBanner + OneFeelMK001 + ChatCardAI + ChatCardMine + ChatMoreTips + ChatQuickAccess)();
|
||||
}
|
||||
const ChatTopBanner = () => "./ChatTopBanner.js";
|
||||
const ChatTopBgImg = () => "./ChatTopBgImg.js";
|
||||
const ChatTopNavBar = () => "./ChatTopNavBar.js";
|
||||
const ChatCardAI = () => "./ChatCardAI.js";
|
||||
const ChatCardMine = () => "./ChatCardMine.js";
|
||||
const ChatQuickAccess = () => "./ChatQuickAccess2.js";
|
||||
const ChatMoreTips = () => "./ChatMoreTips.js";
|
||||
const OneFeelMK001 = () => "../module/OneFeelMK001.js";
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "ChatMainList",
|
||||
emits: ["openDrawer"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const statusBarHeight = common_vendor.ref(20);
|
||||
const navBgColor = common_vendor.ref("rgba(66, 173, 249, 0)");
|
||||
common_vendor.ref(0);
|
||||
const timer = common_vendor.ref(null);
|
||||
const holdKeyboard = common_vendor.ref(false);
|
||||
const holdKeyboardFlag = common_vendor.ref(true);
|
||||
const chatMsgList = common_vendor.ref([]);
|
||||
const inputMessage = common_vendor.ref("");
|
||||
const lastMsgId = common_vendor.ref("anchor-bottom");
|
||||
holdKeyboard.value = true;
|
||||
const emits = __emit;
|
||||
const openDrawer = () => {
|
||||
emits("openDrawer");
|
||||
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:152", "=============打开抽屉");
|
||||
};
|
||||
const handleReply = (text) => {
|
||||
loadMessage(text);
|
||||
scrollToBottom();
|
||||
};
|
||||
common_vendor.onLoad(() => {
|
||||
common_vendor.index.getSystemInfo({
|
||||
success: (res) => {
|
||||
statusBarHeight.value = res.statusBarHeight || 20;
|
||||
}
|
||||
});
|
||||
});
|
||||
common_vendor.onMounted(() => {
|
||||
initData();
|
||||
});
|
||||
const initData = () => {
|
||||
const msg = {
|
||||
msgId: `msg_${0}`,
|
||||
msgType: model_ChatModel.MessageRole.AI,
|
||||
msg: "查信息、预定下单、探索玩法、呼叫服务、我通通可以满足,快试试问我问题吧!"
|
||||
};
|
||||
chatMsgList.value.push(msg);
|
||||
};
|
||||
const handleTouchEnd = () => {
|
||||
clearTimeout(timer.value);
|
||||
timer.value = setTimeout(() => {
|
||||
if (handleNoHideKeyboard) {
|
||||
common_vendor.index.hideKeyboard();
|
||||
}
|
||||
holdKeyboardFlag.value = true;
|
||||
}, 50);
|
||||
};
|
||||
const handleNoHideKeyboard = () => {
|
||||
holdKeyboardFlag.value = false;
|
||||
};
|
||||
const sendMessage = () => {
|
||||
if (!inputMessage.value.trim())
|
||||
return;
|
||||
handleNoHideKeyboard();
|
||||
loadMessage(inputMessage.value);
|
||||
inputMessage.value = "";
|
||||
scrollToBottom();
|
||||
};
|
||||
const loadMessage = (text) => {
|
||||
const newMsg = {
|
||||
msgId: `msg_${chatMsgList.value.length}`,
|
||||
msgType: model_ChatModel.MessageRole.ME,
|
||||
msg: text,
|
||||
msgContent: {
|
||||
type: model_ChatModel.MessageType.TEXT,
|
||||
text
|
||||
}
|
||||
};
|
||||
chatMsgList.value.push(newMsg);
|
||||
let type = chatMsgList.value.length % 3 === 0;
|
||||
const newMsgAI = {
|
||||
msgId: `msg_${chatMsgList.value.length}`,
|
||||
msgType: model_ChatModel.MessageRole.AI,
|
||||
msg: `我是ai,你输入的内容是:${text}`,
|
||||
msgContent: {
|
||||
type: type ? model_ChatModel.MessageType.IMAGE : model_ChatModel.MessageType.TEXT,
|
||||
url: ""
|
||||
}
|
||||
};
|
||||
chatMsgList.value.push(newMsgAI);
|
||||
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:239", "发送的新消息:", JSON.stringify(newMsg));
|
||||
};
|
||||
const scrollToBottom = () => {
|
||||
lastMsgId.value = `${chatMsgList.value[chatMsgList.value.length - 1].msgId}`;
|
||||
common_vendor.nextTick$1(() => {
|
||||
lastMsgId.value = "anchor-bottom";
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(openDrawer),
|
||||
b: statusBarHeight.value + "px",
|
||||
c: navBgColor.value,
|
||||
d: common_vendor.f(chatMsgList.value, (item, k0, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.msgType === common_vendor.unref(model_ChatModel.MessageRole).AI
|
||||
}, item.msgType === common_vendor.unref(model_ChatModel.MessageRole).AI ? common_vendor.e({
|
||||
b: item.msgContent && item.msgContent.type === common_vendor.unref(model_ChatModel.MessageType).IMAGE
|
||||
}, item.msgContent && item.msgContent.type === common_vendor.unref(model_ChatModel.MessageType).IMAGE ? {
|
||||
c: common_assets._imports_0
|
||||
} : {}, {
|
||||
d: "d7316ec5-7-" + i0 + "," + ("d7316ec5-6-" + i0),
|
||||
e: "d7316ec5-6-" + i0,
|
||||
f: common_vendor.p({
|
||||
text: item.msg
|
||||
})
|
||||
}) : item.msgType === common_vendor.unref(model_ChatModel.MessageRole).ME ? {
|
||||
h: "d7316ec5-8-" + i0,
|
||||
i: common_vendor.p({
|
||||
text: item.msg
|
||||
})
|
||||
} : {
|
||||
j: common_vendor.t(item.msg)
|
||||
}, {
|
||||
g: item.msgType === common_vendor.unref(model_ChatModel.MessageRole).ME,
|
||||
k: item.msgId,
|
||||
l: item.msgId
|
||||
});
|
||||
}),
|
||||
e: lastMsgId.value,
|
||||
f: lastMsgId.value,
|
||||
g: common_vendor.o(handleReply),
|
||||
h: common_vendor.o(handleReply),
|
||||
i: common_assets._imports_1,
|
||||
j: common_vendor.o(sendMessage),
|
||||
k: common_vendor.o(handleNoHideKeyboard),
|
||||
l: holdKeyboard.value,
|
||||
m: inputMessage.value,
|
||||
n: common_vendor.o(($event) => inputMessage.value = $event.detail.value),
|
||||
o: common_assets._imports_2,
|
||||
p: common_vendor.o(sendMessage),
|
||||
q: common_vendor.o(handleTouchEnd)
|
||||
};
|
||||
};
|
||||
}
|
||||
});
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d7316ec5"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatMainList.js.map
|
||||
13
unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.json
vendored
Normal file
13
unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"chat-top-banner": "./ChatTopBanner",
|
||||
"chat-top-bg-img": "./ChatTopBgImg",
|
||||
"chat-top-nav-bar": "./ChatTopNavBar",
|
||||
"chat-card-a-i": "./ChatCardAI",
|
||||
"chat-card-mine": "./ChatCardMine",
|
||||
"chat-quick-access": "./ChatQuickAccess",
|
||||
"chat-more-tips": "./ChatMoreTips",
|
||||
"one-feel-m-k001": "../module/OneFeelMK001"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="chat-container data-v-d7316ec5" bindtouchend="{{q}}"><chat-top-bg-img class="chat-container-bg data-v-d7316ec5" u-i="d7316ec5-0" bind:__l="__l"></chat-top-bg-img><view class="nav-bar-container data-v-d7316ec5" style="{{'padding-top:' + b + ';' + ('background-color:' + c)}}"><chat-top-nav-bar class="data-v-d7316ec5" bindopenDrawer="{{a}}" u-i="d7316ec5-1" bind:__l="__l"></chat-top-nav-bar></view><view class="chat-container-msg-list data-v-d7316ec5"><chat-top-banner class="chat-container-top-bannar data-v-d7316ec5" u-i="d7316ec5-2" bind:__l="__l"></chat-top-banner><scroll-view scroll-y scroll-into-view="{{f}}" scroll-with-animation="{{true}}" class="area-msg-list data-v-d7316ec5"><view class="data-v-d7316ec5" style="padding:6px 12px"><one-feel-m-k001 class="data-v-d7316ec5" u-i="d7316ec5-3" bind:__l="__l"></one-feel-m-k001></view><view class="data-v-d7316ec5" style="padding:6px 12px"><one-feel-m-k001 class="data-v-d7316ec5" u-i="d7316ec5-4" bind:__l="__l"></one-feel-m-k001></view><view class="data-v-d7316ec5" style="padding:6px 12px"><one-feel-m-k001 class="data-v-d7316ec5" u-i="d7316ec5-5" bind:__l="__l"></one-feel-m-k001></view><view wx:for="{{d}}" wx:for-item="item" wx:key="k" class="area-msg-list-content data-v-d7316ec5" id="{{item.l}}"><block wx:if="{{item.a}}"><chat-card-a-i wx:if="{{item.f}}" u-s="{{['d']}}" class="message-item message-item-ai data-v-d7316ec5" u-i="{{item.e}}" bind:__l="__l" u-p="{{item.f}}"><image wx:if="{{item.b}}" class="data-v-d7316ec5" src="{{item.c}}" style="width:100px;height:100px"></image><one-feel-m-k001 class="data-v-d7316ec5" u-i="{{item.d}}" bind:__l="__l"></one-feel-m-k001></chat-card-a-i></block><block wx:elif="{{item.g}}"><chat-card-mine wx:if="{{item.i}}" class="message-item message-item-mine data-v-d7316ec5" u-i="{{item.h}}" bind:__l="__l" u-p="{{item.i}}"></chat-card-mine></block><block wx:else><text class="message-item message-item-other data-v-d7316ec5">{{item.j}}</text></block></view><view class="data-v-d7316ec5" id="{{e}}"></view></scroll-view><view class="footer-area data-v-d7316ec5"><chat-more-tips class="data-v-d7316ec5" bindreplySent="{{g}}" u-i="d7316ec5-9" bind:__l="__l"></chat-more-tips><chat-quick-access class="data-v-d7316ec5" bindreplySent="{{h}}" u-i="d7316ec5-10" bind:__l="__l"></chat-quick-access><view class="area-input data-v-d7316ec5"><view class="input-container-voice data-v-d7316ec5"><image class="data-v-d7316ec5" src="{{i}}"></image></view><block wx:if="{{r0}}"><textarea class="textarea data-v-d7316ec5" type="text" placeholder="快速订票,呼叫服务" cursor-spacing="65" confirm-type="done" bindconfirm="{{j}}" bindtouchend="{{k}}" confirm-hold="{{true}}" auto-height show-confirm-bar="{{false}}" hold-keyboard="{{l}}" maxlength="300" value="{{m}}" bindinput="{{n}}"/></block><view class="input-container-send data-v-d7316ec5" bindtap="{{p}}"><image class="data-v-d7316ec5" src="{{o}}"></image></view></view></view></view></view>
|
||||
171
unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.wxss
vendored
Normal file
171
unpackage/dist/dev/mp-weixin/pages/chat/ChatMainList.wxss
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.chat-container.data-v-d7316ec5 {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #E9F3F7;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden !important;
|
||||
position: relative;
|
||||
/* 顶部导航栏样式 */
|
||||
}
|
||||
.chat-container .chat-container-bg.data-v-d7316ec5 {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 0;
|
||||
height: 270px;
|
||||
background: linear-gradient(180deg, #42ADF9 0%, #6CD1FF 51%, #E9F3F7 99%);
|
||||
}
|
||||
.chat-container .nav-bar-container.data-v-d7316ec5 {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 999;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.chat-container .chat-container-msg-list.data-v-d7316ec5 {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.chat-container .chat-container-top-bannar.data-v-d7316ec5 {
|
||||
width: 100vw;
|
||||
flex-shrink: 0;
|
||||
touch-action: none;
|
||||
}
|
||||
.chat-container .area-msg-list.data-v-d7316ec5 {
|
||||
width: 100vw;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
padding: 4px 0 0;
|
||||
overscroll-behavior: contain;
|
||||
/* 阻止滚动穿透 */
|
||||
-webkit-overflow-scrolling: touch;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.chat-container .area-msg-list .area-msg-list-content.data-v-d7316ec5 {
|
||||
/* 隐藏滚动条 */
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.chat-container .area-msg-list .area-msg-list-content.data-v-d7316ec5::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.chat-container .area-msg-list .message-item.data-v-d7316ec5 {
|
||||
display: flex;
|
||||
}
|
||||
.chat-container .area-msg-list .message-item-ai.data-v-d7316ec5 {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.chat-container .area-msg-list .message-item-mine.data-v-d7316ec5 {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.chat-container .area-msg-list .message-item-other.data-v-d7316ec5 {
|
||||
justify-content: center;
|
||||
background-color: white;
|
||||
margin: 6px 12px;
|
||||
padding: 8px 24px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.chat-container .area-msg-list .message-item-other text.data-v-d7316ec5 {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
}
|
||||
.footer-area.data-v-d7316ec5 {
|
||||
width: 100vw;
|
||||
flex-shrink: 0;
|
||||
padding: 4px 0 24px 0;
|
||||
background-color: #E9F3F7;
|
||||
touch-action: pan-x;
|
||||
/* 仅允许横向触摸滚动 */
|
||||
overflow-x: auto;
|
||||
/* 允许横向滚动 */
|
||||
overflow-y: hidden;
|
||||
/* 禁止垂直滚动 */
|
||||
}
|
||||
.area-input.data-v-d7316ec5 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 22px;
|
||||
background-color: #FFFFFF;
|
||||
box-shadow: 0px 0px 20px 0px rgba(52, 25, 204, 0.05);
|
||||
margin: 0 12px;
|
||||
}
|
||||
.area-input .input-container-voice.data-v-d7316ec5 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
flex-shrink: 0;
|
||||
align-self: flex-end;
|
||||
}
|
||||
.area-input .input-container-voice image.data-v-d7316ec5 {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
.area-input .input-container-send.data-v-d7316ec5 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
flex-shrink: 0;
|
||||
align-self: flex-end;
|
||||
}
|
||||
.area-input .input-container-send image.data-v-d7316ec5 {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.area-input .textarea.data-v-d7316ec5 {
|
||||
flex: 1;
|
||||
max-height: 92px;
|
||||
min-height: 22px;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
margin-bottom: 2px;
|
||||
align-items: center;
|
||||
}
|
||||
.data-v-d7316ec5::-webkit-scrollbar {
|
||||
display: none;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
-webkit-appearance: none;
|
||||
background: transparent;
|
||||
color: transparent;
|
||||
}
|
||||
55
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.js
vendored
Normal file
55
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "ChatMoreTips",
|
||||
emits: ["replySent"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const itemList = common_vendor.ref([]);
|
||||
const emits = __emit;
|
||||
const sendReply = (text) => {
|
||||
emits("replySent", text);
|
||||
};
|
||||
common_vendor.onMounted(() => {
|
||||
initData();
|
||||
});
|
||||
const initData = () => {
|
||||
itemList.value = [
|
||||
{
|
||||
title: "定温泉票"
|
||||
},
|
||||
{
|
||||
title: "定酒店"
|
||||
},
|
||||
{
|
||||
title: "优惠套餐"
|
||||
},
|
||||
{
|
||||
title: "亲子玩法"
|
||||
},
|
||||
{
|
||||
title: "了解交通"
|
||||
},
|
||||
{
|
||||
title: "看看酒店"
|
||||
},
|
||||
{
|
||||
title: "看看美食"
|
||||
}
|
||||
];
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.f(itemList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.o(($event) => sendReply(item.title), index),
|
||||
c: index
|
||||
};
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d881dd42"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatMoreTips.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="more-tips data-v-d881dd42"><view class="more-tips-scroll data-v-d881dd42"><view wx:for="{{a}}" wx:for-item="item" wx:key="c" class="more-tips-item data-v-d881dd42"><text class="more-tips-item-title data-v-d881dd42" bindtap="{{item.b}}">{{item.a}}</text></view></view></view>
|
||||
64
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.wxss
vendored
Normal file
64
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.wxss
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.more-tips.data-v-d881dd42 {
|
||||
width: 100%;
|
||||
}
|
||||
.more-tips-scroll.data-v-d881dd42 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
/* 隐藏滚动条 */
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.more-tips-scroll.data-v-d881dd42::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.more-tips .more-tips-item.data-v-d881dd42 {
|
||||
border-radius: 8px;
|
||||
margin: 4px;
|
||||
box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.1);
|
||||
background-color: #FFFFFF;
|
||||
padding: 2px 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 46px;
|
||||
}
|
||||
.more-tips .more-tips-item.data-v-d881dd42:first-child {
|
||||
margin-left: 12px;
|
||||
}
|
||||
.more-tips .more-tips-item.data-v-d881dd42:last-child {
|
||||
margin-right: 12px;
|
||||
}
|
||||
.more-tips .more-tips-item .more-tips-item-title.data-v-d881dd42 {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
color: #00A6FF;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess.js
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
const ChatQuickAccess = require("../../ChatQuickAccess.js");
|
||||
wx.createPage(ChatQuickAccess.MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatQuickAccess.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="quick-access data-v-eca4a9d2"><view class="quick-access-scroll data-v-eca4a9d2"><view wx:for="{{a}}" wx:for-item="item" wx:key="d" class="quick-access-item data-v-eca4a9d2" bindtap="{{item.e}}"><image class="quick-access-item-bg data-v-eca4a9d2" src="{{b}}" mode="aspectFill"></image><view class="quick-access-item-title data-v-eca4a9d2"><image class="data-v-eca4a9d2" src="{{item.a}}"></image><text class="data-v-eca4a9d2">{{item.b}}</text></view><text class="quick-access-item-content data-v-eca4a9d2">{{item.c}}</text></view></view></view>
|
||||
91
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess.wxss
vendored
Normal file
91
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess.wxss
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.quick-access.data-v-eca4a9d2 {
|
||||
width: 100%;
|
||||
}
|
||||
.quick-access-scroll.data-v-eca4a9d2 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
/* 隐藏滚动条 */
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.quick-access-scroll.data-v-eca4a9d2::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.quick-access .quick-access-item.data-v-eca4a9d2 {
|
||||
flex: 0 0 104px;
|
||||
border-radius: 8px;
|
||||
margin: 4px 4px 8px 4px;
|
||||
box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.1);
|
||||
padding: 12px;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
.quick-access .quick-access-item.data-v-eca4a9d2:first-child {
|
||||
margin-left: 12px;
|
||||
}
|
||||
.quick-access .quick-access-item.data-v-eca4a9d2:last-child {
|
||||
margin-right: 12px;
|
||||
}
|
||||
.quick-access .quick-access-item .quick-access-item-bg.data-v-eca4a9d2 {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 0;
|
||||
border-radius: 8px;
|
||||
width: 128px;
|
||||
height: 56px;
|
||||
}
|
||||
.quick-access .quick-access-item .quick-access-item-title.data-v-eca4a9d2 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
}
|
||||
.quick-access .quick-access-item .quick-access-item-title image.data-v-eca4a9d2 {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.quick-access .quick-access-item .quick-access-item-title text.data-v-eca4a9d2 {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
color: #201F32;
|
||||
line-height: 16px;
|
||||
}
|
||||
.quick-access .quick-access-item .quick-access-item-content.data-v-eca4a9d2 {
|
||||
z-index: 1;
|
||||
margin-top: 4px;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 10px;
|
||||
color: #678CAD;
|
||||
line-height: 18px;
|
||||
}
|
||||
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess2.js
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatQuickAccess2.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
const ChatQuickAccess = require("../../ChatQuickAccess.js");
|
||||
wx.createPage(ChatQuickAccess.MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatQuickAccess2.js.map
|
||||
28
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBanner.js
vendored
Normal file
28
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBanner.js
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
__name: "ChatTopBanner",
|
||||
setup(__props) {
|
||||
const statusBarHeight = common_vendor.ref(20);
|
||||
const marginContentTop = common_vendor.ref(44);
|
||||
common_vendor.onLoad(() => {
|
||||
common_vendor.index.getSystemInfo({
|
||||
success: (res) => {
|
||||
statusBarHeight.value = res.statusBarHeight || 20;
|
||||
marginContentTop.value += statusBarHeight.value;
|
||||
}
|
||||
});
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$1,
|
||||
b: common_assets._imports_1$1,
|
||||
c: marginContentTop.value + "px"
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-69ebd469"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatTopBanner.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBanner.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBanner.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBanner.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBanner.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="top-bg-content data-v-69ebd469" style="{{'margin-top:' + c}}"><view class="top-item1 data-v-69ebd469"><view class="top-item1-left data-v-69ebd469"><image class="data-v-69ebd469" src="{{a}}"></image><text class="data-v-69ebd469">2025/02/10 多云 -3~6℃</text></view><view class="top-item1-right data-v-69ebd469"><image class="data-v-69ebd469" src="{{b}}"></image></view></view></view>
|
||||
60
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBanner.wxss
vendored
Normal file
60
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBanner.wxss
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.top-bg-content.data-v-69ebd469 {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
.top-item1.data-v-69ebd469 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin: 0 46px 0 32px;
|
||||
}
|
||||
.top-item1 .top-item1-left.data-v-69ebd469 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.top-item1 .top-item1-left image.data-v-69ebd469 {
|
||||
width: 118px;
|
||||
height: 52px;
|
||||
}
|
||||
.top-item1 .top-item1-left text.data-v-69ebd469 {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
color: #1E4C69;
|
||||
line-height: 24px;
|
||||
text-align: justify;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
}
|
||||
.top-item1 .top-item1-right image.data-v-69ebd469 {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
}
|
||||
12
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBgImg.js
vendored
Normal file
12
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBgImg.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {};
|
||||
function _sfc_render(_ctx, _cache) {
|
||||
return {
|
||||
a: common_assets._imports_0$2
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e0b38bdf"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatTopBgImg.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBgImg.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBgImg.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBgImg.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBgImg.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="top-bg data-v-e0b38bdf"><image src="{{a}}" mode="aspectFit" class="top-bg-img data-v-e0b38bdf"></image></view>
|
||||
34
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBgImg.wxss
vendored
Normal file
34
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopBgImg.wxss
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.top-bg.data-v-e0b38bdf {
|
||||
width: 100%;
|
||||
height: 270px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.top-bg .top-bg-img.data-v-e0b38bdf {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
23
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopNavBar.js
vendored
Normal file
23
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopNavBar.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
__name: "ChatTopNavBar",
|
||||
emits: ["openDrawer"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const emits = __emit;
|
||||
const openDrawer = () => {
|
||||
emits("openDrawer");
|
||||
common_vendor.index.__f__("log", "at pages/chat/ChatTopNavBar.vue:16", "=============打开抽屉");
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$3,
|
||||
b: common_vendor.o(openDrawer)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-3c5e940c"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatTopNavBar.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopNavBar.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopNavBar.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopNavBar.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopNavBar.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="nav-bar data-v-3c5e940c"><view class="nav-item data-v-3c5e940c" bindtap="{{b}}"><image src="{{a}}" mode="aspectFit" class="nav-item-icon data-v-3c5e940c"></image></view></view>
|
||||
40
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopNavBar.wxss
vendored
Normal file
40
unpackage/dist/dev/mp-weixin/pages/chat/ChatTopNavBar.wxss
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.nav-bar.data-v-3c5e940c {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 44px;
|
||||
padding: 0 15px;
|
||||
}
|
||||
.nav-bar .nav-item.data-v-3c5e940c {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.nav-bar .nav-item-icon.data-v-3c5e940c {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
27
unpackage/dist/dev/mp-weixin/pages/drawer/DrawerHome.js
vendored
Normal file
27
unpackage/dist/dev/mp-weixin/pages/drawer/DrawerHome.js
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "DrawerHome",
|
||||
emits: ["closeDrawer"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const emits = __emit;
|
||||
const closeDrawer = () => {
|
||||
emits("closeDrawer");
|
||||
common_vendor.index.__f__("log", "at pages/drawer/DrawerHome.vue:23", "=============关闭抽屉");
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(closeDrawer),
|
||||
b: common_vendor.f(100, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ce6d4433"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/drawer/DrawerHome.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/drawer/DrawerHome.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/drawer/DrawerHome.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/drawer/DrawerHome.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/drawer/DrawerHome.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="drawer-home data-v-ce6d4433"><view class="drawer-home-nav data-v-ce6d4433"><text class="data-v-ce6d4433">抽屉页面</text></view><button class="data-v-ce6d4433" bindtap="{{a}}" type="default">关闭</button><view class="drawer-list data-v-ce6d4433"><view wx:for="{{b}}" wx:for-item="item" wx:key="b" class="data-v-ce6d4433"><text class="message-item data-v-ce6d4433">{{item.a}}</text></view></view></view>
|
||||
62
unpackage/dist/dev/mp-weixin/pages/drawer/DrawerHome.wxss
vendored
Normal file
62
unpackage/dist/dev/mp-weixin/pages/drawer/DrawerHome.wxss
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.drawer-home.data-v-ce6d4433 {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #E9F3F7;
|
||||
padding-top: 44px;
|
||||
}
|
||||
.drawer-home .drawer-home-nav.data-v-ce6d4433 {
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.drawer-home .drawer-home-nav text.data-v-ce6d4433 {
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
.drawer-home .drawer-list.data-v-ce6d4433 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.drawer-home .message-item.data-v-ce6d4433 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background-color: white;
|
||||
margin: 6px 12px;
|
||||
padding: 8px 24px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.drawer-home .message-item text.data-v-ce6d4433 {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
}
|
||||
35
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
Normal file
35
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
if (!Math) {
|
||||
(DrawerHome + ChatMainList + exDrawer)();
|
||||
}
|
||||
const exDrawer = () => "../../third/ex-drawer/ex-drawer.js";
|
||||
const DrawerHome = () => "../drawer/DrawerHome.js";
|
||||
const ChatMainList = () => "../chat/ChatMainList.js";
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const drawer = common_vendor.ref();
|
||||
const openDrawer = () => {
|
||||
drawer.value.open();
|
||||
};
|
||||
const closeDrawer = () => {
|
||||
drawer.value.close();
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(closeDrawer),
|
||||
b: common_vendor.o(openDrawer),
|
||||
c: common_vendor.sr(drawer, "1cf27b2a-0", {
|
||||
"k": "drawer"
|
||||
}),
|
||||
d: common_vendor.p({
|
||||
width: "488"
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|
||||
8
unpackage/dist/dev/mp-weixin/pages/index/index.json
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/pages/index/index.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"ex-drawer": "../../third/ex-drawer/ex-drawer",
|
||||
"drawer-home": "../drawer/DrawerHome",
|
||||
"chat-main-list": "../chat/ChatMainList"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<ex-drawer wx:if="{{d}}" class="r data-v-1cf27b2a" u-s="{{['d']}}" u-r="drawer" u-i="1cf27b2a-0" bind:__l="__l" u-p="{{d}}"><view class="mian-drawer data-v-1cf27b2a" slot="drawerContent"><drawer-home class="data-v-1cf27b2a" bindcloseDrawer="{{a}}" u-i="1cf27b2a-1,1cf27b2a-0" bind:__l="__l"></drawer-home></view><view class="mian-container data-v-1cf27b2a" slot="containerContent"><chat-main-list class="data-v-1cf27b2a" bindopenDrawer="{{b}}" u-i="1cf27b2a-2,1cf27b2a-0" bind:__l="__l"></chat-main-list></view></ex-drawer>
|
||||
34
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
Normal file
34
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.mian-drawer.data-v-1cf27b2a {
|
||||
height: 100vh;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.mian-container.data-v-1cf27b2a {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
19
unpackage/dist/dev/mp-weixin/pages/module/OneFeelMK001.js
vendored
Normal file
19
unpackage/dist/dev/mp-weixin/pages/module/OneFeelMK001.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {};
|
||||
function _sfc_render(_ctx, _cache) {
|
||||
return {
|
||||
a: common_assets._imports_0$5,
|
||||
b: common_vendor.f(8, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
c: common_assets._imports_1$2
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-80027450"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/module/OneFeelMK001.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/module/OneFeelMK001.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/module/OneFeelMK001.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/module/OneFeelMK001.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/module/OneFeelMK001.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="container data-v-80027450"><view class="mk-title data-v-80027450"><text class="title data-v-80027450">避世放松 能量调节</text><image class="wave data-v-80027450" src="{{a}}" mode="widthFix"/></view><view class="container-scroll data-v-80027450"><view wx:for="{{b}}" wx:for-item="item" wx:key="b" class="mk-card-item data-v-80027450"><image class="data-v-80027450" src="{{c}}"></image><text class="data-v-80027450">#森系环境 #出工人必备-{{item.a}}</text></view></view></view>
|
||||
75
unpackage/dist/dev/mp-weixin/pages/module/OneFeelMK001.wxss
vendored
Normal file
75
unpackage/dist/dev/mp-weixin/pages/module/OneFeelMK001.wxss
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.container .mk-title.data-v-80027450 {
|
||||
padding: 4px 0;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
.container .mk-title .title.data-v-80027450 {
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
}
|
||||
.container .mk-title .wave.data-v-80027450 {
|
||||
position: absolute;
|
||||
bottom: 2px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
.container .container-scroll.data-v-80027450 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow-x: auto;
|
||||
margin-top: 4px;
|
||||
/* 隐藏滚动条 */
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.container .container-scroll.data-v-80027450::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.container .container-scroll .mk-card-item.data-v-80027450 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 188px;
|
||||
height: 154px;
|
||||
background-color: #ffffff;
|
||||
border-radius: 10px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.container .container-scroll .mk-card-item image.data-v-80027450 {
|
||||
width: 188px;
|
||||
height: 112px;
|
||||
}
|
||||
.container .container-scroll .mk-card-item text.data-v-80027450 {
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
color: #333333;
|
||||
}
|
||||
Reference in New Issue
Block a user