feat: 标签组件封装
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 917 B |
26
unpackage/dist/dev/mp-weixin/common/assets.js
vendored
26
unpackage/dist/dev/mp-weixin/common/assets.js
vendored
@@ -1,22 +1,20 @@
|
||||
"use strict";
|
||||
const _imports_0$6 = "/static/quick/quick_icon_bg.png";
|
||||
const _imports_0$5 = "/static/logo.png";
|
||||
const _imports_0$5 = "/static/quick/quick_icon_bg.png";
|
||||
const _imports_0$4 = "/static/logo.png";
|
||||
const _imports_1$2 = "/static/input_voice_icon.png";
|
||||
const _imports_2 = "/static/input_send_icon.png";
|
||||
const _imports_0$4 = "/static/hello_xiaomu_icon@2x.png";
|
||||
const _imports_0$3 = "/static/hello_xiaomu_icon@2x.png";
|
||||
const _imports_1$1 = "/static/hello_logo_icon@2x.png";
|
||||
const _imports_0$3 = "/static/top_bg_icon.png";
|
||||
const _imports_0$2 = "/static/drawer_icon.png";
|
||||
const _imports_0$1 = "/static/wave_icon.png";
|
||||
const _imports_0$2 = "/static/top_bg_icon.png";
|
||||
const _imports_0$1 = "/static/drawer_icon.png";
|
||||
const _imports_0 = "/static/wave_icon.png";
|
||||
const _imports_1 = "/static/test/mk_img_1.png";
|
||||
const _imports_0 = "/assets/icon_order.911ae60f.png";
|
||||
exports._imports_0 = _imports_0$5;
|
||||
exports._imports_0$1 = _imports_0$4;
|
||||
exports._imports_0$2 = _imports_0$3;
|
||||
exports._imports_0$3 = _imports_0$2;
|
||||
exports._imports_0$4 = _imports_0$6;
|
||||
exports._imports_0$5 = _imports_0$1;
|
||||
exports._imports_0$6 = _imports_0;
|
||||
exports._imports_0 = _imports_0$4;
|
||||
exports._imports_0$1 = _imports_0$3;
|
||||
exports._imports_0$2 = _imports_0$2;
|
||||
exports._imports_0$3 = _imports_0$1;
|
||||
exports._imports_0$4 = _imports_0$5;
|
||||
exports._imports_0$5 = _imports_0;
|
||||
exports._imports_1 = _imports_1$2;
|
||||
exports._imports_1$1 = _imports_1$1;
|
||||
exports._imports_1$2 = _imports_1;
|
||||
|
||||
99
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
99
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@@ -2582,21 +2582,21 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
||||
);
|
||||
}
|
||||
}
|
||||
const createHook$1 = (lifecycle) => (hook, target = currentInstance) => (
|
||||
const createHook = (lifecycle) => (hook, target = currentInstance) => (
|
||||
// post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
|
||||
(!isInSSRComponentSetup || lifecycle === "sp") && injectHook(lifecycle, (...args) => hook(...args), target)
|
||||
);
|
||||
const onBeforeMount = createHook$1("bm");
|
||||
const onMounted = createHook$1("m");
|
||||
const onBeforeUpdate = createHook$1("bu");
|
||||
const onUpdated = createHook$1("u");
|
||||
const onBeforeUnmount = createHook$1("bum");
|
||||
const onUnmounted = createHook$1("um");
|
||||
const onServerPrefetch = createHook$1("sp");
|
||||
const onRenderTriggered = createHook$1(
|
||||
const onBeforeMount = createHook("bm");
|
||||
const onMounted = createHook("m");
|
||||
const onBeforeUpdate = createHook("bu");
|
||||
const onUpdated = createHook("u");
|
||||
const onBeforeUnmount = createHook("bum");
|
||||
const onUnmounted = createHook("um");
|
||||
const onServerPrefetch = createHook("sp");
|
||||
const onRenderTriggered = createHook(
|
||||
"rtg"
|
||||
);
|
||||
const onRenderTracked = createHook$1(
|
||||
const onRenderTracked = createHook(
|
||||
"rtc"
|
||||
);
|
||||
function onErrorCaptured(hook, target = currentInstance) {
|
||||
@@ -2609,11 +2609,15 @@ const getPublicInstance = (i) => {
|
||||
return getExposeProxy(i) || i.proxy;
|
||||
return getPublicInstance(i.parent);
|
||||
};
|
||||
function getComponentInternalInstance(i) {
|
||||
return i;
|
||||
}
|
||||
const publicPropertiesMap = (
|
||||
// Move PURE marker to new line to workaround compiler discarding it
|
||||
// due to type annotation
|
||||
/* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {
|
||||
$: (i) => i,
|
||||
// fixed by xxxxxx
|
||||
$: getComponentInternalInstance,
|
||||
// fixed by xxxxxx vue-i18n 在 dev 模式,访问了 $el,故模拟一个假的
|
||||
// $el: i => i.vnode.el,
|
||||
$el: (i) => i.__$el || (i.__$el = {}),
|
||||
@@ -4484,6 +4488,7 @@ function warnRef(ref2) {
|
||||
const queuePostRenderEffect = queuePostFlushCb;
|
||||
function mountComponent(initialVNode, options) {
|
||||
const instance = initialVNode.component = createComponentInstance(initialVNode, options.parentComponent, null);
|
||||
instance.renderer = options.mpType ? options.mpType : "component";
|
||||
{
|
||||
instance.ctx.$onApplyOptions = onApplyOptions;
|
||||
instance.ctx.$children = [];
|
||||
@@ -4822,7 +4827,8 @@ function injectLifecycleHook(name, hook, publicThis, instance) {
|
||||
}
|
||||
function initHooks$1(options, instance, publicThis) {
|
||||
const mpType = options.mpType || publicThis.$mpType;
|
||||
if (!mpType || mpType === "component") {
|
||||
if (!mpType || mpType === "component" || // instance.renderer 标识页面是否作为组件渲染
|
||||
mpType === "page" && instance.renderer === "component") {
|
||||
return;
|
||||
}
|
||||
Object.keys(options).forEach((name) => {
|
||||
@@ -5461,10 +5467,10 @@ function handlePromise(promise) {
|
||||
function promisify$1(name, fn) {
|
||||
return (args = {}, ...rest) => {
|
||||
if (hasCallback(args)) {
|
||||
return wrapperReturnValue(name, invokeApi(name, fn, args, rest));
|
||||
return wrapperReturnValue(name, invokeApi(name, fn, extend({}, args), rest));
|
||||
}
|
||||
return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => {
|
||||
invokeApi(name, fn, extend(args, { success: resolve, fail: reject }), rest);
|
||||
invokeApi(name, fn, extend({}, args, { success: resolve, fail: reject }), rest);
|
||||
})));
|
||||
};
|
||||
}
|
||||
@@ -5861,7 +5867,7 @@ function promisify(name, api) {
|
||||
}
|
||||
return function promiseApi(options = {}, ...rest) {
|
||||
if (isFunction(options.success) || isFunction(options.fail) || isFunction(options.complete)) {
|
||||
return wrapperReturnValue(name, invokeApi(name, api, options, rest));
|
||||
return wrapperReturnValue(name, invokeApi(name, api, extend({}, options), rest));
|
||||
}
|
||||
return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => {
|
||||
invokeApi(name, api, extend({}, options, {
|
||||
@@ -6028,7 +6034,7 @@ function getOSInfo(system, platform) {
|
||||
osName = system.split(" ")[0] || platform;
|
||||
osVersion = system.split(" ")[1] || "";
|
||||
}
|
||||
osName = osName.toLocaleLowerCase();
|
||||
osName = osName.toLowerCase();
|
||||
switch (osName) {
|
||||
case "harmony":
|
||||
case "ohos":
|
||||
@@ -6068,9 +6074,9 @@ function populateParameters(fromRes, toRes) {
|
||||
appVersion: "1.0.0",
|
||||
appVersionCode: "100",
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
uniCompileVersion: "4.66",
|
||||
uniCompilerVersion: "4.66",
|
||||
uniRuntimeVersion: "4.66",
|
||||
uniCompileVersion: "4.75",
|
||||
uniCompilerVersion: "4.75",
|
||||
uniRuntimeVersion: "4.75",
|
||||
uniPlatform: "mp-weixin",
|
||||
deviceBrand,
|
||||
deviceModel: model,
|
||||
@@ -6107,7 +6113,7 @@ function getGetDeviceType(fromRes, model) {
|
||||
mac: "pc"
|
||||
};
|
||||
const deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
|
||||
const _model = model.toLocaleLowerCase();
|
||||
const _model = model.toLowerCase();
|
||||
for (let index2 = 0; index2 < deviceTypeMapsKeys.length; index2++) {
|
||||
const _m = deviceTypeMapsKeys[index2];
|
||||
if (_model.indexOf(_m) !== -1) {
|
||||
@@ -6121,7 +6127,7 @@ function getGetDeviceType(fromRes, model) {
|
||||
function getDeviceBrand(brand) {
|
||||
let deviceBrand = brand;
|
||||
if (deviceBrand) {
|
||||
deviceBrand = deviceBrand.toLocaleLowerCase();
|
||||
deviceBrand = deviceBrand.toLowerCase();
|
||||
}
|
||||
return deviceBrand;
|
||||
}
|
||||
@@ -6219,9 +6225,9 @@ const getAppBaseInfo = {
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
isUniAppX: false,
|
||||
uniPlatform: "mp-weixin",
|
||||
uniCompileVersion: "4.66",
|
||||
uniCompilerVersion: "4.66",
|
||||
uniRuntimeVersion: "4.66"
|
||||
uniCompileVersion: "4.75",
|
||||
uniCompilerVersion: "4.75",
|
||||
uniRuntimeVersion: "4.75"
|
||||
};
|
||||
extend(toRes, parameters);
|
||||
}
|
||||
@@ -6894,14 +6900,14 @@ const atFileRegex = /^\s*at\s+[\w/./-]+:\d+$/;
|
||||
function rewriteConsole() {
|
||||
function wrapConsole(type) {
|
||||
return function(...args) {
|
||||
const originalArgs = [...args];
|
||||
if (originalArgs.length) {
|
||||
const maybeAtFile = originalArgs[originalArgs.length - 1];
|
||||
if (typeof maybeAtFile === "string" && atFileRegex.test(maybeAtFile)) {
|
||||
originalArgs.pop();
|
||||
}
|
||||
}
|
||||
{
|
||||
const originalArgs = [...args];
|
||||
if (originalArgs.length) {
|
||||
const maybeAtFile = originalArgs[originalArgs.length - 1];
|
||||
if (typeof maybeAtFile === "string" && atFileRegex.test(maybeAtFile)) {
|
||||
originalArgs.pop();
|
||||
}
|
||||
}
|
||||
originalConsole[type](...originalArgs);
|
||||
}
|
||||
if (type === "error" && args.length === 1) {
|
||||
@@ -6961,9 +6967,9 @@ function isConsoleWritable() {
|
||||
return isWritable;
|
||||
}
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "10.10.3.1,192.168.56.1,127.0.0.1";
|
||||
const hosts = "192.168.1.23,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_25DYPD";
|
||||
const id = "mp-weixin_FpXcBt";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
@@ -7909,15 +7915,30 @@ const createSubpackageApp = initCreateSubpackageApp();
|
||||
wx.createPluginApp = global.createPluginApp = createPluginApp;
|
||||
wx.createSubpackageApp = global.createSubpackageApp = createSubpackageApp;
|
||||
}
|
||||
const createHook = (lifecycle) => (hook, target = getCurrentInstance()) => {
|
||||
const createLifeCycleHook = (lifecycle, flag = 0) => (hook, target = getCurrentInstance()) => {
|
||||
!isInSSRComponentSetup && injectHook(lifecycle, hook, target);
|
||||
};
|
||||
const onShow = /* @__PURE__ */ createHook(ON_SHOW);
|
||||
const onHide = /* @__PURE__ */ createHook(ON_HIDE);
|
||||
const onLaunch = /* @__PURE__ */ createHook(ON_LAUNCH);
|
||||
const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
|
||||
const onShow = /* @__PURE__ */ createLifeCycleHook(
|
||||
ON_SHOW,
|
||||
1 | 2
|
||||
/* HookFlags.PAGE */
|
||||
);
|
||||
const onHide = /* @__PURE__ */ createLifeCycleHook(
|
||||
ON_HIDE,
|
||||
1 | 2
|
||||
/* HookFlags.PAGE */
|
||||
);
|
||||
const onLaunch = /* @__PURE__ */ createLifeCycleHook(
|
||||
ON_LAUNCH,
|
||||
1
|
||||
/* HookFlags.APP */
|
||||
);
|
||||
const onLoad = /* @__PURE__ */ createLifeCycleHook(
|
||||
ON_LOAD,
|
||||
2
|
||||
/* HookFlags.PAGE */
|
||||
);
|
||||
exports._export_sfc = _export_sfc;
|
||||
exports.computed = computed;
|
||||
exports.createSSRApp = createSSRApp;
|
||||
exports.defineComponent = defineComponent;
|
||||
exports.e = e;
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const orderId = common_vendor.ref("7378400483776544");
|
||||
const touristCount = common_vendor.ref(7);
|
||||
const orderStatus = common_vendor.ref("pending");
|
||||
const orderStatusText = common_vendor.computed(() => {
|
||||
switch (orderStatus.value) {
|
||||
case "canceled":
|
||||
return "已取消";
|
||||
case "pending":
|
||||
return "待确认";
|
||||
case "refundProcessing":
|
||||
return "退款中";
|
||||
case "refunded":
|
||||
return "已退款";
|
||||
case "completed":
|
||||
return "已完成";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$6,
|
||||
b: common_vendor.t(orderStatusText.value),
|
||||
c: common_vendor.n(`status-${orderStatus.value}`),
|
||||
d: common_vendor.t(orderId.value),
|
||||
e: common_vendor.t(touristCount.value)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-fff203c8"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/OrderCardItem/index.js.map
|
||||
@@ -1 +0,0 @@
|
||||
<view class="service-order-item data-v-fff203c8"><view class="order-header data-v-fff203c8"><image class="order-icon data-v-fff203c8" src="{{a}}"></image><text class="order-title data-v-fff203c8">温泉早鸟票</text><text class="{{['data-v-fff203c8', 'order-status', c]}}">{{b}}</text></view><view class="order-details data-v-fff203c8"><view class="detail-item data-v-fff203c8"><text class="detail-label data-v-fff203c8">订单编号:</text><text class="detail-value data-v-fff203c8">{{d}}</text></view><view class="detail-item data-v-fff203c8"><text class="detail-label data-v-fff203c8">游客人数:</text><text class="detail-value data-v-fff203c8">{{e}}人</text></view></view></view>
|
||||
@@ -1,93 +0,0 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.service-order-item.data-v-fff203c8 {
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
padding: 15px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.order-header.data-v-fff203c8 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.order-icon.data-v-fff203c8 {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background-color: #ffa500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.order-title.data-v-fff203c8 {
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
}
|
||||
.order-status.data-v-fff203c8 {
|
||||
font-size: 14px;
|
||||
padding: 5px 10px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
.status-canceled.data-v-fff203c8 {
|
||||
color: #999;
|
||||
border: 1px solid #999;
|
||||
}
|
||||
.status-pending.data-v-fff203c8 {
|
||||
color: #ff4d94;
|
||||
border: 1px solid #ff4d94;
|
||||
}
|
||||
.status-refundProcessing.data-v-fff203c8 {
|
||||
color: #ff9900;
|
||||
border: 1px solid #ff9900;
|
||||
}
|
||||
.status-refunded.data-v-fff203c8 {
|
||||
color: #ff4d4f;
|
||||
border: 1px solid #ff4d4f;
|
||||
}
|
||||
.status-completed.data-v-fff203c8 {
|
||||
color: #28a745;
|
||||
border: 1px solid #28a745;
|
||||
}
|
||||
.order-details.data-v-fff203c8 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.detail-item.data-v-fff203c8 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.detail-label.data-v-fff203c8 {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.detail-value.data-v-fff203c8 {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
25
unpackage/dist/dev/mp-weixin/components/TagsGroup/index.js
vendored
Normal file
25
unpackage/dist/dev/mp-weixin/components/TagsGroup/index.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const tags = [
|
||||
"门票套餐",
|
||||
"民俗活动",
|
||||
"车程路况"
|
||||
];
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.f(tags, (tag, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(tag),
|
||||
b: index
|
||||
};
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-716130f6"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/TagsGroup/index.js.map
|
||||
1
unpackage/dist/dev/mp-weixin/components/TagsGroup/index.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/components/TagsGroup/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="tags-group data-v-716130f6"><view wx:for="{{a}}" wx:for-item="tag" wx:key="b" class="tag-item data-v-716130f6">{{tag.a}}</view></view>
|
||||
12
unpackage/dist/dev/mp-weixin/components/TagsGroup/index.wxss
vendored
Normal file
12
unpackage/dist/dev/mp-weixin/components/TagsGroup/index.wxss
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
.tags-group.data-v-716130f6 {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
.tag-item.data-v-716130f6 {
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
padding: 8px 16px;
|
||||
font-size: 12px;
|
||||
color: #00A6FF;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -3,7 +3,7 @@ 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 + OrderCardItem + ChatCardAI + ChatCardMine + ChatMoreTips + ChatQuickAccess)();
|
||||
(ChatTopBgImg + ChatTopNavBar + ChatTopBanner + TagsGroup + OneFeelMK001 + ChatCardAI + ChatCardMine + ChatMoreTips + ChatQuickAccess)();
|
||||
}
|
||||
const ChatTopBanner = () => "./ChatTopBanner.js";
|
||||
const ChatTopBgImg = () => "./ChatTopBgImg.js";
|
||||
@@ -13,7 +13,7 @@ const ChatCardMine = () => "./ChatCardMine.js";
|
||||
const ChatQuickAccess = () => "./ChatQuickAccess2.js";
|
||||
const ChatMoreTips = () => "./ChatMoreTips.js";
|
||||
const OneFeelMK001 = () => "../module/OneFeelMK001.js";
|
||||
const OrderCardItem = () => "../../components/OrderCardItem/index.js";
|
||||
const TagsGroup = () => "../../components/TagsGroup/index.js";
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "ChatMainList",
|
||||
emits: ["openDrawer"],
|
||||
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
const emits = __emit;
|
||||
const openDrawer = () => {
|
||||
emits("openDrawer");
|
||||
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:166", "=============打开抽屉");
|
||||
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:155", "=============打开抽屉");
|
||||
};
|
||||
const handleReply = (text) => {
|
||||
loadMessage(text);
|
||||
@@ -97,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
}
|
||||
};
|
||||
chatMsgList.value.push(newMsgAI);
|
||||
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:250", "发送的新消息:", JSON.stringify(newMsg));
|
||||
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:242", "发送的新消息:", JSON.stringify(newMsg));
|
||||
};
|
||||
const scrollToBottom = () => {
|
||||
lastMsgId.value = `${chatMsgList.value[chatMsgList.value.length - 1].msgId}`;
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
"chat-quick-access": "./ChatQuickAccess",
|
||||
"chat-more-tips": "./ChatMoreTips",
|
||||
"one-feel-m-k001": "../module/OneFeelMK001",
|
||||
"order-card-item": "../../components/OrderCardItem/index"
|
||||
"tags-group": "../../components/TagsGroup/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +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><order-card-item class="data-v-d7316ec5" u-i="d7316ec5-6" bind:__l="__l"/><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-10" bind:__l="__l"></chat-more-tips><chat-quick-access class="data-v-d7316ec5" bindreplySent="{{h}}" u-i="d7316ec5-11" 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>
|
||||
<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"><tags-group class="data-v-d7316ec5" u-i="d7316ec5-3" bind:__l="__l"/><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 class="data-v-d7316ec5" style="padding:6px 12px"><one-feel-m-k001 class="data-v-d7316ec5" u-i="d7316ec5-6" 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-10" bind:__l="__l"></chat-more-tips><chat-quick-access class="data-v-d7316ec5" bindreplySent="{{h}}" u-i="d7316ec5-11" 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>
|
||||
@@ -26,7 +26,7 @@
|
||||
.chat-container.data-v-d7316ec5 {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #e9f3f7;
|
||||
background-color: #E9F3F7;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden !important;
|
||||
@@ -40,7 +40,7 @@
|
||||
right: 0;
|
||||
z-index: 0;
|
||||
height: 270px;
|
||||
background: linear-gradient(180deg, #42adf9 0%, #6cd1ff 51%, #e9f3f7 99%);
|
||||
background: linear-gradient(180deg, #42ADF9 0%, #6CD1FF 51%, #E9F3F7 99%);
|
||||
}
|
||||
.chat-container .nav-bar-container.data-v-d7316ec5 {
|
||||
position: fixed;
|
||||
@@ -110,7 +110,7 @@
|
||||
width: 100vw;
|
||||
flex-shrink: 0;
|
||||
padding: 4px 0 24px 0;
|
||||
background-color: #e9f3f7;
|
||||
background-color: #E9F3F7;
|
||||
touch-action: pan-x;
|
||||
/* 仅允许横向触摸滚动 */
|
||||
overflow-x: auto;
|
||||
@@ -122,7 +122,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 22px;
|
||||
background-color: #ffffff;
|
||||
background-color: #FFFFFF;
|
||||
box-shadow: 0px 0px 20px 0px rgba(52, 25, 204, 0.05);
|
||||
margin: 0 12px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user