修改分享

This commit is contained in:
lcc
2024-08-02 17:39:03 +08:00
parent 5d16a61417
commit d51bd7bb9f
2 changed files with 37 additions and 19 deletions
+36 -18
View File
@@ -1,6 +1,9 @@
<link rel="stylesheet" href="/css/h5/market/sytopic/h5.css?2024111">
<body>
<style>.wp31{width: 31%;box-sizing:border-box;}</style>
<style>.wp31 {
width: 31%;
box-sizing: border-box;
}</style>
<div id="app" style="min-height: 100vh;background-color:<?= $info['bgColor'] ?: '#f6f6f6' ?>" class="relative">
<header v-if="0" class="absolute left-0 top-0 right-0 z-index-1">
<div class="fn-flex fn-flex-between fn-flex-middle ulib-rb30 bg-fff pl30 pr30 pt20 pb20">
@@ -97,8 +100,9 @@
</div>
<div class="fn-flex fn-flex-wrap fn-flex-between"
v-if="val.otherImg && val.otherImg.length>0">
<!-- 一行一图wp100 一行两图wp48 一行三图wp31 -->
<div :class="[val.otherImg.length==1?'wp100':val.otherImg.length==2?'wp48':'wp31','mb15']" v-for="val1 in val.otherImg">
<!-- 一行一图wp100 一行两图wp48 一行三图wp31 -->
<div :class="[val.otherImg.length==1?'wp100':val.otherImg.length==2?'wp48':'wp31','mb15']"
v-for="val1 in val.otherImg">
<van-image class="wp100" :src="val1"></van-image>
</div>
</div>
@@ -214,20 +218,21 @@
<aside class="fixed right-0 bottom-0 mr30 mb100 z-index-10">
<ul>
<li class="mt20" v-if="val.showBtn">
<div class="imgsize-120X120 relative" @click="showEnroll(item.type,val,1)">
<div class="imgsize-120X120 relative" @click="showEnroll(item.type,val,1,1)">
<van-image
style="border: 0.6vw solid #ff3c3a;"
width="16vw"
height="16vw"
fit="cover"
round
:src="info.channelHeadImg"
style="border: 0.6vw solid #ff3c3a;"
width="16vw"
height="16vw"
fit="cover"
round
:src="info.channelHeadImg"
></van-image>
<i class="absolute left-0 right-0 bottom-0 mb5 d-icon-9"></i>
</div>
</li>
<li class="mt20">
<span @click="showEnroll(item.type,val)"><i class="inline-block d-icon-8"></i></span>
<li class="mt20" v-else>
<span @click="showEnroll(item.type,val,false,1)"><i
class="inline-block d-icon-8"></i></span>
</li>
</ul>
</aside>
@@ -251,7 +256,10 @@
<div class="wp33">
<van-image :src="popCarInfo.banner"></van-image>
</div>
<div class=" ml20 fn-flex fn-flex-center" style="flex-direction: column;">
<div class=" ml20 fn-flex fn-flex-center" style="flex-direction: column;" v-if="showType==2">
<h3 class="font-32 text-nowrap">立即咨询</h3>
</div>
<div class=" ml20 fn-flex fn-flex-center" style="flex-direction: column;" v-else>
<h3 class="font-32 text-nowrap">{{popCarInfo.title}}</h3>
<p class="ulib-r750 color-888 font-22 mt10"><span>指导价</span><span class="ml5">{{popCarInfo.subTitle}}</span>
</p>
@@ -281,7 +289,8 @@
</van-field>
</div>
<div>
<button class="btn ulib-r20 bg-f8e26a block font-30 wp100 pt20 pb20 mt50" @click="enroll">提交
<button class="btn ulib-r20 bg-f8e26a block font-30 wp100 pt20 pb20 mt50" @click="enroll">
{{ showType==2 ? '立即领取': '提交'}}
</button>
</div>
</div>
@@ -293,7 +302,8 @@
:style="{ 'min-height': '30%', 'background-color': 'transparent' }">
<div class="inner30 ulib-rt30 bg-fff" style="width: 100vw;margin:0;">
<div class="inner10">
<h3 class="text-center font-36 pt10 pb10">{{info.title}}</h3>
<h3 class="text-center font-36 pt10 pb10" v-if="showType==2">立即咨询</h3>
<h3 class="text-center font-36 pt10 pb10" v-else>{{info.title}}</h3>
<div class="fn-flex fn-flex-center fn-flex-middle" v-if="showPopCarInfo">
<div class="wp33">
<van-image :src="popCarInfo.banner"></van-image>
@@ -328,7 +338,8 @@
</van-field>
</div>
<div>
<button class="btn ulib-r20 bg-f8e26a block font-30 wp100 pt20 pb20 mt50" @click="enroll">提交
<button class="btn ulib-r20 bg-f8e26a block font-30 wp100 pt20 pb20 mt50" @click="enroll">
{{ showType==2 ? '立即领取': '提交'}}
</button>
</div>
</div>
@@ -363,11 +374,12 @@
isSubmiting: false,
optionId: 0,
counttime: 60000,
show_retry: false
show_retry: false,
showType: 1, // 1 活动标题 2立即咨询
}
},
methods: {
showEnroll(type, row, showPopChannel) {
showEnroll(type, row, showPopChannel, showType) {
this.showPopChannel = false
this.showPopCarInfo = false
let popUpType = row.popUpType ? parseInt(row.popUpType) : 0
@@ -387,6 +399,11 @@
} else {
this.show_signup_center = true
}
if (showType) {
this.showType = 2
} else {
this.showType = 1
}
},
getCode() { //获取验证码
if (this.isSubmiting) {
@@ -458,4 +475,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive/share_script') ?>
</body>
@@ -42,5 +42,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
<?= $this->load->view('h5/market/sylive/share_script') ?>
</body>