diff --git a/api/store.js b/api/store.js index 788beca..feaf32c 100644 --- a/api/store.js +++ b/api/store.js @@ -144,6 +144,20 @@ export function getCartNum() { return request.get("/cart/count"); } + + + +// 最新活动 +export function getActivity(data) { + return request.get("/life/index", data, { + login: true + }); +} + + + + + /* * 添加收藏 * */ diff --git a/components/vSwiper.vue b/components/vSwiper.vue index a350292..c034ebc 100644 --- a/components/vSwiper.vue +++ b/components/vSwiper.vue @@ -5,11 +5,11 @@ - 标题标题标题标题标题 + {{item.title}} 云快讯 - 3小时钱 - 300阅读 + 3小时前 + {{item.visit}}阅读 @@ -92,7 +92,7 @@ margin-bottom: 10rpx; } .content{ - color: #fff; + color: #000; font-size: 26rpx; } .content view{ diff --git a/config/index.js b/config/index.js index 8e1318a..2db8985 100644 --- a/config/index.js +++ b/config/index.js @@ -1,7 +1,7 @@ // 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 = '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.112:8092/api' + export const VUE_APP_API_URL = 'http://192.168.0.111:8092/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 = 'https://thapi.xinxintuan.co/api' diff --git a/pages/activity/detail/index.vue b/pages/activity/detail/index.vue index 999dcb8..f1ed3f6 100644 --- a/pages/activity/detail/index.vue +++ b/pages/activity/detail/index.vue @@ -109,7 +109,7 @@ export default { */ onLoad: function (options) { let erCodeId = uni.getStorageSync('activityId'); - + console.log(options) if (options.id) { this.setData({ activityId: options.id diff --git a/pages/life/articleDetail/index.vue b/pages/life/articleDetail/index.vue index 94bee8c..9fc3342 100644 --- a/pages/life/articleDetail/index.vue +++ b/pages/life/articleDetail/index.vue @@ -2,14 +2,14 @@ @@ -46,4 +46,17 @@ padding-top: 30rpx; margin-bottom: 60rpx; } + .information-box{ + width: 278rpx; + height: 92rpx; + } + .information-box image{ + width: 72rpx; + height: 72rpx; + margin-right: 20rpx; + } + .name{ + width: 180rpx; + height: 40rpx; + } diff --git a/pages/life/index.vue b/pages/life/index.vue index 8efcdd9..cf38de3 100644 --- a/pages/life/index.vue +++ b/pages/life/index.vue @@ -47,38 +47,36 @@ - + - - - 新零售与新营销模式重构和实战升级 + + + {{item.name}} - + - 12-23 00:00至11-25 23:00 + {{item.activityStartTime.split(' ')[0]}}至{{item.activityEndTime.split(' ')[0]}} - 武汉市江夏区文化大道288号斤斤计较经济 + {{item.address}} 进行中 - ¥888.00 + ¥{{item.price}} - + 15人报名 - - 去报名 - + 去报名 @@ -197,7 +195,7 @@