Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
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
李伟
cust-app
Commits
df1add6e
Commit
df1add6e
authored
Jan 08, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了部分页面
parent
7988a761
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
53 deletions
+18
-53
options.js
common/options.js
+0
-0
userInfo.vue
pagesUser/userInfo.vue
+7
-32
userList.vue
pagesUser/userList.vue
+0
-2
likeList.vue
pagesme/me/likeList.vue
+0
-1
api.js
util/api.js
+11
-18
No files found.
util
/options.js
→
common
/options.js
View file @
df1add6e
File moved
pagesUser/userInfo.vue
View file @
df1add6e
...
...
@@ -107,14 +107,14 @@
我的动态
</view>
</view>
<view
:class=
"['imgs',userData.articleImg.length == 2?'twoTemp':'']"
v-if=
"userData.articleImg !== null && userData.articleImg.length"
>
<view
class=
"strs"
v-if=
"userData.articleContent !== null"
>
{{
userData
.
articleContent
}}
</view>
<view
:class=
"['imgs',userData.articleImg.length == 2 ? 'twoTemp':'']"
v-if=
"userData.articleImg !== null && userData.articleImg.length"
>
<image
v-for=
"item in userData.articleImg"
:src=
"item"
mode=
"aspectFill"
>
</image>
</view>
<view
class=
"strs"
v-else-if=
"userData.articleContent!==null"
>
{{
userData
.
articleContent
}}
</view>
</view>
</view>
<!-- 关于我自己-->
...
...
@@ -214,7 +214,7 @@
<
script
>
import
{
userDetail
}
from
"../api/user"
;
import
{
getCity
,
getValue
}
from
'../
util
/options'
import
{
getCity
,
getValue
}
from
'../
common
/options'
import
{
parseDate
,
calculateAge
}
from
'../common/index'
import
LsSwiper
from
'../components/ls-swiper/index.vue'
;
import
myPopup
from
'@/components/myPopup.vue'
...
...
@@ -230,32 +230,7 @@
//用户头像
imgList
:[],
//用户信息
userData
:
{
result
:
true
,
school
:
'天津大学'
,
education
:
'Undergraduate'
,
educationalType
:
'FullTime'
,
nickName
:
'爱吃火锅'
,
gender
:
'FEMALE'
,
userAuthStatus
:
'DOUBLE'
,
age
:
'20'
,
height
:
'165'
,
constellation
:
'学生'
,
city
:
'天津市'
,
emotional
:
'Single'
,
profession
:
'学生'
,
annualSalary
:
'Less_Ten'
,
marriage
:
'Unmarried'
,
articleContent
:
'111111111'
,
articleImg
:
[
'http://192.168.1.7/upload/CmsActivity/20241230/E3994EF11C524D48AD88D383A2B5786B.jpg'
,
'http://192.168.1.7/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg'
,
'http://192.168.1.7/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg'
],
aboutMe
:
'111111'
,
interest
:
'222222'
,
loveRequirement
:
'33333'
},
userData
:
{},
isShow
:
false
,
mutualInfo
:
{},
showLikePop
:
false
,
...
...
@@ -369,7 +344,7 @@
//处理实名
this
.
userData
.
memRealAuthen
=
getValue
(
'realAuthen'
,
res
.
data
.
data
.
memRealAuthen
)
//处理动态
this
.
userData
.
articleContent
=
'
111111111111
'
this
.
userData
.
articleContent
=
'
我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼
'
this
.
userData
.
articleImg
=
[
'http://192.168.1.7/upload/CmsActivity/20241230/E3994EF11C524D48AD88D383A2B5786B.jpg'
,
'http://192.168.1.7/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg'
,
...
...
pagesUser/userList.vue
View file @
df1add6e
...
...
@@ -34,8 +34,6 @@
<
script
>
import
{
userList
}
from
"../api/user"
;
let
util
=
require
(
'@/util/means.js'
);
export
default
{
data
()
{
return
{
...
...
pagesme/me/likeList.vue
View file @
df1add6e
...
...
@@ -33,7 +33,6 @@
</
template
>
<
script
>
let
util
=
require
(
'@/util/means.js'
);
export
default
{
data
()
{
return
{
...
...
util/api.js
View file @
df1add6e
import
config
from
'@/config'
// #ifdef H5
// export const BASE_URL = `${location.protocol}//${location.host}/wxmapi`
// #endif
// #ifndef H5
// 请求接口
export
const
BASE_URL
=
config
.
baseUrl
;
// #endif
export
const
BASE_URL
=
config
.
baseUrl
;
export
const
request
=
(
options
)
=>
{
if
(
options
&&
options
.
withToken
)
{
options
.
data
=
{
...
options
.
data
};
}
if
(
options
.
withLoading
){
uni
.
showLoading
({
title
:
'加载中'
});
}
//
if (options && options.withToken) {
//
options.data = {
//
...options.data
//
};
//
}
//
if(options.withLoading){
//
uni.showLoading({
//
title: '加载中'
//
});
//
}
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
request
({
...
...
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