Commit df1add6e authored by liwei's avatar liwei

修改了部分页面

parent 7988a761
...@@ -107,14 +107,14 @@ ...@@ -107,14 +107,14 @@
我的动态 我的动态
</view> </view>
</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" <image v-for="item in userData.articleImg" :src="item"
mode="aspectFill"> mode="aspectFill">
</image> </image>
</view> </view>
<view class="strs" v-else-if="userData.articleContent!==null">
{{userData.articleContent}}
</view>
</view> </view>
</view> </view>
<!-- 关于我自己--> <!-- 关于我自己-->
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
<script> <script>
import {userDetail} from "../api/user"; import {userDetail} from "../api/user";
import {getCity, getValue} from '../util/options' import {getCity, getValue} from '../common/options'
import {parseDate,calculateAge} from '../common/index' import {parseDate,calculateAge} from '../common/index'
import LsSwiper from '../components/ls-swiper/index.vue'; import LsSwiper from '../components/ls-swiper/index.vue';
import myPopup from '@/components/myPopup.vue' import myPopup from '@/components/myPopup.vue'
...@@ -230,32 +230,7 @@ ...@@ -230,32 +230,7 @@
//用户头像 //用户头像
imgList:[], imgList:[],
//用户信息 //用户信息
userData: { 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'
},
isShow: false, isShow: false,
mutualInfo: {}, mutualInfo: {},
showLikePop: false, showLikePop: false,
...@@ -369,7 +344,7 @@ ...@@ -369,7 +344,7 @@
//处理实名 //处理实名
this.userData.memRealAuthen = getValue('realAuthen',res.data.data.memRealAuthen) this.userData.memRealAuthen = getValue('realAuthen',res.data.data.memRealAuthen)
//处理动态 //处理动态
this.userData.articleContent = '111111111111' this.userData.articleContent = '我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼我喜欢吃鱼'
this.userData.articleImg = [ this.userData.articleImg = [
'http://192.168.1.7/upload/CmsActivity/20241230/E3994EF11C524D48AD88D383A2B5786B.jpg', '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',
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
<script> <script>
import {userList} from "../api/user"; import {userList} from "../api/user";
let util = require('@/util/means.js');
export default { export default {
data() { data() {
return { return {
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
</template> </template>
<script> <script>
let util = require('@/util/means.js');
export default { export default {
data() { data() {
return { return {
......
import config from '@/config' 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) => { export const request = (options) => {
if (options && options.withToken) { // if (options && options.withToken) {
options.data = { // options.data = {
...options.data // ...options.data
}; // };
} // }
if(options.withLoading){ // if(options.withLoading){
uni.showLoading({ // uni.showLoading({
title: '加载中' // title: '加载中'
}); // });
} // }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.request({ uni.request({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment