阅读和刷题数量

feature/v-xuexi
wangdong 8 months ago
parent 4ef145b747
commit ae0118a9ce
  1. 6
      pages.json
  2. 2
      pages/learningCenter/brushQuestion.vue
  3. 2
      pages/learningCenter/recite.vue
  4. 8
      pages/my/applyLink.vue
  5. 44
      pages/my/webview.vue

@ -481,6 +481,12 @@
"style": {
"navigationBarTitleText": "充值"
}
},
{
"path": "webview",
"style": {
"navigationBarTitleText": ""
}
}
]
},

@ -19,7 +19,7 @@
<text>{{ item.title }}</text>
</view>
<view class="content">
<view>题目数量{{ item.count || '' }}</view>
<view>题目数量{{ item.item_number || '' }}</view>
</view>
</view>
<view class="item-right">

@ -11,7 +11,7 @@
</view>
<view class="content">
<view :style="{ borderColor: item.todayRecite ? '' : '#FFC067', color: item.todayRecite ? '': '#FFBF66' }">今日{{ item.todayRecite ? '已' : '未' }}背诵</view>
<view>词汇量{{ item.count || 0 }}</view>
<view>词汇量{{ item.item_number || 0 }}</view>
</view>
</view>
<view class="item-right">

@ -23,10 +23,10 @@
},
methods: {
openLink(link) {
// console.log(link);
// uni.navigateTo({
// url: link,
// });
console.log(link);
uni.navigateTo({
url: `/pages/my/webview?src=${encodeURIComponent(link)}`,
});
},
},
};

@ -0,0 +1,44 @@
<template>
<BaseContainer class="exam-link flex">
<!-- #ifndef MP-WEIXIN -->
<NavBar title="考试链接" />
<!-- #endif -->
<web-view :src="src" class="web-view"></web-view>
</BaseContainer>
</template>
<script>
export default {
data() {
return {
src: '',
};
},
onLoad({ src }) {
this.src = decodeURIComponent(src);
},
onReady() {
// #ifdef APP-PLUS
const currentWebview = this.$scope.$getAppWebview()
this.pageTitle = uni.getAppBaseInfo().appName
setTimeout(function() {
const top = uni.getSystemInfoSync().statusBarHeight + 44
const wv = currentWebview.children()[0]
wv.setStyle({
top
})
}, 100); //
// #endif
},
};
</script>
<style scope lang="scss">
.exam-link {
flex-direction: column;
.web-view {
flex: 1;
}
}
</style>
Loading…
Cancel
Save