提交 99f34f2a authored 作者: liudezheng's avatar liudezheng

提交

上级 f007c27d
...@@ -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",
}, },
}, },
{ {
......
...@@ -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);
} }
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论