|
|
@@ -36,40 +36,79 @@
|
|
|
|
|
|
</div>
|
|
|
<p class="label">物品信息</p>
|
|
|
- <table class="table">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th width="35%">兑换物品</th>
|
|
|
- <th>数量</th>
|
|
|
- <th>单价</th>
|
|
|
- <th>兑换方式</th>
|
|
|
- <th>总计</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <div class="prize-info">
|
|
|
- <div class="prize-img-container">
|
|
|
- <el-image class="lazy prize-img" :src="data.imgUrl" alt="prize" lazy></el-image>
|
|
|
+ <div v-if="activeName=='goodsNotice'">
|
|
|
+ <table class="table">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th width="35%">兑换物品</th>
|
|
|
+ <th>数量</th>
|
|
|
+ <th>单价</th>
|
|
|
+ <th>兑换方式</th>
|
|
|
+ <th>总计</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <div class="prize-info">
|
|
|
+ <div class="prize-img-container">
|
|
|
+ <el-image class="lazy prize-img" :src="data.imgUrl" alt="prize" lazy></el-image>
|
|
|
+ </div>
|
|
|
+ <div class="prize-detail-info">
|
|
|
+ <h3 class="title">{{ data.name }}</h3>
|
|
|
+ <p class="desc">
|
|
|
+ <span>{{ data.location }}</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="prize-detail-info">
|
|
|
- <h3 class="title">{{ data.name }}</h3>
|
|
|
- <p class="desc">
|
|
|
- <span>{{ data.location }}</span>
|
|
|
- </p>
|
|
|
+ </td>
|
|
|
+ <td>{{ skuCount }}</td>
|
|
|
+ <td>{{ data.price }} 积分</td>
|
|
|
+ <td>{{ data.deliveryName }}</td>
|
|
|
+ <td class="finlly-price">
|
|
|
+ {{ data.price }} 积分
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <table class="table">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th width="35%">兑换物品</th>
|
|
|
+ <th>数量</th>
|
|
|
+ <th>消耗福利券</th>
|
|
|
+ <th>物品属性</th>
|
|
|
+ <th>兑换方式</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <div class="prize-info">
|
|
|
+ <div class="prize-img-container">
|
|
|
+ <el-image class="lazy prize-img" :src="data.imgUrl" alt="prize" lazy></el-image>
|
|
|
+ </div>
|
|
|
+ <div class="prize-detail-info">
|
|
|
+ <h3 class="title">{{ data.name }}</h3>
|
|
|
+ <p class="desc">
|
|
|
+ <span>{{ data.location }}</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td>{{ skuCount }}</td>
|
|
|
- <td>{{ data.price }} 积分</td>
|
|
|
- <td>{{ data.deliveryName }}</td>
|
|
|
- <td class="finlly-price">
|
|
|
- {{ data.price }} 积分
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ </td>
|
|
|
+ <td>{{ skuCount }}</td>
|
|
|
+ <td>{{ data.title }}</td>
|
|
|
+ <td>{{ data.productAttributeName }}</td>
|
|
|
+ <td class="finlly-price">
|
|
|
+ {{ data.deliveryName }}
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="footer">
|
|
|
<!-- <div class="left-info">
|
|
|
<span class="info-title">
|
|
|
@@ -145,7 +184,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { integralInfo, festivalInfo, start } from "@/api/allApi";
|
|
|
+import { integralInfo, festivalInfo, start, kill } from "@/api/allApi";
|
|
|
export default {
|
|
|
data() {
|
|
|
var validPhone = (rule, value, callback) => {
|
|
|
@@ -162,40 +201,22 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
return {
|
|
|
- name: '张三',
|
|
|
- phone: '13613885046',
|
|
|
- email:'13613885046@qq.com',
|
|
|
- address: '正大西区CPL',
|
|
|
+ activeName:this.$route.query.activeName,
|
|
|
+ name: '',
|
|
|
+ phone: '',
|
|
|
+ email:'',
|
|
|
+ address: '',
|
|
|
disabled:true,
|
|
|
skuCount:1,
|
|
|
- data:{
|
|
|
- "skuId": 19,
|
|
|
- "seq": "202304100004",
|
|
|
- "name": "保温杯",
|
|
|
- "skuType": 0,
|
|
|
- "productAttribute": 1,
|
|
|
- "productAttributeName": "实物",
|
|
|
- "location": "洛阳",
|
|
|
- "deliveryType": 0,
|
|
|
- "deliveryName": "无需快递",
|
|
|
- "price": 123,
|
|
|
- "imgUrl": "https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b186b6b25bb44c3b8ee6445432b4ddf5~tplv-k3u1fbpfcp-no-mark:0:0:0:0.image?",
|
|
|
- "status": 0,
|
|
|
- "statusName": "下架",
|
|
|
- "actualStock": 100,
|
|
|
- "lockStock": null,
|
|
|
- "stock": 1,
|
|
|
- "welfareVos": null,
|
|
|
- "creater": "admin123"
|
|
|
- },
|
|
|
+ data:{},
|
|
|
addressDetail:false,
|
|
|
dialogFormVisible:false,
|
|
|
dialogMsgVisible:false,
|
|
|
dataForm: {
|
|
|
skuId:'',
|
|
|
- name: '刘伟',
|
|
|
- phone: '13683797487',
|
|
|
- email:'13683797487@163.com',
|
|
|
+ name: '',
|
|
|
+ phone: '',
|
|
|
+ email:'',
|
|
|
address: '',
|
|
|
skuCount:1,
|
|
|
},
|
|
|
@@ -279,10 +300,18 @@ export default {
|
|
|
contactAddr:this.dataForm.address,
|
|
|
contactEmail:this.dataForm.email,
|
|
|
}
|
|
|
- start(params).then(response => {
|
|
|
- console.log(response.data.data);
|
|
|
- this.dialogMsgVisible = true;
|
|
|
- }).catch(() => {})
|
|
|
+ if(this.activeName=='goodsNotice'){
|
|
|
+ start(params).then(response => {
|
|
|
+ console.log(response.data.data);
|
|
|
+ this.dialogMsgVisible = true;
|
|
|
+ }).catch(() => {})
|
|
|
+ }else{
|
|
|
+ kill(params).then(response => {
|
|
|
+ console.log(response.data.data);
|
|
|
+ this.dialogMsgVisible = true;
|
|
|
+ }).catch(() => {})
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
}
|
|
|
};
|