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 a03f07da
authored
Dec 14, 2021
by
wangql
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
28800f4b
5f3e4afb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
48 deletions
src/views/customerTransform/components/activityModel.vue
src/views/homeSet/index.vue
src/views/memberCenter/center.vue
src/views/memberCenter/setmeal.vue
src/views/orderManage/index.vue
src/views/customerTransform/components/activityModel.vue
View file @
a03f07d
<
template
>
<div
class=
"square-main"
>
<el-dialog
title=
"选择活动"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose"
>
<el-dialog
title=
"选择活动"
:visible
.
sync=
"dialogVisible"
width=
"1088px"
:before-close=
"handleClose"
>
<div
class=
"model-panel"
>
<div
class=
"model-panel-tab"
>
<label>
活动类型:
</label>
...
...
@@ -44,13 +49,9 @@
:title=
"item.activityName"
v-show=
"activeName == 5"
>
{{
item
.
activityName
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1 || activeName == 4"
></div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
剩余数量:
{{
item
.
residueAmount
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
剩余数量:
{{
item
.
remainAmount
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
价格:
{{
item
.
goodPrice
}}
元
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 4"
>
价格:
{{
item
.
packagePrice
}}
元
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 5"
></div>
<div
class=
"model-item-content"
v-show=
"activeName == 5"
></div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
领取方式:免费领用
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 4"
>
领取方式:付费购买
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 1"
...
...
@@ -64,26 +65,36 @@
v-show=
"activeName == 2 && item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveStartTime
?
item
.
effectiveStartTime
.
split
(
' '
)[
0
]
:
''
}}
~
{{
item
.
effectiveEndTime
?
item
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
有效期:
{{
item
.
effectivedDay
}}
天
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
></div>
<div
class=
"model-item-content model-item-contents"
v-show=
"activeName == 3"
>
试用天数:
<span>
{{
item
.
freeDay
}}
天
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
类型
:
<span>
{{
item
.
discountType
==
2
?
'折扣券'
:
item
.
discountType
==
3
?
'代金券'
:
item
.
discountType
==
4
?
'兑换券'
:
''
}}
</span>
使用途径
:
{{
item
.
useChannel
==
1
?
'线上商品'
:
'到店核销'
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
类型:
<span>
精品券
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
类型:
<span>
权益卡
</span>
<div
class=
"model-item-content"
v-show=
"activeName == 4 || activeName == 5"
></div>
<div
class=
"model-item-content model-item-contents"
v-show=
"activeName == 4"
>
销售价格:
<span>
{{
item
.
packagePrice
}}
元
</span>
</div>
<div
class=
"model-item-content"
v-
show=
"activeName == 4
"
>
类型
:
<span>
权益套餐
</span>
<div
class=
"model-item-content"
v-
if=
"activeName == 5
"
>
开始时间
:
{{
item
.
startTime
}}
</div>
<div
class=
"model-item-content"
v-if=
"activeName == 5"
>
活动时间:
{{
item
.
startTime
.
split
(
' '
)[
0
]
}}
-
{{
item
.
endTime
.
split
(
' '
)[
0
]
}}
结束时间:
{{
item
.
endTime
}}
</div>
<div
class=
"model-item-content model-item-contents"
v-show=
"activeName == 2"
>
数量:
<span>
{{
item
.
residueAmount
}}
</span>
</div>
</div>
</div>
...
...
@@ -133,6 +144,7 @@ export default {
if
(
item
.
equityClassId
)
{
this
.
selectItem
.
id
=
item
.
equityClassId
}
console
.
log
(
this
.
selectItem
)
},
handleSelect
()
{
if
(
!
this
.
selectItem
.
id
)
{
...
...
@@ -229,9 +241,6 @@ export default {
line-height
:
24px
;
}
/
deep
/
{
.el-pager
{
height
:
30px
;
}
.
el-checkbox
:
last-of-type
{
margin-right
:
8px
;
}
...
...
@@ -275,28 +284,33 @@ export default {
}
}
.model-item-panel
{
display
:
grid
;
grid-template-columns
:
repeat
(
4
,
25%
);
grid-row-gap
:
10px
;
max-height
:
35vh
;
min-height
:
35vh
;
padding
:
10px
;
//
display
:
grid
;
//
grid-template-columns
:
repeat
(
4
,
25%
);
//
grid-row-gap
:
10px
;
max-height
:
38vh
;
overflow
:
auto
;
text-align
:
center
;
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
stretch
;
flex-direction
:
row
;
.model-item
{
width
:
240px
;
margin-right
:
24px
;
margin-bottom
:
24px
;
padding
:
12px
16px
;
position
:
relative
;
height
:
128px
;
background
:
#ffffff
;
border-radius
:
4px
;
border
:
2
px
solid
#e6e6e6
;
border
:
1
px
solid
#e6e6e6
;
padding
:
14px
24px
;
box-sizing
:
border-box
;
margin-right
:
10px
;
&:nth-child(4n)
{
margin-right
:
0px
;
}
&
.checked
{
border
:
2px
solid
#5850ff
;
background
:
rgba
(
88
,
80
,
255
,
0.1
);
border
:
1px
solid
#5850ff
;
}
&
-qrcode
{
position
:
absolute
;
...
...
@@ -320,16 +334,25 @@ export default {
font-size
:
12px
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
17px
;
line-height
:
16px
;
height
:
16px
;
margin-top
:
6px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
span
{
color
:
#5850ff
;
font-size
:
20px
;
}
}
&
-contents
{
line-height
:
22px
;
height
:
22px
;
}
}
}
}
/
deep
/
.el-pager
{
height
:
30px
;
}
</
style
>
\ No newline at end of file
src/views/homeSet/index.vue
View file @
a03f07d
...
...
@@ -367,7 +367,12 @@ export default {
})
},
handleImgDown
(
src
)
{
window
.
open
(
src
)
// window.open(src)
var
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'href'
,
src
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
},
// 图片删除
handleImgDelete
(
attrName
,
subIndex
)
{
...
...
src/views/memberCenter/center.vue
View file @
a03f07d
...
...
@@ -314,6 +314,7 @@ mounted () {
this
.
ruleForm
.
price
=
res
.
goodPrice
this
.
ruleForm
.
marketPrice
=
res
.
marketPrice
this
.
ruleForm
.
linkUrl
=
res
.
freeUrl
this
.
ruleForm
.
tryAble
=
res
.
tryAble
})
},
openEditWrap
()
{
...
...
src/views/memberCenter/setmeal.vue
View file @
a03f07d
...
...
@@ -4,7 +4,8 @@
<div
class=
"live-room container"
>
<div
class=
"btnWrap"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleCreate"
icon=
"el-icon-plus"
>
创建套餐
</el-button>
<el-button
:size=
"size"
@
click=
"isDialogVisible = true"
>
查看示例效果
</el-button>
<el-button
:size=
"size"
@
click=
"showViewer=true"
>
查看示例效果
</el-button>
<el-image-viewer
v-if=
"showViewer"
:on-close=
"()=>
{showViewer=false}" :url-list="srcList"/>
</div>
<GLTable
ref=
"memberSetMealRef"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"list"
slot-scope=
"scope"
>
...
...
@@ -28,21 +29,17 @@
</span>
</GLTable>
</div>
<!-- btnCancelLabel="关闭" -->
<!-- btnCancelLabel="关闭" -->
<glsx-dialog
title=
"示例效果"
width=
"1142px"
:hasScroll=
"false"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
typeName=
"primary"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<div
class=
"content-body"
>
<div
class=
"content-item col1"
>
<div
class=
"subTitle"
>
1、管理后台先创建套餐
</div>
<div
class=
"subTitle"
>
1、管理后台先创建套餐
</div>
<div
class=
"imageWrap"
>
<img
src=
"@/assets/table.png"
alt=
""
/>
</div>
</div>
<div
class=
"content-item col2"
>
<div
class=
"subTitle"
>
2、小程序端进行展示
</div>
<div
class=
"subTitle"
>
2、小程序端进行展示
</div>
<div
class=
"twoImageWrap"
>
<img
src=
"@/assets/card1.png"
alt=
""
/>
<img
src=
"@/assets/card2.png"
alt=
""
/>
...
...
@@ -55,21 +52,24 @@
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
import
url
from
"@/assets/empty.png"
import
url
from
'@/assets/empty.png'
import
{
getSetMealListApi
,
deleteSetMeal
,
upDownPackage
}
from
'@/api/modules/setmeal'
import
{
getLoginCount
}
from
'@/api/modules/service'
import
{
stateList
}
from
'@/common/constant'
import
tipPanel
from
'@/components/tipPanel/index.vue'
export
default
{
components
:
{
tipPanel
,
glsxDialog
glsxDialog
,
'el-image-viewer'
:()
=>
import
(
'element-ui/packages/image/src/image-viewer'
)
},
data
()
{
return
{
showViewer
:
false
,
url
:
url
,
surl
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png'
,
srcList
:
[
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png'
],
isFirstShow
:
false
,
panelContent
:
'会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。'
,
size
:
'small'
,
...
...
@@ -134,9 +134,11 @@ export default {
created
()
{
this
.
getLoginCountFun
()
},
mounted
()
{
},
mounted
()
{},
methods
:
{
previewPic
()
{
this
.
$refs
.
previewImg
.
showViewer
=
true
},
getLoginCountFun
()
{
//loginType:5是查会员套餐浏览次数
getLoginCount
({
loginType
:
5
}).
then
(
res
=>
{
...
...
@@ -162,7 +164,6 @@ export default {
this
.
$refs
.
memberSetMealRef
.
setTableHeightFun
()
}
},
//创建套餐
handleCreate
()
{
this
.
$router
.
push
({
...
...
src/views/orderManage/index.vue
View file @
a03f07d
...
...
@@ -648,7 +648,12 @@ export default {
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
this
.
$apis
.
orderManage
.
orderExportApi
(
params
).
then
(
res
=>
{
window
.
open
(
res
)
// window.open(res)
var
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'href'
,
res
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
})
},
...
...
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