追剧缓存
This commit is contained in:
@@ -113,7 +113,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { $cache_chasingDrama} from '@/store/cashe.js'
|
import { isEmpty } from '../../utils/util';
|
||||||
|
import { $cache_chasingDrama} from '@/store/cashe.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -155,6 +156,12 @@
|
|||||||
let data = {
|
let data = {
|
||||||
userId: uni.getStorageSync('userId')
|
userId: uni.getStorageSync('userId')
|
||||||
}
|
}
|
||||||
|
if(!isEmpty($cache_chasingDrama.day)&&!isEmpty($cache_chasingDrama.isQd)&&!isEmpty($cache_chasingDrama.isErQd)){
|
||||||
|
this.day=$cache_chasingDrama.day
|
||||||
|
this.isQd=$cache_chasingDrama.isQd
|
||||||
|
this.isErQd=$cache_chasingDrama.isErQd
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$Request.getT('/app/integral/selectIntegralDay', data).then(res => {
|
this.$Request.getT('/app/integral/selectIntegralDay', data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if (res.data.nowIntegral) { //判断今天是否签到
|
if (res.data.nowIntegral) { //判断今天是否签到
|
||||||
@@ -202,6 +209,10 @@
|
|||||||
limit: 6,
|
limit: 6,
|
||||||
classify: 1, //1收藏 2点赞 3历史记录
|
classify: 1, //1收藏 2点赞 3历史记录
|
||||||
}
|
}
|
||||||
|
if($cache_chasingDrama.zhuiju){
|
||||||
|
this.zhuiju = $cache_chasingDrama.zhuiju
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.zhuiju = res.data.records
|
this.zhuiju = res.data.records
|
||||||
@@ -216,6 +227,10 @@
|
|||||||
limit: 6,
|
limit: 6,
|
||||||
classify: 3, //1收藏 2点赞 3历史记录
|
classify: 3, //1收藏 2点赞 3历史记录
|
||||||
}
|
}
|
||||||
|
if($cache_chasingDrama.list){
|
||||||
|
this.list=$cache_chasingDrama.list
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.list = res.data.records
|
this.list = res.data.records
|
||||||
|
|||||||
Reference in New Issue
Block a user