Browse Source

修改秒杀报错及

master
xuwenbo 4 years ago
parent
commit
26f286a23f
  1. 4
      .env.production
  2. 4
      src/views/activity/seckill/form.vue
  3. 42
      src/views/shop/goods/index.vue

4
.env.production

@ -1,5 +1,5 @@
ENV = 'production' ENV = 'production'
# 接口地址 # 接口地址
VUE_APP_BASE_API = 'https://app2.yixiang.co' VUE_APP_BASE_API = 'https://consoleapi.xinxintuan.co'
VUE_APP_WS_API = 'ws://app2.yixiang.co' VUE_APP_WS_API = 'ws://consoleapi.xinxintuan.co'

4
src/views/activity/seckill/form.vue

@ -50,6 +50,9 @@
<el-form-item label="秒杀价"> <el-form-item label="秒杀价">
<el-input-number v-model="formValidate.price" /> <el-input-number v-model="formValidate.price" />
</el-form-item> </el-form-item>
<el-form-item label="返积分">
<el-input-number v-model="formValidate.giveIntegral" />
</el-form-item>
<el-form-item label="活动状态"> <el-form-item label="活动状态">
<el-radio v-model="formValidate.status" :label="1">开启</el-radio> <el-radio v-model="formValidate.status" :label="1">开启</el-radio>
<el-radio v-model="formValidate.status" :label="0" style="width: 200px;">关闭</el-radio> <el-radio v-model="formValidate.status" :label="0" style="width: 200px;">关闭</el-radio>
@ -139,7 +142,6 @@
<el-input type="text" v-model="scope.row.sekill_stock" /> <el-input type="text" v-model="scope.row.sekill_stock" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="bar_code" label="商品编号" align="center"> <el-table-column prop="bar_code" label="商品编号" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input type="text" v-model="scope.row.bar_code" :disabled="true"/> <el-input type="text" v-model="scope.row.bar_code" :disabled="true"/>

42
src/views/shop/goods/index.vue

@ -36,7 +36,6 @@
</div> </div>
</div> </div>
<!--表单组件--> <!--表单组件-->
<killForm ref="form4" :is-add="isAdd" />
<bargainForm ref="form5" :is-add="isAdd" /> <bargainForm ref="form5" :is-add="isAdd" />
<!--表格渲染--> <!--表格渲染-->
<el-table v-loading="loading" :data="data" size="small" style="width: 100%;"> <el-table v-loading="loading" :data="data" size="small" style="width: 100%;">
@ -85,13 +84,6 @@
<el-dropdown size="mini" split-button type="primary" trigger="click"> <el-dropdown size="mini" split-button type="primary" trigger="click">
操作 操作
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item>
<el-button
size="mini"
type="primary"
@click="editD(scope.row)"
>开启秒杀</el-button>
</el-dropdown-item>
<el-dropdown-item> <el-dropdown-item>
<el-button <el-button
size="mini" size="mini"
@ -292,40 +284,6 @@ export default {
} }
_this.dialog = true _this.dialog = true
}, },
editD(data) {
this.isAdd = false
const _this = this.$refs.form4
_this.form = {
productId: data.id,
merId: data.merId,
image: data.image,
images: data.sliderImage,
imageArr: data.image.split(','),
sliderImageArr: data.sliderImage.split(','),
title: data.storeName,
info: data.storeInfo,
postage: data.postage,
unitName: data.unitName,
sort: data.sort,
sales: data.sales,
stock: data.stock,
isShow: data.isShow,
status: 1,
isHot: data.isHot,
description: data.description,
isPostage: data.isPostage,
people: 0,
price: 0.01,
effectiveTime: 24,
otPrice: data.otPrice,
cost: data.cost,
num: 1,
giveIntegral: 0,
isDel: 0,
browse: 0
}
_this.dialog = true
},
editE(data) { editE(data) {
this.isAdd = false this.isAdd = false
const _this = this.$refs.form5 const _this = this.$refs.form5

Loading…
Cancel
Save