diff --git a/api/system/config.js b/api/system/config.js
index 9cf0643..02b8330 100644
--- a/api/system/config.js
+++ b/api/system/config.js
@@ -344,4 +344,14 @@ export function getAddressList(params) {
'method': 'get',
params
})
+}
+
+/**
+ * 获取未参加任务
+ */
+export function getJoinNum() {
+ return request({
+ 'url': '/api/front/task/join/num',
+ 'method': 'get'
+ })
}
\ No newline at end of file
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 2484612..2e8fe63 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -33,7 +33,8 @@
本月预估收益
-
+
我的收益
@@ -55,6 +56,7 @@
+ {{subscriptNum}}
{{item.title}}
@@ -133,9 +135,12 @@
mapGetters
} from 'vuex'
import {
- brannerList
+ brannerList,
+ getJoinNum
} from '@/api/system/config'
- import {getLocationFn} from "@/utils/index.js"
+ import {
+ getLocationFn
+ } from "@/utils/index.js"
export default {
computed: {
...mapGetters(['citySave'])
@@ -156,6 +161,8 @@
name: '玩转滴友',
type: 2
}],
+ //角标数
+ subscriptNum: 0
};
},
methods: {
@@ -224,16 +231,23 @@
this.brannerList = res.data.list
})
},
+ //获取未参加任务
+ getJoinNumFn() {
+ getJoinNum().then(res => {
+ this.subscriptNum = res.data
+ console.log(res);
+ })
+ },
// 点击轮播图
brannerClick(e) {
- if (this.brannerList[e].linkType == 0 || this.brannerList[e].linkType == 2 ||
- this.brannerList[e].linkType == 3) {
+ if (this.brannerList[e].linkType == 0 || this.brannerList[e].linkType == 2 ||
+ this.brannerList[e].linkType == 3) {
let linkObj = this.brannerList[e].minLinkUrl
uni.navigateTo({
url: linkObj
})
- }else if(this.brannerList[e].linkType == 1){
- let linkObj = this.brannerList[e].minLinkUrl
+ } else if (this.brannerList[e].linkType == 1) {
+ let linkObj = this.brannerList[e].minLinkUrl
uni.navigateTo({
url: `/pagesA/rebate/rebate_web?contract=${linkObj}`
})
@@ -258,10 +272,13 @@
}
},
onLoad() {
+ //获取角标数
+ this.getJoinNumFn()
+ //获取轮播图
this.getBrannerList()
//获取社区分类
this.categoryTypeListFn()
-
+
//获取当前位置
getLocationFn()
},
@@ -364,6 +381,21 @@
.function-list-cont {
width: 170rpx;
margin-bottom: 34rpx;
+ position: relative;
+
+ .subscript {
+ min-width: 32rpx;
+ height: 32rpx;
+ line-height: 32rpx;
+ position: absolute;
+ top: -16rpx;
+ right: 32rpx;
+ padding: 4rpx;
+ background-color: red;
+ border-radius: 15px;
+ color: #ffffff;
+ z-index: 999;
+ }
}
}
@@ -384,8 +416,8 @@
position: relative;
top: 0rpx;
width: 750rpx;
-
-
+
+
.brand-name {
height: 68rpx;
max-width: 180rpx;
diff --git a/pages/mine/my_activity/detail.vue b/pages/mine/my_activity/detail.vue
index ff3959b..f4e3470 100644
--- a/pages/mine/my_activity/detail.vue
+++ b/pages/mine/my_activity/detail.vue
@@ -52,7 +52,7 @@
{{ detail.stopTime }}
-
+
@@ -62,12 +62,15 @@
- 继续邀请
{{detail.title}}
{{detail.name}}
{{detail.title}}
+ 助力完成
+
@@ -358,7 +361,13 @@
// this.content=res.data.content
// this.joinNum=res.data.joinNum
})
- }
+ },
+ //我的活动
+ navActivity(){
+ uni.navigateTo({
+ url:'/pages/mine/my_activity/my_activity'
+ })
+ },
},
onLoad(option) {
this.id = option.id
diff --git a/pages/serve/coupons/coupons.vue b/pages/serve/coupons/coupons.vue
index b43fa1b..7ae7f26 100644
--- a/pages/serve/coupons/coupons.vue
+++ b/pages/serve/coupons/coupons.vue
@@ -1,16 +1,17 @@
-
+
-
+
{{selectCity||'杭州'}}
-
+
-
+
-
+
+ v-for="(item,index) in tabsList8" @click="tabClick(item)">
{{item.name}}
-
+
-
+
@@ -45,25 +47,33 @@