优化代码
This commit is contained in:
@@ -4,7 +4,8 @@ const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
Select: false
|
||||
Select: true
|
||||
//是否选中实时PK/今日PK false/大厅 true
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -28,12 +29,12 @@ const _sfc_main = {
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.MakeAppointmentPK && $options.MakeAppointmentPK(...args)),
|
||||
b: !$data.Select ? 1 : "",
|
||||
c: $data.Select ? 1 : "",
|
||||
d: common_vendor.o((...args) => $options.RealTimePk && $options.RealTimePk(...args)),
|
||||
e: $data.Select ? 1 : "",
|
||||
f: !$data.Select ? 1 : "",
|
||||
a: common_vendor.o((...args) => $options.RealTimePk && $options.RealTimePk(...args)),
|
||||
b: $data.Select ? 1 : "",
|
||||
c: !$data.Select ? 1 : "",
|
||||
d: common_vendor.o((...args) => $options.MakeAppointmentPK && $options.MakeAppointmentPK(...args)),
|
||||
e: !$data.Select ? 1 : "",
|
||||
f: $data.Select ? 1 : "",
|
||||
g: common_vendor.o((...args) => $options.screening && $options.screening(...args))
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="topNavigation data-v-ce2f6748"><view bindtap="{{a}}" class="{{[b && 'Selectcss', c && 'NoSelectcss', 'RealTime', 'data-v-ce2f6748']}}">今日PK</view><view bindtap="{{d}}" class="{{[e && 'Selectcss', f && 'NoSelectcss', 'MakeAppointment', 'data-v-ce2f6748']}}">PK大厅</view><view bindtap="{{g}}" class="Screening data-v-ce2f6748">筛选</view></view>
|
||||
<view class="topNavigation data-v-ce2f6748"><view bindtap="{{a}}" class="{{[b && 'Selectcss', c && 'NoSelectcss', 'RealTime', 'data-v-ce2f6748']}}">PK大厅</view><view bindtap="{{d}}" class="{{[e && 'Selectcss', f && 'NoSelectcss', 'MakeAppointment', 'data-v-ce2f6748']}}">今日PK</view><view bindtap="{{g}}" class="Screening data-v-ce2f6748">筛选</view></view>
|
||||
Reference in New Issue
Block a user