kk_888 3 years ago
parent
commit
11f6d28b18
  1. 2
      components/CitySelect.vue
  2. 3
      components/CouponWindow.vue
  3. 2
      components/Footer.vue
  4. 4
      config/index.js
  5. 6
      pages.json
  6. 3
      pages/activity/detail/index.vue
  7. 1
      pages/demandHall/companyDetail/index.vue
  8. 11
      pages/life/articleDetail/index.vue
  9. 12
      pages/life/index.vue
  10. 185
      pages/life/yunInfo/index.vue
  11. BIN
      static/images/newInfo.png

2
components/CitySelect.vue

@ -145,7 +145,7 @@ export default {
}, },
selectProvince(index) { selectProvince(index) {
this.provinceActive = this.province[index]; this.provinceActive = this.province[index];
this.city = this.province[index].c; this.city = this.province[index ].c;
this.current = 1; this.current = 1;
}, },
selectCity(index) { selectCity(index) {

3
components/CouponWindow.vue

@ -32,8 +32,7 @@
import {handleLoginFailure} from "@/utils"; import {handleLoginFailure} from "@/utils";
import { import {
couponReceiveBatch couponReceiveBatch
} from "@/api/user"; } from "@/api/user",
export default { export default {
name: "CouponWindow", name: "CouponWindow",
props: { props: {

2
components/Footer.vue

@ -1,7 +1,7 @@
<template> <template>
<view> <view>
<view class="footer-bg"></view> <view class="footer-bg"></view>
<view id="footer" :class="[isIpx ? 'iphonex-footer' : '', 'acea-row row-middle'] "> <view id="footer" :class="[isIpx ? ' ' : '', 'acea-row row-middle'] ">
<view <view
class="item" class="item"
:class="{ on: footerIndex == tabtarIndex }" :class="{ on: footerIndex == tabtarIndex }"

4
config/index.js

@ -1,7 +1,9 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api' // export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
// export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api' // export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api'
export const VUE_APP_API_URL = 'http://192.168.0.111:8092/api' // export const VUE_APP_API_URL = 'http://192.168.0.111:8092/api'
export const VUE_APP_API_URL = 'http://10.11.32.109:8092/api'
// export const VUE_APP_API_URL = 'http://10.11.32.107:8092/api'
// export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api' // export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api' // export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'

6
pages.json

@ -297,6 +297,12 @@
"navigationBarTitleText": "资讯详情" "navigationBarTitleText": "资讯详情"
} }
}, },
{
"path": "pages/life/yunInfo/index",
"style": {
"navigationBarTitleText": "云资讯"
}
},
{ {
"path": "pages/activity/index", "path": "pages/activity/index",
"style": { "style": {

3
pages/activity/detail/index.vue

@ -81,7 +81,6 @@
</view> </view>
</view> </view>
</template> </template>
<script> <script>
// pages/activity/detail/index.js // pages/activity/detail/index.js
const app = getApp(); const app = getApp();
@ -198,7 +197,7 @@ export default {
}); });
}, },
shareClick() { shareClic() {
uni.showShareMenu({ uni.showShareMenu({
withShareTicket: true, withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline'] menus: ['shareAppMessage', 'shareTimeline']

1
pages/demandHall/companyDetail/index.vue

@ -169,6 +169,7 @@
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>

11
pages/life/articleDetail/index.vue

@ -2,12 +2,15 @@
<template> <template>
<view class="article-box"> <view class="article-box">
<view class="headline">楚牛电商一季度卖了300亿原因竟是这</view> <view class="headline">楚牛电商一季度卖了300亿原因竟是这</view>
<view class="information-box acea-row"> <view class="information-box ">
<image src="../../../static/images/cart.png" mode=""></image> <image src="../../../static/images/cart.png" mode=""></image>
<view class="acea-row">
<view class="name">云快讯</view> <view class="name">云快讯</view>
<view class="">203 </view> <view class="">203 </view>
<view>3小时前</view> <view>3小时前</view>
</view> </view>
</view>
<!-- <view class="statement">转载声明本文由云快讯收录观点仅代表作者本人不代表云快讯立场云快讯不对所包含的准确性可靠性或完整性提供任何明示请自行承担任何责任</view> <!-- <view class="statement">转载声明本文由云快讯收录观点仅代表作者本人不代表云快讯立场云快讯不对所包含的准确性可靠性或完整性提供任何明示请自行承担任何责任</view>
<image src="../../../static/images/gd1.png" mode="" class="article-bg1"></image> --> <image src="../../../static/images/gd1.png" mode="" class="article-bg1"></image> -->
</view> </view>
@ -48,7 +51,7 @@
} }
.information-box{ .information-box{
width: 278rpx; width: 278rpx;
height: 92rpx; height: 72rpx;
} }
.information-box image{ .information-box image{
width: 72rpx; width: 72rpx;
@ -56,7 +59,7 @@
margin-right: 20rpx; margin-right: 20rpx;
} }
.name{ .name{
width: 180rpx; // width: 180rpx;
height: 40rpx; // height: 40rpx;
} }
</style> </style>

12
pages/life/index.vue

@ -53,7 +53,7 @@
<view class="slide-left" v-for="(item,index) in activity" :key="index" @tap="toActiveDetail" :data-id="item.id"> <view class="slide-left" v-for="(item,index) in activity" :key="index" @tap="toActiveDetail" :data-id="item.id">
<view class="act-title">{{item.name}}</view> <view class="act-title">{{item.name}}</view>
<view class="resource-list acea-row-nowrap"> <view class="resource-list acea-row-nowrap">
<image :src="item.images" class="act-img"></image> <image :src="item.images" class="act-img" mode="aspectFill"></image>
<view> <view>
<view class="act-time acea-row row-left"> <view class="act-time acea-row row-left">
<image src="../../static/images/act-time.png" mode=""></image> <image src="../../static/images/act-time.png" mode=""></image>
@ -81,7 +81,7 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<!-- 为您推荐 --> <!-- 推荐供需 -->
<view class="rec-box"> <view class="rec-box">
<view class="headline"><image src="../../static/images/rec-headline.png" mode=""></image></view> <view class="headline"><image src="../../static/images/rec-headline.png" mode=""></image></view>
<view class="rec-switch"> <view class="rec-switch">
@ -596,14 +596,14 @@ export default {
// //
.rec-box{ .rec-box{
width: 706rpx; width: 100%;
height: 493rpx; height: 493rpx;
margin: 32rpx 22rpx 8rpx 22rpx; margin: 32rpx 40rpx 8rpx 40rpx;
position: relative; position: relative;
} }
.rec-switch{ .rec-switch{
width: 706rpx; width: 670rpx;
height: 423rpx; height: 423rpx;
margin-top: 18rpx; margin-top: 18rpx;
background: #FFFFFF; background: #FFFFFF;
@ -612,7 +612,7 @@ export default {
overflow: hidden; overflow: hidden;
} }
.rec-bg{ .rec-bg{
width: 706rpx; width: 670rpx;
height: 423rpx; height: 423rpx;
} }
.rec-title{ .rec-title{

185
pages/life/yunInfo/index.vue

@ -0,0 +1,185 @@
<template>
<view class="information-box">
<view class="search-box acea-row row-middle" >
<image src="../../../static/images/act-address.png" mode=""></image>
<input type="text" value="" placeholder="请输入相关关键词"/>
<view class="search acea-row row-center-wrapper">搜一下</view>
</view>
<view class="vote-box">
<view class="news">
<view class="news-title-h">武汉12月底双层公交车将全面下线</view>
<view class="news-title-s">趁着有时间和你爱的人再去回味一下,那你认为有下线的必要吗</view>
</view>
<view class="vote">
</view>
</view>
<scroll-view class="scroll-view_H" scroll-x="true">
<view class="rotaion acea-row row-center" >
<image src="../../../static/images/collect.png" mode=""></image>
<view class="rotaion-h">今日大事</view>
<view class="rotaion-s">每日热点资讯</view>
</view>
</scroll-view>
<!-- 最新资讯 -->
<view class="newInfo-box">
<image src="../../../static/images/newInfo.png" mode=""></image>
<view class="newInfo">
<view class="modular acea-row">
<view class="acea-row title" >1
<!-- <view class="modular-h">海鸥出行将大巴车市场带入平台化阶段提高包车出行效率</view>
<view class="title-l acea-row row-column-between">
<view>yun</view>
<view>yun</view>
<view>yun</view>
</view> -->
</view>
<view><image src="../../../static/images/gd2.png" mode="" ></image></view>
</view>
</view>
</view>
</view>
</template>
<script>
</script>
<style>
.information-box{
width: 100%;
height: 100vh;
position: relative;
}
.search-box{
width: 670rpx;
height: 68rpx;
border: 2rpx solid #FF5100;
border-radius: 8rpx;
margin: 52rpx auto;
font-size: 28rpx;
position: relative;
}
.search-box image{
width: 35rpx;
height: 35rpx;
margin: 0 29rpx 0 52rpx;
}
.search{
position: absolute;
right: 0;
width: 132rpx;
height: 68rpx;
background: linear-gradient(39deg, #FF5100 0%, #FFA074 100%);
border-radius: 8rpx;
color: #fff;
}
.vote-box{
width: 670rpx;
height: 358rpx;
background: #FFFFFF;
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16);
border-radius: 16rpx;
margin: 0 auto;
position: relative;
}
.news{
width: 100%;
height: 248rpx;
background: #D2D2D2;
border-radius: 16rpx 16rpx 0 0;
color: #FFF;
position: absolute;
padding-left: 42rpx;
}
.news-title-h{
font-size: 28rpx;
position: absolute;
bottom: 54rpx;
}
.news-title-s{
font-size: 20rpx;
position: absolute;
bottom: 18rpx;
}
.vote{
width: 100%;
height: 110rpx;
position: absolute;
bottom: 0;
border: 1rpx solid #000000;
}
.scroll-view_H{
width: 100%;
height: 208rpx;
margin: 40rpx 0 0 40rpx;
}
.rotaion{
width: 168rpx;
height: 208rpx;
padding-top: 32rpx;
background: #FFFFFF;
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16);
border-radius: 16rpx;
margin-right: 32rpx;
}
.rotaion image{
width: 80rpx;
height: 80rpx;
background: #FF6D2A;
border-radius: 50%;
}
.rotaion-h{
height: 34rpx;
font-size: 24rpx;
color: #333333;
}
.rotaion-s{
height: 26rpx;
font-size: 18rpx;
color: #9D9D9D;
}
/* 最新资讯 */
.newInfo-box{
margin: 44rpx 0 32rpx 0;
}
.newInfo-box image{
width: 160rpx;
height: 52rpx;
margin: 0 0 18rpx 38rpx;
}
.newInfo{
width: 100%;
height: 528rpx;
border-top: 2rpx solid #EFEFEF;
}
.modular{
width: 100%;
height: 176rpx;
border-bottom: 2rpx solid #EFEFEF;
padding: 20rpx 40rpx 22rpx 40rpx;
}
.modular-h{
width: 392rpx;
height: 80rpx;
font-size: 28rpx;
color: #4A4A4A;
}
.modular image{
width: 204rpx;
height: 134rpx;
border: 1rpx solid #212226;
}
.title{
width: 392rpx;
height: 134rpx;
border: 1rpx solid #212226;
}
.title-l{
width: 278rpx;
height: 34rpx;
font-size: 24rpx;
}
</style>

BIN
static/images/newInfo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Loading…
Cancel
Save