refactor: 清理未使用的导入并统一代码格式
移除多个组件中未使用的defineProps导入 统一vue文件中的代码格式和缩进 注释掉index.html中未使用的favicon链接
This commit is contained in:
parent
b136869cb1
commit
1b7697d40e
|
|
@ -23,7 +23,7 @@
|
||||||
delete window.wx;
|
delete window.wx;
|
||||||
</script>
|
</script>
|
||||||
<script src="https://www.cs.com.cn/js/2020/jquery-3.4.1.min.js"></script> -->
|
<script src="https://www.cs.com.cn/js/2020/jquery-3.4.1.min.js"></script> -->
|
||||||
<link rel="icon" href="/src/assets/favicon.ico" />
|
<!-- <link rel="icon" href="/src/assets/favicon.ico" /> -->
|
||||||
<title></title>
|
<title></title>
|
||||||
<!--preload-links-->
|
<!--preload-links-->
|
||||||
<!--app-context-->
|
<!--app-context-->
|
||||||
|
|
|
||||||
|
|
@ -3,21 +3,14 @@
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view style="display: flex; align-items: center; gap: 10rpx">
|
<view style="display: flex; align-items: center; gap: 10rpx">
|
||||||
<img src="@/assets/zixun/title_text.png" class="banner_title" />
|
<img src="@/assets/zixun/title_text.png" class="banner_title" />
|
||||||
<text class="date"
|
<text class="date">({{ dayjs(new Date().getTime()).format("MM/DD") }})</text>
|
||||||
>({{ dayjs(new Date().getTime()).format("MM/DD") }})</text
|
|
||||||
>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text class="sub_title">评分80分以上精选咨洵数量</text>
|
<text class="sub_title">评分80分以上精选咨洵数量</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<!-- <text class="num">{{ count }}</text> -->
|
<!-- <text class="num">{{ count }}</text> -->
|
||||||
<countTo
|
<countTo :startVal="lastCount" :endVal="count" :duration="5000" class="num"></countTo>
|
||||||
:startVal="lastCount"
|
|
||||||
:endVal="count"
|
|
||||||
:duration="5000"
|
|
||||||
class="num"
|
|
||||||
></countTo>
|
|
||||||
|
|
||||||
<text class="sub_title" style="margin-left: 5rpx">条</text>
|
<text class="sub_title" style="margin-left: 5rpx">条</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -26,7 +19,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, watch, onUnmounted, reactive } from "vue";
|
import { ref, watch, onUnmounted, reactive } from "vue";
|
||||||
import { defineProps } from "vue";
|
// import { defineProps } from "vue";
|
||||||
import dayjs from "dayjs/esm/index";
|
import dayjs from "dayjs/esm/index";
|
||||||
import countTo from "@/components/count-to/vue-countTo.vue";
|
import countTo from "@/components/count-to/vue-countTo.vue";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { defineProps } from "vue";
|
// import { defineProps } from "vue";
|
||||||
let props = defineProps(['data']);
|
let props = defineProps(['data']);
|
||||||
|
|
||||||
const jump = () => {
|
const jump = () => {
|
||||||
|
|
@ -33,6 +33,7 @@ const jump= () => {
|
||||||
|
|
||||||
.flashItemHeader {
|
.flashItemHeader {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
||||||
.flashItemTime {
|
.flashItemTime {
|
||||||
color: #e7303f;
|
color: #e7303f;
|
||||||
}
|
}
|
||||||
|
|
@ -48,6 +49,7 @@ const jump= () => {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
color: #b9b9b9;
|
color: #b9b9b9;
|
||||||
margin-right: 21rpx;
|
margin-right: 21rpx;
|
||||||
|
|
||||||
&:nth-child(3) {
|
&:nth-child(3) {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ export default defineConfig({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
server: {
|
server: {
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
port: 8881,
|
port: 8881,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue