Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 f2a3d8dd
authored
Nov 19, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
96313c87
34d0e94b
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
156 additions
and
73 deletions
src/api/modules/service.js
src/assets/css/public.scss
src/components/glsx-dialog/index.vue
src/components/tipPanel/index.vue
src/config/env.development.js
src/config/env.production.js
src/views/classifyList/editClassify.vue
src/views/classifyList/index.vue
src/views/homeSet/index.vue
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/service.vue
src/views/memberCenter/serviceAddUpdateLook.vue
src/views/memberCenter/setmeal.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/productGroup/editProduct.vue
src/views/productGroup/index.vue
src/views/productStore/editProductDh.vue
src/views/productStore/index.vue
src/views/takeGood/index.vue
src/views/takeGood/takeGoodDetail.vue
src/views/zoneList/editZone.vue
src/views/zoneList/index.vue
src/api/modules/service.js
View file @
f2a3d8d
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
// const defaultPath = 'scrm.api.live.'
// const defaultPath = 'scrm.api.live.'
//计算提示面板出现的次数,第一次显示,之后不显示
const
getLoginCount
=
params
=>
{
params
.
method
=
'org.ore.api.common.findLoginCount'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getServiceListApi
=
params
=>
{
const
getServiceListApi
=
params
=>
{
params
.
method
=
`scrm.api.coupon.list.merchant`
params
.
method
=
`scrm.api.coupon.list.merchant`
...
@@ -71,4 +81,4 @@ const updateService = params => {
...
@@ -71,4 +81,4 @@ const updateService = params => {
})
})
}
}
export
{
getServiceListApi
,
effectiveService
,
deleteService
,
createService
,
detailService
,
updateService
}
\ No newline at end of file
\ No newline at end of file
export
{
getServiceListApi
,
effectiveService
,
deleteService
,
createService
,
detailService
,
updateService
,
getLoginCount
}
\ No newline at end of file
\ No newline at end of file
src/assets/css/public.scss
View file @
f2a3d8d
...
@@ -13,6 +13,45 @@ body,html {
...
@@ -13,6 +13,45 @@ body,html {
padding
:
20px
;
padding
:
20px
;
}
}
.live-room
.container
{
background
:
#FFFFFF
;
margin
:
20px
0px
;
padding
:
15px
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
}
// 单行省略
.ellipsis-1
{
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
-o-text-overflow
:
ellipsis
;
/* for Opera */
}
// 我这里以两行为例,该方法基本兼容市场上面所有主流浏览器。
.ellipsis-2
{
overflow
:
hidden
;
height
:
40px
;
line-height
:
20px
;
position
:
relative
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
/*显示的行数*/
}
.ellipsis-2-text
:after
{
content
:
"..."
;
position
:
absolute
;
bottom
:
0
;
right
:
15px
;
padding-left
:
20px
;
background
:
-webkit-linear-gradient
(
left
,
transparent
,
#fff
55%
);
/*我在Safari上测试时发现透明到白色中间会有一个黑色的过渡后来我就写成-webkit-linear-gradient(left,rgba(255,255,255,0),rgba(255,255,255,1) 55%)*/
background
:
-o-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
-moz-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
linear-gradient
(
to
right
,
transparent
,
#fff
55%
);
}
.marketing
.wechat-container
{
.marketing
.wechat-container
{
width
:
375px
;
width
:
375px
;
margin-right
:
45px
;
margin-right
:
45px
;
...
@@ -89,6 +128,11 @@ body,html {
...
@@ -89,6 +128,11 @@ body,html {
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.marketing.p-t-20
,
.marketing
.p-t-20
{
padding-top
:
20px
;
}
.marketing
.txt-center
{
.marketing
.txt-center
{
text-align
:
center
;
text-align
:
center
;
}
}
...
...
src/components/glsx-dialog/index.vue
View file @
f2a3d8d
...
@@ -2,17 +2,20 @@
...
@@ -2,17 +2,20 @@
<
template
>
<
template
>
<div>
<div>
<el-dialog
:title=
"title"
:visible
.
sync=
"isVisible"
:show-close=
"showClose"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
:width=
"width"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"isVisible"
:show-close=
"showClose"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
:width=
"width"
>
<span
slot=
"title"
>
<el-scrollbar>
{{
title
}}
<span
slot=
"title"
>
<span
class=
"dialog-sub-title"
>
{{
title
}}
<slot
name=
"sub-title"
></slot>
<span
class=
"dialog-sub-title"
>
<slot
name=
"sub-title"
></slot>
</span>
</span>
</span>
</span
>
<slot></slot
>
<
slot></slot
>
<
/el-scrollbar
>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<slot
name=
"btn-start"
></slot>
<slot
name=
"btn-start"
></slot>
<el-button
type=
"primary"
v-if=
"!noClose"
:size=
"btnSize"
@
click=
"handleClose"
>
关闭
</el-button>
<el-button
type=
"primary"
v-if=
"!noBtnOk"
:size=
"btnSize"
@
click=
"handleConfirm"
>
{{
btnOkLabel
}}
</el-button>
<el-button
type=
"primary"
v-if=
"!noBtnOk"
:size=
"btnSize"
@
click=
"handleConfirm"
>
{{
btnOkLabel
}}
</el-button>
<el-button
v-if=
"!noCancel"
:size=
"btnSize"
@
click=
"handleClose"
>
{{
btnCancelLabel
}}
</el-button>
<el-button
v-if=
"!noCancel"
type=
"primary"
:size=
"btnSize"
@
click=
"handleClose"
>
{{
btnCancelLabel
}}
</el-button>
<slot
name=
"btn-middle"
></slot>
<slot
name=
"btn-middle"
></slot>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -54,6 +57,10 @@ export default {
...
@@ -54,6 +57,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
noClose
:
{
type
:
Boolean
,
default
:
true
},
width
:
{
width
:
{
type
:
String
,
type
:
String
,
default
:
'580px'
default
:
'580px'
...
@@ -74,9 +81,14 @@ export default {
...
@@ -74,9 +81,14 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
.dialog-sub-title
{
.dialog-sub-title
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#666666
;
color
:
#666666
;
}
}
//
::v-deep
.el-dialog__body
{
//
border-top
:
1px
solid
#e6e6e6
;
//
border-bottom
:
1px
solid
#e6e6e6
;
//
padding
:
20px
25px
;
//
}
</
style
>
</
style
>
src/components/tipPanel/index.vue
View file @
f2a3d8d
...
@@ -37,7 +37,7 @@ export default {
...
@@ -37,7 +37,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.initPanel
{
.initPanel
{
margin-left
:
40px
;
//
margin-left
:
40px
;
position
:
relative
;
position
:
relative
;
margin-top
:
20px
;
margin-top
:
20px
;
...
...
src/config/env.development.js
View file @
f2a3d8d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*/
*/
// 本地环境配置
// 本地环境配置
module
.
exports
=
{
module
.
exports
=
{
title
:
'scrm-sub-
blo
g'
,
title
:
'scrm-sub-
marketin
g'
,
response
:
{
response
:
{
data_key
:
'data'
,
data_key
:
'data'
,
message_key
:
'message'
,
message_key
:
'message'
,
...
@@ -18,9 +18,7 @@ module.exports = {
...
@@ -18,9 +18,7 @@ module.exports = {
code_message_map
:
{}
code_message_map
:
{}
},
},
request
:
{
request
:
{
// baseURL: 'http://192.168.3.171:7300/mock/6136bea6ceeb5a5c2bec6950/',
baseURL
:
'http://scrm.test.glsx.com.cn/'
,
baseURL
:
'http://scrm.test.glsx.com.cn/'
,
// baseURL: 'http://192.168.2.94:8115/rop-scrm-live/router',
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/config/env.production.js
View file @
f2a3d8d
module
.
exports
=
{
module
.
exports
=
{
title
:
'scrm-sub-
blo
g'
,
title
:
'scrm-sub-
marketin
g'
,
response
:
{
response
:
{
data_key
:
'data'
,
data_key
:
'data'
,
message_key
:
'message'
,
message_key
:
'message'
,
...
@@ -9,7 +9,7 @@ module.exports = {
...
@@ -9,7 +9,7 @@ module.exports = {
code_message_map
:
{}
code_message_map
:
{}
},
},
request
:
{
request
:
{
baseURL
:
'http://
192.168.3.171:7300/mock/6136bea6ceeb5a5c2bec6950
/'
,
baseURL
:
'http://
scrm.test.glsx.com.cn
/'
,
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
@@ -18,7 +18,7 @@ module.exports = {
...
@@ -18,7 +18,7 @@ module.exports = {
responseType
:
'json'
responseType
:
'json'
},
},
sign
:
{
sign
:
{
app
_k
ey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
app
K
ey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
v
:
'1.0.0'
,
v
:
'1.0.0'
,
format
:
'json'
,
format
:
'json'
,
source
:
''
source
:
''
...
...
src/views/classifyList/editClassify.vue
View file @
f2a3d8d
<!-- 编辑分类 -->
<!-- 编辑分类 -->
<
template
>
<
template
>
<div
class=
"edit-classify marketing"
>
<div
class=
"edit-classify marketing
p-t-20
"
>
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
...
...
src/views/classifyList/index.vue
View file @
f2a3d8d
<!-- 分类管理 -->
<!-- 分类管理 -->
<
template
>
<
template
>
<div
class=
"marketing"
>
<div
class=
"marketing
p-t-20
"
>
<div
class=
"m-b-20"
>
<div
class=
"m-b-20"
>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增分类
</el-button>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增分类
</el-button>
</div>
</div>
...
...
src/views/homeSet/index.vue
View file @
f2a3d8d
<!-- 首页设置 -->
<!-- 首页设置 -->
<
template
>
<
template
>
<div
class=
"home-set marketing"
>
<div
class=
"home-set marketing
p-t-20
"
>
<div
class=
"container edit-container flex"
>
<div
class=
"container edit-container flex"
>
<div
class=
"wechat-container"
>
<div
class=
"wechat-container"
>
<div
class=
"wechat-box"
>
<div
class=
"wechat-box"
>
<img
class=
"w-100-per"
src=
"./images/home-set-head.png"
/>
<img
class=
"w-100-per"
src=
"./images/home-set-head.png"
/>
<img
class=
"w-100-per"
src=
"./images/home-set-footer.png"
/>
<img
class=
"w-100-per"
src=
"./images/home-set-footer.png"
/>
</div>
</div>
</div>
</div>
<div
class=
"home-set-form flex-grow"
>
<div
class=
"home-set-form flex-grow"
>
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<el-button
v-show=
"subItem.goodsId"
type=
"text"
class=
"btn-link"
@
click=
"handleProDelete(subIndex)"
>
删除
</el-button>
<el-button
v-show=
"subItem.goodsId"
type=
"text"
class=
"btn-link"
@
click=
"handleProDelete(subIndex)"
>
删除
</el-button>
</div>
</div>
<div
class=
"show-pro-box flex"
v-if=
"subItem.goodsId"
>
<div
class=
"show-pro-box flex"
v-if=
"subItem.goodsId"
>
<img
class=
"img-60"
:src=
"subItem.goods.goodsImage"
>
<img
class=
"img-60"
:src=
"subItem.goods.goodsImage"
/
>
<p
class=
"pro-txt flex-grow one-line-ellipsis"
>
{{ subItem.goods.goodsName }}
</p>
<p
class=
"pro-txt flex-grow one-line-ellipsis"
>
{{ subItem.goods.goodsName }}
</p>
</div>
</div>
</div>
</div>
...
...
src/views/memberCenter/center.vue
View file @
f2a3d8d
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<div
class=
"cardDetail editForm"
v-else
>
<div
class=
"cardDetail editForm"
v-else
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"demo-ruleForm"
style=
"width:500px"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"demo-ruleForm"
style=
"width:500px"
>
<el-form-item
label=
"会员卡名"
prop=
"cardName"
size=
"small"
>
<el-form-item
label=
"会员卡名"
prop=
"cardName"
size=
"small"
>
<el-input
v-model=
"ruleForm.cardName"
size=
"small"
placeholder=
"请输入会员卡名"
maxlength=
"1
0
"
></el-input>
<el-input
v-model=
"ruleForm.cardName"
size=
"small"
placeholder=
"请输入会员卡名"
maxlength=
"1
5
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"售价"
size=
"small"
prop=
"price"
style=
"width:300px"
>
<el-form-item
label=
"售价"
size=
"small"
prop=
"price"
style=
"width:300px"
>
<el-input
v-model=
"ruleForm.price"
size=
"small"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
<el-input
v-model=
"ruleForm.price"
size=
"small"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
</el-form>
</el-form>
<GLTable
ref=
"memberCenterRef"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
<GLTable
ref=
"memberCenterRef"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</div>
</div>
<glsx-dialog
title=
"权益详情"
width=
"712px"
:noBtnOk=
"true"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<glsx-dialog
title=
"权益详情"
width=
"712px"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<el-scrollbar>
<el-scrollbar>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<div
class=
"equity-name"
>
汽车权益
</div>
<div
class=
"equity-name"
>
汽车权益
</div>
...
@@ -261,7 +261,9 @@ export default {
...
@@ -261,7 +261,9 @@ export default {
if
(
len1
==
'-'
)
{
if
(
len1
==
'-'
)
{
str
=
''
str
=
''
}
//限制只能输入一个小数点
}
//限制只能输入一个小数点
if
(
Number
(
value
)
>=
99999
){
return
str
=
99999
}
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
if
(
str_
.
indexOf
(
'.'
)
!=
-
1
)
{
if
(
str_
.
indexOf
(
'.'
)
!=
-
1
)
{
...
@@ -351,7 +353,7 @@ export default {
...
@@ -351,7 +353,7 @@ export default {
background-color
:
#fff
;
background-color
:
#fff
;
height
:
173px
;
height
:
173px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin
:
20px
4
0px
;
margin
:
20px
0px
;
padding
:
15px
20px
;
padding
:
15px
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0.1
);
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0.1
);
.cardBoxWrap
{
.cardBoxWrap
{
...
@@ -427,7 +429,7 @@ export default {
...
@@ -427,7 +429,7 @@ export default {
.pageTitle
{
.pageTitle
{
position
:
relative
;
position
:
relative
;
padding
:
0
4
0px
;
padding
:
0
0px
;
height
:
20px
;
height
:
20px
;
font-size
:
20px
;
font-size
:
20px
;
font-weight
:
700
;
font-weight
:
700
;
...
...
src/views/memberCenter/order.vue
View file @
f2a3d8d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"live-room"
>
<div
class=
"live-room"
>
<div
class=
"live-room container"
>
<div
class=
"live-room container"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"
100px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"
70px"
label-position=
"left"
>
<el-row>
<el-row>
<el-form-item
size=
"small"
label=
"订单编号"
>
<el-form-item
size=
"small"
label=
"订单编号"
>
<el-input
:size=
"size"
v-model=
"searchForm.orderCode"
placeholder=
"请输入订单编号"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.orderCode"
placeholder=
"请输入订单编号"
clearable
></el-input>
...
@@ -32,9 +32,6 @@
...
@@ -32,9 +32,6 @@
</el-form>
</el-form>
</div>
</div>
<GLTable
ref=
"memberOrderRef"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"memberOrderRef"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<!--
<span
slot=
"shareImgUrl"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.shareImgUrl"
/>
</span>
-->
<span
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
详情
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
详情
</el-button>
</span>
</span>
...
...
src/views/memberCenter/service.vue
View file @
f2a3d8d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<!-- //提示面板组件 -->
<!-- //提示面板组件 -->
<tip-panel
panelWidth=
"616px"
panelMinHeight=
"60px"
:panelContent=
"panelContent"
v-if=
"isFirstShow"
@
closePanel=
"closePanel"
></tip-panel>
<tip-panel
panelWidth=
"616px"
panelMinHeight=
"60px"
:panelContent=
"panelContent"
v-if=
"isFirstShow"
@
closePanel=
"closePanel"
></tip-panel>
<div
class=
"live-room container"
>
<div
class=
"live-room container"
>
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"100px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width:
100%"
:model=
"searchForm"
label-width=
"100px"
label-position=
"right"
>
<el-row>
<el-row>
<el-form-item
size=
"small"
>
<el-form-item
size=
"small"
>
<el-button
:size=
"size"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreate"
>
创建服务
</el-button>
<el-button
:size=
"size"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreate"
>
创建服务
</el-button>
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float:right"
>
<el-form-item
size=
"small"
style=
"float:
right"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getServiceListApi
,
effectiveService
,
deleteService
}
from
'@/api/modules/service'
import
{
getServiceListApi
,
effectiveService
,
deleteService
,
getLoginCount
}
from
'@/api/modules/service'
import
{
serviceStatusList
}
from
'@/common/constant'
import
{
serviceStatusList
}
from
'@/common/constant'
import
tipPanel
from
'@/components/tipPanel/index.vue'
import
tipPanel
from
'@/components/tipPanel/index.vue'
export
default
{
export
default
{
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isFirstShow
:
tru
e
,
isFirstShow
:
fals
e
,
panelContent
:
'会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。'
,
panelContent
:
'会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。'
,
size
:
'small'
,
size
:
'small'
,
getListApi
:
getServiceListApi
,
getListApi
:
getServiceListApi
,
...
@@ -69,9 +69,9 @@ export default {
...
@@ -69,9 +69,9 @@ export default {
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
// 行数据的key
// 行数据的key
mutiSelectUniqueKey
:
'id'
,
//
mutiSelectUniqueKey: 'id',
// 多选ref的名称
// 多选ref的名称
mutiSelectName
:
'list'
,
//
mutiSelectName: 'list',
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
{
{
...
@@ -110,7 +110,7 @@ export default {
...
@@ -110,7 +110,7 @@ export default {
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
95
width
:
95
}
}
]
]
},
},
...
@@ -125,8 +125,16 @@ export default {
...
@@ -125,8 +125,16 @@ export default {
//运行在qiankun容器中
//运行在qiankun容器中
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
}
}
this
.
getLoginCountFun
()
},
},
methods
:
{
methods
:
{
getLoginCountFun
()
{
//loginType:4是查会员服务浏览次数
getLoginCount
({
loginType
:
4
}).
then
(
res
=>
{
//获取是否第一次点击该页面
this
.
isFirstShow
=
res
})
},
closePanel
()
{
closePanel
()
{
this
.
isFirstShow
=
false
this
.
isFirstShow
=
false
},
},
...
...
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
f2a3d8d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
class=
"live-room container"
>
<div
class=
"live-room container"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"120px"
class=
"demo-ruleForm"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"120px"
class=
"demo-ruleForm"
>
<el-form-item
size=
"small"
label=
"服务名称"
prop=
"couponName"
style=
"width: 420px"
>
<el-form-item
size=
"small"
label=
"服务名称"
prop=
"couponName"
style=
"width: 420px"
>
<el-input
size=
"small"
:disabled=
"disabledContent"
v-model=
"ruleForm.couponName"
placeholder=
"请输入服务名称,如“精洗轿车”"
></el-input>
<el-input
size=
"small"
:disabled=
"disabledContent"
v-model=
"ruleForm.couponName"
maxlength=
"20"
placeholder=
"请输入服务名称,如“精洗轿车”"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"有效期"
prop=
"effectiveType"
>
<el-form-item
size=
"small"
label=
"有效期"
prop=
"effectiveType"
>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</el-radio>
</el-radio>
<!-- effectiveStartTime effectiveEndTime +具体时间 -->
<!-- effectiveStartTime effectiveEndTime +具体时间 -->
<el-radio
:label=
"2"
>
<el-radio
:label=
"2"
>
<el-date-picker
:size=
"small"
:disabled=
"disabledContent"
style=
"width: 2
15
px"
v-model=
"ruleForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
<el-date-picker
:size=
"small"
:disabled=
"disabledContent"
style=
"width: 2
30
px"
v-model=
"ruleForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-radio>
</el-radio>
</el-radio-group>
</el-radio-group>
</div>
</div>
...
@@ -93,15 +93,14 @@
...
@@ -93,15 +93,14 @@
<div
class=
"serviceCard"
>
<div
class=
"serviceCard"
>
<div
class=
"cardtop"
>
<div
class=
"cardtop"
>
<img
src=
"@/assets/serviceMemberCard.png"
alt=
""
/>
<img
src=
"@/assets/serviceMemberCard.png"
alt=
""
/>
<span
class=
"serviceName"
>
{{ ruleForm.couponName || '-' }}
</span>
<span
class=
"serviceName
ellipsis-1"
:title=
"couponName
"
>
{{ ruleForm.couponName || '-' }}
</span>
<span
class=
"effectiveRange"
>
{{ limitText }}
</span>
<span
class=
"effectiveRange"
>
{{ limitText }}
</span>
<span
class=
"timeRange"
>
{{ effectiveRangeText }}
</span>
<span
class=
"timeRange"
>
{{ effectiveRangeText }}
</span>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
</div>
<div
class=
"desc"
>
使用说明:
</div>
<div
class=
"cardbottom"
>
<div
class=
"desc"
>
使用说明:
</div>
<span
class=
"detailDesc"
>
{{ ruleForm.useDescription }}
</span>
<span
class=
"detailDesc"
>
{{ ruleForm.useDescription }}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div
<div
...
@@ -165,7 +164,7 @@ export default {
...
@@ -165,7 +164,7 @@ export default {
limitDays
:
'30'
,
limitDays
:
'30'
,
limitTime2
:
5
,
limitTime2
:
5
,
rules
:
{
rules
:
{
couponName
:
[{
required
:
true
,
message
:
'请输入
活动
名称'
,
trigger
:
'blur'
}],
couponName
:
[{
required
:
true
,
message
:
'请输入
服务
名称'
,
trigger
:
'blur'
}],
// region: [{ required: true, message: '请选择活动区域', trigger: 'change' }],
// region: [{ required: true, message: '请选择活动区域', trigger: 'change' }],
// date1: [{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }],
// date1: [{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }],
// date2: [{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }],
// date2: [{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }],
...
@@ -380,7 +379,9 @@ export default {
...
@@ -380,7 +379,9 @@ export default {
if
(
len1
==
'-'
)
{
if
(
len1
==
'-'
)
{
str
=
''
str
=
''
}
//限制只能输入一个小数点
}
//限制只能输入一个小数点
if
(
Number
(
value
)
>=
99999
){
return
str
=
99999
}
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
if
(
str_
.
indexOf
(
'.'
)
!=
-
1
)
{
if
(
str_
.
indexOf
(
'.'
)
!=
-
1
)
{
...
@@ -418,7 +419,7 @@ export default {
...
@@ -418,7 +419,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.live-room
{
.live-room
{
.topMsg
{
.topMsg
{
margin
:
20px
4
0px
0
;
margin
:
20px
0px
0
;
padding
:
0
20px
;
padding
:
0
20px
;
background-color
:
#fff
;
background-color
:
#fff
;
height
:
56px
;
height
:
56px
;
...
@@ -438,7 +439,7 @@ export default {
...
@@ -438,7 +439,7 @@ export default {
}
}
}
}
.container
{
.container
{
margin
:
0
4
0px
100px
;
margin
:
0
0px
100px
;
position
:
relative
;
position
:
relative
;
/deep/
.el-form-item__content
{
/deep/
.el-form-item__content
{
.radioGroupWrap
{
.radioGroupWrap
{
...
@@ -477,6 +478,7 @@ export default {
...
@@ -477,6 +478,7 @@ export default {
position
:
absolute
;
position
:
absolute
;
padding
:
10px
;
padding
:
10px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
top
:
136px
;
top
:
136px
;
right
:
78px
;
right
:
78px
;
width
:
343px
;
width
:
343px
;
...
@@ -492,13 +494,12 @@ export default {
...
@@ -492,13 +494,12 @@ export default {
color
:
#999999
;
color
:
#999999
;
}
}
.cardtop
{
.cardtop
{
padding-bottom
:
10px
;
//
border-bottom
:
1px
solid
#979797
;
position
:
relative
;
position
:
relative
;
.serviceName
{
.serviceName
{
position
:
absolute
;
position
:
absolute
;
left
:
88px
;
left
:
88px
;
top
:
5px
;
top
:
5px
;
width
:
230px
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
600
;
font-weight
:
600
;
...
@@ -523,19 +524,17 @@ export default {
...
@@ -523,19 +524,17 @@ export default {
opacity
:
0.14
;
opacity
:
0.14
;
background-color
:
#979797
;
background-color
:
#979797
;
}
}
}
.cardbottom
{
position
:
relative
;
.desc
{
.desc
{
position
:
absolute
;
margin-top
:
20px
;
top
:
10px
;
margin-left
:
88px
;
left
:
88px
;
color
:
#333
;
color
:
#333
;
}
}
.detailDesc
{
.detailDesc
{
position
:
absolute
;
display
:
inline-block
;
left
:
88px
;
margin-left
:
88px
;
top
:
35px
;
margin-top
:
10px
;
width
:
230px
;
word-wrap
:
break-word
;
}
}
}
}
}
}
...
...
src/views/memberCenter/setmeal.vue
View file @
f2a3d8d
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
<glsx-dialog
title=
"示例效果"
width=
"1142px"
:noBtnOk=
"true"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<glsx-dialog
title=
"示例效果"
width=
"1142px"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<div
class=
"content-body"
>
<div
class=
"content-body"
>
<div
class=
"content-item col1"
>
<div
class=
"content-item col1"
>
<div
class=
"subTitle"
>
<div
class=
"subTitle"
>
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
<
script
>
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
import
{
getSetMealListApi
,
deleteSetMeal
,
upDownPackage
}
from
'@/api/modules/setmeal'
import
{
getSetMealListApi
,
deleteSetMeal
,
upDownPackage
}
from
'@/api/modules/setmeal'
import
{
getLoginCount
}
from
'@/api/modules/service'
import
{
stateList
}
from
'@/common/constant'
import
{
stateList
}
from
'@/common/constant'
import
tipPanel
from
'@/components/tipPanel/index.vue'
import
tipPanel
from
'@/components/tipPanel/index.vue'
export
default
{
export
default
{
...
@@ -62,7 +63,7 @@ export default {
...
@@ -62,7 +63,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isFirstShow
:
tru
e
,
isFirstShow
:
fals
e
,
panelContent
:
'会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。'
,
panelContent
:
'会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。'
,
size
:
'small'
,
size
:
'small'
,
getListApi
:
getSetMealListApi
,
getListApi
:
getSetMealListApi
,
...
@@ -117,7 +118,17 @@ export default {
...
@@ -117,7 +118,17 @@ export default {
isDialogVisible
:
false
isDialogVisible
:
false
}
}
},
},
created
()
{
this
.
getLoginCountFun
()
},
methods
:
{
methods
:
{
getLoginCountFun
()
{
//loginType:5是查会员套餐浏览次数
getLoginCount
({
loginType
:
5
}).
then
(
res
=>
{
//获取是否第一次点击该页面
this
.
isFirstShow
=
res
})
},
closePanel
()
{
closePanel
()
{
this
.
isFirstShow
=
false
this
.
isFirstShow
=
false
},
},
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
f2a3d8d
...
@@ -339,7 +339,9 @@ export default {
...
@@ -339,7 +339,9 @@ export default {
if
(
len1
==
'-'
)
{
if
(
len1
==
'-'
)
{
str
=
''
str
=
''
}
//限制只能输入一个小数点
}
//限制只能输入一个小数点
if
(
Number
(
value
)
>=
99999
){
return
str
=
99999
}
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
if
(
str
.
indexOf
(
'.'
)
!=
-
1
)
{
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
let
str_
=
str
.
substr
(
str
.
indexOf
(
'.'
)
+
1
)
if
(
str_
.
indexOf
(
'.'
)
!=
-
1
)
{
if
(
str_
.
indexOf
(
'.'
)
!=
-
1
)
{
...
@@ -388,7 +390,7 @@ export default {
...
@@ -388,7 +390,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.live-room
{
.live-room
{
.topMsg
{
.topMsg
{
margin
:
20px
4
0px
0
;
margin
:
20px
0px
0
;
padding
:
0
20px
;
padding
:
0
20px
;
background-color
:
#fff
;
background-color
:
#fff
;
height
:
56px
;
height
:
56px
;
...
@@ -408,7 +410,7 @@ export default {
...
@@ -408,7 +410,7 @@ export default {
}
}
}
}
.container
{
.container
{
margin
:
0
4
0px
20px
;
margin
:
0
0px
20px
;
position
:
relative
;
position
:
relative
;
min-height
:
calc
(
100vh
-
300px
);
min-height
:
calc
(
100vh
-
300px
);
.allChoseWrap
{
.allChoseWrap
{
...
...
src/views/productGroup/editProduct.vue
View file @
f2a3d8d
<!-- 编辑商品 -->
<!-- 编辑商品 -->
<
template
>
<
template
>
<div
class=
"edit-pro marketing"
>
<div
class=
"edit-pro marketing
p-t-20
"
>
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<div
class=
"flex m-t-20"
>
<div
class=
"flex m-t-20"
>
...
...
src/views/productGroup/index.vue
View file @
f2a3d8d
<!-- 商品管理-集团 -->
<!-- 商品管理-集团 -->
<
template
>
<
template
>
<div
class=
"marketing pro-group"
>
<div
class=
"marketing pro-group
p-t-20
"
>
<div
class=
"m-b-20"
>
<div
class=
"m-b-20"
>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新建商品
</el-button>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新建商品
</el-button>
</div>
</div>
...
...
src/views/productStore/editProductDh.vue
View file @
f2a3d8d
<!-- 商品编辑 - 带货 -->
<!-- 商品编辑 - 带货 -->
<
template
>
<
template
>
<div
class=
"edit-product-dh marketing"
>
<div
class=
"edit-product-dh marketing
p-t-20
"
>
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<div
class=
"flex"
style=
"margin-top: 20px;"
>
<div
class=
"flex"
style=
"margin-top: 20px;"
>
...
...
src/views/productStore/index.vue
View file @
f2a3d8d
<!-- 商品管理-门店 -->
<!-- 商品管理-门店 -->
<
template
>
<
template
>
<div
class=
"marketing pro-group"
>
<div
class=
"marketing pro-group
p-t-20
"
>
<div
class=
"m-b-20"
>
<div
class=
"m-b-20"
>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新建商品
</el-button>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新建商品
</el-button>
</div>
</div>
...
...
src/views/takeGood/index.vue
View file @
f2a3d8d
<!-- 带货管理 -->
<!-- 带货管理 -->
<
template
>
<
template
>
<div
class=
"marketing"
>
<div
class=
"marketing
p-t-20
"
>
<div
class=
"m-b-20"
>
<div
class=
"m-b-20"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleTakeGood()"
>
一键带货
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleTakeGood()"
>
一键带货
</el-button>
</div>
</div>
...
...
src/views/takeGood/takeGoodDetail.vue
View file @
f2a3d8d
<!-- 带货详情 -->
<!-- 带货详情 -->
<!-- 商品编辑 - 带货 -->
<!-- 商品编辑 - 带货 -->
<
template
>
<
template
>
<div
class=
"edit-product-dh marketing"
>
<div
class=
"edit-product-dh marketing
p-t-20
"
>
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<div
class=
"flex"
style=
"margin-top: 20px;"
>
<div
class=
"flex"
style=
"margin-top: 20px;"
>
...
...
src/views/zoneList/editZone.vue
View file @
f2a3d8d
<!-- 编辑专区 -->
<!-- 编辑专区 -->
<
template
>
<
template
>
<div
class=
"edit-zone marketing"
>
<div
class=
"edit-zone marketing
p-t-20
"
>
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
...
...
src/views/zoneList/index.vue
View file @
f2a3d8d
<!-- 专区管理 -->
<!-- 专区管理 -->
<
template
>
<
template
>
<div
class=
"marketing"
>
<div
class=
"marketing
p-t-20
"
>
<div
class=
"m-b-20"
>
<div
class=
"m-b-20"
>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新建专区
</el-button>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新建专区
</el-button>
</div>
</div>
...
...
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