Browse Source

修复语法高亮提示

master
科技小王子 7 months ago
parent
commit
4e3a9c5ab6
  1. 2
      api/cms/article/model/index.ts
  2. 2
      api/oa/app/model/index.ts
  3. 2
      api/oa/oaApp/model/index.ts
  4. 2
      api/oa/oaAssetsCode/model/index.ts
  5. 2
      api/oa/oaAssetsDomain/model/index.ts
  6. 2
      api/oa/oaAssetsEmail/model/index.ts
  7. 2
      api/oa/oaAssetsSite/model/index.ts
  8. 2
      api/oa/oaAssetsVhost/model/index.ts
  9. 4
      api/oa/product/model/index.ts
  10. 2
      api/shop/goodsAttrValue/model/index.ts
  11. 4
      api/shop/goodsSku/model/index.ts
  12. 2
      api/shop/order/model/index.ts
  13. 2
      api/shop/orderInfo/model/index.ts
  14. 2
      api/shop/wechatDeposit/model/index.ts
  15. 12
      components/ProductList.vue
  16. 23854
      package-lock.json
  17. 13
      pages/article/components/CardList.vue
  18. 8
      pages/ask/components/CardList.vue
  19. 10
      pages/case/components/CardList.vue
  20. 13
      pages/category/components/CardList.vue
  21. 8
      pages/components/ArticleList.vue
  22. 10
      pages/components/CardList.vue
  23. 14
      pages/components/PlugList.vue
  24. 8
      pages/components/ProductList.vue
  25. 8
      pages/detail/components/LikeArticle.vue
  26. 13
      pages/developer/components/CardList.vue
  27. 13
      pages/docs/components/CardList.vue
  28. 8
      pages/down/components/CardList.vue
  29. 12
      pages/market/components/CardList.vue
  30. 8
      pages/product/components/CardList.vue

2
api/cms/article/model/index.ts

@ -53,7 +53,7 @@ export interface Article {
// 账号 // 账号
username?: string; username?: string;
// 用户头像 // 用户头像
userAvatar?: string;
avatar?: string;
// 所属门店ID // 所属门店ID
shopId?: number; shopId?: number;
// //

2
api/oa/app/model/index.ts

@ -63,7 +63,7 @@ export interface App {
// 续费金额 // 续费金额
renewMoney?: string; renewMoney?: string;
// 软件定价 // 软件定价
price?: string;
price?: number;
// 评分 // 评分
score?: string; score?: string;
// 星级 // 星级

2
api/oa/oaApp/model/index.ts

@ -71,7 +71,7 @@ export interface OaApp {
// 业务员 // 业务员
salesman?: string; salesman?: string;
// 软件定价 // 软件定价
price?: string;
price?: number;
// 划线价格 // 划线价格
linePrice?: string; linePrice?: string;
// 评分 // 评分

2
api/oa/oaAssetsCode/model/index.ts

@ -15,7 +15,7 @@ export interface OaAssetsCode {
// 仓库品牌 // 仓库品牌
brand?: string; brand?: string;
// 价格 // 价格
price?: string;
price?: number;
// 详情内容 // 详情内容
content?: string; content?: string;
// 购买时间 // 购买时间

2
api/oa/oaAssetsDomain/model/index.ts

@ -17,7 +17,7 @@ export interface OaAssetsDomain {
// 初始密码 // 初始密码
password?: string; password?: string;
// 价格 // 价格
price?: string;
price?: number;
// 详情内容 // 详情内容
content?: string; content?: string;
// ssl证书 // ssl证书

2
api/oa/oaAssetsEmail/model/index.ts

@ -17,7 +17,7 @@ export interface OaAssetsEmail {
// 初始账号 // 初始账号
system?: string; system?: string;
// 价格 // 价格
price?: string;
price?: number;
// 详情内容 // 详情内容
content?: string; content?: string;
// ssl证书 // ssl证书

2
api/oa/oaAssetsSite/model/index.ts

@ -17,7 +17,7 @@ export interface OaAssetsSite {
// 初始账号 // 初始账号
system?: string; system?: string;
// 价格 // 价格
price?: string;
price?: number;
// 详情内容 // 详情内容
content?: string; content?: string;
// ssl证书 // ssl证书

2
api/oa/oaAssetsVhost/model/index.ts

@ -17,7 +17,7 @@ export interface OaAssetsVhost {
// 初始账号 // 初始账号
system?: string; system?: string;
// 价格 // 价格
price?: string;
price?: number;
// 详情内容 // 详情内容
content?: string; content?: string;
// ssl证书 // ssl证书

4
api/oa/product/model/index.ts

@ -27,9 +27,9 @@ export interface Product {
// 单位名称 (个) // 单位名称 (个)
unitName?: string; unitName?: string;
// 进货价格 // 进货价格
price?: string;
price?: number;
// 销售价格 // 销售价格
salePrice?: string;
salePrice?: number;
// 库存计算方式(10下单减库存 20付款减库存) // 库存计算方式(10下单减库存 20付款减库存)
deductStockType?: number; deductStockType?: number;
// 轮播图 // 轮播图

2
api/shop/goodsAttrValue/model/index.ts

@ -15,7 +15,7 @@ export interface GoodsAttrValue {
// 销量 // 销量
sales?: number; sales?: number;
// 属性金额 // 属性金额
price?: string;
price?: number;
// 图片 // 图片
image?: string; image?: string;
// 唯一值 // 唯一值

4
api/shop/goodsSku/model/index.ts

@ -13,9 +13,9 @@ export interface GoodsSku {
// 商品图片 // 商品图片
image?: string; image?: string;
// 商品价格 // 商品价格
price?: string;
price?: number;
// 市场价格 // 市场价格
salePrice?: string;
salePrice?: number;
// 成本价 // 成本价
cost?: string; cost?: string;
// 库存 // 库存

2
api/shop/order/model/index.ts

@ -46,7 +46,7 @@ export interface Order {
// 实际付款 // 实际付款
payPrice?: string; payPrice?: string;
// 用于统计 // 用于统计
price?: string;
price?: number;
// 价钱,用于积分赠送 // 价钱,用于积分赠送
money?: string; money?: string;
// 退款金额 // 退款金额

2
api/shop/orderInfo/model/index.ts

@ -19,7 +19,7 @@ export interface OrderInfo {
// 预约时间段 // 预约时间段
dateTime?: string; dateTime?: string;
// 单价 // 单价
price?: string;
price?: number;
// 儿童价 // 儿童价
childrenPrice?: string; childrenPrice?: string;
// 成人人数 // 成人人数

2
api/shop/wechatDeposit/model/index.ts

@ -25,7 +25,7 @@ export interface WechatDeposit {
// 物品名称 // 物品名称
name?: string; name?: string;
// 押金金额 // 押金金额
price?: string;
price?: number;
// 押金状态,1已付款,2未付款,已退押金 // 押金状态,1已付款,2未付款,已退押金
status?: string; status?: string;
// //

12
components/ProductList.vue

@ -18,18 +18,18 @@
:src="`https://oss.wsdns.cn/20240925/e5e47100f4b6471395b3b81f834d2902.jpg?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90`" :src="`https://oss.wsdns.cn/20240925/e5e47100f4b6471395b3b81f834d2902.jpg?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90`"
fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/> fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/>
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div> <div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
<div class="text-red-500">{{ item.price }}</div> <div class="text-red-500">{{ item.price }}</div>
</p>
<p v-if="item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
</div>
<div v-if="item.price && item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div> <div class="text-gray-500">{{ item.comments }}</div>
</p>
</div>
<div class="button-group flex justify-center mt-3"> <div class="button-group flex justify-center mt-3">
<el-button class="w-full" :icon="ElIconView" @click="openSpmUrl('/item', item,item.goodsId,true)">
<el-button class="w-full" :icon="ElIconView" @click="openSpmUrl('/item', item,item.productId,true)">
查看详情 查看详情
</el-button> </el-button>
<el-button type="primary" v-if="item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买
<el-button type="primary" v-if="item.price && item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买
</el-button> </el-button>
<el-button v-else class="w-full" :icon="ElIconShoppingCart">下载</el-button> <el-button v-else class="w-full" :icon="ElIconShoppingCart">下载</el-button>
</div> </div>

23854
package-lock.json

File diff suppressed because it is too large

13
pages/article/components/CardList.vue

@ -6,13 +6,12 @@
<el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId,true)"> <el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId,true)">
<el-image :src="item.image" fit="fill" :lazy="true" class="w-full h-[150px] cursor-pointer" /> <el-image :src="item.image" fit="fill" :lazy="true" class="w-full h-[150px] cursor-pointer" />
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden">{{ item.title }}</span>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500">
<el-avatar :src="item.avatar" :size="20" />
<span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span>
</p>
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div>
</div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>

8
pages/ask/components/CardList.vue

@ -6,15 +6,15 @@
<el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId,true)"> <el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId,true)">
<el-image :src="item.image" fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer" /> <el-image :src="item.image" fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer" />
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden"> <span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden">
{{ item.title }}</span> {{ item.title }}</span>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500">
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500">
<el-avatar :src="item.avatar" :size="20" /> <el-avatar :src="item.avatar" :size="20" />
<span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span> <span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span>
<el-icon v-if="item.permission > 0"><Lock /></el-icon> <el-icon v-if="item.permission > 0"><Lock /></el-icon>
</p>
</div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>

10
pages/case/components/CardList.vue

@ -6,15 +6,15 @@
<el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer"> <el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer">
<el-image :src="item.appIcon" fit="contain" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer" /> <el-image :src="item.appIcon" fit="contain" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer" />
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<span class="flex-1 text-xl cursor-pointer">{{ item.appName }}</span> <span class="flex-1 text-xl cursor-pointer">{{ item.appName }}</span>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<span class="text-gray-500">{{ item.comments }} </span> <span class="text-gray-500">{{ item.comments }} </span>
</p>
</div>
<div class="button-group flex justify-center mt-3"> <div class="button-group flex justify-center mt-3">
<el-button class="w-full" :icon="ElIconView" @click="openSpmUrl(`/item`,item,item.appId,true)">查看详情</el-button> <el-button class="w-full" :icon="ElIconView" @click="openSpmUrl(`/item`,item,item.appId,true)">查看详情</el-button>
<el-button v-if="item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买</el-button>
<el-button v-if="item.price && item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买</el-button>
<el-button v-else class="w-full" :icon="ElIconSetting" @click="openSpmUrl(`https://${item.tenantId}.websoft.top`,item,item.appId,true)">控制台</el-button> <el-button v-else class="w-full" :icon="ElIconSetting" @click="openSpmUrl(`https://${item.tenantId}.websoft.top`,item,item.appId,true)">控制台</el-button>
</div> </div>
</div> </div>

13
pages/category/components/CardList.vue

@ -6,13 +6,12 @@
<el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId,true)"> <el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId,true)">
<el-image :src="item.image" fit="fill" :lazy="true" class="w-full h-[150px] cursor-pointer" /> <el-image :src="item.image" fit="fill" :lazy="true" class="w-full h-[150px] cursor-pointer" />
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden">{{ item.title }}</span>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500">
<el-avatar :src="item.avatar" :size="20" />
<span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span>
</p>
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div>
</div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>

8
pages/components/ArticleList.vue

@ -17,13 +17,13 @@
@click="openSpmUrl(`/detail`,item,item.articleId,true)"> @click="openSpmUrl(`/detail`,item,item.articleId,true)">
<el-image :src="item.image" fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/> <el-image :src="item.image" fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/>
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden">{{ item.title }}</span> <span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden">{{ item.title }}</span>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500">
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500">
<el-avatar :src="item.avatar" :size="20"/> <el-avatar :src="item.avatar" :size="20"/>
<span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span> <span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span>
</p>
</div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>

10
pages/components/CardList.vue

@ -18,18 +18,18 @@
:src="`https://oss.wsdns.cn/20240925/e5e47100f4b6471395b3b81f834d2902.jpg?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90`" :src="`https://oss.wsdns.cn/20240925/e5e47100f4b6471395b3b81f834d2902.jpg?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90`"
fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/> fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/>
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div> <div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
<div class="text-red-500">{{ item.price }}</div> <div class="text-red-500">{{ item.price }}</div>
</p>
<p v-if="item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
</div>
<div v-if="item.price && item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div> <div class="text-gray-500">{{ item.comments }}</div>
</p>
</div>
<div class="button-group flex justify-center mt-3"> <div class="button-group flex justify-center mt-3">
<el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl('/item', item,item.goodsId,true)"> <el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl('/item', item,item.goodsId,true)">
查看详情 查看详情
</el-button> </el-button>
<el-button type="primary" size="large" v-if="item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买
<el-button type="primary" size="large" v-if="item.price && item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买
</el-button> </el-button>
<el-button v-else class="w-full" size="large" :icon="ElIconShoppingCart">下载</el-button> <el-button v-else class="w-full" size="large" :icon="ElIconShoppingCart">下载</el-button>
</div> </div>

14
pages/components/PlugList.vue

@ -18,16 +18,16 @@
:src="`https://oss.wsdns.cn/20240925/e5e47100f4b6471395b3b81f834d2902.jpg?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90`" :src="`https://oss.wsdns.cn/20240925/e5e47100f4b6471395b3b81f834d2902.jpg?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90`"
fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/> fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/>
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.plugName }}</div>
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
<div class="text-red-500">{{ item.price }}</div> <div class="text-red-500">{{ item.price }}</div>
</p>
<p v-if="item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
</div>
<div v-if="item.price && item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div> <div class="text-gray-500">{{ item.comments }}</div>
</p>
</div>
<div class="button-group flex justify-center mt-3"> <div class="button-group flex justify-center mt-3">
<el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl(`/item`, item,item.plugId,true)">查看详情</el-button>
<el-button type="primary" size="large" v-if="item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买
<el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl(`/item`, item,item.productId,true)">查看详情</el-button>
<el-button type="primary" size="large" v-if="item.price && item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买
</el-button> </el-button>
<el-button v-else class="w-full" size="large" :icon="ElIconShoppingCart">下载</el-button> <el-button v-else class="w-full" size="large" :icon="ElIconShoppingCart">下载</el-button>
</div> </div>

8
pages/components/ProductList.vue

@ -18,13 +18,13 @@
:src="`${item.image}`" :src="`${item.image}`"
fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/> fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/>
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div> <div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
<div class="text-red-500">{{ item.price }}</div> <div class="text-red-500">{{ item.price }}</div>
</p>
<p v-if="item.price && item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
</div>
<div v-if="item.price && item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div> <div class="text-gray-500">{{ item.comments }}</div>
</p>
</div>
<div class="button-group flex justify-center mt-3"> <div class="button-group flex justify-center mt-3">
<el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl('/item', item,item.productId,true)"> <el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl('/item', item,item.productId,true)">
查看详情 查看详情

8
pages/detail/components/LikeArticle.vue

@ -11,13 +11,13 @@
@click="openSpmUrl(`/detail`,item,item.articleId,true)"> @click="openSpmUrl(`/detail`,item,item.articleId,true)">
<el-image :src="item.image" fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/> <el-image :src="item.image" fit="fill" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/>
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden">{{ item.title }}</span> <span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden">{{ item.title }}</span>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500">
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500">
<el-avatar :src="item.avatar" :size="20"/> <el-avatar :src="item.avatar" :size="20"/>
<span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span> <span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span>
</p>
</div>
</div> </div>
</el-card> </el-card>
</template> </template>

13
pages/developer/components/CardList.vue

@ -6,13 +6,12 @@
<el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId)"> <el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId)">
<el-image :src="item.image" fit="fill" :lazy="true" class="w-full h-[150px] cursor-pointer" /> <el-image :src="item.image" fit="fill" :lazy="true" class="w-full h-[150px] cursor-pointer" />
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden">{{ item.title }}</span>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500">
<el-avatar :src="item.avatar" :size="20" />
<span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span>
</p>
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div>
</div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>

13
pages/docs/components/CardList.vue

@ -6,13 +6,12 @@
<el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId)"> <el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId)">
<el-image :src="item.image" fit="fill" :lazy="true" class="w-full h-[150px] cursor-pointer" /> <el-image :src="item.image" fit="fill" :lazy="true" class="w-full h-[150px] cursor-pointer" />
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<span class="flex-1 text-xl cursor-pointer max-h-[57px] overflow-hidden">{{ item.title }}</span>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500">
<el-avatar :src="item.avatar" :size="20" />
<span>{{ item.nickname }} · {{ dayjs(item.createTime).format('MM-DD hh:mm') }}</span>
</p>
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div>
</div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>

8
pages/down/components/CardList.vue

@ -6,12 +6,12 @@
<el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer"> <el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer">
<el-image :src="`${item.image}`" fit="contain" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer" /> <el-image :src="`${item.image}`" fit="contain" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer" />
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div> <div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div> <div class="text-gray-500">{{ item.comments }}</div>
</p>
</div>
<div class="button-group flex justify-center mt-3"> <div class="button-group flex justify-center mt-3">
<el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl(`/item`, item, item.productId,true)">在线体验</el-button> <el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl(`/item`, item, item.productId,true)">在线体验</el-button>
<el-button type="primary" size="large" class="w-full" :icon="ElIconShoppingCart">下载源码</el-button> <el-button type="primary" size="large" class="w-full" :icon="ElIconShoppingCart">下载源码</el-button>

12
pages/market/components/CardList.vue

@ -8,16 +8,16 @@
:src="item.image" :src="item.image"
fit="scale-down" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/> fit="scale-down" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer"/>
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex items-center gap-1.5">
<span class="flex-1 text-xl cursor-pointer">{{ item.title }}</span> <span class="flex-1 text-xl cursor-pointer">{{ item.title }}</span>
<div class="text-red-500" v-if="item.price > 0">{{ item.price }}</div>
</p>
<p class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-red-500" v-if="item.price && item.price > 0">{{ item.price }}</div>
</div>
<div class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div> <div class="text-gray-500">{{ item.comments }}</div>
</p>
</div>
<div class="button-group flex justify-center mt-3"> <div class="button-group flex justify-center mt-3">
<el-button class="w-full" size="large" @click.stop="openSpmUrl(`/item`, item, item.productId,true)">查看详情</el-button> <el-button class="w-full" size="large" @click.stop="openSpmUrl(`/item`, item, item.productId,true)">查看详情</el-button>
<el-button type="primary" v-if="item.price > 0" size="large" class="w-full" :icon="ElIconShoppingCart" @click.stop="openSpmUrl(`/item`, item, item.productId,true)">购买
<el-button type="primary" v-if="item.price && item.price > 0" size="large" class="w-full" :icon="ElIconShoppingCart" @click.stop="openSpmUrl(`/item`, item, item.productId,true)">购买
</el-button> </el-button>
<el-button v-else class="w-full" size="large">下载插件</el-button> <el-button v-else class="w-full" size="large">下载插件</el-button>
</div> </div>

8
pages/product/components/CardList.vue

@ -6,13 +6,13 @@
<el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer"> <el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50 cursor-pointer">
<el-image :src="`${item.image}`" fit="contain" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer" /> <el-image :src="`${item.image}`" fit="contain" :lazy="true" class="w-full md:h-[150px] h-[199px] cursor-pointer" />
<div class="flex-1 px-4 py-5 sm:p-6 !p-4"> <div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="text-gray-700 dark:text-white text-base font-semibold flex flex-col gap-1.5">
<div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div> <div class="flex-1 text-xl cursor-pointer">{{ item.title }}</div>
<div class="text-red-500">{{ item.price }} </div> <div class="text-red-500">{{ item.price }} </div>
</p>
<p v-if="item.price && item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
</div>
<div v-if="item.price && item.price > 0" class="flex items-center gap-1.5 py-2 text-gray-500 justify-between">
<div class="text-gray-500">{{ item.comments }}</div> <div class="text-gray-500">{{ item.comments }}</div>
</p>
</div>
<div class="button-group flex justify-center mt-3"> <div class="button-group flex justify-center mt-3">
<el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl(`/item`, item, item.productId,true)">查看详情</el-button> <el-button class="w-full" size="large" :icon="ElIconView" @click="openSpmUrl(`/item`, item, item.productId,true)">查看详情</el-button>
<el-button type="primary" size="large" v-if="item.price && item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买</el-button> <el-button type="primary" size="large" v-if="item.price && item.price > 0" class="w-full" :icon="ElIconShoppingCart">购买</el-button>

Loading…
Cancel
Save