|
|
@@ -21,13 +21,23 @@
|
|
|
<div class="box-item">
|
|
|
<img src="@assets/icon_yaoqing.png" alt="" />
|
|
|
<div class="box-info">
|
|
|
- <div class="text1">邀请互动({{ taskInfo.isInvited ? 1 : 0 }}/1)</div>
|
|
|
+ <div class="text1">好友助力({{ taskInfo.isInvited ? 1 : 0 }}/1)</div>
|
|
|
|
|
|
- <div class="text2">邀请好友完成互动后领1点电量</div>
|
|
|
+ <div class="text2">邀请好友助力可获得1点电量,每天可邀请助力上限1点电量</div>
|
|
|
</div>
|
|
|
<van-button class="not" v-if="taskInfo.isInvited" type="primary" round>已完成</van-button>
|
|
|
<van-button v-else type="primary" round @click="share">邀请</van-button>
|
|
|
</div>
|
|
|
+ <div class="box-item">
|
|
|
+ <img src="@assets/icon_zhuli.png" alt="" />
|
|
|
+ <div class="box-info">
|
|
|
+ <div class="text1">助力邀请({{ helpCount > 2 ? 2 : helpCount }}/2)</div>
|
|
|
+
|
|
|
+ <div class="text2">助力2名好友可获得1点电量,每天上限可获得1点电量</div>
|
|
|
+ </div>
|
|
|
+ <van-button class="not" v-if="helpCount >= 2" type="primary" round>已完成</van-button>
|
|
|
+ <van-button v-else type="primary" round @click="show = false">去助力</van-button>
|
|
|
+ </div>
|
|
|
<div class="box-item">
|
|
|
<img src="@assets/icon_jifen.png" alt="" />
|
|
|
<div class="box-info">
|
|
|
@@ -102,10 +112,15 @@ function sign() {
|
|
|
}
|
|
|
|
|
|
const taskInfo = ref({});
|
|
|
+const helpCount = ref(0);
|
|
|
function getTask() {
|
|
|
http.http.get('/rice/taskInitialization').then(res => {
|
|
|
taskInfo.value = res.map;
|
|
|
});
|
|
|
+ http.http.get('/rice/current').then(res => {
|
|
|
+ // this.info = res.data;
|
|
|
+ helpCount.value = Number(res.data.helpCount);
|
|
|
+ });
|
|
|
}
|
|
|
function init() {
|
|
|
show.value = true;
|