补上翻译

pull/166/head
lyswhut 2020-02-23 23:56:09 +08:00
parent 09a7974818
commit 0332b22c4a
6 changed files with 26 additions and 9 deletions

View File

@ -219,10 +219,13 @@ export default {
}
},
showUpdateModal() {
(this.version.newVersion && this.version.newVersion.history ? Promise.resolve(this.version.newVersion) : this.getVersionInfo().then(body => {
this.setNewVersion(body)
return body
})).catch(() => {
(this.version.newVersion && this.version.newVersion.history
? Promise.resolve(this.version.newVersion)
: this.getVersionInfo().then(body => {
this.setNewVersion(body)
return body
})
).catch(() => {
if (this.version.newVersion) return this.version.newVersion
this.setVersionModalVisible({ isUnknow: true })
let result = {

View File

@ -0,0 +1,4 @@
{
"back": "返回",
"loding_list": "列表加載中..."
}

View File

@ -0,0 +1,4 @@
{
"back": "返回",
"loding_list": "列表加载中..."
}

View File

@ -0,0 +1,4 @@
{
"back": "Back",
"loding_list": "List loading..."
}

View File

@ -10,8 +10,8 @@ export default {
}, (err, resp, body) => {
if (err) {
return ++retryNum > 3
? this.dispatch('getVersionInfo2').then(ver => resolve(ver)).catch(err => reject(err))
: this.dispatch('getVersionInfo', retryNum).then(ver => resolve(ver)).catch(err => reject(err))
? this.dispatch('getVersionInfo2').then(resolve).catch(reject)
: this.dispatch('getVersionInfo', retryNum).then(resolve).catch(reject)
}
resolve(body)
})
@ -23,7 +23,9 @@ export default {
timeout: 20000,
}, (err, resp, body) => {
if (err) {
return ++retryNum > 3 ? reject() : this.dispatch('getVersionInfo2', retryNum).then(ver => resolve(ver)).catch(err => reject(err))
return ++retryNum > 3
? reject(err)
: this.dispatch('getVersionInfo2', retryNum).then(resolve).catch(reject)
}
resolve(body)
})

View File

@ -14,7 +14,7 @@
//- |  
//- material-btn(:class="$style.closeDetailButton" :disabled="detailLoading" @click="playSongListDetail")
//- |  
material-btn(:class="$style.closeDetailButton" @click="hideListDetail") 返回
material-btn(:class="$style.closeDetailButton" @click="hideListDetail") {{$t('view.song_list.back')}}
material-song-list(v-model="selectdData" @action="handleSongListAction" :source="source" :page="listDetail.page" :limit="listDetail.limit" :total="listDetail.total" :noItem="$t('material.song_list.loding_list')" :list="listDetail.list")
transition(enter-active-class="animated-fast fadeIn" leave-active-class="animated-fast fadeOut")
div(:class="$style.songListContainer" v-if="!isVisibleListDetail")
@ -44,7 +44,7 @@
use(xlink:href='#icon-right')
transition(enter-active-class="animated-fast fadeIn" leave-active-class="animated-fast fadeOut")
div(v-show="!listData.list.length" :class="$style.noitem")
p {{$t('material.song_list.loding_list')}}
p {{$t('view.song_list.loding_list')}}
material-download-modal(:show="isShowDownload" :musicInfo="musicInfo" @select="handleAddDownload" @close="isShowDownload = false")
material-download-multiple-modal(:show="isShowDownloadMultiple" :list="selectdData" @select="handleAddDownloadMultiple" @close="isShowDownloadMultiple = false")
material-list-add-modal(:show="isShowListAdd" :musicInfo="musicInfo" @close="isShowListAdd = false")