优化页面
This commit is contained in:
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../utils/type-check.js"),s=require("../../../../constant.js"),t=require("../../../../../common/assets.js"),r=require("../../../../../stores/counter.js");Math||u();const u=()=>"../../../common/Icon.js",f=e.defineComponent({__name:"message-custom",props:{messageItem:{default:void 0},content:{default:void 0}},setup(u){r.useCounterStore();const f=u,i=e.ref(),o=e.ref(),a=e.ref(),c=e.ref({businessID:""});e.watchEffect((()=>{i.value=f.content,o.value=f.messageItem;const{payload:e}=f.messageItem;c.value=e.data||"",c.value=n.JSONToObject(e.data),e.data===s.CHAT_MSG_CUSTOM_TYPE.SERVICE&&(a.value=n.JSONToObject(e.extension))}));return(r,u)=>e.e({a:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE},e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE?e.e({b:e.t(e.unref(a).title),c:e.unref(a).hyperlinks_text},e.unref(a).hyperlinks_text?{d:e.t(e.unref(a).hyperlinks_text.key),e:e.unref(a).hyperlinks_text.value}:{},{f:e.unref(a).item&&e.unref(a).item.length>0},e.unref(a).item&&e.unref(a).item.length>0?{g:e.f(e.unref(a).item,((s,t,r)=>e.e({a:e.unref(n.isUrl)(s.value)},e.unref(n.isUrl)(s.value)?{b:e.t(s.key),c:s.value}:{d:e.t(s.key)},{e:t})))}:{},{h:e.t(e.unref(a).description)}):e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE?{j:e.t(e.unref(e.Wt).t("message.custom.对本次服务评价")),k:e.f(Math.max(e.unref(c).score,0),((e,n,s)=>({a:"c2052009-0-"+s,b:n}))),l:e.p({file:e.unref(t.star)}),m:e.t(e.unref(c).comment)}:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER?{o:e.unref(c).imageUrl,p:e.t(e.unref(c).title),q:e.t(e.unref(c).description),r:e.t(e.unref(c).price),s:e.o$1((n=>{return s=e.unref(c).link,void window.open(s);var s}))}:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK?{v:e.t(e.unref(c).text),w:e.t(e.unref(e.Wt).t("message.custom.查看详情>>")),x:e.unref(c).link}:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK?{z:e.unref(c).link,A:e.o$1((n=>function(n){const s=JSON.stringify(n);e.index.redirectTo({url:`/pages/PKMessageprocessing/PKMessageprocessing?customData=${s}`})}(e.unref(c))))}:{B:r.content.custom},{i:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE,n:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER,t:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK,y:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK})}}),i=e._export_sfc(f,[["__scopeId","data-v-c2052009"]]);wx.createComponent(i);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../utils/type-check.js"),s=require("../../../../constant.js"),t=require("../../../../../common/assets.js"),r=require("../../../../../stores/counter.js");Math||u();const u=()=>"../../../common/Icon.js",f=e.defineComponent({__name:"message-custom",props:{messageItem:{default:void 0},content:{default:void 0}},setup(u){r.useCounterStore();const f=u,i=e.ref(),o=e.ref(),a=e.ref(),_=e.ref({businessID:""});e.watchEffect((()=>{i.value=f.content,o.value=f.messageItem;const{payload:e}=f.messageItem;_.value=e.data||"",_.value=n.JSONToObject(e.data),e.data===s.CHAT_MSG_CUSTOM_TYPE.SERVICE&&(a.value=n.JSONToObject(e.extension))}));return(r,u)=>e.e({a:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE},e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE?e.e({b:e.t(e.unref(a).title),c:e.unref(a).hyperlinks_text},e.unref(a).hyperlinks_text?{d:e.t(e.unref(a).hyperlinks_text.key),e:e.unref(a).hyperlinks_text.value}:{},{f:e.unref(a).item&&e.unref(a).item.length>0},e.unref(a).item&&e.unref(a).item.length>0?{g:e.f(e.unref(a).item,((s,t,r)=>e.e({a:e.unref(n.isUrl)(s.value)},e.unref(n.isUrl)(s.value)?{b:e.t(s.key),c:s.value}:{d:e.t(s.key)},{e:t})))}:{},{h:e.t(e.unref(a).description)}):e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE?{j:e.t(e.unref(e.Wt).t("message.custom.对本次服务评价")),k:e.f(Math.max(e.unref(_).score,0),((e,n,s)=>({a:"40f9568c-0-"+s,b:n}))),l:e.p({file:e.unref(t.star)}),m:e.t(e.unref(_).comment)}:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER?{o:e.unref(_).imageUrl,p:e.t(e.unref(_).title),q:e.t(e.unref(_).description),r:e.t(e.unref(_).price),s:e.o$1((n=>{return s=e.unref(_).link,void window.open(s);var s}))}:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK?{v:e.t(e.unref(_).text),w:e.t(e.unref(e.Wt).t("message.custom.查看详情>>")),x:e.unref(_).link}:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK?{z:e.unref(_).link,A:e.o$1((n=>function(n){const s=JSON.stringify(n);e.index.navigateTo({url:`/pages/PKMessageprocessing/PKMessageprocessing?customData=${s}`})}(e.unref(_))))}:{B:r.content.custom},{i:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE,n:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER,t:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK,y:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK})}}),i=e._export_sfc(f,[["__scopeId","data-v-40f9568c"]]);wx.createComponent(i);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="custom data-v-c2052009"><block wx:if="{{a}}"><view class="data-v-c2052009"><view class="data-v-c2052009"><label class="data-v-c2052009">{{b}}</label><navigator wx:if="{{c}}" class="data-v-c2052009" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-c2052009"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-c2052009"><navigator wx:if="{{item.a}}" class="data-v-c2052009" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-c2052009">{{item.d}}</view></view></view><view class="data-v-c2052009">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-c2052009"><view class="data-v-c2052009">{{j}}</view><view class="evaluate-list data-v-c2052009"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-c2052009"><icon wx:if="{{l}}" class="file-icon data-v-c2052009" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-c2052009">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-c2052009" bindtap="{{s}}"><image class="data-v-c2052009" src="{{o}}"/><view class="data-v-c2052009"><view class="data-v-c2052009">{{p}}</view><view class="data-v-c2052009">{{q}}</view><label class="data-v-c2052009">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-c2052009"><view class="data-v-c2052009">{{v}}</view><navigator class="data-v-c2052009" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view class="pk data-v-c2052009" bindtap="{{A}}"><image class="Custommessageimage data-v-c2052009" src="{{z}}" mode="scaleToFill"/></view></block><block wx:else><label class="data-v-c2052009"><rich-text class="data-v-c2052009" nodes="{{B}}"/></label></block></view>
|
||||
<view class="custom data-v-40f9568c"><block wx:if="{{a}}"><view class="data-v-40f9568c"><view class="data-v-40f9568c"><label class="data-v-40f9568c">{{b}}</label><navigator wx:if="{{c}}" class="data-v-40f9568c" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-40f9568c"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-40f9568c"><navigator wx:if="{{item.a}}" class="data-v-40f9568c" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-40f9568c">{{item.d}}</view></view></view><view class="data-v-40f9568c">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-40f9568c"><view class="data-v-40f9568c">{{j}}</view><view class="evaluate-list data-v-40f9568c"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-40f9568c"><icon wx:if="{{l}}" class="file-icon data-v-40f9568c" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-40f9568c">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-40f9568c" bindtap="{{s}}"><image class="data-v-40f9568c" src="{{o}}"/><view class="data-v-40f9568c"><view class="data-v-40f9568c">{{p}}</view><view class="data-v-40f9568c">{{q}}</view><label class="data-v-40f9568c">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-40f9568c"><view class="data-v-40f9568c">{{v}}</view><navigator class="data-v-40f9568c" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view class="pk data-v-40f9568c" bindtap="{{A}}"><image class="Custommessageimage data-v-40f9568c" src="{{z}}" mode="scaleToFill"/></view></block><block wx:else><label class="data-v-40f9568c"><rich-text class="data-v-40f9568c" nodes="{{B}}"/></label></block></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-c2052009,div.data-v-c2052009,ul.data-v-c2052009,ol.data-v-c2052009,dt.data-v-c2052009,dd.data-v-c2052009,li.data-v-c2052009,dl.data-v-c2052009,h1.data-v-c2052009,h2.data-v-c2052009,h3.data-v-c2052009,h4.data-v-c2052009,p.data-v-c2052009{margin:0;padding:0;font-style:normal}ol.data-v-c2052009,ul.data-v-c2052009,li.data-v-c2052009{list-style:none}img.data-v-c2052009{border:0;vertical-align:middle;pointer-events:none}body.data-v-c2052009{color:#000;background:#fff}.clear.data-v-c2052009{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-c2052009{color:#000;text-decoration:none;cursor:pointer}a.data-v-c2052009:hover{text-decoration:none}input.data-v-c2052009,textarea.data-v-c2052009{-webkit-user-select:auto;user-select:auto}input.data-v-c2052009:focus,input.data-v-c2052009:active,textarea.data-v-c2052009:focus,textarea.data-v-c2052009:active{outline:none}.chat-aside.data-v-c2052009{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}a.data-v-c2052009{color:#679ce1}.custom.data-v-c2052009{font-size:18px}.custom h1.data-v-c2052009{font-size:14px;color:#000}.custom h1.data-v-c2052009,.custom a.data-v-c2052009,.custom p.data-v-c2052009{font-size:14px}.custom .evaluate ul.data-v-c2052009{display:flex;padding:10px 0}.custom .evaluate-list.data-v-c2052009{display:flex;flex-direction:row}.custom .evaluate-list-item.data-v-c2052009{padding:0 2px}.custom .order.data-v-c2052009{display:flex}.custom .order main.data-v-c2052009{padding-left:5px}.custom .order main p.data-v-c2052009{font-family:PingFangSC-Regular;width:145px;line-height:17px;font-size:14px;color:#999;letter-spacing:0;margin-bottom:6px;word-break:break-word}.custom .order main span.data-v-c2052009{font-family:PingFangSC-Regular;line-height:25px;color:#ff7201}.custom .order img.data-v-c2052009{width:67px;height:67px}.custom .pk.data-v-c2052009{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;background-color:#fff;border-radius:10px;padding:20px;box-sizing:border-box}.custom .pk h1.data-v-c2052009{font-size:18px;color:#333;margin-bottom:10px}.custom .pk .button-group.data-v-c2052009{display:flex;justify-content:center}.custom .pk .button-group .buttonAccept.data-v-c2052009{width:40%;height:60rpx;background-color:rgba(132,255,0,.333);border-radius:10px;border:2px solid #26ff00;color:#fff;font-size:16px;text-align:center;line-height:60rpx;margin-bottom:10px;border:none;cursor:pointer}.custom .pk .button-group .buttonRefuse.data-v-c2052009{width:40%;height:60rpx;background-color:rgba(255,0,0,.47);border:2px solid #ff0000;border-radius:10px;color:#fff;font-size:16px;line-height:60rpx;text-align:center;margin-bottom:10px;border:none;cursor:pointer}.Custommessageimage.data-v-c2052009{width:385rpx;height:195rpx}
|
||||
body.data-v-40f9568c,div.data-v-40f9568c,ul.data-v-40f9568c,ol.data-v-40f9568c,dt.data-v-40f9568c,dd.data-v-40f9568c,li.data-v-40f9568c,dl.data-v-40f9568c,h1.data-v-40f9568c,h2.data-v-40f9568c,h3.data-v-40f9568c,h4.data-v-40f9568c,p.data-v-40f9568c{margin:0;padding:0;font-style:normal}ol.data-v-40f9568c,ul.data-v-40f9568c,li.data-v-40f9568c{list-style:none}img.data-v-40f9568c{border:0;vertical-align:middle;pointer-events:none}body.data-v-40f9568c{color:#000;background:#fff}.clear.data-v-40f9568c{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-40f9568c{color:#000;text-decoration:none;cursor:pointer}a.data-v-40f9568c:hover{text-decoration:none}input.data-v-40f9568c,textarea.data-v-40f9568c{-webkit-user-select:auto;user-select:auto}input.data-v-40f9568c:focus,input.data-v-40f9568c:active,textarea.data-v-40f9568c:focus,textarea.data-v-40f9568c:active{outline:none}.chat-aside.data-v-40f9568c{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}a.data-v-40f9568c{color:#679ce1}.custom.data-v-40f9568c{font-size:18px}.custom h1.data-v-40f9568c{font-size:14px;color:#000}.custom h1.data-v-40f9568c,.custom a.data-v-40f9568c,.custom p.data-v-40f9568c{font-size:14px}.custom .evaluate ul.data-v-40f9568c{display:flex;padding:10px 0}.custom .evaluate-list.data-v-40f9568c{display:flex;flex-direction:row}.custom .evaluate-list-item.data-v-40f9568c{padding:0 2px}.custom .order.data-v-40f9568c{display:flex}.custom .order main.data-v-40f9568c{padding-left:5px}.custom .order main p.data-v-40f9568c{font-family:PingFangSC-Regular;width:145px;line-height:17px;font-size:14px;color:#999;letter-spacing:0;margin-bottom:6px;word-break:break-word}.custom .order main span.data-v-40f9568c{font-family:PingFangSC-Regular;line-height:25px;color:#ff7201}.custom .order img.data-v-40f9568c{width:67px;height:67px}.custom .pk.data-v-40f9568c{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;background-color:#fff;border-radius:10px;padding:20px;box-sizing:border-box}.custom .pk h1.data-v-40f9568c{font-size:18px;color:#333;margin-bottom:10px}.custom .pk .button-group.data-v-40f9568c{display:flex;justify-content:center}.custom .pk .button-group .buttonAccept.data-v-40f9568c{width:40%;height:60rpx;background-color:rgba(132,255,0,.333);border-radius:10px;border:2px solid #26ff00;color:#fff;font-size:16px;text-align:center;line-height:60rpx;margin-bottom:10px;border:none;cursor:pointer}.custom .pk .button-group .buttonRefuse.data-v-40f9568c{width:40%;height:60rpx;background-color:rgba(255,0,0,.47);border:2px solid #ff0000;border-radius:10px;color:#fff;font-size:16px;line-height:60rpx;text-align:center;margin-bottom:10px;border:none;cursor:pointer}.Custommessageimage.data-v-40f9568c{width:385rpx;height:195rpx}
|
||||
|
||||
Reference in New Issue
Block a user