Commit 389d73f7 authored by LiZongLin's avatar LiZongLin

配置文件修改

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