Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
cc4844d2
Commit
cc4844d2
authored
Mar 19, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
f8775f05
7a9d66e0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
378 additions
and
24 deletions
+378
-24
App.vue
src/App.vue
+1
-1
CouponDetail.vue
src/components/activity/CouponDetail.vue
+154
-0
CouponList.vue
src/components/activity/CouponList.vue
+147
-20
LuckyDraw.vue
src/components/activity/LuckyDraw.vue
+30
-1
index.vue
src/components/index.vue
+38
-2
config.js
src/router/config.js
+8
-0
No files found.
src/App.vue
View file @
cc4844d2
...
...
@@ -108,7 +108,7 @@ export default {
}
</
script
>
<
style
>
@import
"//at.alicdn.com/t/font_635492_
0whkhalyx8tm
.css"
;
@import
"//at.alicdn.com/t/font_635492_
p33f7rq158p
.css"
;
@import
"./assets/css/Semibold.css"
;
@import
"./assets/css/global/config.css"
;
@import
"./assets/css/fileIcon.css"
;
...
...
src/components/activity/CouponDetail.vue
0 → 100644
View file @
cc4844d2
<
style
>
</
style
>
<
template
>
<div
class=
"flexOne page-CouponDetail"
>
<div
class=
"query-box"
>
<ul
class=
"user_time_picker"
>
<li>
<span>
<em>
状态
</em>
<el-select
filterable
v-model=
"msg.useState"
>
<el-option
label=
"未使用"
value=
"1"
></el-option>
<el-option
label=
"已使用"
value=
"2"
></el-option>
<el-option
label=
"已作废"
value=
"3"
></el-option>
</el-select>
</span>
</li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"查询"
@
click=
"resetPageIndex(),getList()"
>
</li>
</ul>
</div>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<th>
获得途径
</th>
<th>
获得渠道
</th>
<th>
使用状态
</th>
<th>
订单号
</th>
<th>
订单类型
</th>
<th>
使用日期
</th>
<th>
类型
</th>
<th>
用户
</th>
<th>
获得日期
</th>
<!--
<th>
操作
</th>
-->
</tr>
<tr
v-for=
"(item,index) in DataList"
v-loading=
"loading"
>
<td>
<span
v-if=
"item.accessType == 1"
>
抽奖
</span>
</td>
<td>
{{
item
.
acessName
}}
</td>
<td>
<span
v-if=
"item.useState == 1"
style=
"color: green"
>
未使用
</span>
<span
v-if=
"item.useState == 2"
style=
"color: gary"
>
已使用
</span>
<span
v-if=
"item.useState == 3"
style=
"color: red"
>
已作废
</span>
</td>
<td>
<span
v-if=
"item.orderId === 0"
>
暂无
</span>
<span
v-else
>
{{
item
.
orderId
}}
</span>
</td>
<td>
<span
v-if=
"item.orderType === 0"
>
暂无
</span>
<span
v-else
>
<span
v-if=
"item.orderType == 1"
>
团队
</span>
<span
v-if=
"item.orderType == 2"
>
签证
</span>
<span
v-if=
"item.orderType == 3"
>
机票
</span>
</span>
</td>
<td>
{{
item
.
useDate
?
item
.
useDate
:
'未使用'
}}
</td>
<td>
{{
item
.
couponsType
===
1
?
"抵用券"
:
"折扣券"
}}
</td>
<td>
{{
item
.
userPlatform
}}
:
{{
item
.
userName
}}
</td>
<td>
{{
item
.
acessDate
}}
</td>
<!--
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改用户信息"
placement=
"top"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"outerVisible=true,dialogTitle='修改用户信息',updateData(item),getCompany()"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除优惠券"
placement=
"top"
>
<el-button
v-if=
"item.couponStatus !== 3"
type=
"danger"
icon=
"iconfont icon-img_delete_small"
circle
@
click=
"deleteItem(item)"
></el-button>
</el-tooltip>
</td>
-->
</tr>
</table>
<div
class=
"noDataNotice"
v-if=
"DataList.length
<1
"
>
<i
class=
"iconfont icon-kong"
></i>
<p>
没有找到你需要的数据
</p>
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
v-if=
"DataList.length>0"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"total"
></el-pagination>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
loading
:
false
,
DataList
:
[],
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
couponId
:
''
,
useState
:
''
,
},
currentPage
:
1
,
total
:
0
,
};
},
created
(){
this
.
msg
.
couponId
=
this
.
$route
.
query
.
couponId
this
.
msg
.
useState
=
this
.
$route
.
query
.
useState
},
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
this
.
getList
();
},
methods
:
{
getList
()
{
//获取数据
this
.
loading
=
true
this
.
apiJavaPost
(
"/api/sell/coupon/getCouponAllotList"
,
this
.
msg
,
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
resultCode
===
1
)
{
// this.currentPage = res.data.data.pageCount
this
.
total
=
res
.
data
.
data
.
count
this
.
DataList
=
res
.
data
.
data
.
pageData
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
this
.
loading
=
false
},
null
);
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
resetPageIndex
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
;
},
}
};
</
script
>
\ No newline at end of file
src/components/activity/CouponList.vue
View file @
cc4844d2
This diff is collapsed.
Click to expand it.
src/components/activity/LuckyDraw.vue
View file @
cc4844d2
...
...
@@ -165,7 +165,14 @@
@
click=
"goUrl(item)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除活动"
placement=
"top"
>
<el-button
type=
"danger"
icon=
"iconfont icon-img_delete_small"
circle
@
click=
"deleteItem(item)"
></el-button>
</el-tooltip>
</td>
</tr>
</table>
...
...
@@ -480,6 +487,28 @@ export default {
this
.
addMsg
.
lotteryRules
=
item
.
lotteryRules
,
this
.
addMsg
.
image
=
item
.
image
},
// 删除抽奖
deleteItem
:
function
(
item
)
{
this
.
$confirm
(
'确定删除“'
+
item
.
lotteryName
+
'”活动?删除后不可恢复!'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apiJavaPost
(
"/api/sell/lottery/updateLotteryStatus"
,
{
lotteryId
:
item
.
id
,
status
:
3
,},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
null
);
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
//跳转至获取抽奖奖项信息列表
goUrl
(
item
){
this
.
$router
.
push
({
...
...
src/components/index.vue
View file @
cc4844d2
...
...
@@ -104,7 +104,7 @@
<i class="iconfont icon-menu-shezhi"></i>
设置
</el-dropdown-item> -->
<el-dropdown-item
class=
"clearfix _dropdown_other"
@
click
.
native
=
"exit"
>
<el-dropdown-item
class=
"clearfix _dropdown_other"
@
click
.
="
exit
"
>
<i
class=
"iconfont icon-menu-tuichu"
></i>
退出
</el-dropdown-item>
...
...
@@ -118,7 +118,18 @@
<!--<i class="iconfont icon-imessage_top" @click="togglebox($event)"></i>-->
</li>
<li><i
class=
"iconfont icon-help_top"
></i></li>
<li><i
class=
"iconfont icon-language_top"
></i></li>
<li>
<el-dropdown
trigger=
"click"
>
<span
class=
"el-dropdown-link"
>
<i
v-if=
"language=='zh-CN'"
class=
"iconfont icon-language_top"
></i>
<i
v-if=
"language=='Japanese'"
class=
"iconfont icon-icon-riyu"
></i>
</span>
<el-dropdown-menu
class=
"changelanguage"
slot=
"dropdown"
>
<el-dropdown-item
@
click
.
native=
"ChangeLan('Japanese')"
>
日语
<i
v-if=
"language=='Japanese'"
class=
"iconfont icon-duigou"
></i></el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"ChangeLan('zh-CN')"
>
简体中文
<i
v-if=
"language=='zh-CN'"
class=
"iconfont icon-duigou"
></i></el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</li>
</ul>
</div>
</div>
...
...
@@ -774,6 +785,7 @@ export default {
},
data
()
{
return
{
language
:
'zh-CN'
,
douTimer
:
null
,
defaultHeadImg
:
'this.src="'
+
require
(
"../assets/img/default_head_img.jpg"
)
+
'"'
,
...
...
@@ -1313,6 +1325,10 @@ export default {
}
},
methods
:
{
ChangeLan
(
str
){
this
.
language
=
str
;
this
.
$i18n
.
locale
=
str
;
},
settingSys
:
function
()
{
this
.
MsgBus
.
$emit
(
'settingOpen'
)
},
...
...
@@ -3170,6 +3186,26 @@ export default {
@import "../assets/css/main.less";
@import "../assets/css/cssReset.css";
@import "../assets/css/message.css";
.changelanguage{
width:124px;
}
.changelanguage .el-dropdown-menu__item .icon-duigou{
color:#000000;
position: absolute;
right: 10px;
font-size: 14px;
}
.changelanguage .el-dropdown-menu__item{
padding:0;
padding-left:15px;
font-size: 14px;
position: relative;
color:#333333;
}
.changelanguage .el-dropdown-menu__item:hover{
background: #D9D9D9;
color:#333333;
}
._dropdown.el-dropdown-menu {
padding: 0;
background-color: #1f2533 !important;
...
...
src/router/config.js
View file @
cc4844d2
...
...
@@ -2809,6 +2809,14 @@ export default {
title
:
'优惠券列表'
}
},
{
path
:
'/CouponDetail'
,
name
:
'CouponDetail'
,
component
:
resolve
=>
require
([
'@/components/activity/CouponDetail'
],
resolve
),
meta
:
{
title
:
'优惠券发放列表'
}
},
{
path
:
'/LuckyDraw'
,
name
:
'LuckyDraw'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment