优化页面

This commit is contained in:
pengxiaolong
2025-06-03 22:12:34 +08:00
parent 050ceedd59
commit a40b5b88c9
48 changed files with 1656 additions and 624 deletions

View File

@@ -16,16 +16,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
content: { default: void 0 }
},
setup(__props) {
const counter = stores_counter.useCounterStore();
const status = { agree: 1, refuse: 2 };
function handleAccept(status2, customData2) {
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue:120", custom.value);
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue:121", message.value);
message.value.payload.title = "Hello Tencent";
common_vendor.Qt.modifyMessage(message.value).then((res) => {
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue:124", res);
}).catch((err) => {
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue:126", err);
stores_counter.useCounterStore();
function handleAccept(customData2) {
const customDatainfo = JSON.stringify(customData2);
common_vendor.index.redirectTo({
url: `/pages/PKMessageprocessing/PKMessageprocessing?customData=${customDatainfo}`
});
}
const props = __props;
@@ -96,20 +91,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
v: common_vendor.t(common_vendor.unref(customData).text),
w: common_vendor.t(common_vendor.unref(common_vendor.Wt).t("message.custom.查看详情>>")),
x: common_vendor.unref(customData).link
} : common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).PK ? common_vendor.e({
z: common_vendor.unref(customData).myitem !== common_vendor.unref(counter).myitem.id
}, common_vendor.unref(customData).myitem !== common_vendor.unref(counter).myitem.id ? common_vendor.e({
A: common_vendor.t(common_vendor.unref(customData).title),
B: common_vendor.unref(customData).btnDisplay === true
}, common_vendor.unref(customData).btnDisplay === true ? {
C: common_vendor.t(common_vendor.unref(customData).buttonText1),
D: common_vendor.o$1(($event) => handleAccept(status.agree, common_vendor.unref(customData))),
E: common_vendor.t(common_vendor.unref(customData).buttonText2),
F: common_vendor.o$1(($event) => handleAccept(status.refuse, common_vendor.unref(customData)))
} : {}) : {
G: common_vendor.t(common_vendor.unref(customData).mytitle)
}) : {
H: _ctx.content.custom
} : common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).PK ? {
z: common_vendor.unref(customData).link,
A: common_vendor.o$1(($event) => handleAccept(common_vendor.unref(customData)))
} : {
B: _ctx.content.custom
}, {
i: common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).EVALUATE,
n: common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).ORDER,

View File

@@ -1 +1 @@
<view class="custom data-v-abd5dfdc"><block wx:if="{{a}}"><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc"><label class="data-v-abd5dfdc">{{b}}</label><navigator wx:if="{{c}}" class="data-v-abd5dfdc" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-abd5dfdc"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-abd5dfdc"><navigator wx:if="{{item.a}}" class="data-v-abd5dfdc" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-abd5dfdc">{{item.d}}</view></view></view><view class="data-v-abd5dfdc">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{j}}</view><view class="evaluate-list data-v-abd5dfdc"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-abd5dfdc"><icon wx:if="{{l}}" class="file-icon data-v-abd5dfdc" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-abd5dfdc">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-abd5dfdc" bindtap="{{s}}"><image class="data-v-abd5dfdc" src="{{o}}"/><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{p}}</view><view class="data-v-abd5dfdc">{{q}}</view><label class="data-v-abd5dfdc">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{v}}</view><navigator class="data-v-abd5dfdc" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view wx:if="{{z}}" class="pk data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{A}}</view><view wx:if="{{B}}" class="button-group data-v-abd5dfdc"><button bindtap="{{D}}" class="buttonAccept data-v-abd5dfdc">{{C}}</button><button bindtap="{{F}}" class="buttonRefuse data-v-abd5dfdc">{{E}}</button></view></view><view wx:else class="pk data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{G}}</view></view></block><block wx:else><label class="data-v-abd5dfdc"><rich-text class="data-v-abd5dfdc" nodes="{{H}}"/></label></block></view>
<view class="custom data-v-abd5dfdc"><block wx:if="{{a}}"><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc"><label class="data-v-abd5dfdc">{{b}}</label><navigator wx:if="{{c}}" class="data-v-abd5dfdc" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-abd5dfdc"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-abd5dfdc"><navigator wx:if="{{item.a}}" class="data-v-abd5dfdc" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-abd5dfdc">{{item.d}}</view></view></view><view class="data-v-abd5dfdc">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{j}}</view><view class="evaluate-list data-v-abd5dfdc"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-abd5dfdc"><icon wx:if="{{l}}" class="file-icon data-v-abd5dfdc" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-abd5dfdc">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-abd5dfdc" bindtap="{{s}}"><image class="data-v-abd5dfdc" src="{{o}}"/><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{p}}</view><view class="data-v-abd5dfdc">{{q}}</view><label class="data-v-abd5dfdc">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{v}}</view><navigator class="data-v-abd5dfdc" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view class="pk data-v-abd5dfdc" bindtap="{{A}}"><image class="Custommessageimage data-v-abd5dfdc" src="{{z}}" mode="scaleToFill"/></view></block><block wx:else><label class="data-v-abd5dfdc"><rich-text class="data-v-abd5dfdc" nodes="{{B}}"/></label></block></view>

View File

@@ -130,7 +130,7 @@ a.data-v-abd5dfdc {
align-items: center;
justify-content: center;
height: 100%;
background-color: #f5f5f5;
background-color: #ffffff;
border-radius: 10px;
padding: 20px;
box-sizing: border-box;
@@ -171,4 +171,8 @@ a.data-v-abd5dfdc {
margin-bottom: 10px;
border: none;
cursor: pointer;
}
.Custommessageimage.data-v-abd5dfdc {
width: 385rpx;
height: 195rpx;
}