123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <template>
- <view class="management">
- <navbar ref="navbar" :config="config"></navbar>
- <view class="content" v-if="dataList.length>0">
- <view class="modify" v-for="item in dataList" :key="item.id" @click="goDetail(item)">
- <view class="password">
- {{item.title}}
- </view>
- <view class="modif-name">
- <text class="iconfont"></text>
- </view>
- </view>
- </view>
- <nodata v-else :config="{ top: 1, content: '暂无数据~' }"></nodata>
- <view class="footer">
- <view class="u-font24">
- Copyright@2021-2030 </view>
- <view class="u-font24">绿马松河生活平台公益平台 版权所有
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- config: {
- back: true, //false是tolbar页面 是则不写
- title: '关于松河生活平台',
- color: '#1A1A1A',
- //背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)
- backgroundColor: [1, "#FFFFFF"],
- statusBarFontColor: '#1A1A1A',
- },
- dataList: []
- }
- },
- onShow() {
- this.getList()
- },
- methods: {
- goDetail(item) {
- uni.navigateTo({
- url: 'about-us-detail?id=' + item.id
- });
- },
- getList() {
- this.$http
- .get(
- `/about/us/list`
- )
- .then((res) => {
- if (res && res.code == 200) {
- this.dataList = res.list
- }
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .footer {
- margin-top: 500rpx;
- text-align: center;
- position: fixed;
- bottom: 0rpx;
- padding-bottom: 20rpx;
- background: #fff;
- width: 100%;
- }
- .management {
- position: relative;
- }
- .sign {
- display: flex;
- justify-content: center;
- .sign-out {
- margin-top: 550rpx;
- font-size: 36rpx;
- color: #DCCDA4;
- font-weight: 400;
- padding: 18rpx 272rpx;
- background-color: #0B844A;
- border-radius: 43rpx;
- }
- }
- .address {
- padding: 0 30rpx;
- .item {
- display: flex;
- justify-content: space-between;
- border-bottom: 1rpx solid #E6E6E6;
- padding-bottom: 30rpx;
- padding-top: 23rpx;
- font-size: 28rpx;
- color: #1A1A1A;
- font-weight: 400;
- }
- }
- .content {
- padding: 0 30rpx;
- padding-bottom: 160rpx;
- .modify {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 22rpx;
- padding-bottom: 30rpx;
- border-bottom: 1rpx solid #E6E6E6;
- .password {
- font-size: 28rpx;
- color: #1A1A1A;
- font-weight: 400;
- }
- .modif-name {
- font-size: 28rpx;
- font-weight: 400;
- color: #1A1A1A;
- .iconfont {
- margin-left: 14rpx;
- }
- }
- }
- }
- .distance {
- height: 10rpx;
- background-color: #F5F5F5;
- }
- .top {
- display: flex;
- align-items: center;
- padding: 0 30rpx;
- margin: 45rpx 0 40rpx 0;
- .image {
- image {
- width: 100rpx;
- height: 100rpx;
- border-radius: 50%;
- }
- }
- .name-and-num {
- margin-left: 18rpx;
- flex: 1;
- .name {
- font-size: 28rpx;
- color: #1A1A1A;
- font-weight: 400;
- }
- .num {
- font-size: 24rpx;
- color: #999999;
- font-weight: 500;
- }
- }
- }
- </style>
|