Commit b5ccb77b by 杨北旺

基本信息添加弹框

1 parent a14ff70c
...@@ -8,14 +8,17 @@ ...@@ -8,14 +8,17 @@
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
"axios": "^0.21.1",
"cnpm": "^7.1.0",
"core-js": "^3.4.4", "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-common": "^1.4.6",
"glsx-components": "^1.1.8", "glsx-components": "^1.2.2",
"glsx-table": "^1.0.9", "lodash": "^4.17.21",
"vue": "^2.6.11", "vue": "^2.6.10",
"vue-amap": "^0.5.10" "vue-amap": "^0.5.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
...@@ -26,15 +29,14 @@ ...@@ -26,15 +29,14 @@
"@vue/eslint-config-prettier": "^5.0.0", "@vue/eslint-config-prettier": "^5.0.0",
"babel-eslint": "^10.0.3", "babel-eslint": "^10.0.3",
"babel-plugin-component": "^1.1.1", "babel-plugin-component": "^1.1.1",
"element-theme-chalk": "^2.15.6",
"eslint": "^5.16.0", "eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1", "eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0", "eslint-plugin-vue": "^5.0.0",
"glsx-components": "^1.1.8",
"node-sass": "^4.14.1", "node-sass": "^4.14.1",
"prettier": "^1.19.1", "prettier": "^1.19.1",
"sass-loader": "^8.0.0", "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": [ "browserslist": [
"> 1%", "> 1%",
......
import Vue from 'vue' 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(Button)
Vue.use(ButtonGroup) Vue.use(ButtonGroup)
Vue.use(Form) Vue.use(Form)
...@@ -28,4 +28,5 @@ Vue.use(Tooltip) ...@@ -28,4 +28,5 @@ Vue.use(Tooltip)
Vue.use(Autocomplete) Vue.use(Autocomplete)
Vue.use(Tag) Vue.use(Tag)
Vue.use(Popover) Vue.use(Popover)
Vue.use(Dialog)
export const message = Message export const message = Message
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="shop-info-module"> <div class="shop-info-module">
<div class="wrapper"> <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="elment_widget">
<div class="top_bg_wrap"> <div class="top_bg_wrap">
<div class="title_text">已购产品信息</div> <div class="title_text">已购产品信息</div>
...@@ -12,12 +25,13 @@ ...@@ -12,12 +25,13 @@
</div> </div>
<div class="bottom_wrap"> <div class="bottom_wrap">
<div class="info_text">已购版本:{{platform==1?'嘀加企微管家集团版':'嘀加企微管家单店版'}}</div> <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 class="info_text dr_top">外呼电话总数:--</div> <div class="info_text dr_top">外呼电话总数:--</div>
</div> </div>
</div> </div>
<div class="element_btn dr_top disableBtn">续费</div> <div class="element_btn dr_top disableBtn">续费</div>
</div> </div> -->
<!-- <div class="out_wrap dr_right"> <!-- <div class="out_wrap dr_right">
<div class="elment_widget dr_right"> <div class="elment_widget dr_right">
<div class="top_bg_wrap"> <div class="top_bg_wrap">
...@@ -59,6 +73,27 @@ ...@@ -59,6 +73,27 @@
<div class="element_btn dr_top disableBtn">续费</div> <div class="element_btn dr_top disableBtn">续费</div>
</div> --> </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> </div>
</template> </template>
...@@ -67,14 +102,22 @@ export default { ...@@ -67,14 +102,22 @@ export default {
name: '', name: '',
data() { data() {
return { return {
platform:1 platform: 1,
showDialog: false
} }
}, },
mounted() { mounted() {
const { session } = this.$globalState const { session } = this.$globalState
this.platform = session.merchantModel this.platform = session.merchantModel
}, },
methods: {} methods: {
openDialog() {
this.showDialog = true
},
closeDialog() {
this.showDialog = false
}
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -87,83 +130,180 @@ export default { ...@@ -87,83 +130,180 @@ export default {
.dr_right { .dr_right {
margin-right: 30px; 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%; width: 29%;
height: 298px; border: 1px solid #e5e4ff;
.elment_widget { border-radius: 10px;
.item_icon {
width: 100%; width: 100%;
height: 250px; height: 108px;
border: 1px solid #e5e4ff; background-image: url('../../assets/scrm_base_info_icon_two.png');
border-radius: 10px; background-size: 100% 108px;
box-sizing: border-box;
.top_bg_wrap { padding: 20px 0 0 20px;
width: 100%; .title_text {
height: 108px; color: #333;
background-image: url('../../assets/scrm_base_info_icon_two.png'); font-size: 18px;
background-size: 100% 108px; font-weight: 600;
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 { .desc_text {
width: 100%; font-size: 14px;
height: 142px; font-weight: 400;
box-sizing: border-box; color: #333333;
padding: 20px 0 0 20px; margin-top: 28px;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); .spc_text {
.info_text { font-weight: 600;
font-size: 14px; color: #5850ff;
font-weight: 400;
color: #666666;
} }
.min_text { .max_text {
font-size: 12px; font-size: 22px;
color: #666666;
} }
.dr_left { .unit_text {
margin-left: 30px; margin-left: 4px;
} }
} }
} }
.element_btn { .item_info {
width: 72px; box-sizing: border-box;
height: 36px; padding: 20px;
text-align: center; background: #ffffff;
line-height: 36px; box-shadow: 0px 6px 10px 0px rgba(88, 80, 255, 0.1);
background: #5850ff; border-radius: 10px;
border-radius: 4px; position: relative;
color: #fff; .info_text {
font-size: 16px; font-size: 14px;
font-weight: 600; font-weight: 400;
margin: 0 auto; color: #666666;
cursor: pointer; }
} .element_btn {
.disableBtn { position: absolute;
background: #ccc; right: 10px;
top: 50%;
transform: translate(0, -50%);
}
} }
} }
} }
.dr_top { .dr_top {
margin-top: 10px !important; 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> </style>
\ No newline at end of file \ 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!