+
已报名
- 10人
+ {{ miceInfoStore.miceInfo.applyCount || 0 }}人
@@ -61,16 +66,16 @@ const miceInfoStore = useMiceStore()
会议简介
-
+
-
+
个人中心
-
@@ -126,4 +131,12 @@ const miceInfoStore = useMiceStore()
font-weight: 600;
}
}
+
+.inner-html {
+ padding-bottom: 60px;
+ :deep(img) {
+ width: 100%;
+ }
+
+}
diff --git a/src/views/signUp/components/SignForm.vue b/src/views/signUp/components/SignForm.vue
index fdefce4..e7abc94 100644
--- a/src/views/signUp/components/SignForm.vue
+++ b/src/views/signUp/components/SignForm.vue
@@ -3,18 +3,19 @@ import type { PropType } from 'vue'
import { showToast } from 'vant'
import FormItem from './FormItem.vue'
import { getSignUpFormConfig, signUp, smsSend } from '@/api/mice'
+import useUserStore from '@/stores/modules/user'
const form = defineModel({
type: Object as PropType
,
required: true,
})
+const userStore = useUserStore()
+const miceLink = getUrlMiceLink()
// 表单配置项
const formConfigs = ref([])
onMounted(() => {
- const miceLink = getUrlMiceLink()
- form.value.miceLink = miceLink
getSignUpFormConfig({ miceLink }).then((res: any) => {
formConfigs.value = res
})
@@ -22,8 +23,10 @@ onMounted(() => {
// 提交注册报名
function onSubmit() {
- signUp(form.value).then((res: any) => {
- console.log(res)
+ form.value.miceLink = miceLink
+ form.value.openId = userStore.openId
+ signUp(form.value).then(() => {
+ // console.log(res)
})
}
@@ -32,8 +35,8 @@ async function sendSmsHandler() {
if (!form.value.phone || !/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test(form.value.phone)) {
return showToast('请输入正确的手机号')
}
- const res = await smsSend(form.value.phone)
- console.log(res)
+ await smsSend(form.value.phone)
+ // console.log(res)
}
diff --git a/src/views/signUp/index.vue b/src/views/signUp/index.vue
index 6a766ca..36be7bc 100644
--- a/src/views/signUp/index.vue
+++ b/src/views/signUp/index.vue
@@ -1,8 +1,35 @@
diff --git a/src/views/user/index.vue b/src/views/user/index.vue
new file mode 100644
index 0000000..530ce0d
--- /dev/null
+++ b/src/views/user/index.vue
@@ -0,0 +1,20 @@
+
+
+
+
+ 个人中心
+ {{ userApplyInfo }}
+
+
diff --git a/uno.config.ts b/uno.config.ts
index 4aa1b25..8a90862 100644
--- a/uno.config.ts
+++ b/uno.config.ts
@@ -1,4 +1,4 @@
-import { defineConfig, presetAttributify, presetMini, presetUno } from 'unocss'
+import { defineConfig, presetAttributify, presetUno } from 'unocss'
import presetRemToPx from '@unocss/preset-rem-to-px'
// 刚使用unocss的朋友,可以借助这个工具: https://to-unocss.netlify.app
diff --git a/vite.config.ts b/vite.config.ts
index a2eb47e..d712b5b 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -20,6 +20,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
proxy: {
'/api': {
// 接口请求地址
+ // target: 'http://localhost:8888/api',
target: 'https://jihui.huiyipro.com/api',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''),