Commit 9a7c513d authored by zhengke's avatar zhengke

排序方式

parent a9fb9a21
...@@ -172,13 +172,6 @@ page { ...@@ -172,13 +172,6 @@ page {
} }
.flex{ .flex{
display:flex; display:flex;
}
.text-left{
text-align: left;
}
.text-center{
text-align: center;
} }
.van-tabs__scroll { .van-tabs__scroll {
background-color: transparent !important; background-color: transparent !important;
......
...@@ -16,9 +16,7 @@ ...@@ -16,9 +16,7 @@
</template> </template>
</el-input> </el-input>
</div> </div>
<div class="row items-center" style="text-align: right;"> <UserCard></UserCard>
<UserCard></UserCard>
</div>
</div> </div>
</div> </div>
<div class="marketTag-from row"> <div class="marketTag-from row">
...@@ -135,7 +133,7 @@ ...@@ -135,7 +133,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="MarketButton cursor-pointer" <div class="MarketButton cursor-pointer"
:class="[queryObj.sort == item.type?'active':'']" v-for="(item,index) in sortArr" :key="index" :class="[queryObj.OrderByType == item.type?'active':'']" v-for="(item,index) in sortArr" :key="index"
@click="onTypeChangeHandler(item.type,1)"> @click="onTypeChangeHandler(item.type,1)">
{{item.typeName}} {{item.typeName}}
</div> </div>
...@@ -291,7 +289,7 @@ const queryObj = reactive({ ...@@ -291,7 +289,7 @@ const queryObj = reactive({
TempType: 0, TempType: 0,
TemplateType: TemplateType,//0 不限 1模版 2广告 TemplateType: TemplateType,//0 不限 1模版 2广告
type: 0, type: 0,
sort: 0,//排序方式 OrderByType: 0,//排序方式
}) })
const queryColor = ref({ const queryColor = ref({
DictKey: 'Trip_Template_Color', DictKey: 'Trip_Template_Color',
...@@ -456,7 +454,7 @@ const onSeasonNameChangeHandler = (row: Object) => { ...@@ -456,7 +454,7 @@ const onSeasonNameChangeHandler = (row: Object) => {
//类型切换 //类型切换
const onTypeChangeHandler = (Type: string,num: Number) => { const onTypeChangeHandler = (Type: string,num: Number) => {
if(num==1){ if(num==1){
queryObj.sort = Type; queryObj.OrderByType = Type;
}else{ }else{
searchData.value.MarketTemplateType = Type searchData.value.MarketTemplateType = Type
queryObj.TemplateType = Type; queryObj.TemplateType = Type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment