Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b97235d9
authored
Oct 15, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
11
parent
48687601
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
8 deletions
src/views/sample/sample.vue
view/14.js
src/views/sample/sample.vue
View file @
b97235d9
...
...
@@ -143,6 +143,28 @@ export default {
}
},
created
()
{
if
(
!
/Android|webOS|iPhone|iPod|BlackBerry/i
.
test
(
navigator
.
userAgent
))
{
let
url
=
""
;
switch
(
window
.
location
.
hostname
)
{
case
"m.ichunt.com"
:
url
=
"https://www.ichunt.com"
;
break
;
case
"szm.ichunt.com"
:
url
=
"https://sz.ichunt.com"
;
break
;
case
"tm.ichunt.com"
:
url
=
"https://t.ichunt.com"
;
break
;
case
"m.liexin.com"
:
url
=
"http://www.liexin.com"
;
break
;
default
:
url
=
"https://www.ichunt.com"
;
break
;
}
window
.
location
.
href
=
url
+
'/v3/sample'
}
this
.
$store
.
dispatch
({
type
:
"getClasslist"
});
...
...
@@ -198,25 +220,24 @@ export default {
.
catch
(
function
(
err
)
{});
},
yaoqing
(
item
)
{
let
loginpta
=
util
.
isLogin
()
//1强登入态
if
(
loginpta
!=
1
)
{
let
loginpta
=
util
.
isLogin
()
;
//1强登入态
if
(
loginpta
!=
1
)
{
window
.
location
.
href
=
"/v3/login?referer="
+
encodeURIComponent
(
window
.
location
.
href
);
return
;
}
else
{
if
(
this
.
applyCount
!=
0
)
{
if
(
item
.
goods_info
&&
item
.
goods_info
.
stock
)
{
if
(
this
.
applyCount
!=
0
)
{
if
(
item
.
goods_info
&&
item
.
goods_info
.
stock
)
{
this
.
$router
.
push
({
path
:
"/sampleapply"
,
query
:
{
id
:
item
.
goods_id
}
});
}
else
{
Toast
(
"样品库存不足"
);
}
else
{
Toast
(
"样品库存不足"
);
}
}
else
{
}
else
{
this
.
getPop
=
true
;
}
}
...
...
view/14.js
View file @
b97235d9
This diff is collapsed.
Click to expand it.
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