andy 1 년 전
부모
커밋
1a3803d723
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      pages/task/index.vue

+ 10 - 1
pages/task/index.vue

@@ -20,6 +20,9 @@
         'padding-bottom': '160rpx',
       }"
     >
+      <div class="flex items-center pl-2">
+        <img @click="goBack" src="https://file.rongcyl.cn/festatic/bkm/back.png" style="height: 32px; width: 32px" />
+      </div>
       <div class="card rounded-md shadow-sm mx-auto mt-10 py-2">
         <div class="fs16 bold italic text-gray-900 pl-3 my-2">签到赚积分</div>
         <div class="flex justify-between text-black px-3">
@@ -107,6 +110,11 @@ export default {
     this.getTaskStat()
   },
   methods: {
+    goBack() {
+      wx.navigateBack({
+        delta: 1,
+      })
+    },
     reveiveTaskReward() {
       if (this.status == 2) {
         return
@@ -158,7 +166,8 @@ export default {
       })
     },
     sign(i) {
-      if (i == this.todayIndex) {
+      console.log(this.signList[i].status)
+      if (i == this.todayIndex && !this.signList[i].status) {
         signToday().then(this.getList)
         wx.showToast({
           title: '签到成功',