<!--
|
* @Author: 小明丶
|
* @Date: 2021-01-06 15:50:26
|
* @LastEditors: 小明丶
|
* @LastEditTime: 2021-01-06 15:50:27
|
* @Description:
|
-->
|
<template>
|
<div class="hb-gmzf">
|
<x-header :left-options="{backText: '', showBack: false}">和微分</x-header>
|
<div v-if="showHwfProd">
|
<div class="tab">
|
<div class="tab-index">
|
<p class="tab-index-one">请选择手机号类型</p>
|
</div>
|
</div>
|
<div class="order-xrw" v-if="showXrwType" @click="productPage(0)">
|
<div class="order-xrw-create">
|
<div class="order-xrw-create-icon">
|
<img class="order-xrw-create-icon-image" src="../../../assets/imgs/product_xrw.png"></img>
|
</div>
|
<p class="order-xrw-create-text">
|
新入网号码
|
</p>
|
<i class="iconfont iconyou tab-index-two" style="width:10%;height:30px;"></i>
|
</div>
|
</div>
|
<div class="order-xrw" style="margin-top: 30px" v-if="showXhzwType" @click="productPage(2)">
|
<div class="order-xrw-create">
|
<div class="order-xrw-create-icon">
|
<img class="order-xrw-create-icon-image" src="../../../assets/imgs/product_xhzw.png"></img>
|
</div>
|
<p class="order-xrw-create-text">
|
携号转网号码
|
</p>
|
<i class="iconfont iconyou tab-index-two" style="width:10%;height:30px;"></i>
|
</div>
|
</div>
|
<div class="order-xrw" style="margin-top: 30px" v-if="showClType" @click="productPage(1)">
|
<div class="order-xrw-create">
|
<div class="order-xrw-create-icon">
|
<img class="order-xrw-create-icon-image" src="../../../assets/imgs/product_cl.png"></img>
|
</div>
|
<p class="order-xrw-create-text">
|
存量号码
|
</p>
|
<i class="iconfont iconyou tab-index-two" style="width:10%;height:30px;"></i>
|
</div>
|
</div>
|
</div>
|
</div>
|
</template>
|
<script>
|
import { mapState, mapGetters } from 'vuex';
|
import { async } from 'q';
|
import Vue from 'vue';
|
import { Toast } from 'vant';
|
export default {
|
components: {
|
},
|
data() {
|
return {
|
mblNoTypeList:{},
|
showHwfProd:false,
|
showXrwType:false,
|
showClType:false,
|
showXhzwType:false,
|
};
|
},
|
computed:{
|
...mapState(['userinfo', 'msgCount']),
|
...mapGetters(['orgType']),
|
},
|
created () {
|
if(this.orgType == 4) {
|
this.getProdcuctList();
|
this.init();
|
}
|
},
|
methods: {
|
init(){
|
this.$api.wxScoreCreInit().then(res => {
|
this.mblNoTypeList = res.body.mblNoTypeList|| {};
|
this.mblNoTypeList.forEach(item => {
|
if(item.code == '0'){
|
this.showXrwType = true;
|
}else if(item.code == '1'){
|
this.showClType = true;
|
}else if(item.code == '2'){
|
this.showXhzwType = true;
|
}
|
});
|
}, err => err);
|
},
|
productPage(type){
|
let queryObj = {
|
mblNoType:type,
|
}
|
this.$router.push({
|
path: "/wx-pay-score",
|
query: queryObj
|
})
|
},
|
getProdcuctList(){
|
this.$api.prodIndexTypeList().then(res => {
|
let list = res.body.prodTypeRespVoList3 || [];
|
list.forEach(item => {
|
if(item.prodId ==30000016 && item.openStatus == 2){
|
this.showHwfProd = true;
|
}
|
});
|
});
|
},
|
}
|
};
|
</script>
|
<style lang="less" scoped>
|
.hb-gmzf {
|
width: 100%;
|
height: 100%;
|
background: #FAFAFC;
|
}
|
|
.tab {
|
width: 100%;
|
height: 200px;
|
background: url('../../../assets/imgs/hwf_bg.png');
|
background-size: 100% 100%;
|
}
|
|
.tab-index {
|
width: 100%;
|
height: 40px;
|
line-height: 40px;
|
box-sizing: border-box;
|
padding: 100px 0px 0px 20px;
|
color: #ffffff;
|
i {
|
font-size: 36px;
|
}
|
&-one,&-two{
|
width: 100%;
|
float: left;
|
box-sizing: border-box;
|
font-size: 20px;
|
}
|
}
|
|
|
|
.order-xrw {
|
margin:-50px 10px 10px 10px;
|
padding: 0 10px 0 10px;
|
line-height: 100px;
|
background: #FFFFFF;
|
box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.04);
|
border-radius: 16px;
|
&-create {
|
width: 100%;
|
height: 100px;
|
margin:0px 10px 0px 10px;
|
&-icon {
|
width:20%;
|
height: 100%;
|
float: left;
|
text-align: center;
|
&-image {
|
width:43px;
|
height:43px;
|
margin-top:25px;
|
}
|
}
|
&-text {
|
width: 70%;
|
float: left;
|
heght:100%;
|
font-size: 18px;
|
font-family: PingFang SC;
|
color: #333333;
|
}
|
&-arrow {
|
margin-right:10px;
|
width: 10%;
|
background: url('../../../assets/imgs/product_xrw.png');
|
float: right;
|
}
|
}
|
}
|
|
.button-maintain {
|
width:100%;
|
height:100%;
|
padding: 0 20px 0 20px;
|
box-sizing: inherit;
|
.button {
|
margin: 50px 0 0 0;
|
width:100%;
|
height:50px;
|
text-align: center;
|
line-height: 50px;
|
background: linear-gradient(90deg, #1C87FD, #219FFD);
|
border-radius: 44px;
|
.button-txt {
|
margin: 8px 0 0 0;
|
font-size: 22px;
|
color: #FFFFFF;
|
}
|
}
|
}
|
</style>
|