Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
gd_yc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
63be4379
authored
2025-08-14 14:23:23 +0800
by
华明祺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
ddd8d60b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
45 deletions
src/common/login.js
src/common/request.js
src/pages/index/index.vue
src/common/login.js
View file @
63be437
...
...
@@ -193,7 +193,7 @@ function h5Login(userName) {
}
function
showLogin
(
callback
)
{
// uni.clearStorageSync(
)
uni
.
removeStorageSync
(
"token"
)
uni
.
showModal
({
title
:
'请输入身份证,进行身份验证'
,
...
...
src/common/request.js
View file @
63be437
...
...
@@ -53,13 +53,6 @@ let request = function(req) {
const
token
=
getToken
()
let
tempUrl
=
req
.
url
if
(
token
)
{
if
(
tempUrl
.
indexOf
(
'?'
)
>
-
1
)
{
tempUrl
+=
'&userNo='
+
token
}
else
{
tempUrl
+=
'?userNo='
+
token
}
}
let
url
,
data
if
(
config
.
localPort
)
{
...
...
@@ -77,6 +70,13 @@ let request = function(req) {
params
:
'jsonBody='
+
JSON
.
stringify
(
req
.
params
)
}
}
else
{
if
(
token
)
{
if
(
tempUrl
.
indexOf
(
'?'
)
>
-
1
)
{
tempUrl
+=
'&userNo='
+
token
}
else
{
tempUrl
+=
'?userNo='
+
token
}
}
if
(
req
.
params
)
{
for
(
const
key
of
Object
.
keys
(
req
.
params
))
{
if
(
tempUrl
.
indexOf
(
'?'
)
>
-
1
)
{
...
...
src/pages/index/index.vue
View file @
63be437
...
...
@@ -3,7 +3,7 @@
<view
class=
"uni-margin-wrap"
>
<swiper
class=
"swiper"
circular
:indicator-dots=
"indicatorDots"
:autoplay=
"autoplay"
:interval=
"interval"
:duration=
"duration"
indicator-color=
"rgba(255,255,255,0.6)"
indicator-active-color=
"#fff"
>
<!--
<swiper-item
v-for=
"(p, index) in venue.venuePicArr"
:key=
"index"
>
<!--
<swiper-item
v-for=
"(p, index) in venue.venuePicArr"
:key=
"index"
>
<view
class=
"swiper-item"
>
<image
mode=
"aspectFill"
:src=
"p"
></image>
</view>
...
...
@@ -15,16 +15,14 @@
</swiper-item>
</swiper>
</view>
<view
class=
"infoArea"
>
<view
class=
"infoArea"
>
<view
class=
"contentbox"
>
<view
class=
"name"
>
国电培训中心简介
<!--
<view
class=
"content"
v-html=
"venue.introdution"
>
-->
<view
class=
"content"
style=
"margin-top: 20rpx;"
>
国网江苏省电力公司营销技能培训中心办公室地址位于传统的江南文化、鱼米之乡盐城,盐城 盐城市大庆东路66号,于2008年10月30日在盐城市工商行政管理局注册成立,注册资本为400万元人民币,在公司发展壮大的15年里,我们始终为客户提供好的产品和技术支持、健全的售后服务,我公司主要经营住宿服务;电力人才交流、培训、信息服务。,我们有好的产品和专业的销售和技术团队,我公司属于盐城电力供应业黄页行业,如果您对我公司的产品服务有兴趣,期待您在线留言或者来电咨询
<!--
<view
class=
"content"
v-html=
"venue.introdution"
>
-->
<view
class=
"content"
style=
"margin-top: 20rpx;"
>
国网江苏省电力公司营销技能培训中心办公室地址位于传统的江南文化、鱼米之乡盐城,盐城
盐城市大庆东路66号,于2008年10月30日在盐城市工商行政管理局注册成立,注册资本为400万元人民币,在公司发展壮大的15年里,我们始终为客户提供好的产品和技术支持、健全的售后服务,我公司主要经营住宿服务;电力人才交流、培训、信息服务。,我们有好的产品和专业的销售和技术团队,我公司属于盐城电力供应业黄页行业,如果您对我公司的产品服务有兴趣,期待您在线留言或者来电咨询
</view>
</view>
<view
class=
"n9"
@
click=
"makeCall"
>
...
...
@@ -46,19 +44,19 @@
</view>
</view>
</view>
<view
class=
"contentbox"
style=
"padding: 0;"
>
<view
class=
"content"
>
<uni-grid
:column=
"3"
:highlight=
"true"
:showBorder=
"false"
>
<uni-grid-item
v-for=
"(item, index) in list"
:index=
"index"
:key=
"index"
>
<view
class=
"grid-item-box"
@
click=
"goItem(item)"
>
<image
:src=
"item.partLogo"
class=
"image"
mode=
"aspectFill"
/>
<text
class=
"text"
>
{{
item
.
name
}}
</text>
</view>
</uni-grid-item>
</uni-grid>
</view>
</view>
<view
class=
"contentbox"
style=
"padding: 0;"
>
<view
class=
"content"
>
<uni-grid
:column=
"3"
:highlight=
"true"
:showBorder=
"false"
>
<uni-grid-item
v-for=
"(item, index) in list"
:index=
"index"
:key=
"index"
>
<view
class=
"grid-item-box"
@
click=
"goItem(item)"
>
<image
:src=
"item.partLogo"
class=
"image"
mode=
"aspectFill"
/>
<text
class=
"text"
>
{{
item
.
name
}}
</text>
</view>
</uni-grid-item>
</uni-grid>
</view>
</view>
<view
class=
"contentbox"
v-if=
"venue.notice"
>
<view
class=
"t"
>
培训公告
</view>
<rich-text
class=
"richText"
:nodes=
"venue.notice"
></rich-text>
...
...
@@ -118,18 +116,18 @@
const
svId
=
ref
(
null
);
const
list
=
ref
([{
id
:
0
,
name
:
'培训助手'
,
partLogo
:
'/static/btn01.png'
,
name
:
'培训助手'
,
partLogo
:
'/static/btn01.png'
,
path
:
'/pages_hotel/hotel/index'
},
{
id
:
2
,
name
:
'校园风采'
,
partLogo
:
'/static/btn03.png'
,
name
:
'校园风采'
,
partLogo
:
'/static/btn03.png'
,
path
:
''
},
{
id
:
3
,
name
:
'我的'
,
partLogo
:
'/static/btn04.png'
,
name
:
'我的'
,
partLogo
:
'/static/btn04.png'
,
path
:
'/pages_hotel/hotel/mycenter'
}]);
...
...
@@ -145,13 +143,13 @@
onLoad
(
option
=>
{
if
(
option
.
scene
)
{
proId
=
decodeURIComponent
(
option
.
scene
);
}
if
(
option
.
relogo
){
showLogin
(()
=>
{
uni
.
redirectTo
({
url
:
'/pages/index/index'
});
})
}
if
(
option
.
relogo
)
{
showLogin
(()
=>
{
uni
.
redirectTo
({
url
:
'/pages/index/index'
});
})
}
});
onReady
(()
=>
{
...
...
@@ -295,10 +293,16 @@
}
</
script
>
<
style
scope
lang=
"scss"
>
.grid-item-box
{
text-align
:
center
;
image{
width
:
120
rpx
;
height
:
120
rpx
;}
<
style
scope
lang=
"scss"
>
.grid-item-box
{
text-align
:
center
;
image
{
width
:
120
rpx
;
height
:
120
rpx
;
}
}
.singlePop
{
max-height
:
60vh
;
overflow
:
auto
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment