add download button

This commit is contained in:
RainSun 2020-02-23 20:37:26 +08:00
parent d16d997531
commit cf9d071c34

View File

@ -53,6 +53,11 @@
<md-icon>reply</md-icon>
<span class="md-list-item-text">Share</span>
</md-list-item>
<md-list-item @click="downloadApk()">
<md-icon>file_download</md-icon>
<span class="md-list-item-text">Download apk</span>
</md-list-item>
<md-list-item @click="turnToUnlock('用户点击锁定')">
<md-icon>beenhere</md-icon>
@ -314,13 +319,19 @@ export default {
}
this.show_list = data_list
},
//
generReg(val) {
let head = '(.*)('
let tail = ')(.*)'
let body = val.split('').join(')(.*)(')
return new RegExp(head + body + tail, 'i')
},
// apk
downloadApk() {
window.open('https://ccb.canary.moe/download/Canary.apk')
}
},
created() {
// row_pwd