|
@@ -6,7 +6,8 @@
|
|
<!-- 统一认证组件 -->
|
|
<!-- 统一认证组件 -->
|
|
<tong-ren @btnClick='openIframe' :pageData="pageData" @phoneNum="phoneFuction">
|
|
<tong-ren @btnClick='openIframe' :pageData="pageData" @phoneNum="phoneFuction">
|
|
</tong-ren>
|
|
</tong-ren>
|
|
- <div class="contentBox" v-if="pageData.mainJson.orderImg" :style="{'backgroundColor':pageData.mainJson.orderBgcol,'color':pageData.mainJson.pageTextcol}">
|
|
|
|
|
|
+
|
|
|
|
+ <div class="contentBox" v-if="pageData.mainJson.explainImg" :style="{'backgroundColor':pageData.mainJson.orderBgcol,'color':pageData.mainJson.pageTextcol}">
|
|
<div class="roundBox long">
|
|
<div class="roundBox long">
|
|
<div class="mini" :style="{'backgroundColor':pageData.mainJson.orderBdcol}">
|
|
<div class="mini" :style="{'backgroundColor':pageData.mainJson.orderBdcol}">
|
|
</div>
|
|
</div>
|
|
@@ -24,7 +25,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="guidancePic">
|
|
<div class="guidancePic">
|
|
- <img :src="imgUrl +pageData.mainJson.orderImg" style="width: 100%;height:100%" />
|
|
|
|
|
|
+ <img :src="imgUrl +pageData.mainJson.explainImg" style="width: 100%;height:100%" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="contentBox" v-if="pageData.mainProduct.givePhoneInfo" :style="{'backgroundColor':pageData.mainJson.orderBgcol,'color':pageData.mainJson.pageTextcol}">
|
|
<div class="contentBox" v-if="pageData.mainProduct.givePhoneInfo" :style="{'backgroundColor':pageData.mainJson.orderBgcol,'color':pageData.mainJson.pageTextcol}">
|
|
@@ -47,27 +48,56 @@
|
|
<div class="main" v-html="pageData.mainProduct.givePhoneInfo">
|
|
<div class="main" v-html="pageData.mainProduct.givePhoneInfo">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="tabBtn" :style="{'backgroundColor':pageData.mainJson.orderBgcol,'color':pageData.mainJson.pageTextcol}">
|
|
|
|
+ <div class="tabBox" v-for="(item,index) in tabArr" :key="index" @click="tabClick(item)">
|
|
|
|
+ <div class="img">
|
|
|
|
+ <img :src="item.icon" alt="" />
|
|
|
|
+ </div>
|
|
|
|
+ <div>{{item.tabName}}</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 登录弹框组件 -->
|
|
|
|
+ <login-modal v-model="showLogin" :type="type" :text="text" @getIsBuy="getIsBuy"></login-modal>
|
|
<!-- 订购超时 -->
|
|
<!-- 订购超时 -->
|
|
<timeout-modal v-model="showTimeout"></timeout-modal>
|
|
<timeout-modal v-model="showTimeout"></timeout-modal>
|
|
|
|
+ <!-- 退订弹框组件 -->
|
|
|
|
+ <unbuy-modal v-model="showUnbuy" :pageData="pageData" @childData="getChildData"></unbuy-modal>
|
|
|
|
+ <!-- 遮罩 -->
|
|
|
|
+ <newZheZhao v-if="showZhezhao" isZheZhao="1" :indexNum="indexNum"></newZheZhao>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import common from "../../common/common";
|
|
import common from "../../common/common";
|
|
import timeoutModal from "../../components/timeoutModal.vue";
|
|
import timeoutModal from "../../components/timeoutModal.vue";
|
|
|
|
+import unbuyModal from "../../components/unbuyModal.vue";
|
|
|
|
+import newZheZhao from "../../components/newZheZhao.vue";
|
|
|
|
+import loginModal from "../../components/login.vue";
|
|
import tongRen from "./components/tongRen.vue";
|
|
import tongRen from "./components/tongRen.vue";
|
|
|
|
+import addR from "../../common/addRecord";
|
|
|
|
+import wx from "weixin-js-sdk";
|
|
export default {
|
|
export default {
|
|
-
|
|
|
|
mixins: [common],
|
|
mixins: [common],
|
|
components: {
|
|
components: {
|
|
timeoutModal,
|
|
timeoutModal,
|
|
tongRen,
|
|
tongRen,
|
|
|
|
+ unbuyModal,
|
|
|
|
+ newZheZhao,
|
|
|
|
+ loginModal
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
imgUrl: process.env.VUE_APP_IMGS_URL,
|
|
imgUrl: process.env.VUE_APP_IMGS_URL,
|
|
showTimeout: false,
|
|
showTimeout: false,
|
|
|
|
+ showUnbuy: false,
|
|
|
|
+ showLogin: false,
|
|
|
|
+ unBuyDrainage: false,
|
|
|
|
+ isApplet: false,
|
|
|
|
+ unBuyDrainageText: "",
|
|
phone: "",
|
|
phone: "",
|
|
isBuy: "未订购",
|
|
isBuy: "未订购",
|
|
|
|
+ tabArr: [],
|
|
|
|
+ type: "",
|
|
|
|
+ text: "",
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
@@ -75,15 +105,95 @@ export default {
|
|
if (this.$route.query.phone) {
|
|
if (this.$route.query.phone) {
|
|
this.phone = this.$route.query.phone
|
|
this.phone = this.$route.query.phone
|
|
}
|
|
}
|
|
|
|
+ if (this.pageData.remarks.tabArr && this.pageData.remarks.tabArr.length > 0) {
|
|
|
|
+ this.tabArr = this.pageData.remarks.tabArr
|
|
|
|
+ let arr = []
|
|
|
|
+ this.tabArr.forEach(val => {
|
|
|
|
+ if (val.tabName == '会员领取') {
|
|
|
|
+ let obj = {}
|
|
|
|
+ obj.tabName = val.tabName
|
|
|
|
+ obj.tabUrlBasics = val.tabUrlBasics
|
|
|
|
+ obj.tabUrlApplet = val.tabUrlApplet
|
|
|
|
+ obj.icon = require("./components/img/huiyuan.png")
|
|
|
|
+ arr.push(obj)
|
|
|
|
+ }
|
|
|
|
+ if (val.tabName == '流量激活') {
|
|
|
|
+ let obj = {}
|
|
|
|
+ obj.tabName = val.tabName
|
|
|
|
+ obj.tabUrlBasics = val.tabUrlBasics
|
|
|
|
+ obj.tabUrlApplet = val.tabUrlApplet
|
|
|
|
+ obj.icon = require("./components/img/liuliang.png")
|
|
|
|
+ arr.push(obj)
|
|
|
|
+ }
|
|
|
|
+ if (val.tabName == '退订产品') {
|
|
|
|
+ let obj = {}
|
|
|
|
+ obj.tabName = val.tabName
|
|
|
|
+ obj.tabUrlBasics = val.tabUrlBasics
|
|
|
|
+ obj.tabUrlApplet = val.tabUrlApplet
|
|
|
|
+ obj.icon = require("./components/img/tuiding.png")
|
|
|
|
+ arr.push(obj)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.tabArr = arr
|
|
|
|
+ } else {
|
|
|
|
+ if (this.pageData.remarks.memberBtn == '1') {
|
|
|
|
+ let obj = {}
|
|
|
|
+ obj.tabUrlBasics = ""
|
|
|
|
+ obj.tabUrlApplet = ""
|
|
|
|
+ obj.icon = require("./components/img/huiyuan.png")
|
|
|
|
+ obj.tabName = '会员领取'
|
|
|
|
+ this.tabArr.push(obj)
|
|
|
|
+ }
|
|
|
|
+ if (this.pageData.remarks.memberBtn == '1') {
|
|
|
|
+ let obj = {}
|
|
|
|
+ obj.tabUrlBasics = ""
|
|
|
|
+ obj.tabUrlApplet = ""
|
|
|
|
+ obj.icon = require("./components/img/liuliang.png")
|
|
|
|
+ obj.tabName = '流量激活'
|
|
|
|
+ this.tabArr.push(obj)
|
|
|
|
+ }
|
|
|
|
+ if (this.pageData.remarks.tuidingBtn == '1') {
|
|
|
|
+ let obj = {}
|
|
|
|
+ obj.tabUrlBasics = ""
|
|
|
|
+ obj.tabUrlApplet = ""
|
|
|
|
+ obj.icon = require("./components/img/tuiding.png")
|
|
|
|
+ obj.tabName = '退订产品'
|
|
|
|
+ this.tabArr.push(obj)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+ mounted () {
|
|
|
|
+ addR.showSP();
|
|
|
|
+ wx.miniProgram.getEnv(res => {
|
|
|
|
+ this.isApplet = res.miniprogram
|
|
|
|
+ })
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
phoneFuction (e) {
|
|
phoneFuction (e) {
|
|
this.phone = e
|
|
this.phone = e
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ getChildData (data) {
|
|
|
|
+ this.isBuy = data;
|
|
|
|
+ },
|
|
|
|
+ async beforeLogin (type) {
|
|
|
|
+ this.type = type;
|
|
|
|
+ if (this.user.userid) {
|
|
|
|
+ if (type === "member") {
|
|
|
|
+ this.toLink(type);
|
|
|
|
+ } else if (type === "unBUy") {
|
|
|
|
+ addR.unBuyClick();
|
|
|
|
+ this.showUnbuy = true;
|
|
|
|
+ }
|
|
|
|
+ } else if (type === "unBUy") {
|
|
|
|
+ addR.unBuyClick();
|
|
|
|
+ this.showUnbuy = true;
|
|
|
|
+ } else {
|
|
|
|
+ addR.loginClick();
|
|
|
|
+ this.showLogin = true;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang='scss'>
|
|
<style lang='scss'>
|
|
@@ -141,10 +251,9 @@ export default {
|
|
border: none;
|
|
border: none;
|
|
outline: none;
|
|
outline: none;
|
|
height: 100%;
|
|
height: 100%;
|
|
- font-size: 29px;
|
|
|
|
-
|
|
|
|
|
|
+ font-size: 33px;
|
|
font-family: HYQiHei;
|
|
font-family: HYQiHei;
|
|
- font-weight: bold;
|
|
|
|
|
|
+ font-weight: normal;
|
|
color: #b0acac;
|
|
color: #b0acac;
|
|
opacity: 0.7;
|
|
opacity: 0.7;
|
|
line-height: 79px;
|
|
line-height: 79px;
|
|
@@ -152,7 +261,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.btnBox {
|
|
.btnBox {
|
|
- width: 516px;
|
|
|
|
|
|
+ width: 603px;
|
|
height: 96px;
|
|
height: 96px;
|
|
margin: 30px auto 40px auto;
|
|
margin: 30px auto 40px auto;
|
|
border-radius: 35px;
|
|
border-radius: 35px;
|
|
@@ -171,23 +280,21 @@ export default {
|
|
font-size: 50px;
|
|
font-size: 50px;
|
|
font-family: HYQiHei;
|
|
font-family: HYQiHei;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
- // background: linear-gradient(rgb(158, 156, 149), #FBD657);
|
|
|
|
- // box-shadow: 0px 3px 6px 0px rgba(255, 255, 255, 0.64);
|
|
|
|
- // color: #F60F0B;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.contentBox {
|
|
.contentBox {
|
|
- width: 638px;
|
|
|
|
|
|
+ width: 640px;
|
|
border-radius: 20px;
|
|
border-radius: 20px;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
- margin-bottom: 68px;
|
|
|
|
- padding: 41px 35px 56px 40px;
|
|
|
|
|
|
+ // margin-bottom: 68px;
|
|
|
|
+ margin-top: 40px;
|
|
|
|
+ padding: 59px 35px;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
|
|
.roundBox {
|
|
.roundBox {
|
|
min-width: 400px;
|
|
min-width: 400px;
|
|
- margin: 40px auto;
|
|
|
|
|
|
+ margin: 0 auto;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -198,7 +305,6 @@ export default {
|
|
width: 8px;
|
|
width: 8px;
|
|
height: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
-
|
|
|
|
margin: 0 5px;
|
|
margin: 0 5px;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -213,18 +319,17 @@ export default {
|
|
width: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
-
|
|
|
|
margin: 0 5px;
|
|
margin: 0 5px;
|
|
}
|
|
}
|
|
|
|
|
|
.text {
|
|
.text {
|
|
min-width: 200px;
|
|
min-width: 200px;
|
|
- height: 79px;
|
|
|
|
|
|
+ height: 68px;
|
|
text-align: center;
|
|
text-align: center;
|
|
- font-size: 36px;
|
|
|
|
|
|
+ font-size: 34px;
|
|
font-family: HYQiHei;
|
|
font-family: HYQiHei;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
- line-height: 79px;
|
|
|
|
|
|
+ line-height: 68px;
|
|
border-radius: 39px;
|
|
border-radius: 39px;
|
|
margin: 0 15px;
|
|
margin: 0 15px;
|
|
padding: 0 30px;
|
|
padding: 0 30px;
|
|
@@ -232,10 +337,16 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.main {
|
|
.main {
|
|
|
|
+ height: 655px;
|
|
|
|
+ overflow-y: scroll;
|
|
font-size: 22px;
|
|
font-size: 22px;
|
|
font-family: HYQiHei;
|
|
font-family: HYQiHei;
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
line-height: 33px;
|
|
line-height: 33px;
|
|
|
|
+ margin-top: 36px;
|
|
|
|
+ }
|
|
|
|
+ .guidancePic {
|
|
|
|
+ margin-top: 50px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -288,5 +399,30 @@ export default {
|
|
left: 37px;
|
|
left: 37px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .tabBtn {
|
|
|
|
+ width: 640px;
|
|
|
|
+ height: 138px;
|
|
|
|
+ margin: 40px auto;
|
|
|
|
+ margin-bottom: 80px;
|
|
|
|
+ border-radius: 20px;
|
|
|
|
+ padding: 22px 54px;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ // padding: 40px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+
|
|
|
|
+ .tabBox {
|
|
|
|
+ font-size: 26px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ .img {
|
|
|
|
+ // padding: 0 50px;
|
|
|
|
+
|
|
|
|
+ img {
|
|
|
|
+ width: 50px;
|
|
|
|
+ height: 50px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|