fix: 隐藏登录页右上方公众号二维码,修复作业页面加载loading出现两个的情况
This commit is contained in:
parent
ba3a1f4113
commit
7491d71feb
@ -10,7 +10,6 @@ import hud from '@/utils/hud'
|
|||||||
import sass from '@/utils/sass'
|
import sass from '@/utils/sass'
|
||||||
|
|
||||||
const logo = sass.getLogo()
|
const logo = sass.getLogo()
|
||||||
const qr = sass.getQrCode()
|
|
||||||
const url = window.location.href
|
const url = window.location.href
|
||||||
const showIcp = url.includes('//www.') || url.split('.').length === 2
|
const showIcp = url.includes('//www.') || url.split('.').length === 2
|
||||||
|
|
||||||
@ -96,17 +95,6 @@ const debug = debounce(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
// 点击二维码会弹出账号密码
|
|
||||||
function clickQrCode() {
|
|
||||||
native_api.showDoodle?.()
|
|
||||||
// hud.success(
|
|
||||||
// JSON.stringify({
|
|
||||||
// account: account.value,
|
|
||||||
// password: password.value,
|
|
||||||
// }),
|
|
||||||
// )
|
|
||||||
}
|
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'Login',
|
name: 'Login',
|
||||||
})
|
})
|
||||||
@ -140,15 +128,6 @@ defineOptions({
|
|||||||
</el-form>
|
</el-form>
|
||||||
<mj-button type="warn" size="48" height="100" width="100%" @click="onLogin">登 录</mj-button>
|
<mj-button type="warn" size="48" height="100" width="100%" @click="onLogin">登 录</mj-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="qr">
|
|
||||||
<div class="qr-border" @dblclick="clickQrCode">
|
|
||||||
<img :src="qr" />
|
|
||||||
</div>
|
|
||||||
<div class="qr-info">
|
|
||||||
<span>更多内容关注</span>
|
|
||||||
<span>{{ sass.platform.wxName }}公众号</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-if="showIcp" class="icp-info">
|
<div v-if="showIcp" class="icp-info">
|
||||||
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">
|
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">
|
||||||
蜀ICP备2026014928号-1
|
蜀ICP备2026014928号-1
|
||||||
|
|||||||
@ -76,11 +76,6 @@ onMounted(async () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// 每次进入页面,都刷新数据
|
|
||||||
onBeforeMount(() => {
|
|
||||||
listLoading.value = true
|
|
||||||
})
|
|
||||||
|
|
||||||
function to(url: string) {
|
function to(url: string) {
|
||||||
router.push(url)
|
router.push(url)
|
||||||
}
|
}
|
||||||
@ -181,7 +176,7 @@ const startDoWork = () => {
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Empty
|
<Empty
|
||||||
v-else
|
v-else-if="!pageLoading"
|
||||||
class="empty"
|
class="empty"
|
||||||
:type="listLoading ? 'loading' : 'task'"
|
:type="listLoading ? 'loading' : 'task'"
|
||||||
content="还没有作业哦~"
|
content="还没有作业哦~"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user