热更新

This commit is contained in:
2024-06-13 10:04:13 +08:00
parent e595e034dc
commit 7eaaf64a22
1180 changed files with 70026 additions and 731709 deletions

View File

@@ -10,7 +10,7 @@
@backClick="backClick"
:backState="3000"
></z-nav-bar>
<view class="contentBox commonPageContentBox">
<!-- <scroll-view class="scroll-view_H statusList" scroll-x="true" scroll-left="0"> -->
<!-- <view class="statusList flexbox" >
@@ -43,14 +43,10 @@
<view class="cate_item_border">
<image
:src="
cateIconList.find((e) => v.sociology.title == e.title)
.imgUrl
cateIconList.find((e) => v.sociology.id == e.id).icon
"
mode="aspectFill"
:style="
cateIconList.find((e) => v.sociology.title == e.title)
.style
"
style="width: 59rpx; height: 59rpx"
></image>
</view>
<view class="cate_item_name">{{ v.sociology.title }}</view>
@@ -140,36 +136,6 @@
</u-collapse-item>
</u-collapse>
</view>
<view :class="`dataList priceDetail`">
<!-- <image src="@/static/image/headImg/top.png" mode="aspectFit" class="headImage"></image> -->
<template>
<!-- <courseDescription :dataList="dataList" @hancleClick="goCourseDescription" label="title">
<template slot="leftSlot" slot-scope="slotProps">
<text v-html="slotProps.row.bxType"></text>
</template>
</courseDescription> -->
</template>
<!-- <template v-if="currentStatusIndex == 2 && curTwoCateIndex == 2">
<u-grid :col="3">
<u-grid-item class="scroll-view-item " v-for="(item, index) in dataList" :key="item.id"
@click="previewImage(item.url)" style="align-items: flex-start;">
<img :src="item.url" alt="" class="wmzhimg" mode="aspectFit">
</u-grid-item>
</u-grid>
</template> -->
</view>
</view>
<u-modal
@@ -331,7 +297,12 @@ export default {
{
title: "未开始",
type: 2,
oid: "8a9fb99809e4428888aad6b56a3096a6",
},
// {
// title: "未开始",
// type: 2,
// },
// {
// title: "其他",
@@ -356,6 +327,7 @@ export default {
scrollViewHeight: 0,
urlList: {
list: "sociology/course/getMyCourse",
getCateList: "sociology/home/getSociologyLabels", //消息
},
options: {},
};
@@ -367,6 +339,9 @@ export default {
// this.getUserInfo()
// this.getCateList()
},
async onShow() {
await this.getCateList();
},
onHide() {
// this.showSearchList = false
// this.searchList = []
@@ -375,6 +350,28 @@ export default {
...mapState(["userInfo"]),
},
methods: {
async getCateList() {
var that = this;
this.$http
.request({
url: this.urlList.getCateList,
method: "POST",
data: {
id: 0,
},
header: {
//默认 无 说明:请求头
"Content-Type": "application/json",
},
})
.then(async (res) => {
console.log(res, "7777777777777777777");
if (res.code == 0) {
that.cateIconList = res.labels ? res.labels : [];
}
});
},
hancleModalConfirm() {
var data = {
values: {
@@ -509,7 +506,7 @@ export default {
if (this.userInfo.id != undefined) {
this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
this.userMes = res.user;
this.getCateList();
// this.getCateList();
console.log(this.userMes, "呼呼");
});
}
@@ -728,34 +725,6 @@ export default {
// console.log(e)
// })
// },
getCateList(id) {
id ? "" : (id = 0);
this.twoCateList = [];
this.curTwoCateIndex = 0;
// 0为获取顶级分类其他为搜索下级分类目前的逻辑顶级是写死的所以可能只会涉及到搜索第二级
// $http.request({
// url: "book/prescript/prescriptCategoryList",
// method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
// data: {
// loadAnimate: 'none', // 请求加载动画
// 'categoryId': id
// },
// header: { //默认 无 说明:请求头
// 'Content-Type': 'application/json'
// },
// }).then(res => {
// console.log(res, '脉穴分类获取成功')
// if (res.code == 0 && res.list.length > 0) {
// this.statusList = res.list
this.getTowCateList(this.statusList[0].type);
// } else {
// this.statusList = []
// }
// }).catch(e => {
// this.statusList = []
// console.log(e)
// })
},
// 放大图片
previewImage(url) {
@@ -861,7 +830,8 @@ export default {
};
</script>
<style lang="scss" scoped>@import '@/style/mixin.scss';
<style lang="scss" scoped>
@import "@/style/mixin.scss";
.u-grid-list {
// height: 40rpx;
}
@@ -1092,7 +1062,7 @@ export default {
box-sizing: border-box;
.cate_item_box {
width: 200rpx;
width: 400rpx;
height: 100%;
display: flex;
align-items: center;