diff --git a/pages.json b/pages.json
index 9934217..a8638aa 100644
--- a/pages.json
+++ b/pages.json
@@ -939,7 +939,7 @@
{
"path": "newsshop",
"style": {
- "navigationBarTitleText": "新年换新",
+ "navigationBarTitleText": "活动",
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
diff --git a/pages/activity/charts.vue b/pages/activity/charts.vue
index 8a6de3f..bf12027 100644
--- a/pages/activity/charts.vue
+++ b/pages/activity/charts.vue
@@ -293,12 +293,12 @@
.rule {
width: 130rpx;
- height: 50rpx;
+ height: 60rpx;
background-color: rgba(0, 0, 0, 0.3);
font-size: 24rpx;
font-weight: 400;
color: #FFFFFF;
- line-height: 50rpx;
+ line-height: 60rpx;
text-align: center;
position: absolute;
right: 0;
@@ -309,16 +309,16 @@
.all {
width: 130rpx;
- height: 50rpx;
+ height: 60rpx;
background-color: rgba(0, 0, 0, 0.3);
font-size: 24rpx;
font-weight: 400;
color: #FFFFFF;
- line-height: 50rpx;
+ line-height: 60rpx;
text-align: center;
position: absolute;
right: 0;
- top: 120rpx;
+ top: 160rpx;
border-radius: 50rpx 0 0 50rpx;
z-index: 22;
}
diff --git a/pages/activity/intimate.vue b/pages/activity/intimate.vue
index c0598be..3ca3c8a 100644
--- a/pages/activity/intimate.vue
+++ b/pages/activity/intimate.vue
@@ -5,7 +5,9 @@
- {{storeInfo.shop_name}}
+ {{storeInfo.shop_name}}
+
+
{{storeInfo.summary}}
-
- 可返现{{info.one_order_rate}}%
+
+ 可返现3-5%
+
-
- {{info.one_order_rate}}元{{info.coupon_name}}
+
+ 新人首单礼
+
-
- {{info.one_order_rate}}元{{info.coupon_name}}
+
+ 优惠券
+
-
- {{info.integral}}积分
+
+ 积分
+
-
- 首单返{{info.one_order_rate}}%
+
+ 长期返现
+
diff --git a/pages/news/coupon/index.vue b/pages/news/coupon/index.vue
index 795a7ab..af794e9 100644
--- a/pages/news/coupon/index.vue
+++ b/pages/news/coupon/index.vue
@@ -1,5 +1,6 @@
+
@@ -65,6 +66,11 @@
}
},
+ openPage() {
+ uni.navigateTo({
+ url: '/pages/activity/presaleRule?type=6'
+ })
+ },
openPage() {
uni.navigateTo({
url: "/pages/news/coupon/list"
@@ -99,6 +105,22 @@
overflow: hidden;
min-height: 100vh;
+ .rule {
+ right: 0;
+ top: 74rpx;
+ z-index: 999;
+ width: 100rpx;
+ height: 60rpx;
+ background-color: rgba(0, 0, 0, 0.3);
+ font-size: 24rpx;
+ font-weight: 400;
+ color: #FFFFFF;
+ line-height: 60rpx;
+ text-align: center;
+ position: absolute;
+ border-radius: 50rpx 0 0 50rpx;
+ }
+
.nolist {
width: 100%;
display: block;
diff --git a/pages/news/coupon/list.vue b/pages/news/coupon/list.vue
index 929e264..421d1b6 100644
--- a/pages/news/coupon/list.vue
+++ b/pages/news/coupon/list.vue
@@ -5,7 +5,8 @@
:is-scroll="false" v-model="tabIndex" @change="change">
-
+
¥{{item.reduce_price}}
{{item.discount}}折
有效期:{{item.end_time}}
@@ -15,8 +16,8 @@
去使用
满{{item.min_price}}元使用
- 满{{item.min_price}}元减{{item.reduce_price}}元
- 满{{item.min_price}}元{{item.discount}}折
+ 满{{item.min_price}}元减{{item.reduce_price}}元
+ 满{{item.min_price}}元{{item.discount}}折
@@ -39,56 +40,62 @@
export default {
data() {
return {
- choseId:'',
+ choseId: '',
list: [{
name: '未使用',
- val:'isUsable'
+ val: 'isUsable'
}, {
name: '已使用',
- val:'isUse'
+ val: 'isUse'
}, {
name: '已过期',
- val:'isExpire'
+ val: 'isExpire'
}],
tabIndex: 0,
- couponList:[],
- isChose:false
+ couponList: [],
+ isChose: false
}
},
- onLoad(o){
+ onLoad(o) {
this.isChose = o.chose
},
onShow() {
this.getCoupon(this.tabIndex)
},
methods: {
- choseItem(item){
- if(this.isChose){
- uni.setStorageSync('couponId',item.coupon_id)
+ choseItem(item) {
+ if (this.isChose) {
+ uni.setStorageSync('couponId', item.coupon_id)
uni.navigateBack()
}
},
getCoupon(e) {
const that = this
- let param={
- dataType:that.list[e].val
+ let param = {
+ dataType: that.list[e].val
}
CouponApi.myCouponList(param)
.then(res => {
+ if (res.data.list.data.length > 0) {
+ res.data.list.data.forEach(item => {
+ item.min_price = Number(item.min_price);
+ item.reduce_price = Number(item.reduce_price);
+ });
+ }
that.couponList = res.data.list.data
})
.finally(() => that.isLoading = false)
},
change(e) {
- this.couponList=[]
+ this.couponList = []
this.getCoupon(e)
},
tabItem(index) {
this.tabIndex = index
},
- goUse(item){
+ goUse(item) {
// 使用优惠券
- if(item.coupon_case==10){
+ if (item.coupon_case == 10) {
// 调到商品列表
uni.switchTab({
url: "/pages/index/index"
@@ -241,4 +248,4 @@
}
}
}
-
\ No newline at end of file
+