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