xtz %!s(int64=4) %!d(string=hai) anos
pai
achega
83765d7276

+ 20 - 7
api/api.js

@@ -9,11 +9,10 @@ const resolver = function(cb) {
       console.log(r)
       if (r.state != 100) {
         return wx.showToast({
-          icon: 'loading',
-          title: r.message
+          icon: 'none',
+          title: r.msg
         })
       }
-      // console.log('api done:', r.data)
       cb && cb(r)
     },
     fail(e) {
@@ -130,12 +129,26 @@ module.exports = {
     loadMyinformation(d,cb) {
       post('/user/queryUserById',d).then(resolver(cb).done).catch(resolver(cb).fail)
     },
-    loadEditMyinformation(d, cb) {
-      post('small/userinfo_modify', d).then(resolver(cb).done).catch(resolver(cb).fail)
+    updateUser(d,cb) {
+      post('/user/updateUser',d).then(resolver(cb).done).catch(resolver(cb).fail)
     },
-    loadReg(d, cb) {
-      post('small/userinfo_reg', d).then(resolver(cb).done).catch(resolver(cb).fail)
+    queryAllArea(d,cb) {
+      post('/user/queryAllArea',d).then(resolver(cb).done).catch(resolver(cb).fail)
     },
+    querySchoolByAreaId(d,cb) {
+      post('/user/querySchoolByAreaId',d).then(resolver(cb).done).catch(resolver(cb).fail)
+    },
+  },
+  answer: {
+    attendContest(d, cb) {
+      post('/mCompetition/attendContest', d).then(resolver(cb).done).catch(resolver(cb).fail)
+    },
+    getLeaderBoard(d, cb) {
+      post('/mCompetition/getLeaderBoard', d).then(resolver(cb).done).catch(resolver(cb).fail)
+    },
+    submitUserAnswer(d, cb) {
+      post('/mCompetition/submitUserAnswer', d).then(resolver(cb).done).catch(resolver(cb).fail)
+    }
   }
 
 }

+ 96 - 5
pages/contest/answer/answer.js

@@ -1,4 +1,8 @@
 // pages/contest/answer/answer.js
+import {
+  answer
+} from '../../../api/api.js'
+let timer
 Page({
 
   /**
@@ -6,12 +10,30 @@ Page({
    */
   data: {
     pagination: {
-      page: 2,
+      page: 1,
       rows: 10
     },
     show: false,
     pattern: false,
-    isupdate: false
+    isupdate: false,
+    paperId: '',
+    paperScore: 0,
+    questionWrong: '',
+    questionList: [],
+    questionTotal: [],
+    chooseList: [],
+    time: 0
+  },
+
+  attendContest () {
+    answer.attendContest({reqdata:{}},r => {
+      let {paperId,questions} = r.object
+      this.setData({
+        paperId,
+        questionTotal: questions,
+        questionList: questions.filter((item,index)=>index<10)
+      })
+    })
   },
 
   showToggle(e) {
@@ -20,9 +42,73 @@ Page({
     })
   },
 
+  patternToggle (e) {
+    this.setData({
+      pattern: !this.data.pattern
+    })
+    this.showToggle()
+    this.bindNavTagger({currentTarget:{dataset:{index:1}}})
+  },
+
+  updateTagger (e) {
+    this.setData({
+      pattern: false,
+      isupdate: true
+    })
+    this.bindNavTagger({currentTarget:{dataset:{index:1}}})
+  },
+
   bindNavTagger(e) {
+    let i = e.currentTarget.dataset.index
     this.setData({
-      ['pagination.page']: e.currentTarget.dataset.index-0
+      ['pagination.page']: i-0
+    },()=>{
+      if (wx.pageScrollTo) {
+        wx.pageScrollTo({
+          scrollTop: 0
+        })
+      } else {
+        wx.showModal({
+          title: '提示',
+          content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
+        })
+      }
+      this.setData({
+        questionList: this.data.questionTotal.filter((item,index)=>index>=(i-1)*10&&index<i*10)
+      })
+    })
+  },
+
+  clickChoose (e) {
+    let {questionindex,index} = e.currentTarget.dataset
+    let {chooseList} = this.data
+    chooseList[questionindex] = index
+    this.setData({
+      chooseList
+    }, () => {
+      console.log(chooseList);
+    })
+  },
+
+  clickConfim (e) {
+    let {paperId,chooseList,questionTotal,time} = this.data
+    let paperScore = 0
+    let questionWrong  = []
+    questionTotal.forEach((item,index) => {
+      (chooseList[index]||chooseList[index]==0)&&item.options[chooseList[index]].optionAnswer
+      ? paperScore += 2
+      : questionWrong.push({[item.id]: (chooseList[index]||chooseList[index]==0)?item.options[chooseList[index]].optionId:''})
+    })
+    answer.submitUserAnswer({reqdata:{
+      paperId,
+      userId: wx.getStorageSync('id'),
+      questionWrong: JSON.stringify(questionWrong),
+      paperScore,
+      paperDuration:time
+    }},r => {
+      wx.navigateTo({
+        url: `/pages/contest/score/score?rank=${r.object}&score=${paperScore}`,
+      })
     })
   },
 
@@ -30,7 +116,12 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-
+    this.attendContest()
+    timer = setInterval(() => {
+      this.setData({
+        time: ++this.data.time
+      })
+    }, 1000)
   },
 
   /**
@@ -58,7 +149,7 @@ Page({
    * 生命周期函数--监听页面卸载
    */
   onUnload: function () {
-
+    clearInterval(timer)
   },
 
   /**

+ 10 - 17
pages/contest/answer/answer.wxml

@@ -18,23 +18,19 @@
   </view>
   <view class="content">
     <view class="content-title">2022年冬奥会知识竞赛</view>
-    <view class="content-item">
+    <view class="content-item" wx:for="{{questionList}}" wx:key="index">
       <view class="problem">
         <view class="problem-num">
           <image mode="widthFix" class="problem-icon" src="../../../imgs/contest/answer/icon.png"></image>
-          <view class="problem-index">1</view>
+          <view class="problem-index">{{(pagination.page-1)*10+index+1}}</view>
         </view>
-        <view class="problem-text">现代奥林匹克圣火传递起于哪一年?</view>
+        <view class="problem-text">{{item.topic}}</view>
       </view>
       <view class="problem-key-list">
-        <view class="{{pattern?'':'active'}} border">A. 1936年</view>
-        <view class="border">A. 1936年</view>
-        <view class="">A. 1936年</view>
-        <view class="">A. 1936年</view>
+        <view class="border {{pattern?'pattern':''}} {{chooseList[(pagination.page-1)*10+index]==num?'active':''}}" bindtap="{{pattern?'':'clickChoose'}}" data-index="{{num}}" data-questionIndex="{{(pagination.page-1)*10+index}}" wx:for="{{item.options}}" wx:for-item="i" wx:for-index="num">{{['A','B','C','D'][num]}}. {{i.optionContent}}</view>
       </view>
-      <view class="bd-b"></view>
     </view>
-    <view class="content-item">
+    <!-- <view class="content-item">
       <view class="problem">
         <view class="problem-num">
           <image mode="widthFix" class="problem-icon" src="../../../imgs/contest/answer/icon.png"></image>
@@ -45,20 +41,17 @@
       <view class="problem-key-list">
         <view class="active-R">A. 1936年</view>
         <view class="">A. 1936年</view>
-        <view class="">A. 1936年</view>
-        <view class="">A. 1936年</view>
       </view>
-      <view class="bd-b" wx:if="{{pattern}}"></view>
-    </view>
+    </view> -->
   </view>
   <!-- <view class="arrow-group" wx:if="{{!pattern}}">
     <image class="" mode="widthFix" src="../../../imgs/contest/answer/left{{pagination.page==1?'':'-active'}}.png" bindtap="{{pagination.page==1?'':'bindNavTagger'}}" data-index="{{pagination.page-1}}"></image>
     <image class="" mode="widthFix" src="../../../imgs/contest/answer/right{{pagination.page==5?'':'-active'}}.png" bindtap="{{pagination.page==5?'':'bindNavTagger'}}" data-index="{{pagination.page+1}}"></image>
   </view> -->
-  <view class="next-one" style="background-image: url('../../../imgs/contest/answer/confim-button-bg.png');" data-index="2" bindtap="{{isupdate?'提交':'bindNavTagger'}}" wx:if="{{pagination.page==1||isupdate}}">{{isupdate?'提交':'下一页'}}</view>
+  <view class="next-one" style="background-image: url('../../../imgs/contest/answer/confim-button-bg.png');" data-index="2" bindtap="{{isupdate?'showToggle':'bindNavTagger'}}" wx:if="{{!pattern&&pagination.page==1||isupdate}}">{{isupdate?'提交':'下一页'}}</view>
   <view class="button-group-R" wx:else>
-    <view class="back" bindtap="{{pattern?'':'bindNavTagger'}}" data-index="{{pagination.page-1}}">{{pattern?'修改':'上一页'}}</view>
-    <view class="next" style="background-image: url('../../../imgs/contest/answer/confim-button-bg-2.png');" bindtap="{{pagination.page==5?'':'bindNavTagger'}}" data-index="{{pagination.page+1}}">{{pagination.page==5?'提交':'下一页'}}</view>
+    <view class="back" bindtap="{{pattern?'updateTagger':'bindNavTagger'}}" data-index="{{pagination.page-1}}">{{pattern?'修改':'上一页'}}</view>
+    <view class="next" style="background-image: url('../../../imgs/contest/answer/confim-button-bg-2.png');" bindtap="{{pagination.page==5?'showToggle':'bindNavTagger'}}" data-index="{{pagination.page+1}}">{{pagination.page==5?'提交':'下一页'}}</view>
   </view>
 
   <!-- 确认框 -->
@@ -70,7 +63,7 @@
       <image mode="widthFix" class="warning-icon" src="../../../imgs/contest/answer/warning.png"></image>
       <view class="confim-title">{{isupdate?'您的答题已修改,确认提交吗?':'您未答完全部题,确认提交吗?'}}</view>
       <view class="button-group" wx:if="{{!isupdate}}">
-        <view>预览答题</view>
+        <view bindtap="patternToggle">预览答题</view>
         <view bindtap="clickConfim">提交</view>
       </view>
       <view class="button-group" wx:else>

+ 9 - 1
pages/contest/answer/answer.wxss

@@ -108,6 +108,7 @@ page {
   text-align: center;
 }
 .problem-text {
+  width: 590rpx;
   font-size: 28rpx;
   font-weight: 500;
   color: #59598D;
@@ -117,7 +118,7 @@ page {
 }
 .problem-key-list > view{
   width: 516rpx;
-  height: 68rpx; 
+  min-height: 68rpx; 
   background: #FFFFFF;
   border-radius: 34rpx;
   margin: 0 146rpx 20rpx 88rpx;
@@ -136,6 +137,7 @@ page {
 .problem-key-list .active {
   background: #5679F0;
   color: rgb(241, 241, 241);
+  opacity: 1;
 }
 .bd-b {
   width: 640rpx;
@@ -268,3 +270,9 @@ page {
   position: relative;
   z-index: 1000;
 }
+
+
+.pattern {
+  background: #E0E0EF;
+  opacity: 0.21;
+}

+ 63 - 3
pages/contest/info/info.js

@@ -1,4 +1,7 @@
 // pages/contest/contest.js
+import {
+  imine
+} from '../../../api/api.js'
 Page({
 
   /**
@@ -6,7 +9,9 @@ Page({
    */
   data: {
     sexList: [{label:'男',value:1},{label:'女',value:2}],
-    form: {}
+    form: {},
+    areaList: [],
+    school: []
   },
 
   changeInput (e) {
@@ -25,7 +30,7 @@ Page({
     })
   },
 
-  bindPickerChange (e) {
+  bindPickerSex (e) {
     const id = e.currentTarget.id;
     const value = e.detail.value
     this.setData({
@@ -33,11 +38,66 @@ Page({
     })
   },
 
+  bindPickerSchool (e) {
+    const id = e.currentTarget.id;
+    const value = e.detail.value
+    this.setData({
+      ['form.'+id]: this.data.areaList[value].id,
+      ['form.schoolName']: this.data.schoolList[value].schoolName
+    })
+  },
+
+  bindPickerChange(e) {
+    const id = e.currentTarget.id;
+    const value = e.detail.value
+    this.setData({
+      ['form.'+id]: this.data.areaList[value].id,
+      ['form.areaName']: this.data.areaList[value].areaName
+    }, () => {
+      imine.querySchoolByAreaId({reqdata:{
+        id: this.data.form[id]
+      }},r => {
+        this.setData({
+          schoolList: r.list
+        })
+      })
+    })
+  },
+
+  submit (e) {
+    let {actualName,age,area,grade,other,school} = this.data.form
+    let id = wx.getStorageSync('id')
+    imine.updateUser({reqdata:{actualName,age,area,grade,other,school,id}},r => {
+      this.loadMyinformation()
+      wx.navigateTo({
+        url: '/pages/contest/answer/answer'
+      })
+    })
+  },
+
+  queryAllArea () {
+    imine.queryAllArea({},r => {
+      this.setData({
+        areaList: r.list
+      })
+    })
+  },
+
+  loadMyinformation() {
+    let id = wx.getStorageSync('id')
+    imine.loadMyinformation({reqdata: {id}},r => {
+      wx.setStorage({
+        key: 'user',
+        data: r.object
+      })
+    })
+  },
+
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-
+    this.queryAllArea()
   },
 
   /**

+ 16 - 9
pages/contest/info/info.wxml

@@ -1,13 +1,13 @@
 <!--pages/contest/contest.wxml-->
 <view>
   <image mode="widthFix" src="../../../imgs/contest/bg.png" class="bg"></image>
-  <view class="page-title">排行榜</view>
+  <view class="page-title">个人信息</view>
   <view class="form">
     <view class="form-item">
       <image class="form-item-bg" mode="widthFix" src="../../../imgs/contest/list-bg.png"></image>
       <view class="content">
         <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">姓名</view>
-        <input bindinput="changeInput" id="name" placeholder="请输入" placeholder-class="phcolor"></input>
+        <input bindinput="changeInput" id="actualName" placeholder="请输入" placeholder-class="phcolor"></input>
       </view>
     </view>
 
@@ -16,7 +16,7 @@
       <view class="content">
         <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">性别</view>
         <view class="select">
-          <picker bindchange="bindPickerChange" value="{{value}}" range="{{sexList}}" range-key="label" id="sex">
+          <picker bindchange="bindPickerSex" value="{{value}}" range="{{sexList}}" range-key="label" id="sex">
             <view class="picker {{form.sex?'':'phcolor'}}">
               {{form.sex?sexList[form.sex-1].label:'请选择'}}
             </view>
@@ -39,10 +39,9 @@
       <view class="content">
         <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">区域</view>
         <view class="select">
-          <picker mode="region" bindchange="bindAddrChange" id="addr">
-            <view class="picker {{form.addr?'':'phcolor'}}">
-            {{form.addr||'请选择'}}
-              <!-- 当前选择:{{region[0]}},{{region[1]}},{{region[2]}} -->
+          <picker bindchange="bindPickerChange" value="{{value}}" range="{{areaList}}" range-key="areaName" id="area">
+            <view class="picker {{form.area?'':'phcolor'}}">
+              {{form.area?form.areaName:'请选择'}}
             </view>
           </picker>
           <image class="arrow" src="../../../imgs/contest/arrow.png" mode="widthFix"></image>
@@ -54,7 +53,15 @@
       <image class="form-item-bg" mode="widthFix" src="../../../imgs/contest/list-bg.png"></image>
       <view class="content">
         <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">学校</view>
-        <input bindinput="changeInput" id="school" placeholder="请输入" placeholder-class="phcolor"></input>
+        <!-- <input bindinput="changeInput" id="school" placeholder="请输入" placeholder-class="phcolor"></input> -->
+        <view class="select">
+          <picker bindchange="bindPickerSchool" value="{{value}}" range="{{schoolList}}" range-key="schoolName" id="school">
+            <view class="picker {{form.school?'':'phcolor'}}">
+              {{form.school?form.schoolName:'请选择'}}
+            </view>
+          </picker>
+          <image class="arrow" src="../../../imgs/contest/arrow.png" mode="widthFix"></image>
+        </view>
       </view>
     </view>
 
@@ -79,7 +86,7 @@
       </view>
     </view>
   </view>
-  <view class="button">
+  <view class="button" bindtap="submit">
     <image class="button-bg" mode="widthFix" src="../../../imgs/contest/button-bg.png"></image>
     <view class="button-text">Start Now !</view>
   </view>

+ 24 - 5
pages/contest/ranking/ranking.js

@@ -1,23 +1,42 @@
 // pages/contest/ranking/ranking.js
+import {
+  answer
+} from '../../../api/api.js'
 Page({
 
   /**
    * 页面的初始数据
    */
   data: {
-    page: 1
+    page: 1,
+    first: '',
+    second: '',
+    third: '',
+    dataList: []
+  },
+
+  getRankingList (type) {
+    answer.getLeaderBoard({reqdata: {
+      type
+    }},r => {
+      this.setData({
+        first: r.list[0],
+        second: r.list[1],
+        third: r.list[2],
+        dataList: r.list.filter((item,index) => index>2),
+        page: type
+      })
+    })
   },
   
   togglePage(e) {
-    this.setData({
-      page: e.currentTarget.dataset.index
-    })
+    this.getRankingList(e.currentTarget.dataset.index-0)
   },
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-
+    this.getRankingList(this.data.page)
   },
 
   /**

+ 19 - 19
pages/contest/ranking/ranking.wxml

@@ -9,33 +9,33 @@
       <view class="{{page==3&&'active'}}" bindtap="togglePage" data-index="3">学校排名</view>
     </view>
     <view class="ranking-top">
-      <view class="second">
-        <image mode="widthFix" src="../../../imgs/contest/ranking/avatr.png"></image>
+      <view class="second" wx:if="{{second}}">
+        <image src="{{second.avatar}}"></image>
         <view class="num">2</view>
-        <view class="nickname">豆丁</view>
-        <view class="fraction">99分</view>
+        <view class="nickname">{{second.nickname}}</view>
+        <view class="fraction">{{second.score}}分</view>
       </view>
-      <view class="first">
-        <image mode="widthFix" src="../../../imgs/contest/ranking/avatr.png"></image>
+      <view class="first" wx:if="{{first}}">
+        <image src="{{first.avatar}}"></image>
         <view class="num">1</view>
-        <view class="nickname">豆丁</view>
-        <view class="fraction">99分</view>
+        <view class="nickname">{{first.nickname}}</view>
+        <view class="fraction">{{first.score}}分</view>
       </view>
-      <view class="third">
-        <image mode="widthFix" src="../../../imgs/contest/ranking/avatr.png"></image>
+      <view class="third" wx:if="{{third}}">
+        <image src="{{third.avatar}}"></image>
         <view class="num">3</view>
-        <view class="nickname">豆丁</view>
-        <view class="fraction">99分</view>
+        <view class="nickname">{{third.nickname}}</view>
+        <view class="fraction">{{third.score}}分</view>
       </view>
     </view>
     <view class="ranking-list">
-      <view class="ranking-item">
-        <view class="order-num">4</view>
-        <image mode="widthFix" src="../../../imgs/contest/ranking/avatr.png"></image>
-        <view class="nickname">乔巴</view>
-        <view class="fraction">99分</view>
+      <view class="ranking-item" wx:for="{{dataList}}" wx:key="index">
+        <view class="order-num">{{index+4}}</view>
+        <image src="{{item.avatar}}"></image>
+        <view class="nickname">{{item.nickname}}</view>
+        <view class="fraction">{{item.score}}分</view>
       </view>
-      <view class="ranking-item">
+      <!-- <view class="ranking-item">
         <view class="order-num">4</view>
         <image mode="widthFix" src="../../../imgs/contest/ranking/avatr.png"></image>
         <view class="nickname">乔巴</view>
@@ -52,7 +52,7 @@
         <image mode="widthFix" src="../../../imgs/contest/ranking/avatr.png"></image>
         <view class="nickname">乔巴</view>
         <view class="fraction">99分</view>
-      </view>
+      </view> -->
     </view>
   </view>
 </view>

+ 9 - 0
pages/contest/ranking/ranking.wxss

@@ -56,9 +56,15 @@
 }
 .second > image, .third > image {
   width: 120rpx;
+  height: 120rpx;
+  border-radius: 60rpx;
+  background: rgb(187, 181, 181);
 }
 .first > image {
+  background: rgb(187, 181, 181);
   width: 140rpx;
+  height: 140rpx;
+  border-radius: 70rpx;
 }
 .num {
   margin-top:-18rpx ;
@@ -112,6 +118,9 @@
 }
 .ranking-item > image {
   width: 88rpx;
+  height: 88rpx;
+  border-radius: 44rpx;
+  background: rgb(187, 181, 181);
 }
 .ranking-item .nickname {
   margin-left: 36rpx;

+ 12 - 1
pages/contest/score/score.js

@@ -6,14 +6,25 @@ Page({
    * 页面的初始数据
    */
   data: {
+    score: 0,
+    rank: 0
+  },
 
+  toLink (e) {
+    wx.navigateTo({
+      url: e.currentTarget.dataset.url,
+    })
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-
+    let {rank,score} = options
+    this.setData({
+      rank,
+      score
+    })
   },
 
   /**

+ 3 - 3
pages/contest/score/score.wxml

@@ -9,17 +9,17 @@
         <image class="score-bg" src="../../../imgs/contest/score/num-bg.png"></image>
         <view class="score-text">
           您的得分是:
-          <view class="score-num">98</view>
+          <view class="score-num">{{score}}</view>
         </view>
       </view>
       <view class="text">排名</view>
       <view class="ranking">
         <image class="icon" mode="widthFix" src="../../../imgs/contest/score/icon.png"></image>
-        <view>12</view>
+        <view>{{rank}}</view>
       </view>
       <view class="button-group">
-        <button class="">查看排行榜</button>
+        <button class="" bindtap="toLink" data-url="/pages/contest/ranking/ranking">查看排行榜</button>
         <button open-type="share">分享</button>
       </view>
     </view>

+ 10 - 18
pages/home/home.js

@@ -114,7 +114,8 @@ Page({
         page: 1,
         rows: 10
       }
-    }
+    },
+    isRegister: wx.getStorageSync('user')?wx.getStorageSync('user').isRegister:null
   },
   loadArticles() {
     icommunity.loadArticles(this.data.community.pagination, r => {
@@ -374,27 +375,15 @@ Page({
     })
   },
   toLink (e) {
+    if (!this.data.user || !this.data.user.id) {
+      return this.setData({
+        showAuthPanel: true
+      })
+    }
     wx.navigateTo({
       url: e.currentTarget.dataset.url,
     })
   },
-  // getUserinfo(e) {
-  //   let {encryptedData,iv} = e.detail
-  //   console.log(e);
-  //   wx.login({
-  //     success: r => {
-  //       ilogin.loadAT({
-  //         reqdata: {
-  //           code: r.code,
-  //           encryptedData,
-  //           iv
-  //         }
-  //       }, r => {
-  //         console.log(r)
-  //       })
-  //     }
-  //   })
-  // },
   getUserInfo (e) {
     wx.login({
       success: r => {
@@ -412,6 +401,9 @@ Page({
               wx.setStorageSync('openId', r.object.openId)
               this.loadMyinformation()
               this.clickHideAuthPanel()
+              this.setData({
+                isRegister: r.object.isRegister
+              })
             })
           },
         })

+ 3 - 2
pages/home/home.wxml

@@ -13,7 +13,7 @@
   <view class="home-nav-list">
     <image src="../../imgs/home/nav-bg.png"></image>
     <view class="home-nav-select">
-      <view class="contest" bindtap="toLink" data-url="/pages/contest/info/info">
+      <view class="contest" bindtap="toLink" data-url="{{isRegister?'/pages/contest/answer/answer':'/pages/contest/info/info'}}">
         <image mode="widthFix" src="../../imgs/home/contest.png"></image>
         <view>参加竞赛</view>
       </view>
@@ -21,7 +21,8 @@
         <image mode="widthFix" src="../../imgs/home/ranking.png"></image>
         <view>排行榜</view>
       </view>
-      <view class="study" bindtap="toLink" data-url="/pages/contest/answer/answer">
+      <!-- <view class="study" bindtap="toLink" data-url="/pages/contest/answer/answer"> -->
+      <view class="study">
         <image mode="widthFix" src="../../imgs/home/study.png"></image>
         <view>在线学习</view>
       </view>

+ 1 - 1
project.config.json

@@ -32,7 +32,7 @@
 	},
 	"compileType": "miniprogram",
 	"libVersion": "2.4.4",
-	"appid": "wx4398d60942bc7710",
+	"appid": "wx289928fedd0242a5",
 	"projectname": "iSnow2",
 	"debugOptions": {
 		"hidedInDevtools": []