<template>
  <div class="goods-detail">
    <NavBar :active="'/shop'"></NavBar>
    
    <el-card class="detail-card">
      <el-row :gutter="20">
        <el-col :span="12">
          <img :src="goods.image" class="goods-image">
        </el-col>
        <el-col :span="12">
          <h1>{{ goods.name }}</h1>
          <div class="goods-price">{{ goods.points }} 积分</div>
          <div class="goods-desc">{{ goods.description }}</div>
          <div class="goods-action">
            <el-button type="primary" size="large" @click="handleExchange">
              立即兑换
            </el-button>
          </div>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template> 