Commit 06a9e9bc by Jony.L

商品展示 初步提交

parent f8389862
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
<el-table-column prop="memory" label="内存" sortable/> <el-table-column prop="memory" label="内存" sortable/>
<el-table-column prop="storage" label="存储" sortable/> <el-table-column prop="storage" label="存储" sortable/>
<el-table-column prop="publicPrice" label="报价" sortable/> <el-table-column prop="publicPrice" label="报价" sortable/>
<el-table-column prop="term" label="时长" sortable/>
<el-table-column label="操作" width="204px"> <el-table-column label="操作" width="204px">
<template #default="{row}"> <template #default="{row}">
<el-button class="action-button" @click="selectedProduct(1,row.id)">加入购物车</el-button> <el-button class="action-button" @click="selectedProduct(1,row.id)">加入购物车</el-button>
...@@ -79,6 +80,7 @@ ...@@ -79,6 +80,7 @@
<div class="product-card"> <div class="product-card">
<div class="top-info"> <div class="top-info">
<div class="title">{{ item.model }}</div> <div class="title">{{ item.model }}</div>
<div class="title">{{item.term}}</div>
<div class="tag"> <div class="tag">
<!--<el-tag type="warning" effect="dark">性价比</el-tag>--> <!--<el-tag type="warning" effect="dark">性价比</el-tag>-->
<!--<el-tag type="info" effect="plain">专家推荐</el-tag>--> <!--<el-tag type="info" effect="plain">专家推荐</el-tag>-->
...@@ -284,9 +286,10 @@ function tabChange() { ...@@ -284,9 +286,10 @@ function tabChange() {
} }
function getList() { function getList() {
getRListByCategory({nav: tabActive.value, pageNum: pageNum.value, pageSize: pageSize.value}).then(res => { getRListByCategory({categoryId: tabActive.value, pageNum: pageNum.value, pageSize: pageSize.value}).then(res => {
total.value = res.total total.value = res.total
tableData.value = res.rows // tableData.value = res.rows
tableData.value = res.data
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment