|
|
@@ -2,7 +2,6 @@
|
|
|
import { ref, watch } from 'vue'
|
|
|
import selectTime from '../components/choose-time.vue'
|
|
|
import { timeFormat } from '../utils/index'
|
|
|
-import { StaticUrl } from '@/config'
|
|
|
|
|
|
interface brand {
|
|
|
id: number
|
|
|
@@ -191,28 +190,25 @@ onLoad((options) => {
|
|
|
<view class="choose-item-title">
|
|
|
全城
|
|
|
</view>
|
|
|
- <image
|
|
|
- class="icon" :src="StaticUrl + (active == 0 ? '/film-choose-active.png' : '/film-choose.png')"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <view class="iconfont ml10rpx text-30rpx" :class="[active == 0 ? 'text-[var(--them-color)]' : '']">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="choose-item" :class="[active == 1 ? 'active' : '']" @click="handleChoose(1)">
|
|
|
<view class="choose-item-title">
|
|
|
品牌
|
|
|
</view>
|
|
|
- <image
|
|
|
- class="icon" :src="StaticUrl + (active == 1 ? '/film-choose-active.png' : '/film-choose.png')"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <view class="iconfont ml10rpx text-30rpx" :class="[active == 1 ? 'text-[var(--them-color)]' : '']">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="choose-item" :class="[active == 2 ? 'active' : '']" @click="handleChoose(2)">
|
|
|
<view class="choose-item-title">
|
|
|
特色
|
|
|
</view>
|
|
|
- <image
|
|
|
- class="icon" :src="StaticUrl + (active == 2 ? '/film-choose-active.png' : '/film-choose.png')"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <view class="iconfont ml10rpx text-30rpx" :class="[active == 2 ? 'text-[var(--them-color)]' : '']">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -264,28 +260,25 @@ onLoad((options) => {
|
|
|
<view class="choose-item-title">
|
|
|
全城
|
|
|
</view>
|
|
|
- <image
|
|
|
- class="icon" :src="StaticUrl + (active == 0 ? '/film-choose-active.png' : '/film-choose.png')"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <view class="iconfont ml10rpx text-30rpx" :class="[active == 0 ? 'text-[var(--them-color)]' : '']">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="choose-item" :class="[active == 1 ? 'active' : '']" @click="handleChoose(1)">
|
|
|
<view class="choose-item-title">
|
|
|
品牌
|
|
|
</view>
|
|
|
- <image
|
|
|
- class="icon" :src="StaticUrl + (active == 1 ? '/film-choose-active.png' : '/film-choose.png')"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <view class="iconfont ml10rpx text-30rpx" :class="[active == 1 ? 'text-[var(--them-color)]' : '']">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="choose-item" :class="[active == 2 ? 'active' : '']" @click="handleChoose(2)">
|
|
|
<view class="choose-item-title">
|
|
|
特色
|
|
|
</view>
|
|
|
- <image
|
|
|
- class="icon" :src="StaticUrl + (active == 2 ? '/film-choose-active.png' : '/film-choose.png')"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <view class="iconfont ml10rpx text-30rpx" :class="[active == 2 ? 'text-[var(--them-color)]' : '']">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="active == 0" class="choose-box">
|
|
|
@@ -302,10 +295,13 @@ onLoad((options) => {
|
|
|
<view class="name">
|
|
|
全城
|
|
|
</view>
|
|
|
- <image
|
|
|
+ <!-- <image
|
|
|
v-if="query.districtId === ''" class="icon" :src="`${StaticUrl}/film-choose-icon.png`"
|
|
|
mode="scaleToFill"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
+ <view v-if="query.districtId === ''" class="iconfont ml10rpx text-30rpx text-[var(--them-color)]">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view
|
|
|
v-for="(item, index) in cityList[currentCity].districts" :key="index" class="choose-item"
|
|
|
@@ -314,10 +310,13 @@ onLoad((options) => {
|
|
|
<view class="name" :class="[query.districtId == item.districtId ? 'active' : '']">
|
|
|
{{ item.districtName }}
|
|
|
</view>
|
|
|
- <image
|
|
|
+ <!-- <image
|
|
|
v-if="query.districtId == item.districtId" class="icon" :src="`${StaticUrl}/film-choose-icon.png`"
|
|
|
mode="scaleToFill"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
+ <view v-if="query.districtId == item.districtId" class="iconfont ml10rpx text-30rpx text-[var(--them-color)]">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -327,19 +326,17 @@ onLoad((options) => {
|
|
|
<view class="name">
|
|
|
全部
|
|
|
</view>
|
|
|
- <image
|
|
|
- v-if="query.brandId === ''" class="icon" :src="`${StaticUrl}/film-choose-icon.png`"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <view v-if="query.brandId === ''" class="iconfont ml10rpx text-30rpx text-[var(--them-color)]">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view v-for="(item, index) in brandList" :key="index" class="choose-item" @click="choose(item.brandId)">
|
|
|
<view class="name" :class="[query.brandId == item.brandId ? 'active' : '']">
|
|
|
{{ item.brandName }}
|
|
|
</view>
|
|
|
- <image
|
|
|
- v-if="query.brandId == item.brandId" class="icon" :src="`${StaticUrl}/film-choose-icon.png`"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <view v-if="query.brandId == item.brandId" class="iconfont ml10rpx text-30rpx text-[var(--them-color)]">
|
|
|
+ 
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|