|
@@ -156,6 +156,15 @@
|
|
{{ item }}
|
|
{{ item }}
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
|
|
+ <!-- <div class="flex justify-center items-center mx-[5px] my-[20px]">
|
|
|
|
+ <section class="text-center">
|
|
|
|
+ <number-roll ref="numberRollRef" class="custom" custom-class="num-item"
|
|
|
|
+ start-number="00000000" end-number="30701374"
|
|
|
|
+ transition-timing-function="ease-in-out"
|
|
|
|
+ min-length="5" roll-height="60"
|
|
|
|
+ :reverse-direction="false" :autoplay="false" />
|
|
|
|
+ </section>
|
|
|
|
+ </div> -->
|
|
<span>
|
|
<span>
|
|
人加入
|
|
人加入
|
|
</span>
|
|
</span>
|
|
@@ -347,16 +356,24 @@
|
|
</n-modal>
|
|
</n-modal>
|
|
<!-- <nuxt-link to="/list/123">news-1</nuxt-link> -->
|
|
<!-- <nuxt-link to="/list/123">news-1</nuxt-link> -->
|
|
</template>
|
|
</template>
|
|
|
|
+
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { reactive, ref } from 'vue'
|
|
import { reactive, ref } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
import { postListData, downInfo, sendSms, postCustomer } from '~/server/api/index'
|
|
import { postListData, downInfo, sendSms, postCustomer } from '~/server/api/index'
|
|
import { provice } from '~/utils/city'
|
|
import { provice } from '~/utils/city'
|
|
|
|
+// import NumberRoll from '~/composables/NumberRoll.vue'
|
|
import {
|
|
import {
|
|
FormRules,
|
|
FormRules,
|
|
useMessage,
|
|
useMessage,
|
|
FormInst,
|
|
FormInst,
|
|
} from 'naive-ui'
|
|
} from 'naive-ui'
|
|
|
|
+// 滚动
|
|
|
|
+// const numberRollRef = ref<typeof NumberRoll>()
|
|
|
|
+ const goTo = () => {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ numberRollRef.value.start()
|
|
|
|
+}
|
|
// console.log('provice',provice)
|
|
// console.log('provice',provice)
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
const headerTitle = reactive([
|
|
const headerTitle = reactive([
|
|
@@ -542,15 +559,16 @@ const verifyCodeFn = async () => {
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+const intervalBtn = ref()
|
|
// 倒计时
|
|
// 倒计时
|
|
const countDown = () => {
|
|
const countDown = () => {
|
|
// 设置倒计时
|
|
// 设置倒计时
|
|
- const intervalBtn = setInterval(() => {
|
|
|
|
|
|
+ intervalBtn.value = setInterval(() => {
|
|
if (countdown.value == 1) {
|
|
if (countdown.value == 1) {
|
|
// 清除定时器
|
|
// 清除定时器
|
|
- clearInterval(intervalBtn)
|
|
|
|
|
|
+ clearInterval(intervalBtn.value)
|
|
// 重置倒计时状态
|
|
// 重置倒计时状态
|
|
- countdown.value = 0
|
|
|
|
|
|
+ countdown.value = 1
|
|
};
|
|
};
|
|
// 倒计时
|
|
// 倒计时
|
|
countdown.value--
|
|
countdown.value--
|
|
@@ -579,6 +597,17 @@ const fouse = () => {
|
|
showModal.value = false
|
|
showModal.value = false
|
|
}
|
|
}
|
|
const btn = () => {
|
|
const btn = () => {
|
|
|
|
+ customer.value = {
|
|
|
|
+ sceneType: "loanofficial", // 场景
|
|
|
|
+ companyName: null,// 公司名称
|
|
|
|
+ customName: null, // 姓名
|
|
|
|
+ city: null, // 所在城市
|
|
|
|
+ phone: null, // 手机号
|
|
|
|
+ verifyCode: null, //验证码
|
|
|
|
+ channel: 16, //pc官网16 手机端17
|
|
|
|
+ }
|
|
|
|
+ clearInterval(intervalBtn.value)
|
|
|
|
+ countdown.value = 0
|
|
showModal.value = true
|
|
showModal.value = true
|
|
}
|
|
}
|
|
|
|
|
|
@@ -587,6 +616,16 @@ const handleUpdateValue = (value: string) => {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
|
+.num-item {
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ width: 50px;
|
|
|
|
+ height: 60px;
|
|
|
|
+ margin: 10px;
|
|
|
|
+ background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgba(244, 244, 255, 0.961) 50%, rgb(255, 255, 255) 100%);
|
|
|
|
+ font-size: 36px;
|
|
|
|
+ color: #fff;
|
|
|
|
+}
|
|
|
|
+
|
|
p {
|
|
p {
|
|
color: var(--link-color)
|
|
color: var(--link-color)
|
|
}
|
|
}
|
|
@@ -649,6 +688,7 @@ img {
|
|
::v-deep(.n-button) {
|
|
::v-deep(.n-button) {
|
|
border-radius: 4px !important;
|
|
border-radius: 4px !important;
|
|
}
|
|
}
|
|
|
|
+
|
|
// 框
|
|
// 框
|
|
::v-deep(.n-card-header__main) {
|
|
::v-deep(.n-card-header__main) {
|
|
flex: inherit !important;
|
|
flex: inherit !important;
|
|
@@ -730,11 +770,13 @@ img {
|
|
.message ::v-deep(.van-button__content) {
|
|
.message ::v-deep(.van-button__content) {
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.modalCss ::v-deep(.n-button) {
|
|
.modalCss ::v-deep(.n-button) {
|
|
border-radius: 4px !important;
|
|
border-radius: 4px !important;
|
|
height: 55px !important;
|
|
height: 55px !important;
|
|
}
|
|
}
|
|
|
|
+
|
|
.submission ::v-deep(.n-button) {
|
|
.submission ::v-deep(.n-button) {
|
|
- width: 700px !important;
|
|
|
|
|
|
+ width: 700px !important;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|