|
@@ -17,11 +17,11 @@
|
|
|
|
|
|
<view class="jiazheng-search-right">
|
|
|
<!-- 当前点击 增加 saixuan-active-->
|
|
|
- <view class="saixuan-item-box saixuan-active">
|
|
|
- <text @click="timeClick">更新时间</text>
|
|
|
+ <view @click="updateTimeClick" :class="shaixuanStyleUpdate">
|
|
|
+ <text>更新时间</text>
|
|
|
<icon :class="updataJtClass" />
|
|
|
</view>
|
|
|
- <view class="saixuan-item-box">
|
|
|
+ <view @click="luruTimeClick" :class="shaixuanStyleluru">
|
|
|
<!-- class切换 saixuan-jt-default saixuan-jt-click-->
|
|
|
<text>录入时间</text>
|
|
|
<icon :class="luruJtClass" />
|
|
@@ -103,11 +103,62 @@
|
|
|
let isOpen = ref(false)
|
|
|
let defauleImg = ref('@/static/images/my/user-default-img.png')
|
|
|
const allJtClass = 'select-jt-default';
|
|
|
- const updataJtClass = 'saixuan-jt-default';
|
|
|
- const luruJtClass = 'saixuan-jt-click';
|
|
|
-
|
|
|
+ let updataJtClass = ref('');
|
|
|
+ let luruJtClass = ref('');
|
|
|
+ let shaixuanStyleUpdate = ref('saixuan-item-box');
|
|
|
+ let shaixuanStyleluru = ref('saixuan-item-box');
|
|
|
const isOpenSelect = ref(false);
|
|
|
const selectedOption = ref('');
|
|
|
+ let isFirstClickUpdate = ref('true')
|
|
|
+ let isFirstClickluru = ref('true')
|
|
|
+
|
|
|
+ function updateTimeClick() {
|
|
|
+ data.sortType = 1
|
|
|
+ const isFirst = isFirstClickUpdate.value == 'true';
|
|
|
+ const isSecond = isFirstClickUpdate.value == 'false';
|
|
|
+ if (isFirst) {
|
|
|
+ shaixuanStyleUpdate.value = 'saixuan-item-box saixuan-active';
|
|
|
+ updataJtClass.value = 'saixuan-jt-default';
|
|
|
+ isFirstClickUpdate.value = 'false';
|
|
|
+ data.sortRule = 1
|
|
|
+ } else if (isSecond) {
|
|
|
+ shaixuanStyleUpdate.value = 'saixuan-item-box saixuan-active';
|
|
|
+ updataJtClass.value = 'saixuan-jt-click';
|
|
|
+ isFirstClickUpdate.value = 'empty';
|
|
|
+ data.sortRule = 2
|
|
|
+ } else {
|
|
|
+ shaixuanStyleUpdate.value = 'saixuan-item-box';
|
|
|
+ updataJtClass.value = '';
|
|
|
+ isFirstClickUpdate.value = 'true';
|
|
|
+ data.sortRule = 0
|
|
|
+ }
|
|
|
+ data.page = 0;
|
|
|
+ refreshData()
|
|
|
+ }
|
|
|
+
|
|
|
+ function luruTimeClick() {
|
|
|
+ data.sortType = 2
|
|
|
+ const isFirst = isFirstClickluru.value == 'true';
|
|
|
+ const isSecond = isFirstClickluru.value == 'false';
|
|
|
+ if (isFirst) {
|
|
|
+ shaixuanStyleluru.value = 'saixuan-item-box saixuan-active';
|
|
|
+ luruJtClass.value = 'saixuan-jt-default';
|
|
|
+ isFirstClickluru.value = 'false';
|
|
|
+ data.sortRule = 1
|
|
|
+ } else if (isSecond) {
|
|
|
+ shaixuanStyleluru.value = 'saixuan-item-box saixuan-active';
|
|
|
+ luruJtClass.value = 'saixuan-jt-click';
|
|
|
+ isFirstClickluru.value = 'empty';
|
|
|
+ data.sortRule = 2
|
|
|
+ } else {
|
|
|
+ shaixuanStyleluru.value = 'saixuan-item-box';
|
|
|
+ luruJtClass.value = '';
|
|
|
+ isFirstClickluru.value = 'true';
|
|
|
+ data.sortRule = 0
|
|
|
+ }
|
|
|
+ data.page = 0;
|
|
|
+ refreshData()
|
|
|
+ }
|
|
|
|
|
|
function dialogSearchBtn(name, searchData) {
|
|
|
switch (name) {
|
|
@@ -215,10 +266,6 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- function timeClick() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
function getMore() {
|
|
|
const opt = {
|
|
|
"leixing": data.leixing == '全部类型' ? '' : data.leixing,
|