Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
b676568b
Commit
b676568b
authored
Nov 15, 2019
by
刘泽奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
f2412f60
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
47 deletions
+81
-47
igirl-channel-web/app/front/vues/pages/jdindentlist/jdindentlist.js
+1
-0
igirl-channel-web/app/front/vues/pages/selftmreg/selftmreg.html
+10
-2
igirl-channel-web/app/front/vues/pages/selftmreg/selftmreg.js
+70
-45
No files found.
igirl-channel-web/app/front/vues/pages/jdindentlist/jdindentlist.js
View file @
b676568b
...
...
@@ -330,6 +330,7 @@
query
:
{
channelUserId
:
this
.
$root
.
channelUserId
,
deliveryOrderNo
:
row
.
deliveryOrderNo
,
channelOrderNo
:
row
.
channelServiceNo
,
}
});
window
.
scrollTo
(
0
,
0
);
...
...
igirl-channel-web/app/front/vues/pages/selftmreg/selftmreg.html
View file @
b676568b
...
...
@@ -240,7 +240,8 @@
</el-form>
<!-- page2 -->
<el-form
v-show=
"step==2"
ref=
"apply"
:rules=
"applyrules"
:model=
"apply"
class=
"demo-ruleForm"
label-width=
"120px"
>
<el-form
v-show=
"step==2"
ref=
"apply"
:rules=
"applyrules"
:model=
"apply"
class=
"demo-ruleForm"
label-width=
"120px"
>
<div
class=
"selftmreg_main selfmreg-step2"
>
<div
class=
"selftmreg_shu"
></div>
<h4
style=
"color:#535353"
><i
class=
"selftmreg_shuxian"
></i>
填写申请人信息
</h4>
...
...
@@ -778,5 +779,11 @@
{{message.info}}
</div>
</transition>
<el-dialog
title=
"提示"
:visible
.
sync=
"showConfrim"
width=
"30%"
style=
"z-Index:9999;"
>
<span
v-if=
"showConfrim"
>
{{nclOne[0].code}}类{{nclOne[0].name}},商品/服务项目
<span
style=
"color:red;"
>
不足10项
</span>
,已选{{nclSelected}}项,还可选{{10-nclSelected}}个小项
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"closeConfrim()"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm(\'form\',true)"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
\ No newline at end of file
igirl-channel-web/app/front/vues/pages/selftmreg/selftmreg.js
View file @
b676568b
...
...
@@ -292,6 +292,9 @@
info
:
""
,
show
:
false
,
},
showConfrim
:
false
,
agree
:
false
,
nclSelected
:
null
,
}
},
computed
:
Vuex
.
mapState
({
...
...
@@ -344,7 +347,6 @@
this
.
$refs
.
tree
.
setChecked
(
newVal
[
1
],
false
);
this
.
$refs
.
tree
.
setChecked
(
newVal
[
1
].
nclThree
[
0
],
false
);
newVal
.
pop
();
this
.
message
.
show
=
!
this
.
message
.
show
;
this
.
message
.
info
=
"只能选择同一个类别"
;
var
timer
=
setTimeout
(()
=>
{
...
...
@@ -357,7 +359,6 @@
this
.
$refs
.
tree
.
setChecked
(
newVal
[
0
].
nclThree
[
10
],
false
);
newVal
[
0
].
nclThree
.
pop
();
console
.
log
(
newVal
,
newVal
[
0
].
nclThree
,
`xxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
);
this
.
message
.
show
=
!
this
.
message
.
show
;
this
.
message
.
info
=
"最多只能选择10项"
;
var
timer2
=
setTimeout
(()
=>
{
...
...
@@ -1106,22 +1107,35 @@
selfclear
(){
this
.
nclOne
=
[];
},
submitForm
(
formName
)
{
closeConfrim
(){
this
.
agree
=
false
;
this
.
showConfrim
=
false
;
},
submitForm
(
formName
,
agree
)
{
var
that
=
this
;
console
.
log
(
formName
,
";;;;;;;;;;;;;"
);
if
(
formName
==
"form"
)
{
if
(
agree
)
{
this
.
agree
=
agree
;
this
.
showConfrim
=
false
;
if
(
!
this
.
form
.
name
||
!
this
.
form
.
colorizedPicUrl
)
{
this
.
$message
(
"请完善信息"
);
this
.
agree
=
false
;
return
;
}
}
console
.
log
(
formName
,
";;;;;;;;;;;;;"
,
this
.
agree
);
if
(
this
.
agree
==
false
)
{
if
(
this
.
nclOne
.
length
>
0
)
{
if
(
this
.
nclOne
[
0
].
nclThree
.
length
<
10
)
{
this
.
message
.
show
=
!
this
.
message
.
show
;
this
.
message
.
info
=
"小类必须选择10项"
;
var
timer3
=
setTimeout
(()
=>
{
this
.
message
.
show
=
false
;
clearTimeout
(
timer3
);
},
2000
);
this
.
nclSelected
=
this
.
nclOne
[
0
].
nclThree
.
length
;
this
.
showConfrim
=
true
;
return
;
}
}
};
if
(
!
this
.
form
.
name
||
!
this
.
form
.
colorizedPicUrl
)
{
this
.
$message
.
warning
(
"请完善信息"
);
return
false
;
}
if
(
formName
==
"form"
||
formName
==
"apply"
)
{
if
(
formName
==
"apply"
)
{
console
.
log
(
this
.
apply
);
...
...
@@ -1132,10 +1146,11 @@
}
};
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
console
.
log
(
valid
);
if
(
valid
)
{
if
(
formName
==
"form"
)
{
}
if
(
formName
==
"form"
&&
that
.
nclOne
.
length
<
1
)
{
that
.
$message
.
warning
(
`请选择商标分类`
);
return
false
;
...
...
@@ -1152,15 +1167,7 @@
if
(
formName
==
"order"
)
{
this
.
form
.
name
=
this
.
form
.
tmFormType
==
5
?
this
.
form
.
name
+
'及图'
:
this
.
form
.
name
;
this
.
savehistory
();
var
obj
=
{
tm
:
this
.
form
,
apply
:
this
.
apply
,
nclones
:
this
.
nclOne
,
itemCode
:
this
.
itemCode
,
channelParams
:
this
.
channelParams
,
channelOrder
:
this
.
channelOrder
,
channelUser
:
this
.
channelUser
,
};
/*
if (!this.currentUser) {
obj["step"] = this.step;
...
...
@@ -1176,31 +1183,49 @@
return false;
}
*/
var
obj
=
this
.
$root
.
copyParams
(
obj
,
"subTmOrder"
,
"/action/tmOrder/springBoard"
,
"yes"
);
that
.
$root
.
postReq
(
"/web/trademark/tmqueryCtl/doPost"
,
obj
).
then
(
function
(
d
)
{
console
.
log
(
'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn0'
,
d
);
if
(
d
.
status
==
0
)
{
var
order
=
d
.
data
;
that
.
toTop
();
that
.
$message
.
warning
(
"订单提交成功"
);
that
.
$router
.
push
({
path
:
"/1688/jdindentlist"
});
/*
that.$root.pushx({
title: "订单支付",
name: "/orderpay",
params: {
orderNum: order.code
}
});
*/
}
else
{
that
.
$message
.
warning
(
d
.
msg
);
}
}).
catch
(
function
(
e
)
{
that
.
$message
.
warning
(
"操作失败"
);
console
.
log
(
this
.
$route
.
query
.
channelServiceNo
,
">>>>>>>>>>>>>>>>>>>>>>>"
);
var
channelOrderNo
=
this
.
$root
.
copyParams
({
channelOrderNo
:
this
.
$route
.
query
.
channelOrderNo
},
"get1688ChannelOrderInfo"
,
"/action/tmOrder/springBoard"
,
"yes"
,
"yes"
);
that
.
$root
.
postReq
(
"/web/trademark/tmqueryCtl/doPost"
,
channelOrderNo
).
then
((
d
)
=>
{
obj
.
channelOrderNo
=
d
.
channelOrderNo
;
obj
.
channelUser
=
d
.
channelUser
;
}).
then
(()
=>
{
var
obj
=
{
tm
:
that
.
form
,
apply
:
that
.
apply
,
nclones
:
that
.
nclOne
,
itemCode
:
that
.
itemCode
,
channelParams
:
that
.
channelParams
,
channelOrder
:
that
.
channelOrder
,
channelUser
:
that
.
channelUser
,
};
var
obj
=
this
.
$root
.
copyParams
(
obj
,
"subTmOrder"
,
"/action/tmOrder/springBoard"
,
"yes"
);
that
.
$root
.
postReq
(
"/web/trademark/tmqueryCtl/doPost"
,
obj
).
then
(
function
(
d
)
{
console
.
log
(
'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn0'
,
d
);
if
(
d
.
status
==
0
)
{
var
order
=
d
.
data
;
that
.
toTop
();
that
.
$message
.
warning
(
"订单提交成功"
);
that
.
$router
.
push
({
path
:
"/1688/jdindentlist"
});
/*
that.$root.pushx({
title: "订单支付",
name: "/orderpay",
params: {
orderNum: order.code
}
});
*/
}
else
{
that
.
$message
.
warning
(
d
.
msg
);
}
}).
catch
(
function
(
e
)
{
that
.
$message
.
warning
(
"操作失败"
);
});
})
});
}
...
...
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