Commit 023d5e4a by chenwq

秒杀活动-小程序展示;推荐人字段

1 parent e950fe9a
...@@ -259,7 +259,6 @@ export default { ...@@ -259,7 +259,6 @@ export default {
} }
}, },
created() { created() {
console.log(this.$globalState.session)
if (this.$isGroupUp) { if (this.$isGroupUp) {
this.getPackageList() this.getPackageList()
} }
......
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
<el-form-item size="small" label="开通门店" style="margin-left: -10px"> <el-form-item size="small" label="开通门店" style="margin-left: -10px">
<el-input :size="size" v-model="searchForm.merchantName" placeholder="请输入门店" clearable></el-input> <el-input :size="size" v-model="searchForm.merchantName" placeholder="请输入门店" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="$isGroupUp" size="small" class="fr-mr0">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button>
<el-button :size="size" @click="handleReset">重置</el-button>
</el-form-item>
</el-row>
<el-row v-show="!$isGroupUp">
<el-form-item size="small" label="推荐人">
<el-input :size="size" v-model="searchForm.shareStaffName" placeholder="请输入推荐人" clearable></el-input>
</el-form-item>
<el-form-item size="small" class="fr-mr0"> <el-form-item size="small" class="fr-mr0">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button> <el-button :size="size" type="primary" @click="handleExport">导出</el-button>
...@@ -131,11 +141,12 @@ export default { ...@@ -131,11 +141,12 @@ export default {
// } // }
}, },
{ {
label: '价格', label: '价格/元',
prop: 'originalPrice' prop: 'originalPrice'
}, },
{ {
label: '实收金额', label: '实收金额/元',
width: '120',
prop: 'realPayPrice' prop: 'realPayPrice'
}, },
{ {
...@@ -156,7 +167,14 @@ export default { ...@@ -156,7 +167,14 @@ export default {
prop: 'merchantName', prop: 'merchantName',
width: '180' width: '180'
}, },
{
label: '推荐人',
prop: 'shareStaffName',
width: '120',
formatter: cellValue => {
return cellValue.shareStaffName || '-'
}
},
{ {
label: '用户信息', label: '用户信息',
prop: 'accountName', prop: 'accountName',
...@@ -182,8 +200,12 @@ export default { ...@@ -182,8 +200,12 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
} }
if (this.$isGroupUp) {
let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人')
this.tableParams.tableColumns.splice(idx, 1)
}
}, },
mounted() {}, mounted() { },
methods: { methods: {
tabClick(index) { tabClick(index) {
this.currentIndex = index this.currentIndex = index
...@@ -291,7 +313,7 @@ export default { ...@@ -291,7 +313,7 @@ export default {
this.currentIndex = 1 this.currentIndex = 1
this.searchForm = {} this.searchForm = {}
this.searchForm.orderStatus = '' //默认查询全部 this.searchForm.orderStatus = '' //默认查询全部
this.searchForm.orderType = '' this.searchForm.orderType = ''
// this.handleSearch() // this.handleSearch()
this.$nextTick(() => { this.$nextTick(() => {
this.isReload = true this.isReload = true
......
...@@ -420,6 +420,14 @@ export default { ...@@ -420,6 +420,14 @@ export default {
width: 160 width: 160
}, },
{ {
label: '推荐人',
prop: 'shareStaffName',
width: '180',
formatter: cellValue => {
return cellValue.shareStaffName || '-'
}
},
{
label: '支付总价', label: '支付总价',
prop: 'payPrice', prop: 'payPrice',
formatter: cellValue => { formatter: cellValue => {
......
<!-- 编辑代金券 --> <!-- 编辑代金券 -->
<template> <template>
<div class="edit-share marketing p-t-20 edit-box"> <div class="edit-share marketing p-t-20 edit-box edit-activity">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}秒杀活动</p> <p class="edit-title">{{ title }}秒杀活动</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
...@@ -57,16 +57,25 @@ ...@@ -57,16 +57,25 @@
<el-radio-group v-model="editForm[scope.scope.name]" @change="handleIsLimit"> <el-radio-group v-model="editForm[scope.scope.name]" @change="handleIsLimit">
<el-radio v-for="(item, index) in scope.scope.optionList" :key="index" :label="item[scope.scope.optionId]" :disabled="isDisabled">{{ item[scope.scope.optionLabel] }}</el-radio> <el-radio v-for="(item, index) in scope.scope.optionList" :key="index" :label="item[scope.scope.optionId]" :disabled="isDisabled">{{ item[scope.scope.optionLabel] }}</el-radio>
</el-radio-group> </el-radio-group>
<span class="m-l-20" v-if="editForm[scope.scope.name] == 2" id="limitPurchaseNumber"> <p v-if="editForm[scope.scope.name] == 2" id="limitPurchaseNumber" style="color: #333333;">
每人限购 每人限购
<el-form-item prop="limitPurchaseNumber"> <el-form-item prop="limitPurchaseNumber">
<el-input v-model="editForm.limitPurchaseNumber" placeholder="请输入限购次数" :disabled="isDisabled"></el-input> <el-input v-model="editForm.limitPurchaseNumber" placeholder="请输入限购次数" :disabled="isDisabled"></el-input>
</el-form-item> </el-form-item>
件 件
</span> </p>
</template> </template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<div class="wechat-box">
<img class="w-100-percent" src="@/assets/wechat-activity.png" />
<img class="wechat-nav" src="@/assets/wechat-nav.png" />
<div v-show="selectedProInfo.goodsImage" class="wechant-banner-img">
<img class="w-100-percent" :src="selectedProInfo.goodsImage" />
</div>
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
<p v-show="editForm.limitPurchaseNumber" class="wechat-limit-num one-line-ellipsis">{{ editForm.limitPurchaseNumber }}</p>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" v-if="apear != 'see'" @click="handleConfirm">确定</el-button> <el-button type="primary" v-if="apear != 'see'" @click="handleConfirm">确定</el-button>
<el-button v-if="apear != 'see'" @click="handleCancel">取消</el-button> <el-button v-if="apear != 'see'" @click="handleCancel">取消</el-button>
...@@ -334,7 +343,7 @@ export default { ...@@ -334,7 +343,7 @@ export default {
}, },
handleIsLimit(val) { handleIsLimit(val) {
this.editForm.limitPurchaseNumber = '' this.editForm.limitPurchaseNumber = val == 1 ? '' : '1'
this.editRule.limitPurchaseNumber[0].required = val != 1 this.editRule.limitPurchaseNumber[0].required = val != 1
}, },
...@@ -650,12 +659,51 @@ export default { ...@@ -650,12 +659,51 @@ export default {
.edit-product-dh .w-320 { .edit-product-dh .w-320 {
width: 320px; width: 320px;
} }
.w-474 {
width: 474px; /* 规格 */
.edit-activity {
position: relative;
}
.edit-activity .edit-container {
min-height: 680px;
} }
.color-red { .edit-activity .wechat-box {
color: #eb4e4e; width: 276px;
cursor: pointer; box-sizing: border-box;
position: absolute;
top: 100px;
right: 19px;
}
.edit-activity .wechat-nav {
position: absolute;
top: 20px;
right: 20px;
z-index: 20;
}
.edit-activity .wechat-box .wechant-banner-img {
position: absolute;
top: 20px;
left: 21px;
width: 234px;
height: 552px;
}
.edit-activity .wechat-box .wechant-banner-img img {
height: 235px;
border-radius: 18px 18px 0 0;
}
.edit-activity .wechat-box .wechat-name {
position: absolute;
top: 300px;
left: 26px;
font-size: 18px;
width: 180px;
color: #282829;
}
.edit-activity .wechat-box .wechat-limit-num {
position: absolute;
bottom: 93px;
left: 160px;
font-size: 10px;
width: 20px;
} }
/* 规格 */
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!