优化页面
This commit is contained in:
@@ -16,7 +16,18 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
content: { default: void 0 }
|
||||
},
|
||||
setup(__props) {
|
||||
stores_counter.useCounterStore();
|
||||
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);
|
||||
});
|
||||
}
|
||||
const props = __props;
|
||||
const custom = common_vendor.ref();
|
||||
const message = common_vendor.ref();
|
||||
@@ -85,12 +96,20 @@ 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 ? {
|
||||
z: common_vendor.t(common_vendor.unref(customData).title),
|
||||
A: common_vendor.t(common_vendor.unref(customData).buttonText1),
|
||||
B: common_vendor.t(common_vendor.unref(customData).buttonText2)
|
||||
} : {
|
||||
C: _ctx.content.custom
|
||||
} : 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
|
||||
}, {
|
||||
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,
|
||||
|
||||
@@ -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}}"></image><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"><view class="data-v-abd5dfdc">{{z}}</view><view class="button-group data-v-abd5dfdc"><button class="buttonAccept data-v-abd5dfdc">{{A}}</button><button class="buttonRefuse data-v-abd5dfdc">{{B}}</button></view></view></block><block wx:else><label class="data-v-abd5dfdc"><rich-text class="data-v-abd5dfdc" nodes="{{C}}"/></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 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>
|
||||
Reference in New Issue
Block a user