Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b5ccb77b
authored
Dec 09, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
基本信息添加弹框
1 parent
a14ff70c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
189 additions
and
46 deletions
package.json
src/plugins/element.js
src/views/baseInfo/shop.vue
package.json
View file @
b5ccb77
...
@@ -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%"
,
...
...
src/plugins/element.js
View file @
b5ccb77
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
src/views/baseInfo/shop.vue
View file @
b5ccb77
<
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,16 +130,79 @@ export default {
...
@@ -87,16 +130,79 @@ 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
;
.elment_widget
{
width
:
100%
;
height
:
250px
;
border
:
1px
solid
#e5e4ff
;
border
:
1px
solid
#e5e4ff
;
border-radius
:
10px
;
border-radius
:
10px
;
.item_icon
{
.top_bg_wrap
{
width
:
100%
;
width
:
100%
;
height
:
108px
;
height
:
108px
;
background-image
:
url('../../assets/scrm_base_info_icon_two.png')
;
background-image
:
url('../../assets/scrm_base_info_icon_two.png')
;
...
@@ -125,45 +231,79 @@ export default {
...
@@ -125,45 +231,79 @@ export default {
}
}
}
}
}
}
.bottom_wrap
{
.item_info
{
width
:
100%
;
height
:
142px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20px
0
0
20px
;
padding
:
20px
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
background
:
#ffffff
;
box-shadow
:
0px
6px
10px
0px
rgba
(
88
,
80
,
255
,
0.1
);
border-radius
:
10px
;
position
:
relative
;
.info_text
{
.info_text
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#666666
;
color
:
#666666
;
}
}
.min_text
{
.element_btn
{
font-size
:
12px
;
position
:
absolute
;
color
:
#666666
;
right
:
10px
;
top
:
50%
;
transform
:
translate
(
0
,
-50%
);
}
}
}
.dr_left
{
}
margin-left
:
30px
;
}
.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
;
}
}
.element_btn
{
.icon_text
{
width
:
72px
;
height
:
36px
;
text-align
:
center
;
line-height
:
36px
;
background
:
#5850ff
;
border-radius
:
4px
;
color
:
#fff
;
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
600
;
font-weight
:
600
;
margin
:
0
auto
;
color
:
#5850ff
;
cursor
:
pointer
;
margin-top
:
10px
;
}
.disableBtn
{
background
:
#ccc
;
}
}
}
}
}
}
.dr_top
{
.dialogFooter
{
margin-top
:
10px
!important
;
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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment