|
|
@@ -48,13 +48,10 @@
|
|
|
<!-- 每天寄售商品购买成功次数 ≤4 次获得1积分,4次以上获得2积分(2积分可兑换1点能量) -->
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <van-button type="primary" class="not" round v-if="taskInfo.exchangeCount" @click="exchange"
|
|
|
- >兑换</van-button
|
|
|
- >
|
|
|
- <van-button type="primary" round v-else-if="taskInfo.isCanExchangeScore" @click="exchange"
|
|
|
+ <van-button type="primary" round v-if="taskInfo.isCanExchangeScore" @click="exchange"
|
|
|
>兑换</van-button
|
|
|
>
|
|
|
+ <van-button type="primary" class="not" round v-else-if="selfScore">兑换</van-button>
|
|
|
<van-button type="primary" round v-else @click="$router.push('/hopeMarket')">去看看</van-button>
|
|
|
</div>
|
|
|
<div class="box-item">
|
|
|
@@ -114,6 +111,7 @@ function sign() {
|
|
|
|
|
|
const taskInfo = ref({});
|
|
|
const helpCount = ref(0);
|
|
|
+const selfScore = ref(0);
|
|
|
function getTask() {
|
|
|
http.http.get('/rice/taskInitialization').then(res => {
|
|
|
taskInfo.value = res.map;
|
|
|
@@ -121,6 +119,7 @@ function getTask() {
|
|
|
http.http.get('/rice/current').then(res => {
|
|
|
// this.info = res.data;
|
|
|
helpCount.value = Number(res.data.helpCount);
|
|
|
+ selfScore.value = Number(res.data.selfScore);
|
|
|
});
|
|
|
}
|
|
|
function init() {
|