Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
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
front-end-dev
techbook
Commits
4168d3cc
Commit
4168d3cc
authored
Jul 03, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页英文行业报告快速登录
parent
124737de
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
9 deletions
+26
-9
en.js
src/common/lang/en.js
+2
-0
zh.js
src/common/lang/zh.js
+2
-0
applyLogin.vue
src/components/mobile/applyLogin.vue
+6
-6
index.vue
src/views/mobile/index/index.vue
+16
-3
No files found.
src/common/lang/en.js
View file @
4168d3cc
...
...
@@ -1579,6 +1579,8 @@ module.exports = {
projectName
:
'Ex. Self-driving robot (Do not put the company name)'
,
Reminder
:
'Tips: The mobile version only displays part of the product profile, please log in to the web version for details. www.techbook.co'
,
requireReminder
:
'Tips: The mobile version only displays part of the request profile, please log in to the web version for details. www.techbook.co'
,
helloTitle
:
"Hello,"
,
welcomeTitle
:
"Welcome To TechBook"
},
...
...
src/common/lang/zh.js
View file @
4168d3cc
...
...
@@ -1676,6 +1676,8 @@ module.exports = {
projectName
:
'如:自动驾驶机器人研发,请勿填写公司简称'
,
Reminder
:
'温馨提示:手机版只展示部分项目内容,详细内容请登录Web版查看 www.techbook.co'
,
requireReminder
:
'温馨提示:手机版只展示部分需求内容,详细内容请登录Web版查看 www.techbook.co'
,
helloTitle
:
"您好,"
,
welcomeTitle
:
"欢迎来到TechBook"
,
},
saleResponsibleUser
:
{
...
...
src/components/mobile/applyLogin.vue
View file @
4168d3cc
...
...
@@ -8,20 +8,20 @@
:close-on-click-modal=
"false"
center
>
<span
slot=
"title"
class=
"dialog-title"
>
<p>
您好,
</p>
<p>
欢迎来到TechBook
</p>
<p>
{{
$t
(
"mobile.helloTitle"
)
}}
</p>
<p>
{{
$t
(
"mobile.welcomeTitle"
)
}}
</p>
</span>
<div>
<el-form
:model=
"yzCodeForm"
:label-position=
"labelPosition"
:rules=
"rules"
ref=
"yzCodeForm"
@
keyup
.
enter
.
native=
"handleLogin(2,'yzCodeForm')"
class=
"demo-loginForm applyLogin"
>
<el-form-item
prop=
"phone"
label=
"帐号
"
>
<el-form-item
prop=
"phone"
:label=
"$t('personalAuth.account')
"
>
<el-input
@
blur
.
prevent=
"handleToParent"
@
focus=
"handleFocus(1)"
v-model=
"yzCodeForm.phone"
@
input=
"isTruePhone"
:placeholder=
"$t('errorValidate.errorNoAccount')"
autocomplete
></el-input>
</el-form-item>
<el-form-item
prop=
"code"
class=
"yzcodeItem"
label=
"验证码
"
>
<el-form-item
prop=
"code"
class=
"yzcodeItem"
:label=
"$t('personalAuth.code')
"
>
<el-input
@
blur
.
prevent=
"handleToParent"
type=
"text"
class=
"applyLoginItem"
@
focus=
"handleFocus(2)"
v-model=
"yzCodeForm.code"
:placeholder=
"$t('commonTips.placeholderAccountCode')"
style=
"float: left;"
maxlength=
"6"
autocomplete
></el-input>
<span
class=
"getyzcodeBtn"
@
click=
"handleGetCode"
v-if=
"showCount"
>
{{
$t
(
"commonTips."
+
codehtml
)
}}
</span>
<
!--
<span
class=
"getdyzcodeBtn"
v-if=
"!showCount&&lang==2"
>
{{
$t
(
"commonTips.resendCode"
)
}}{{
count
}}
s
</span>
--
>
<
span
class=
"getdyzcodeBtn"
v-if=
"!showCount&&lang==2"
>
{{
$t
(
"commonTips.resendCode"
)
}}{{
count
}}
s
</span
>
<span
class=
"getdyzcodeBtn"
v-if=
"!showCount&&lang==1"
>
{{
count
}}{{
$t
(
"commonTips.resendCode"
)
}}
</span>
<div
class=
"clearFix"
></div>
</el-form-item>
...
...
@@ -36,7 +36,7 @@
</div>
<span
slot=
"footer"
class=
"dialog-footer applyLoginFooter"
>
<el-button
type=
"primary"
:disabled=
"flag>0"
class=
"loginButton"
@
click=
"handleLogin(2,'yzCodeForm')"
v-loading
.
fullscreen=
"fullscreenLoading"
>
登录
<el-button
type=
"primary"
:disabled=
"flag>0"
class=
"loginButton"
@
click=
"handleLogin(2,'yzCodeForm')"
v-loading
.
fullscreen=
"fullscreenLoading"
>
{{
$t
(
"topNav.login"
)
}}
</el-button>
</span>
</el-dialog>
...
...
src/views/mobile/index/index.vue
View file @
4168d3cc
...
...
@@ -460,6 +460,8 @@
<img
src=
"../../../assets/jiantou.png"
alt=
""
v-if=
"lang==1"
>
<img
src=
"../../../assets/jiantouEn.png"
alt=
""
v-if=
"lang==2"
>
</div>
<applyLoginCmpt
v-if=
"isLogin"
@
isShowLoginDialogFunc=
"isShowLoginDialogFunc"
:registerType=
"101"
:visible=
"isLogin"
></applyLoginCmpt>
</div>
</
template
>
...
...
@@ -474,6 +476,7 @@
import
industryApi
from
'../industryReport/api'
import
commonApi
from
'../../../common/commonApi'
import
shareCmpt
from
'../../../components/shareIndustryCmpt'
import
applyLoginCmpt
from
'../../../components/mobile/applyLogin'
;
export
default
{
name
:
"mobileindex"
,
components
:
{
...
...
@@ -481,7 +484,8 @@
marqueeLeft
,
PageBottom
,
applyProCmpt
,
shareCmpt
shareCmpt
,
applyLoginCmpt
},
data
()
{
const
that
=
this
;
...
...
@@ -606,7 +610,8 @@
configVal
:{},
allDataInfo
:
null
,
activityData
:[],
industryData
:[]
industryData
:[],
isLogin
:
false
}
},
methods
:
{
...
...
@@ -631,6 +636,7 @@
})
},
handleToProject
(
data
)
{
this
.
$router
.
push
(
'/projectdetails?id='
+
data
.
projectId
)
},
...
...
@@ -671,6 +677,7 @@
this
.
tabMaiDianFunc
(
name
);
}
},
//去合作案例
handleToCooperation
(
item
)
{
this
.
$router
.
push
({
path
:
'/casedetailsed'
,
query
:
{
entid
:
item
.
id
}})
...
...
@@ -1483,7 +1490,13 @@
}).
catch
((
err
)
=>
{
this
.
$toast
(
err
);
})
}
},
//是否显示登录
isShowLoginDialogFunc
(
data
,
data1
){
this
.
isLogin
=
data
;
this
.
userInfo
=
this
.
publicFun
.
getCookie
(
"userInfo"
)
?
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getCookie
(
"userInfo"
)))
:
null
;
},
},
mounted
()
{
this
.
getSliderList
(
3
);
...
...
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