Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
2
2025_fangtai_springfestival_h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
周鸿宁
2025_fangtai_springfestival_h5
Commits
99f34f2a
提交
99f34f2a
authored
11月 01, 2023
作者:
liudezheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交
上级
f007c27d
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
17 行删除
+30
-17
index.js
src/router/index.js
+1
-1
About.vue
src/views/About.vue
+13
-2
Home.vue
src/views/Home.vue
+16
-14
没有找到文件。
src/router/index.js
浏览文件 @
99f34f2a
...
@@ -10,7 +10,7 @@ const routes = [
...
@@ -10,7 +10,7 @@ const routes = [
name
:
"Home"
,
name
:
"Home"
,
component
:
Home
,
component
:
Home
,
meta
:
{
meta
:
{
title
:
"【方太】尊享高端.礼遇
金秋
双11"
,
title
:
"【方太】尊享高端.礼遇双11"
,
},
},
},
},
{
{
...
...
src/views/About.vue
浏览文件 @
99f34f2a
...
@@ -31,6 +31,11 @@
...
@@ -31,6 +31,11 @@
placeholder=
"请输入电话"
placeholder=
"请输入电话"
type=
"number"
type=
"number"
/>
/>
<van-field
class=
"input"
v-model=
"from.purchasePeriod"
placeholder=
"请输入购买年限(单位:年)"
/>
<van-field
class=
"input"
v-model=
"from.address"
placeholder=
"请输入地址"
/>
<van-field
class=
"input"
v-model=
"from.address"
placeholder=
"请输入地址"
/>
<div
class=
"btn"
@
click=
"submit"
>
立即报名
</div>
<div
class=
"btn"
@
click=
"submit"
>
立即报名
</div>
</div>
</div>
...
@@ -46,6 +51,7 @@ export default {
...
@@ -46,6 +51,7 @@ export default {
name
:
""
,
name
:
""
,
phone
:
""
,
phone
:
""
,
address
:
""
,
address
:
""
,
purchasePeriod
:
""
,
},
},
current
:
0
,
current
:
0
,
imgUrlList
:
[
imgUrlList
:
[
...
@@ -129,7 +135,7 @@ export default {
...
@@ -129,7 +135,7 @@ export default {
},
},
methods
:
{
methods
:
{
async
submit
()
{
async
submit
()
{
let
{
name
,
phone
,
address
}
=
this
.
from
;
let
{
name
,
phone
,
address
,
purchasePeriod
}
=
this
.
from
;
var
phoneReg
=
/^
[
1
][
3,4,5,7,8
][
0-9
]{9}
$/
;
var
phoneReg
=
/^
[
1
][
3,4,5,7,8
][
0-9
]{9}
$/
;
if
(
!
name
)
{
if
(
!
name
)
{
this
.
$toast
(
"姓名不能为空"
);
this
.
$toast
(
"姓名不能为空"
);
...
@@ -140,6 +146,9 @@ export default {
...
@@ -140,6 +146,9 @@ export default {
}
else
if
(
!
phoneReg
.
test
(
phone
))
{
}
else
if
(
!
phoneReg
.
test
(
phone
))
{
this
.
$toast
(
"电话不正确"
);
this
.
$toast
(
"电话不正确"
);
return
;
return
;
}
else
if
(
!
purchasePeriod
)
{
this
.
$toast
(
"购买年限不能为空"
);
return
;
}
else
if
(
!
address
)
{
}
else
if
(
!
address
)
{
this
.
$toast
(
"地址不能为空"
);
this
.
$toast
(
"地址不能为空"
);
return
;
return
;
...
@@ -153,6 +162,7 @@ export default {
...
@@ -153,6 +162,7 @@ export default {
phone
,
phone
,
address
,
address
,
type
:
3
,
type
:
3
,
purchasePeriod
,
},
},
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
let
data
=
res
.
data
;
let
data
=
res
.
data
;
...
@@ -161,6 +171,7 @@ export default {
...
@@ -161,6 +171,7 @@ export default {
this
.
from
.
name
=
""
;
this
.
from
.
name
=
""
;
this
.
from
.
phone
=
""
;
this
.
from
.
phone
=
""
;
this
.
from
.
address
=
""
;
this
.
from
.
address
=
""
;
this
.
from
.
purchasePeriod
=
""
;
}
else
{
}
else
{
this
.
$toast
(
data
.
msg
);
this
.
$toast
(
data
.
msg
);
}
}
...
@@ -175,7 +186,7 @@ export default {
...
@@ -175,7 +186,7 @@ export default {
background
:
linear-gradient
(
180deg
,
#1d1212
0%
,
#c41a21
100%
);
background
:
linear-gradient
(
180deg
,
#1d1212
0%
,
#c41a21
100%
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
0
50px
0
;
padding
:
0
0
50px
0
;
::v-deep
.my-swipe
{
::v-deep
.my-swipe
{
height
:
380px
!
important
;
height
:
380px
!
important
;
.van-swipe-item
{
.van-swipe-item
{
color
:
#fff
;
color
:
#fff
;
...
...
src/views/Home.vue
浏览文件 @
99f34f2a
...
@@ -53,19 +53,13 @@
...
@@ -53,19 +53,13 @@
alt=
""
alt=
""
srcset=
""
srcset=
""
/>
-->
/>
-->
<img
@
click=
"goAbout"
class=
"one abc"
src=
"https://diaocloud-fangtai.oss-cn-beijing.aliyuncs.com/ft20231111/7.png"
alt=
""
srcset=
""
/>
<!--
<div
class=
"one-text"
>
<!--
<div
class=
"one-text"
>
100%好礼:预定用户分享活动,即可参与11.11砸金蛋100%抽奖,100-1000元无门槛优惠券送不停,更有华为Mate60(使用权)、4999元免单、小天鹅10公斤滚筒洗衣机等幸运好礼!
100%好礼:预定用户分享活动,即可参与11.11砸金蛋100%抽奖,100-1000元无门槛优惠券送不停,更有华为Mate60(使用权)、4999元免单、小天鹅10公斤滚筒洗衣机等幸运好礼!
</div>
-->
</div>
-->
<!-- 33333 -->
<!-- 33333 -->
<!--
<img
class=
"one"
src=
"@/assets/6.png"
alt=
""
srcset=
""
/>
-->
<!--
<img
class=
"one"
src=
"@/assets/6.png"
alt=
""
srcset=
""
/>
-->
<div
class=
"test"
>
<div
class=
"test
abc
"
>
<wx-open-launch-weapp
<wx-open-launch-weapp
v-if=
"true"
v-if=
"true"
id=
"launch-btn"
id=
"launch-btn"
...
@@ -91,6 +85,13 @@
...
@@ -91,6 +85,13 @@
</script>
</script>
</wx-open-launch-weapp>
</wx-open-launch-weapp>
</div>
</div>
<img
@
click=
"goAbout"
class=
"one"
src=
"https://diaocloud-fangtai.oss-cn-beijing.aliyuncs.com/ft20231111/7.png"
alt=
""
srcset=
""
/>
<img
class=
"title-img"
src=
"@/assets/title.png"
alt=
""
srcset=
""
/>
<img
class=
"title-img"
src=
"@/assets/title.png"
alt=
""
srcset=
""
/>
<img
<img
class=
"two"
class=
"two"
...
@@ -220,8 +221,8 @@ export default {
...
@@ -220,8 +221,8 @@ export default {
const
{
appId
,
signature
,
timestamp
,
nonceStr
,
url
}
=
res
.
data
.
data
;
const
{
appId
,
signature
,
timestamp
,
nonceStr
,
url
}
=
res
.
data
.
data
;
// 分享数据写死
// 分享数据写死
let
msg
=
{
let
msg
=
{
title
:
"【方太】尊享高端.礼遇
金秋
双11"
,
// 分享标题
title
:
"【方太】尊享高端.礼遇双11"
,
// 分享标题
desc
:
"满额送华为Mate60Pro
(使用权),抽免单(4999元)、秒好礼,寻找老用户,热水器
0元焕新"
,
// 分享描述
desc
:
"满额送华为Mate60Pro
,抽免单(4999元)、秒好礼,方太热水器老用户
0元焕新"
,
// 分享描述
link
:
"https://faces.diaosaas.com/ft/website11/"
,
// / 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名
link
:
"https://faces.diaosaas.com/ft/website11/"
,
// / 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名
imgUrl
:
imgUrl
:
"https://diaocloud-fangtai.oss-cn-beijing.aliyuncs.com/ft20231111/fenxiang.png"
,
// 分享图标
"https://diaocloud-fangtai.oss-cn-beijing.aliyuncs.com/ft20231111/fenxiang.png"
,
// 分享图标
...
@@ -393,10 +394,7 @@ export default {
...
@@ -393,10 +394,7 @@ export default {
width
:
700px
;
width
:
700px
;
margin
:
0
auto
;
margin
:
0
auto
;
}
}
.abc
{
margin-top
:
30px
;
margin-bottom
:
30px
;
}
.test
{
.test
{
position
:
relative
;
position
:
relative
;
width
:
700px
;
width
:
700px
;
...
@@ -404,6 +402,10 @@ export default {
...
@@ -404,6 +402,10 @@ export default {
margin
:
0
auto
;
margin
:
0
auto
;
// border: 1px solid green;
// border: 1px solid green;
}
}
.abc
{
margin-top
:
30px
;
margin-bottom
:
30px
;
}
.one-text
{
.one-text
{
background
:
goldenrod
;
background
:
goldenrod
;
margin
:
26px
auto
62px
auto
;
margin
:
26px
auto
62px
auto
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论