Skip to content
This repository was archived by the owner on Jun 22, 2020. It is now read-only.

Commit a9bfab5

Browse files
authored
Merge pull request #17 from paywteam/develop-env
Develop env
2 parents c6cd368 + 3953e53 commit a9bfab5

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"scripts": {
1414
"dev": "cross-env HOST=0.0.0.0 PORT=3000 nuxt",
1515
"dev-hcj": "cross-env HOST=0.0.0.0 PORT=3010 nuxt",
16+
"dev-wsj": "cross-env HOST=0.0.0.0 PORT=3020 nuxt",
1617
"build": "nuxt build",
1718
"start": "nuxt start",
1819
"generate": "nuxt generate",
@@ -24,7 +25,10 @@
2425
"restart-dev": "npm run stop-dev && npm run start-dev",
2526
"start-dev-hcj": "pm2 start npm --name 'web-dev-hcj' -- run dev-hcj",
2627
"stop-dev-hcj": "pm2 delete web-dev-hcj",
27-
"restart-dev-hcj": "npm run stop-dev-hcj && npm run start-dev-hcj"
28+
"restart-dev-hcj": "npm run stop-dev-hcj && npm run start-dev-hcj",
29+
"start-dev-wsj": "pm2 start npm --name 'web-dev-wsj' -- run dev-wsj",
30+
"stop-dev-wsj": "pm2 delete web-dev-wsj",
31+
"restart-dev-wsj": "npm run stop-dev-wsj && npm run start-dev-wsj"
2832
},
2933
"dependencies": {
3034
"axios": "^0.19.0",

src/pages/index.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="top">
1111
<!-- <div class="qt-index">#1</div> -->
1212
<div class="qt-title"> {{ quiz.title }} </div>
13-
<div class="qt-money">{{ quiz.money }}</div>
13+
<div class="qt-money">{{ quiz.money }} &#8361;</div>
1414
</div>
1515
<div class="middle">
1616
<div class="qm-content-wrapper" >
@@ -159,7 +159,6 @@ export default {
159159
await axios.post(url, body)
160160
},
161161
async moreComments(){
162-
console.log('more')
163162
this.busy = true
164163
const url = `${this.baseURL['db']}/comment/more`
165164
const body = {
@@ -171,9 +170,16 @@ export default {
171170
this.loading = true
172171
const result = await axios.get(url, body)
173172
this.loading = false
174-
this.comments = this.comments.concat(result.data)
175-
this.numOfComments += 20
176-
this.busy = false
173+
if(result.data.length != 0){
174+
this.comments = this.comments.concat(result.data)
175+
this.numOfComments += 20
176+
this.busy = false
177+
}
178+
else{
179+
setTimeout(()=>{
180+
this.busy = false
181+
},10000)
182+
}
177183
},
178184
async postAnswer(){
179185
const url = `${this.baseURL['db']}/quiz/${this.quiz.quizID}/${this.answerTextarea}`

0 commit comments

Comments
 (0)