Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
marketing-web
marketing
Commits
a24b9738
Commit
a24b9738
authored
Nov 28, 2018
by
zhangmeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
521c447a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
33 deletions
+32
-33
index.html
dist/index.html
+2
-2
app.8998d8cbdaff4e546a98.js
dist/static/js/app.8998d8cbdaff4e546a98.js
+0
-0
cardInfo.js
src/views/card/cardInfo.js
+30
-31
No files found.
dist/index.html
View file @
a24b9738
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
./static/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
static/css/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
static/css/common.css
><link
href=
/marketing/static/css/app.1f7757afffa773fd1b31ffc9bca6ade7.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/marketing/static/js/manifest.0a85049e489e85ac5f0a.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.e0b7daa8af8fb2f5148e.js
></script><script
type=
text/javascript
src=
/marketing/static/js/app.fcea6fd64e46693e427d.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
./static/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
static/css/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
static/css/common.css
><link
href=
/marketing/static/css/app.1f7757afffa773fd1b31ffc9bca6ade7.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/marketing/static/js/manifest.0a85049e489e85ac5f0a.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.e0b7daa8af8fb2f5148e.js
></script><script
type=
text/javascript
src=
/marketing/static/js/app.8998d8cbdaff4e546a98.js
></script></body></html>
\ No newline at end of file
dist/static/js/app.
fcea6fd64e46693e427d
.js
→
dist/static/js/app.
8998d8cbdaff4e546a98
.js
View file @
a24b9738
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/views/card/cardInfo.js
View file @
a24b9738
...
...
@@ -2,11 +2,11 @@
* 逻辑太多
*/
import
dmUploadImg
from
'
@
/components/upload/img'
import
dmUploadImg
from
'
../..
/components/upload/img'
import
imgTextDrag
from
'./partials/imgtext-drag'
import
{
formateDateTimeByType
,
resetParams
}
from
'@
/utils/index.js'
import
{
cardGetShelfs
,
getCardDetail
,
saveUpdateCard
,
copyCardDetailService
}
from
'
@
/service/api/cardApi.js'
import
dmGoodsInput
from
'
@
/components/goods-input/index.vue'
import
{
formateDateTimeByType
}
from
'../..
/utils/index.js'
import
{
cardGetShelfs
,
getCardDetail
,
saveUpdateCard
,
copyCardDetailService
}
from
'
../..
/service/api/cardApi.js'
import
dmGoodsInput
from
'
../..
/components/goods-input/index.vue'
const
initForm
=
{
cardType
:
0
,
// 1.卡券类型: 抵金券: 0; 折扣券: 1; 兑换券: 2
cardName
:
''
,
// 2.卡券名称
...
...
@@ -40,10 +40,10 @@ const initForm = {
verificationType
:
0
,
cardDenomination
:
0
,
proNoList
:[],
storeMode
:
0
storeMode
:
1
}
const
sale_limit
=
{
fee
:
0
,
goods
:
''
,
flag
:
false
,
type
:
0
}
//最低消费
const
goods
=
{
ok
:
''
,
no
:
''
,
flag
:
false
}
const
sale_limit
=
{
fee
:
0
,
goods
:
''
,
flag
:
false
,
type
:
0
};
//最低消费
const
goods
=
{
ok
:
''
,
no
:
''
,
flag
:
false
}
;
export
default
{
data
()
{
return
{
...
...
@@ -115,12 +115,26 @@ export default {
},
methods
:{
//切换卡券类型 表单置为默认值
reset
(
val
)
{
this
.
$refs
.
form
.
resetFields
()
this
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
initForm
))
this
.
sale_limit
=
JSON
.
parse
(
JSON
.
stringify
(
sale_limit
))
this
.
goods
=
JSON
.
parse
(
JSON
.
stringify
(
goods
))
this
.
form
.
cardType
=
val
reset
(
e
)
{
// debugger
console
.
log
(
'5'
+
e
)
// try {
// this.$refs.form.resetFields();
// } catch (e) {
// console.log(e)
// }
this
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
initForm
));
this
.
sale_limit
=
JSON
.
parse
(
JSON
.
stringify
(
sale_limit
));
this
.
goods
=
JSON
.
parse
(
JSON
.
stringify
(
goods
));
this
.
form
.
cardType
=
e
;
this
.
$nextTick
(
_
=>
{
// if (this.form.cardType === 2) {
this
.
$refs
.
storeCard
.
initLeftList
();
// }
})
// console.log(this.form.storeMode,val);
},
//卡券营销--卡券库--新建/修改卡券--放入卡券展架--所有展架集合
cardGetShelfs
()
{
...
...
@@ -229,21 +243,6 @@ export default {
this
.
$refs
.
storeCard
.
init
();
})
// this.sendChildData = {
// storeType:card.storeMode || 0,
// storeGroupIds:card.groupIds?(card.groupIds.length?card.groupIds.join(','):''):'',
// };
// let list = [];
// if (card.storeIds && card.storeIds.length) {
// card.storeIds.map(v => {
// list.push(JSON.parse(v));
// })
// }
// this.sendChildData.storeIds = list;
this
.
form
.
image
=
{
imgUrl
:
card
.
qcloudImageUrl
||
''
,
code
:
card
.
imageFieldCode
||
''
...
...
@@ -473,7 +472,7 @@ export default {
// 这里判断部分门店是否为空
if
(
card
.
storeMode
)
{
let
data
=
await
this
.
$refs
.
storeCard
.
getRightList
();
console
.
log
(
data
.
length
)
console
.
log
(
'1'
+
data
.
length
)
if
(
!
data
.
length
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'部分门店不能为空'
});
return
;
...
...
@@ -484,7 +483,7 @@ export default {
params
.
card
=
JSON
.
stringify
(
card
);
saveUpdateCard
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
'2'
+
res
)
if
(
res
.
errorCode
===
0
)
{
if
(
this
.
isEdit
)
{
this
.
$confirm
(
'保存成功, 是否返回列表?'
,
'提示'
,
{
...
...
@@ -504,7 +503,7 @@ export default {
this
.
$tips
({
type
:
'error'
,
message
:
res
.
message
||
'保存卡券失败'
});
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
'3'
+
err
)
this
.
$tips
({
type
:
'error'
,
message
:
'保存卡券失败'
});
})
},
...
...
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