Compare commits
1 Commits
459baca3f8
...
dev-zcx
| Author | SHA1 | Date | |
|---|---|---|---|
| 29520d0daa |
@@ -48,7 +48,9 @@
|
||||
actiNum: 0,
|
||||
total: 0,
|
||||
winningList: [],
|
||||
activityRule: undefined
|
||||
activityRule: undefined,
|
||||
startTime: undefined,
|
||||
endTime: undefined
|
||||
}
|
||||
},
|
||||
onLoad(op) {
|
||||
@@ -115,6 +117,9 @@
|
||||
})
|
||||
},
|
||||
handleComplete() {
|
||||
if(){
|
||||
|
||||
}
|
||||
saveWinner({
|
||||
phone: useUserStore().userInfo?.phone || '',
|
||||
detailId: this.detailId,
|
||||
@@ -123,11 +128,14 @@
|
||||
this.btnText = '再刮一次!'
|
||||
if(resp.code == 200) {
|
||||
this.getActivityNum()
|
||||
if(this.result != '谢谢惠顾'){
|
||||
let help = ",完成助力即可领取奖品!"
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: `恭喜获得${this.result}` + help
|
||||
})
|
||||
}
|
||||
|
||||
this.showBtn = true
|
||||
}
|
||||
})
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
<u-input class="sl-input" border="none" v-model="loginForm.phone" type="number" maxlength="11"
|
||||
placeholder="输入手机号" />
|
||||
</view>
|
||||
<!-- <view class="list-call">
|
||||
<view class="list-call">
|
||||
<u-input class="sl-input" v-model="loginForm.code" type="text" maxlength="6" border="none" placeholder="输入验证码">
|
||||
<template #suffix>
|
||||
<text class="fs14 mr10" style="color: #05C341;" @tap="getCode">{{ countDown == 0 ? '获取验证码' : countDown }}</text>
|
||||
</template>
|
||||
</u-input>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="button-login" @tap="bindLogin()">
|
||||
@@ -41,7 +41,7 @@ export default {
|
||||
return {
|
||||
loginForm: {
|
||||
phone: '',
|
||||
code: '000000'
|
||||
code: ''
|
||||
},
|
||||
countDown: 0,
|
||||
js: undefined
|
||||
|
||||
@@ -92,7 +92,12 @@
|
||||
path: '/pages/me/help?id=' + this.winnerId + '&type=2'
|
||||
}
|
||||
},
|
||||
|
||||
onPullDownRefresh() {
|
||||
if(this.type == 1){
|
||||
this.getWinnerInfo()
|
||||
this.getHelpInfo()
|
||||
}
|
||||
}
|
||||
methods: {
|
||||
//查询中奖信息
|
||||
getWinnerInfo() {
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
import GradesChart from "./components/GradesChart.vue"
|
||||
import storage from '@/jtools/storage';
|
||||
import {
|
||||
testTotal,getTestQuestionId
|
||||
testTotal
|
||||
} from '@/jtools/api/question';
|
||||
export default {
|
||||
components: {
|
||||
@@ -182,28 +182,15 @@
|
||||
}else{
|
||||
const list =JSON.stringify(this.wrongList)
|
||||
uni.navigateTo({
|
||||
url:"/pages/questionBank/questionBank?navTitle=错题&subject="+this.subject+"&questionIdList="+list
|
||||
url:"/pages/questionBank/questionBank?navTitle=错题&subject="+this.subject+"&questionList="+list
|
||||
})
|
||||
}
|
||||
},
|
||||
//重新考试
|
||||
toExams(){
|
||||
getTestQuestionId({
|
||||
versionId: this.version,
|
||||
carTypeId: storage.get('carType') || '1001',
|
||||
subject: this.subject,
|
||||
}).then(async (resp) => {
|
||||
if (resp.code === '0000') {
|
||||
const arr = resp.data
|
||||
const listJson = JSON.stringify(arr)
|
||||
uni.navigateTo({
|
||||
url: "/pages/questionBank/practiceExams?title=模拟考试&subject=" + this.subject + "&questionIdList=" + listJson
|
||||
url:"/pages/questionBank/practiceExams?subject="+this.subject
|
||||
})
|
||||
}
|
||||
})
|
||||
// uni.navigateTo({
|
||||
// url:"/pages/questionBank/practiceExams?subject="+this.subject
|
||||
// })
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user