Commit 389d73f7 authored by LiZongLin's avatar LiZongLin

配置文件修改

parent 05b96b41
{ {
"pages": [ "pages": [{
{ "path": "pages_home/tjty_home_page/tjty_home_page",
"path" : "pages_home/tjty_home_page/tjty_home_page", "style": {
"style": { "navigationBarTitleText": "天体运动",
"navigationBarTitleText": "天体运动" "enablePullDownRefresh": true,
} "navigationStyle": "custom"
}
}, },
{ {
"path": "pages/index/index", "path": "pages/index/index",
...@@ -25,7 +26,7 @@ ...@@ -25,7 +26,7 @@
"navigationBarTitleText": "天体运动" "navigationBarTitleText": "天体运动"
} }
} }
], ],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "天体运动", "navigationBarTitleText": "天体运动",
......
...@@ -2,18 +2,20 @@ ...@@ -2,18 +2,20 @@
<view class="home_container"> <view class="home_container">
<view class="home_content_head"> <view class="home_content_head">
<image src="../../static/home-imgs/home_bg@2x.png"></image> <image src="../../static/home-imgs/home_bg@2x.png"></image>
<view class="home_title" :style="{top:marginHight}">海河体育</view>
<view class="headMenu"> <view class="headMenu">
<ul> <ul>
<li> <li>
<navigator url="" hover-class="none" open-type="navigate"> <view @click="goto" hover-class="none" open-type="navigate">
<view style="text-align: center;"> <view style="text-align: center;">
<view> <view>
<image src="../../static/home-imgs/home_icon_fengcai@2x.png"></image> <image src="../../static/home-imgs/home_icon_fengcai@2x.png"></image>
</view> </view>
<view style="color: #1F86EE; line-height: 21px;height: 100%;width: 100%;">天体风采</view> <view style="color: #1F86EE; line-height: 21px;height: 100%;width: 100%;">天体风采
</view>
</view> </view>
</navigator> </view>
</li> </li>
<li> <li>
<navigator url="../../pages_activity/activity/activity" hover-class="none" open-type="navigate"> <navigator url="../../pages_activity/activity/activity" hover-class="none" open-type="navigate">
...@@ -62,7 +64,7 @@ ...@@ -62,7 +64,7 @@
<view class="home_activity_item" v-for="(item1,index1) in activityList" :key="index1" <view class="home_activity_item" v-for="(item1,index1) in activityList" :key="index1"
@click="goActDetil(item1)"> @click="goActDetil(item1)">
<view class="activity_image"> <view class="activity_image">
<image class="image" :src="item1.bannerImage"></image> <image class="image" :src="'https://www.aiwanyundong.com/api/' + item1.bannerImage"></image>
</view> </view>
<view class="activity-body"> <view class="activity-body">
<view class="activity_image_title"> <view class="activity_image_title">
...@@ -81,10 +83,10 @@ ...@@ -81,10 +83,10 @@
<view class="home_exercise_item" v-for="(item,index) in exerciseList" :key="index"> <view class="home_exercise_item" v-for="(item,index) in exerciseList" :key="index">
<view class="ima"> <view class="ima">
<image style="width: 116px;height:116px;border-radius:16px " <image style="width: 116px;height:116px;border-radius:16px "
:src="item.image"></image> :src="'https://www.aiwanyundong.com/api/' + item.image"></image>
</view> </view>
<view> <view style="width: 66%;">
<view style="height: 80px;width: 265px"> <view style="height: 80px;">
<view class="a-card"> <view class="a-card">
{{item.mechanismName}} {{item.mechanismName}}
</view> </view>
...@@ -92,7 +94,7 @@ ...@@ -92,7 +94,7 @@
适用人群:&nbsp;&nbsp;{{item.propertyPeople}} 适用人群:&nbsp;&nbsp;{{item.propertyPeople}}
</view> </view>
</view> </view>
<view style="width: 265px;"> <view>
<button class="b-card" @click="toAppoint(item)"> <button class="b-card" @click="toAppoint(item)">
详情 详情
</button> </button>
...@@ -139,7 +141,11 @@ ...@@ -139,7 +141,11 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <uni-popup ref="popup" type="top">
正在建设中
</uni-popup> -->
</view> </view>
</template> </template>
<script> <script>
...@@ -159,18 +165,31 @@ ...@@ -159,18 +165,31 @@
export default { export default {
data() { data() {
return { return {
marginHight: '',
activityList: [], activityList: [],
exerciseList: [] exerciseList: [],
url: '/pages_home/tjty_home_page/tjty_home_page'
}; };
}, },
computed: { computed: {
...mapState('m_user', ['userInfo']), ...mapState('m_user', ['userInfo']),
...mapState('m_user', ['token']) ...mapState('m_user', ['token'])
}, },
onPullDownRefresh() {
this.activityList = [],
this.exerciseList = [],
this.login()
uni.stopPullDownRefresh()
},
methods: { methods: {
...mapMutations('m_user', ['updateToken']), ...mapMutations('m_user', ['updateToken']),
...mapMutations('m_user', ['updateUserInfo']), ...mapMutations('m_user', ['updateUserInfo']),
goto() {
uni.showToast({
title: '建设中',
icon: 'none'
})
},
//登录判断 //登录判断
login() { login() {
if (!this.token) { if (!this.token) {
...@@ -232,6 +251,7 @@ ...@@ -232,6 +251,7 @@
}) })
}, },
goActDetil(item) { goActDetil(item) {
// let url = '/pages_activity/activity_detail/activity_detail?activity_id=' + item.activityId
if (!this.token) { if (!this.token) {
console.log("没有token") console.log("没有token")
uni.reLaunch({ uni.reLaunch({
...@@ -251,8 +271,9 @@ ...@@ -251,8 +271,9 @@
} }
} }
}, },
created() { onLoad() {
this.login() this.login()
this.marginHight = uni.getStorageSync('menuInfo').statusBarHeight + 9 + 'px'
} }
} }
</script> </script>
...@@ -267,12 +288,24 @@ ...@@ -267,12 +288,24 @@
height: 212px; height: 212px;
position: relative; position: relative;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden;
.home_title {
z-index: 2;
position: absolute;
font-size: 18px;
font-family: Source Han Sans CN, Source Han Sans CN-Bold;
font-weight: 700;
left: 2%;
bottom: 75%;
}
.headMenu { .headMenu {
z-index: 1; z-index: 1;
position: absolute; position: absolute;
width: 100%; width: 100%;
top: 35%; top: 25%;
} }
} }
...@@ -283,7 +316,7 @@ ...@@ -283,7 +316,7 @@
.headMenu ul { .headMenu ul {
width: 100%; width: 100%;
padding-top: 10rpx; padding-top: 100rpx;
} }
.headMenu ul li { .headMenu ul li {
...@@ -305,13 +338,15 @@ ...@@ -305,13 +338,15 @@
.home_content_body { .home_content_body {
width: 100%; width: 100%;
height: calc(100% - 272px); height: calc(100% - 272px);
overflow: auto; overflow-x: hidden;
overflow-y: hidden;
padding-bottom: 65px;
.home_activity { .home_activity {
margin-top: 30px; margin-top: 30px;
.home_activity_item { .home_activity_item {
margin: 30rpx 30rpx 30rpx 30rpx; margin: 3% 2% 4% 2%;
background: #ffffff; background: #ffffff;
border-radius: 16px; border-radius: 16px;
box-shadow: 0rpx 6rpx 20rpx 0rpx #dddddd; box-shadow: 0rpx 6rpx 20rpx 0rpx #dddddd;
...@@ -324,6 +359,7 @@ ...@@ -324,6 +359,7 @@
border-top-left-radius: 15rpx; border-top-left-radius: 15rpx;
border-top-right-radius: 15rpx; border-top-right-radius: 15rpx;
width: 100%; width: 100%;
height: 165px;
} }
} }
...@@ -344,9 +380,9 @@ ...@@ -344,9 +380,9 @@
box-shadow: 0px 3px 10px 0px #dddddd; box-shadow: 0px 3px 10px 0px #dddddd;
text-align: right; text-align: right;
button { // button {
margin-right: 5%; // margin-right: 2%;
} // }
.ima { .ima {
...@@ -373,8 +409,11 @@ ...@@ -373,8 +409,11 @@
.a-card { .a-card {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 32rpx; font-size: 32rpx;
width: 500rpx; width: 94%;
font-family: Source Han Sans CN, Source Han Sans CN-Bold; font-family: Source Han Sans CN, Source Han Sans CN-Bold;
font-weight: 700; font-weight: 700;
text-align: left; text-align: left;
...@@ -383,11 +422,14 @@ ...@@ -383,11 +422,14 @@
} }
.b-card { .b-card {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
// left: 132px; // left: 132px;
top: 25rpx; top: 25rpx;
width: 152rpx; width: 152rpx;
height: 64rpx; height: 64rpx;
right: 0%; margin-right: 7%;
// height: auto; // height: auto;
text-align: center; text-align: center;
...@@ -396,6 +438,7 @@ ...@@ -396,6 +438,7 @@
line-height: 32px; line-height: 32px;
background: #3b7cde; background: #3b7cde;
border-radius: 16px; border-radius: 16px;
// margin-top: -100rpx; // margin-top: -100rpx;
// margin-right: 100rpx; // margin-right: 100rpx;
} }
...@@ -408,14 +451,15 @@ ...@@ -408,14 +451,15 @@
.line { .line {
width: 100%; width: 100%;
height: 1px; height: 1px;
background: #333333 background: #b6b6b6
} }
width: 100%; width: 100%;
// position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
height: 60px; height: 60px;
background-color: white;
navigator { navigator {
margin-top: 7px; margin-top: 7px;
......
<template> <template>
<view> <view>
<view class="head_bg"> <view class="head_bg">
<view> <view>
<view class="avatar"> <view class="avatar">
<image :src="userInfo.userPortrait"></image> <image :src="userInfo.userPortrait"></image>
...@@ -120,7 +119,7 @@ ...@@ -120,7 +119,7 @@
return { return {
// token: uni.getStorageSync("token"), // token: uni.getStorageSync("token"),
type: 1, type: 1,
url: '/pages_my/my/my' url: '/pages_home/tjty_home_page/tjty_home_page'
} }
}, },
computed: { computed: {
......
// import 'vuex' from vuex
import store from '@/store/store.js' import store from '@/store/store.js'
const url_all = { const url_all = {
......
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