|
@@ -11,93 +11,40 @@
|
|
|
:listCount="listCount"
|
|
|
:delCount="delCount"
|
|
|
/>
|
|
|
- <div style="width: fit-content; padding: 0 32px">
|
|
|
- <el-menu
|
|
|
- :default-active="activeIndex"
|
|
|
- class="el-menu-demo"
|
|
|
- mode="horizontal"
|
|
|
- @select="handleSelect"
|
|
|
- >
|
|
|
- <!-- <el-menu-item index="all">全部</el-menu-item> -->
|
|
|
- <el-menu-item index="book">{{ $t("Key44") }}</el-menu-item>
|
|
|
- <el-menu-item index="teaching">{{ $t("Key62") }}</el-menu-item>
|
|
|
- <el-menu-item index="video" v-if="userType != 'STUDENT'">{{
|
|
|
- $t("Key74")
|
|
|
- }}</el-menu-item>
|
|
|
- <el-menu-item index="live" v-if="userType != 'STUDENT'">{{
|
|
|
- $t("Key75")
|
|
|
- }}</el-menu-item>
|
|
|
- <el-menu-item index="jiaoyan" v-if="userType != 'STUDENT'">{{
|
|
|
- $t("Key214")
|
|
|
- }}</el-menu-item>
|
|
|
- <!-- 字词 -->
|
|
|
- <el-menu-item index="hanzi">{{ $t("Key476") }}</el-menu-item>
|
|
|
- <!-- 句子 -->
|
|
|
- <el-menu-item index="sentence">{{ $t("Key477") }}</el-menu-item>
|
|
|
- </el-menu>
|
|
|
- </div>
|
|
|
- <div class="list" v-loading="loading">
|
|
|
- <template v-if="!isEmpty">
|
|
|
- <div class="main" v-for="(item, index) in list" :key="'order' + index">
|
|
|
- <div class="main-content" v-if="item.goods_type == 501">
|
|
|
- <div
|
|
|
- v-if="isShowCheckBox"
|
|
|
- class="checkBox"
|
|
|
- @click.stop="selecedGoods(item, index)"
|
|
|
- >
|
|
|
- <img
|
|
|
- :src="item.checked ? checked_img : check_img"
|
|
|
- class="check-img"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <template v-if="/^[\u4e00-\u9fa5]/.test(item.new_word.new_word)">
|
|
|
- <Hanzi
|
|
|
- :item="item"
|
|
|
- :index="index"
|
|
|
- @getMyCollectionList="getMyCollectionList"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <Enword
|
|
|
- :item="item"
|
|
|
- :index="index"
|
|
|
- @getMyCollectionList="getMyCollectionList"
|
|
|
- />
|
|
|
- </template>
|
|
|
- </div>
|
|
|
- <div class="main-content" v-else-if="item.goods_type == 502">
|
|
|
- <div
|
|
|
- v-if="isShowCheckBox"
|
|
|
- class="checkBox"
|
|
|
- @click.stop="selecedGoods(item, index)"
|
|
|
- style="height: 22px; margin-top: 5px"
|
|
|
- >
|
|
|
- <img
|
|
|
- :src="item.checked ? checked_img : check_img"
|
|
|
- class="check-img"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <template
|
|
|
- v-if="/^[\u4e00-\u9fa5]/.test(item.sentence.sentence_text)"
|
|
|
- >
|
|
|
- <Sentence
|
|
|
- :key="item.id"
|
|
|
- :sItem="item"
|
|
|
- :index="index"
|
|
|
- @getMyCollectionList="getMyCollectionList"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <SentenceEn
|
|
|
- :key="item.id"
|
|
|
- :sItem="item"
|
|
|
- :index="index"
|
|
|
- @getMyCollectionList="getMyCollectionList"
|
|
|
- />
|
|
|
- </template>
|
|
|
- </div>
|
|
|
- <div class="main-content" v-else>
|
|
|
- <div class="main-content-left" @click.stop="jump(item)">
|
|
|
+ <div v-loading="loading">
|
|
|
+ <div style="width: fit-content; padding: 0 32px">
|
|
|
+ <el-menu
|
|
|
+ :default-active="activeIndex"
|
|
|
+ class="el-menu-demo"
|
|
|
+ mode="horizontal"
|
|
|
+ @select="handleSelect"
|
|
|
+ >
|
|
|
+ <!-- <el-menu-item index="all">全部</el-menu-item> -->
|
|
|
+ <el-menu-item index="book">{{ $t("Key44") }}</el-menu-item>
|
|
|
+ <el-menu-item index="teaching">{{ $t("Key62") }}</el-menu-item>
|
|
|
+ <el-menu-item index="video" v-if="userType != 'STUDENT'">{{
|
|
|
+ $t("Key74")
|
|
|
+ }}</el-menu-item>
|
|
|
+ <el-menu-item index="live" v-if="userType != 'STUDENT'">{{
|
|
|
+ $t("Key75")
|
|
|
+ }}</el-menu-item>
|
|
|
+ <el-menu-item index="jiaoyan" v-if="userType != 'STUDENT'">{{
|
|
|
+ $t("Key214")
|
|
|
+ }}</el-menu-item>
|
|
|
+ <!-- 字词 -->
|
|
|
+ <el-menu-item index="hanzi">{{ $t("Key476") }}</el-menu-item>
|
|
|
+ <!-- 句子 -->
|
|
|
+ <el-menu-item index="sentence">{{ $t("Key477") }}</el-menu-item>
|
|
|
+ </el-menu>
|
|
|
+ </div>
|
|
|
+ <div class="list">
|
|
|
+ <template v-if="!isEmpty">
|
|
|
+ <div
|
|
|
+ class="main"
|
|
|
+ v-for="(item, index) in list"
|
|
|
+ :key="'order' + index"
|
|
|
+ >
|
|
|
+ <div class="main-content" v-if="item.goods_type == 501">
|
|
|
<div
|
|
|
v-if="isShowCheckBox"
|
|
|
class="checkBox"
|
|
@@ -108,99 +55,161 @@
|
|
|
class="check-img"
|
|
|
/>
|
|
|
</div>
|
|
|
+ <template v-if="/^[\u4e00-\u9fa5]/.test(item.new_word.new_word)">
|
|
|
+ <Hanzi
|
|
|
+ :item="item"
|
|
|
+ :index="index"
|
|
|
+ @getMyCollectionList="getMyCollectionList"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <Enword
|
|
|
+ :item="item"
|
|
|
+ :index="index"
|
|
|
+ @getMyCollectionList="getMyCollectionList"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="main-content" v-else-if="item.goods_type == 502">
|
|
|
<div
|
|
|
- :class="[
|
|
|
- 'coverUrl',
|
|
|
- item.goods_type != 401 ? 'coverUrl-border' : '',
|
|
|
- ]"
|
|
|
+ v-if="isShowCheckBox"
|
|
|
+ class="checkBox"
|
|
|
+ @click.stop="selecedGoods(item, index)"
|
|
|
+ style="height: 22px; margin-top: 5px"
|
|
|
>
|
|
|
- <template v-if="item.goods_type != 401">
|
|
|
- <img :src="item.goods_picture_url" />
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- item.goods_detail_type == 'doc' ||
|
|
|
- item.goods_detail_type == 'docx'
|
|
|
- "
|
|
|
- >
|
|
|
- <img src="../../assets/doc-Q.png" />
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- item.goods_detail_type == 'xls' ||
|
|
|
- item.goods_detail_type == 'xlsx'
|
|
|
- "
|
|
|
- >
|
|
|
- <img src="../../assets/xls-Q.png" />
|
|
|
- </template>
|
|
|
- <template v-if="item.goods_detail_type == 'pdf'">
|
|
|
- <img src="../../assets/pdf-Q.png" />
|
|
|
+ <img
|
|
|
+ :src="item.checked ? checked_img : check_img"
|
|
|
+ class="check-img"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <template
|
|
|
+ v-if="/^[\u4e00-\u9fa5]/.test(item.sentence.sentence_text)"
|
|
|
+ >
|
|
|
+ <Sentence
|
|
|
+ :key="item.id"
|
|
|
+ :sItem="item"
|
|
|
+ :index="index"
|
|
|
+ @getMyCollectionList="getMyCollectionList"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <SentenceEn
|
|
|
+ :key="item.id"
|
|
|
+ :sItem="item"
|
|
|
+ :index="index"
|
|
|
+ @getMyCollectionList="getMyCollectionList"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="main-content" v-else>
|
|
|
+ <div class="main-content-left" @click.stop="jump(item)">
|
|
|
+ <div
|
|
|
+ v-if="isShowCheckBox"
|
|
|
+ class="checkBox"
|
|
|
+ @click.stop="selecedGoods(item, index)"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ :src="item.checked ? checked_img : check_img"
|
|
|
+ class="check-img"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ :class="[
|
|
|
+ 'coverUrl',
|
|
|
+ item.goods_type != 401 ? 'coverUrl-border' : '',
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ <template v-if="item.goods_type != 401">
|
|
|
+ <img :src="item.goods_picture_url" />
|
|
|
</template>
|
|
|
+ <template v-else>
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ item.goods_detail_type == 'doc' ||
|
|
|
+ item.goods_detail_type == 'docx'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <img src="../../assets/doc-Q.png" />
|
|
|
+ </template>
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ item.goods_detail_type == 'xls' ||
|
|
|
+ item.goods_detail_type == 'xlsx'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <img src="../../assets/xls-Q.png" />
|
|
|
+ </template>
|
|
|
+ <template v-if="item.goods_detail_type == 'pdf'">
|
|
|
+ <img src="../../assets/pdf-Q.png" />
|
|
|
+ </template>
|
|
|
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- item.goods_detail_type == 'ppt' ||
|
|
|
- item.goods_detail_type == 'pptx'
|
|
|
- "
|
|
|
- >
|
|
|
- <img src="../../assets/ppt-Q.png" />
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ item.goods_detail_type == 'ppt' ||
|
|
|
+ item.goods_detail_type == 'pptx'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <img src="../../assets/ppt-Q.png" />
|
|
|
+ </template>
|
|
|
</template>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
- <div class="order-infor">
|
|
|
- <p class="name">{{ item.goods_name }}</p>
|
|
|
- <Goodstype :item="item" />
|
|
|
- <p class="author">{{ item.creator_name }}</p>
|
|
|
+ </div>
|
|
|
+ <div class="order-infor">
|
|
|
+ <p class="name">{{ item.goods_name }}</p>
|
|
|
+ <Goodstype :item="item" />
|
|
|
+ <p class="author">{{ item.creator_name }}</p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="main-content-right">
|
|
|
- <p
|
|
|
- :class="[
|
|
|
- 'collectTime',
|
|
|
- language_type == 'AR' ? 'textLeft' : '',
|
|
|
- ]"
|
|
|
- >
|
|
|
- {{ item.create_time }}
|
|
|
- </p>
|
|
|
+ <div class="main-content-right">
|
|
|
+ <p
|
|
|
+ :class="[
|
|
|
+ 'collectTime',
|
|
|
+ language_type == 'AR' ? 'textLeft' : '',
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ {{ item.create_time }}
|
|
|
+ </p>
|
|
|
|
|
|
- <div class="order-btn">
|
|
|
- <div class="price">
|
|
|
- ¥<span
|
|
|
- class="price_num"
|
|
|
- v-html="changePrice(item.goods_price, 24, 16)"
|
|
|
- ></span>
|
|
|
+ <div class="order-btn">
|
|
|
+ <div class="price">
|
|
|
+ ¥<span
|
|
|
+ class="price_num"
|
|
|
+ v-html="changePrice(item.goods_price, 24, 16)"
|
|
|
+ ></span>
|
|
|
+ </div>
|
|
|
+ <!-- 购买 -->
|
|
|
+ <button
|
|
|
+ class="goPay"
|
|
|
+ v-if="item.goods_is_buy == 'false'"
|
|
|
+ @click="reOrder(item)"
|
|
|
+ >
|
|
|
+ {{ item.goods_type == 201 ? "加入课程" : $t("Key72") }}
|
|
|
+ </button>
|
|
|
+ <!-- 已购买 -->
|
|
|
+ <button
|
|
|
+ class="goPay hasPay"
|
|
|
+ v-if="item.goods_is_buy == 'true'"
|
|
|
+ >
|
|
|
+ {{ $t("Key73") }}
|
|
|
+ </button>
|
|
|
</div>
|
|
|
- <!-- 购买 -->
|
|
|
- <button
|
|
|
- class="goPay"
|
|
|
- v-if="item.goods_is_buy == 'false'"
|
|
|
- @click="reOrder(item)"
|
|
|
- >
|
|
|
- {{ item.goods_type == 201 ? "加入课程" : $t("Key72") }}
|
|
|
- </button>
|
|
|
- <!-- 已购买 -->
|
|
|
- <button class="goPay hasPay" v-if="item.goods_is_buy == 'true'">
|
|
|
- {{ $t("Key73") }}
|
|
|
- </button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="paging">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- layout="prev, pager, next"
|
|
|
- :current-page="pageNum"
|
|
|
- :total="total"
|
|
|
- :page-size="pageSize"
|
|
|
- @current-change="changecurrentPage"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <Empty :navType="navType" />
|
|
|
- </template>
|
|
|
+ <div class="paging">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ layout="prev, pager, next"
|
|
|
+ :current-page="pageNum"
|
|
|
+ :total="total"
|
|
|
+ :page-size="pageSize"
|
|
|
+ @current-change="changecurrentPage"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <Empty :navType="navType" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
class="orderDialog"
|
|
@@ -404,6 +413,7 @@ export default {
|
|
|
},
|
|
|
handleSelect(val) {
|
|
|
let _this = this;
|
|
|
+
|
|
|
_this.activeIndex = val;
|
|
|
_this.pageNum = 1;
|
|
|
_this.goods_name = "";
|