Enzo 4 years ago
parent
commit
964dcfeecd
  1. 24
      pages/business/center/center.vue
  2. 2
      pages/index/index/index.vue
  3. 2
      uview-ui/components/u-column-notice/u-column-notice.vue

24
pages/business/center/center.vue

@ -22,8 +22,9 @@
</view>
</view>
</view>
<view class="notice" v-if="detail.notice.length">
<u-notice-bar mode="vertical" type="none" :list="detail.notice"></u-notice-bar>
<view class="notice">
<!-- <u-notice-bar mode="vertical" type="none" :volume-icon="false" :list="detail.notice"></u-notice-bar> -->
<u-notice-bar type="none" :volume-icon="false" mode="vertical" :list="detail.notice"></u-notice-bar>
</view>
<view class="card">
<view class="lf-row-between">
@ -146,7 +147,8 @@
}).then(res => {
console.log("getStoreCenter", res);
if(res.data.code == 200){
this.detail = res.data.data;
let detail = res.data.data;
this.detail = detail;
}else{
this.$msg('您的状态异常,请重新登录').then(() => {
this.$url('/pages/business/login/login', {type: 'redirect'});
@ -204,7 +206,11 @@
token: this.token
}
}).then(res => {
this.$msg(res.data.message || '核销失败');
uni.showModal({
title: '',
content: res.data.message || '核销失败',
showCancel: false
})
})
},
//
@ -218,7 +224,11 @@
token: this.token
}
}).then(res => {
this.$msg(res.data.message || '自提核销成功');
uni.showModal({
title: '',
content: res.data.message || '自提核销成功',
showCancel: false
})
})
},
// 退
@ -311,14 +321,14 @@
.notice{
width: 686rpx;
height: 100rpx;
// height: 100rpx;
background: #FFFFFF;
box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
border-radius: 20rpx;
margin: -50rpx auto 0;
position: relative;
z-index: 9;
padding: 16rpx 4rpx 0;
padding: 16rpx 4rpx;
box-sizing: border-box;
}

2
pages/index/index/index.vue

@ -44,7 +44,7 @@
<lf-seckill :list="item.value" :title="item.title"></lf-seckill>
</view>
<!-- 广告活动模块根据旧版魔方修改,三张图 -->
<view v-if="item.name == 'micro_page_componet_cube' && item.value && item.value.length && item.type == '3_2'">
<view v-if="item.name == 'micro_page_componet_cube' && item.value && item.value.length && (item.type == '3_1' || item.type == '3_2' || item.type == '3_3')">
<lf-multi-column-ad :cube-data="item.value"></lf-multi-column-ad>
</view>
<!-- 首页发现推荐模块 -->

2
uview-ui/components/u-column-notice/u-column-notice.vue

@ -14,7 +14,7 @@
<swiper-item v-for="(item, index) in list" :key="index" class="u-swiper-item">
<view class="u-news-item u-line-1" :style="[textStyle]" @tap="click(index,item)"
:class="['u-type-' + type]">
{{ item.associate.title }}
{{ item.associate.title || item }}
</view>
</swiper-item>
</swiper>

Loading…
Cancel
Save