Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
7747106f
Commit
7747106f
authored
Jun 18, 2020
by
tz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
b32ed3a8
48cddc55
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
5 deletions
+34
-5
pages/CardSend/CardSend.scss
pages/CardSend/CardSend.scss
+1
-1
pages/CardSend/CardSend.vue
pages/CardSend/CardSend.vue
+27
-4
utils/api/coupon.js
utils/api/coupon.js
+6
-0
No files found.
pages/CardSend/CardSend.scss
View file @
7747106f
...
@@ -319,7 +319,7 @@
...
@@ -319,7 +319,7 @@
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
.bj
{
.bj
{
color
:
#
007aff
;
color
:
#
FFFFFF
;
margin-right
:
30upx
;
margin-right
:
30upx
;
}
}
}
}
...
...
pages/CardSend/CardSend.vue
View file @
7747106f
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</view>
</view>
<view
class=
"itemname"
>
本店
</view>
<view
class=
"itemname"
>
本店
</view>
</label>
</label>
<label
class=
"flex ali-c"
>
<
!--
<
label
class=
"flex ali-c"
>
<view>
<view>
<radio
color=
"#FF6900"
value=
"2"
:checked=
"parameter.give_type==2"
/>
<radio
color=
"#FF6900"
value=
"2"
:checked=
"parameter.give_type==2"
/>
</view>
</view>
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<radio
color=
"#FF6900"
value=
"3"
:checked=
"parameter.give_type==3"
/>
<radio
color=
"#FF6900"
value=
"3"
:checked=
"parameter.give_type==3"
/>
</view>
</view>
<view
class=
"itemname"
>
全网
</view>
<view
class=
"itemname"
>
全网
</view>
</label>
</label>
-->
</radio-group>
</radio-group>
</view>
</view>
</view>
</view>
...
@@ -159,14 +159,18 @@
...
@@ -159,14 +159,18 @@
</view>
</view>
<view
class=
"text flex ali-c jus-b"
>
<view
class=
"text flex ali-c jus-b"
>
<text>
有效期:
{{
item
.
start_time
}}
至
{{
item
.
end_time
}}
</text>
<text>
有效期:
{{
item
.
start_time
}}
至
{{
item
.
end_time
}}
</text>
<text
v-if=
"item.get_num==0"
class=
"bj pr-10"
@
tap=
"detailsFun(item)"
>
编辑
</text>
<!--
<text
v-if=
"item.get_num==0"
class=
"bj pr-10"
@
tap=
"detailsFun(item)"
>
编辑
</text>
-->
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"cardright flexc"
>
<view
class=
"cardright flexc"
>
<view>
<view>
<text
class=
"bj pr-10"
@
tap=
"detailsFun(item)"
>
编辑
</text>
<view
class=
"text"
>
优惠
</view>
<view
class=
"text"
>
优惠
</view>
<view
class=
"prcie"
>
{{
item
.
money
}}
元
</view>
<view
class=
"prcie"
>
{{
item
.
money
}}
元
</view>
<text
class=
"bj pr-10"
@
tap=
"deleteFun(item)"
>
删除
</text>
</view>
</view>
</view>
</view>
...
@@ -236,7 +240,7 @@
...
@@ -236,7 +240,7 @@
<
script
>
<
script
>
import
uniPopup
from
'
@/components/uni-popup/uni-popup.vue
'
import
uniPopup
from
'
@/components/uni-popup/uni-popup.vue
'
import
wPicker
from
"
@/components/w-picker/w-picker.vue
"
;
//时间弹窗
import
wPicker
from
"
@/components/w-picker/w-picker.vue
"
;
//时间弹窗
import
{
couponList
,
closedCoupons
,
couponGoods
,
addEditCoupons
,
couponsDetails
}
from
"
@/utils/api/coupon.js
"
import
{
couponList
,
closedCoupons
,
couponGoods
,
addEditCoupons
,
couponsDetails
,
deleteCoupons
}
from
"
@/utils/api/coupon.js
"
import
empty
from
"
@/components/empty/empty.vue
"
import
empty
from
"
@/components/empty/empty.vue
"
export
default
{
export
default
{
components
:{
components
:{
...
@@ -308,6 +312,7 @@
...
@@ -308,6 +312,7 @@
},
},
methods
:{
methods
:{
//取消编辑
//取消编辑
colesedit
(){
colesedit
(){
this
.
parameter
=
{
this
.
parameter
=
{
...
@@ -419,6 +424,24 @@
...
@@ -419,6 +424,24 @@
this
.
$api
.
msg
(
res
.
msg
);
this
.
$api
.
msg
(
res
.
msg
);
}
}
},
},
//删除
async
deleteFun
(
item
){
let
res
=
await
deleteCoupons
({
id
:
item
.
id
});
this
.
$api
.
msg
(
res
.
msg
);
if
(
res
.
code
==
1
){
//已发卡券
this
.
page
=
0
;
this
.
cardlist
=
[];
this
.
isallshow
=
false
;
this
.
shop_couponFun
();
}
},
//优惠券详情 编辑使用
//优惠券详情 编辑使用
async
detailsFun
(
item
){
async
detailsFun
(
item
){
let
res
=
await
couponsDetails
({
let
res
=
await
couponsDetails
({
...
...
utils/api/coupon.js
View file @
7747106f
...
@@ -41,3 +41,9 @@ export function couponsDetails(data)
...
@@ -41,3 +41,9 @@ export function couponsDetails(data)
{
{
return
request
.
post
(
"
Coupon/couponsDetails
"
,
data
,{
noAuth
:
true
});
return
request
.
post
(
"
Coupon/couponsDetails
"
,
data
,{
noAuth
:
true
});
}
}
//修改的时候 获取优惠券详情
export
function
deleteCoupons
(
data
)
{
return
request
.
post
(
"
Coupon/deleteCoupons
"
,
data
,{
noAuth
:
true
});
}
\ No newline at end of file
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