Commit b5ccb77b by 杨北旺

基本信息添加弹框

1 parent a14ff70c
......@@ -8,14 +8,17 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.21.1",
"cnpm": "^7.1.0",
"core-js": "^3.4.4",
"dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.1.8",
"glsx-table": "^1.0.9",
"vue": "^2.6.11",
"vue-amap": "^0.5.10"
"glsx-components": "^1.2.2",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-amap": "^0.5.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
......@@ -26,15 +29,14 @@
"@vue/eslint-config-prettier": "^5.0.0",
"babel-eslint": "^10.0.3",
"babel-plugin-component": "^1.1.1",
"element-theme-chalk": "^2.15.6",
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0",
"glsx-components": "^1.1.8",
"node-sass": "^4.14.1",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1"
"vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10"
},
"browserslist": [
"> 1%",
......
import Vue from 'vue'
import { Message, Autocomplete, Popover, Tag, Tooltip, Table, TableColumn, Steps, Step, Loading, Drawer, Pagination, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Row, Col, DatePicker, Tree } from 'element-ui'
import { Message, Autocomplete, Popover, Tag, Tooltip, Table, TableColumn, Steps, Step, Loading, Drawer, Pagination, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Row, Col, DatePicker, Tree, Dialog } from 'element-ui'
Vue.use(Button)
Vue.use(ButtonGroup)
Vue.use(Form)
......@@ -28,4 +28,5 @@ Vue.use(Tooltip)
Vue.use(Autocomplete)
Vue.use(Tag)
Vue.use(Popover)
Vue.use(Dialog)
export const message = Message
\ No newline at end of file
<template>
<div class="shop-info-module">
<div class="wrapper">
<div class="out_wrap dr_right">
<div class="new_element_wrap">
<div class="item_icon">
<div class="title_text">已购产品信息</div>
<div class="desc_text">
<span>标准版有效期:</span>
<span class="spc_text">2021年1月1日-2022年1月1日</span>
</div>
</div>
<div class="item_info">
<div class="info_text">已购版本:{{ platform == 1 ? '嘀加企微管家集团版' : '嘀加企微管家单店版' }}</div>
<el-button class="element_btn" size="mini" type="primary" @click="openDialog">订购</el-button>
</div>
</div>
<!-- <div class="out_wrap dr_right">
<div class="elment_widget">
<div class="top_bg_wrap">
<div class="title_text">已购产品信息</div>
......@@ -12,12 +25,13 @@
</div>
<div class="bottom_wrap">
<div class="info_text">已购版本:{{platform==1?'嘀加企微管家集团版':'嘀加企微管家单店版'}}</div>
<el-button class="element_btn" size="mini" type="primary">续费</el-button>
<div class="info_text dr_top">短信总条数:--</div>
<div class="info_text dr_top">外呼电话总数:--</div>
</div>
</div>
<div class="element_btn dr_top disableBtn">续费</div>
</div>
</div> -->
<!-- <div class="out_wrap dr_right">
<div class="elment_widget dr_right">
<div class="top_bg_wrap">
......@@ -59,6 +73,27 @@
<div class="element_btn dr_top disableBtn">续费</div>
</div> -->
</div>
<!-- 弹框信息 -->
<el-dialog :visible.sync="showDialog" width="50%" :before-close="closeDialog" :show-close="false">
<div slot="title" class="dialogTitle">产品升级订购联系方式</div>
<div class="dialogMain">
<div class="info_left">
<p>深圳广联赛讯股份有限公司</p>
<p>联系人:杨经理</p>
<p>联系电话:13500001234</p>
<p>微信:135000012345</p>
<p>地址:深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层</p>
</div>
<div class="info_right">
<div class="icon_bg"></div>
<div class="icon_text">扫码加好友咨询</div>
</div>
</div>
<div style="footer" class="dialogFooter">
<el-button class="element_btn" type="primary" @click="closeDialog">确定</el-button>
</div>
</el-dialog>
</div>
</template>
......@@ -67,14 +102,22 @@ export default {
name: '',
data() {
return {
platform:1
platform: 1,
showDialog: false
}
},
mounted() {
const { session } = this.$globalState
this.platform = session.merchantModel
},
methods: {}
methods: {
openDialog() {
this.showDialog = true
},
closeDialog() {
this.showDialog = false
}
}
}
</script>
<style lang="scss" scoped>
......@@ -87,83 +130,180 @@ export default {
.dr_right {
margin-right: 30px;
}
.out_wrap {
// .out_wrap {
// width: 29%;
// height: 214px;
// .elment_widget {
// width: 100%;
// height: 165px;
// border: 1px solid #e5e4ff;
// border-radius: 10px;
// .top_bg_wrap {
// width: 100%;
// height: 108px;
// background-image: url('../../assets/scrm_base_info_icon_two.png');
// background-size: 100% 108px;
// box-sizing: border-box;
// padding: 20px 0 0 20px;
// .title_text {
// color: #333;
// font-size: 18px;
// font-weight: 600;
// }
// .desc_text {
// font-size: 14px;
// font-weight: 400;
// color: #333333;
// margin-top: 28px;
// .spc_text {
// font-weight: 600;
// color: #5850ff;
// }
// .max_text {
// font-size: 22px;
// }
// .unit_text {
// margin-left: 4px;
// }
// }
// }
// .bottom_wrap {
// width: 100%;
// height: 60px;
// box-sizing: border-box;
// padding: 20px 0 0 20px;
// box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// position: relative;
// .info_text {
// font-size: 14px;
// font-weight: 400;
// color: #666666;
// }
// .min_text {
// font-size: 12px;
// color: #666666;
// }
// .dr_left {
// margin-left: 30px;
// }
// }
// }
// .element_btn {
// position: absolute;
// right: 10px;
// bottom: 14px;
// }
// .disableBtn {
// background: #ccc;
// }
// }
.new_element_wrap {
width: 29%;
height: 298px;
.elment_widget {
border: 1px solid #e5e4ff;
border-radius: 10px;
.item_icon {
width: 100%;
height: 250px;
border: 1px solid #e5e4ff;
border-radius: 10px;
.top_bg_wrap {
width: 100%;
height: 108px;
background-image: url('../../assets/scrm_base_info_icon_two.png');
background-size: 100% 108px;
box-sizing: border-box;
padding: 20px 0 0 20px;
.title_text {
color: #333;
font-size: 18px;
font-weight: 600;
}
.desc_text {
font-size: 14px;
font-weight: 400;
color: #333333;
margin-top: 28px;
.spc_text {
font-weight: 600;
color: #5850ff;
}
.max_text {
font-size: 22px;
}
.unit_text {
margin-left: 4px;
}
}
height: 108px;
background-image: url('../../assets/scrm_base_info_icon_two.png');
background-size: 100% 108px;
box-sizing: border-box;
padding: 20px 0 0 20px;
.title_text {
color: #333;
font-size: 18px;
font-weight: 600;
}
.bottom_wrap {
width: 100%;
height: 142px;
box-sizing: border-box;
padding: 20px 0 0 20px;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.info_text {
font-size: 14px;
font-weight: 400;
color: #666666;
.desc_text {
font-size: 14px;
font-weight: 400;
color: #333333;
margin-top: 28px;
.spc_text {
font-weight: 600;
color: #5850ff;
}
.min_text {
font-size: 12px;
color: #666666;
.max_text {
font-size: 22px;
}
.dr_left {
margin-left: 30px;
.unit_text {
margin-left: 4px;
}
}
}
.element_btn {
width: 72px;
height: 36px;
text-align: center;
line-height: 36px;
background: #5850ff;
border-radius: 4px;
color: #fff;
font-size: 16px;
font-weight: 600;
margin: 0 auto;
cursor: pointer;
}
.disableBtn {
background: #ccc;
.item_info {
box-sizing: border-box;
padding: 20px;
background: #ffffff;
box-shadow: 0px 6px 10px 0px rgba(88, 80, 255, 0.1);
border-radius: 10px;
position: relative;
.info_text {
font-size: 14px;
font-weight: 400;
color: #666666;
}
.element_btn {
position: absolute;
right: 10px;
top: 50%;
transform: translate(0, -50%);
}
}
}
}
.dr_top {
margin-top: 10px !important;
}
// 弹框样式
.dialogTitle {
font-size: 20px;
font-weight: bold;
color: #333333;
}
.dialogMain {
border-top: 1px solid #e6e6e6;
height: 244px;
display: flex;
align-items: center;
justify-content: space-around;
.info_left {
width: 338px;
height: 156px;
> p {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 26px;
}
}
.info_right {
width: 140px;
height: 156px;
display: flex;
flex-direction: column;
align-items: center;
.icon_bg {
width: 140px;
height: 140px;
background: #ccc;
}
.icon_text {
font-size: 16px;
font-weight: 600;
color: #5850ff;
margin-top: 10px;
}
}
}
.dialogFooter {
border-top: 1px solid #e6e6e6;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
}
.shop-info-module /deep/ .el-dialog__body {
padding:0;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!