merge master
commit
3e54f24ddd
|
@ -280,7 +280,7 @@ export default {
|
||||||
.login-container {
|
.login-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 10px auto;
|
margin: 10px auto;
|
||||||
width: 1200px;
|
width: 600px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
.login-btn{
|
.login-btn{
|
||||||
|
|
|
@ -188,10 +188,10 @@ export default {
|
||||||
},
|
},
|
||||||
formValidate: {
|
formValidate: {
|
||||||
price: [
|
price: [
|
||||||
{ required: true, message: '请输入大于0小于9999的合法充值金额' },
|
{ required: true, message: '请输入大于等于1小于9999的合法充值金额' },
|
||||||
{
|
{
|
||||||
pattern: /^[1-9]\d{0,3}(\.\d{1,2})?$/,
|
pattern: /^[1-9]\d{0,3}(\.\d{1,2})?$/,
|
||||||
message: '请输入大于0小于9999的合法充值金额',
|
message: '请输入大于等于1小于9999的合法充值金额',
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -200,11 +200,13 @@ export default {
|
||||||
logColumns: [
|
logColumns: [
|
||||||
{
|
{
|
||||||
title: '时间',
|
title: '时间',
|
||||||
|
width: 190,
|
||||||
key: 'createTime'
|
key: 'createTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '金额',
|
title: '金额',
|
||||||
key: 'money',
|
key: 'money',
|
||||||
|
width: 180,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.money > 0) {
|
if (params.row.money > 0) {
|
||||||
return h('div', [
|
return h('div', [
|
||||||
|
@ -241,21 +243,30 @@ export default {
|
||||||
logColumnsData: {}, // 余额日志
|
logColumnsData: {}, // 余额日志
|
||||||
// 充值记录
|
// 充值记录
|
||||||
rechargeListColumns: [
|
rechargeListColumns: [
|
||||||
|
{
|
||||||
|
title: '充值时间',
|
||||||
|
key: 'createTime',
|
||||||
|
width: 168
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '支付单号',
|
title: '支付单号',
|
||||||
key: 'rechargeSn',
|
key: 'rechargeSn',
|
||||||
width: 200
|
width: 200
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '支付方式',
|
|
||||||
key: 'rechargeWay'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '充值金额',
|
title: '充值金额',
|
||||||
key: 'rechargeMoney',
|
key: 'rechargeMoney',
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
|
if (params.row.payStatus === 'PAID') {
|
||||||
|
return h('div', [h('span', {
|
||||||
|
style: {
|
||||||
|
color: 'green'
|
||||||
|
}
|
||||||
|
}, this.$options.filters.unitPrice(params.row.rechargeMoney, '+ ¥'))]);
|
||||||
|
} else {
|
||||||
return h('div', [h('span', this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]);
|
return h('div', [h('span', this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '支付状态',
|
title: '支付状态',
|
||||||
|
@ -268,29 +279,60 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '支付方式',
|
||||||
|
key: 'rechargeWay',
|
||||||
|
render: (h, params) => {
|
||||||
|
if (params.row.rechargeWay === 'ALIPAY') {
|
||||||
|
return h('div', [h('span', {}, '支付宝')]);
|
||||||
|
} else if (params.row.rechargeWay === 'WECHAT') {
|
||||||
|
return h('div', [h('span', {}, '微信')]);
|
||||||
|
} else if (params.row.rechargeWay === 'BANK_TRANSFER') {
|
||||||
|
return h('div', [h('span', {}, '线下转账')]);
|
||||||
|
} else {
|
||||||
|
return h('div', [h('span', {}, '')]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '支付时间',
|
title: '支付时间',
|
||||||
key: 'payTime'
|
key: 'payTime',
|
||||||
|
width: 180
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
rechargeListData: {}, // 充值记录数据
|
rechargeListData: {}, // 充值记录数据
|
||||||
// 提现记录
|
// 提现记录
|
||||||
withdrawApplyColumns: [
|
withdrawApplyColumns: [
|
||||||
|
{
|
||||||
|
title: '申请时间',
|
||||||
|
key: 'createTime',
|
||||||
|
width: 168
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '提现单号',
|
title: '提现单号',
|
||||||
key: 'sn',
|
key: 'sn',
|
||||||
width: 215
|
width: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '提现金额',
|
title: '提现金额',
|
||||||
key: 'applyMoney',
|
key: 'applyMoney',
|
||||||
|
width: 110,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
|
if (params.row.applyStatus === 'VIA_AUDITING') {
|
||||||
|
return h('div', [h('span', {
|
||||||
|
style: {
|
||||||
|
color: 'green'
|
||||||
|
}
|
||||||
|
}, this.$options.filters.unitPrice(params.row.applyMoney, '+ ¥'))]);
|
||||||
|
} else {
|
||||||
return h('div', [h('span', this.$options.filters.unitPrice(params.row.applyMoney, '¥'))]);
|
return h('div', [h('span', this.$options.filters.unitPrice(params.row.applyMoney, '¥'))]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '提现状态',
|
title: '提现状态',
|
||||||
key: 'applyStatus',
|
key: 'applyStatus',
|
||||||
|
width: 95,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.applyStatus === 'APPLY') {
|
if (params.row.applyStatus === 'APPLY') {
|
||||||
return h('div', [h('span', {}, '申请中')]);
|
return h('div', [h('span', {}, '申请中')]);
|
||||||
|
@ -302,12 +344,14 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '提现时间',
|
title: '审核时间',
|
||||||
key: 'inspectTime'
|
key: 'inspectTime',
|
||||||
|
width: 168
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '审核备注',
|
title: '审核备注',
|
||||||
key: 'inspectRemark'
|
key: 'inspectRemark'
|
||||||
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
withdrawApplyColumnsListData: {} // 提现记录
|
withdrawApplyColumnsListData: {} // 提现记录
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem prop="storeAddressIdPath" label="公司所在地">
|
<FormItem prop="storeAddressIdPath" label="公司所在地">
|
||||||
<!-- <Input type="text" v-model="form.storeAddressIdPath" placeholder="请选择公司所在地" /> -->
|
|
||||||
<region
|
<region
|
||||||
style="width: 250px"
|
style="width: 250px"
|
||||||
@selected="selectedRegion"
|
@selected="selectedRegion"
|
||||||
|
@ -32,6 +31,13 @@
|
||||||
><span slot="append">人</span>
|
><span slot="append">人</span>
|
||||||
</Input>
|
</Input>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<FormItem prop="linkPhone" label="公司电话">
|
||||||
|
<Input
|
||||||
|
type="text"
|
||||||
|
v-model="form.companyPhone"
|
||||||
|
placeholder="请填写公司电话"
|
||||||
|
></Input>
|
||||||
|
</FormItem>
|
||||||
<FormItem prop="registeredCapital" label="注册资金">
|
<FormItem prop="registeredCapital" label="注册资金">
|
||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div style="height: 20px"></div>
|
<div style="height: 20px"></div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h3>店铺入驻</h3>
|
<h3>店铺入驻</h3>
|
||||||
<Steps :current="currentIndex" size="small" class="margin">
|
<Steps :current="currentIndex" class="margin">
|
||||||
<Step title="企业资质信息"></Step>
|
<Step title="企业资质信息"></Step>
|
||||||
<Step title="财务资质信息"></Step>
|
<Step title="财务资质信息"></Step>
|
||||||
<Step title="其他信息"></Step>
|
<Step title="其他信息"></Step>
|
||||||
|
@ -21,6 +21,9 @@
|
||||||
<span v-if="storeDisable == 'CLOSED'">店铺已关闭,重申请联系管理员</span>
|
<span v-if="storeDisable == 'CLOSED'">店铺已关闭,重申请联系管理员</span>
|
||||||
<span v-if="storeDisable == 'REFUSED'">审核未通过,请修改资质信息,如有疑问请联系管理员</span>
|
<span v-if="storeDisable == 'REFUSED'">审核未通过,请修改资质信息,如有疑问请联系管理员</span>
|
||||||
</div>
|
</div>
|
||||||
|
<Button @click="currentIndex = 0">上一步</Button>
|
||||||
|
<Button @click="currentIndex = 1">下一步</Button>
|
||||||
|
<Button @click="currentIndex = 2">第三步</Button>
|
||||||
<Button v-if="currentIndex === 3" @click="$router.push('/')">返回</Button>
|
<Button v-if="currentIndex === 3" @click="$router.push('/')">返回</Button>
|
||||||
<Button type="primary" @click='currentIndex = 0' v-if="storeDisable === 'REFUSED' && currentIndex === 3">重新申请</Button>
|
<Button type="primary" @click='currentIndex = 0' v-if="storeDisable === 'REFUSED' && currentIndex === 3">重新申请</Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,28 +41,27 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { agreement, applyStatus } from "@/api/shopentry";
|
import { agreement, applyStatus } from '@/api/shopentry';
|
||||||
import firstApply from "./first-apply";
|
import firstApply from './first-apply';
|
||||||
import secondApply from "./second-apply";
|
import secondApply from './second-apply';
|
||||||
import thirdApply from "./third-apply";
|
import thirdApply from './third-apply';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
firstApply,
|
firstApply,
|
||||||
secondApply,
|
secondApply,
|
||||||
thirdApply,
|
thirdApply
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
currentIndex: 0, // 当前步骤
|
currentIndex: 0, // 当前步骤
|
||||||
showAgreement: false, // 协议显示
|
showAgreement: false, // 协议显示
|
||||||
agreementCon: "", // 协议内容
|
agreementCon: '', // 协议内容
|
||||||
checked: false, // 选中协议
|
checked: false, // 选中协议
|
||||||
applyData: {}, // 申请数据
|
|
||||||
firstData: {}, // 第一步数据
|
firstData: {}, // 第一步数据
|
||||||
secondData: {}, // 第二步数据
|
secondData: {}, // 第二步数据
|
||||||
thirdData: {}, // 第三步数据
|
thirdData: {}, // 第三步数据
|
||||||
storeDisable: "", // APPLY OPEN 开店中 CLOSED 关闭 REFUSED 拒绝 APPLYING 申请中,审核
|
storeDisable: '', // APPLY OPEN 开店中 CLOSED 关闭 REFUSED 拒绝 APPLYING 申请中,审核
|
||||||
dataReview: true, // 根据接口返回判断是否可展示数据
|
dataReview: true // 根据接口返回判断是否可展示数据
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -69,7 +71,7 @@ export default {
|
||||||
this.agreementCon = res.result.content;
|
this.agreementCon = res.result.content;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getData() {
|
getData () { // 获取已填写店铺信息
|
||||||
applyStatus().then((res) => {
|
applyStatus().then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if (!res.result) {
|
if (!res.result) {
|
||||||
|
@ -78,34 +80,34 @@ export default {
|
||||||
this.dataReview = false;
|
this.dataReview = false;
|
||||||
let data = res.result;
|
let data = res.result;
|
||||||
let first = [
|
let first = [
|
||||||
"addressIdPath",
|
'storeAddressIdPath',
|
||||||
"addressPath",
|
'storeAddressPath',
|
||||||
"companyAddress",
|
'storeAddressDetail',
|
||||||
"companyEmail",
|
'companyEmail',
|
||||||
"companyName",
|
'companyName',
|
||||||
"employeeNum",
|
'employeeNum',
|
||||||
"legalId",
|
'legalId',
|
||||||
"legalName",
|
'legalName',
|
||||||
"licencePhoto",
|
'licencePhoto',
|
||||||
"legalPhoto",
|
'legalPhoto',
|
||||||
"licenseNum",
|
'licenseNum',
|
||||||
"linkName",
|
'linkName',
|
||||||
"linkPhone",
|
'linkPhone',
|
||||||
"registeredCapital",
|
'registeredCapital',
|
||||||
"scope",
|
'scope'
|
||||||
];
|
];
|
||||||
let second = [
|
let second = [
|
||||||
"settlementBankAccountName",
|
'settlementBankAccountName',
|
||||||
"settlementBankAccountNum",
|
'settlementBankAccountNum',
|
||||||
"settlementBankBranchName",
|
'settlementBankBranchName',
|
||||||
"settlementBankJointName",
|
'settlementBankJointName'
|
||||||
];
|
];
|
||||||
let third = [
|
let third = [
|
||||||
"goodsManagementCategory",
|
'goodsManagementCategory',
|
||||||
"storeCenter",
|
'storeCenter',
|
||||||
"storeDesc",
|
'storeDesc',
|
||||||
"storeLogo",
|
'storeLogo',
|
||||||
"storeName",
|
'storeName'
|
||||||
];
|
];
|
||||||
|
|
||||||
this.storeDisable = data.storeDisable;
|
this.storeDisable = data.storeDisable;
|
||||||
|
@ -120,25 +122,28 @@ export default {
|
||||||
this.thirdData[e] = data[e];
|
this.thirdData[e] = data[e];
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.storeDisable === "APPLY") {
|
if (this.storeDisable === 'APPLY') {
|
||||||
this.currentIndex = 0;
|
this.currentIndex = 0;
|
||||||
} else {
|
} else {
|
||||||
this.currentIndex = 3;
|
this.currentIndex = 3;
|
||||||
}
|
}
|
||||||
|
this.$nextTick(() => {
|
||||||
this.dataReview = true;
|
this.dataReview = true;
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
console.log(33333333333333);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
nextPage (step) {
|
nextPage (step) {
|
||||||
this.currentIndex = step;
|
this.currentIndex = step;
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getData();
|
this.getData();
|
||||||
this.getArticle();
|
this.getArticle();
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -159,7 +164,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.margin {
|
.margin {
|
||||||
margin: 10px 0;
|
margin: 30px 0;
|
||||||
}
|
}
|
||||||
.agreeent-con {
|
.agreeent-con {
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
|
|
|
@ -60,17 +60,23 @@
|
||||||
>
|
>
|
||||||
</Select>
|
</Select>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem prop="storeCenter" label="经纬度">
|
<FormItem prop="storeCenter" label="店铺定位">
|
||||||
<Input
|
<!-- <Input
|
||||||
type="text"
|
type="text"
|
||||||
v-model="form.storeCenter"
|
v-model="form.storeCenter"
|
||||||
readonly
|
readonly
|
||||||
placeholder="点击右侧按钮选择店铺位置"
|
placeholder="点击右侧按钮选择店铺位置"
|
||||||
/>
|
/> -->
|
||||||
<Button
|
<Button
|
||||||
icon="ios-locate-outline"
|
type="info"
|
||||||
|
v-if="!form.storeCenter"
|
||||||
@click="$refs.liliMap.showMap = true"
|
@click="$refs.liliMap.showMap = true"
|
||||||
></Button>
|
>点击获取店铺定位</Button>
|
||||||
|
<Button
|
||||||
|
type="success"
|
||||||
|
v-else
|
||||||
|
@click="$refs.liliMap.showMap = true"
|
||||||
|
>已定位</Button>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem prop="storeDesc" label="店铺简介">
|
<FormItem prop="storeDesc" label="店铺简介">
|
||||||
<Input
|
<Input
|
||||||
|
@ -84,6 +90,7 @@
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
||||||
<FormItem>
|
<FormItem>
|
||||||
|
|
||||||
<Button @click="$emit('change', 1)">返回</Button>
|
<Button @click="$emit('change', 1)">返回</Button>
|
||||||
<Button type="primary" :loading="loading" @click="next"
|
<Button type="primary" :loading="loading" @click="next"
|
||||||
>提交平台审核</Button
|
>提交平台审核</Button
|
||||||
|
|
|
@ -15,7 +15,8 @@
|
||||||
>
|
>
|
||||||
<div class="user-icon">
|
<div class="user-icon">
|
||||||
<div class="user-img">
|
<div class="user-img">
|
||||||
<img :src="userInfo.face" />
|
<img :src="userInfo.face" v-if="userInfo.face" alt />
|
||||||
|
<Avatar icon="ios-person" class="mb_10" v-else size="96" />
|
||||||
</div>
|
</div>
|
||||||
<p>{{userInfo.nickName}}</p>
|
<p>{{userInfo.nickName}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -125,10 +126,6 @@ export default {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-icon span {
|
|
||||||
font-size: 96px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-img {
|
.user-img {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
width: 96px;
|
width: 96px;
|
||||||
|
@ -137,10 +134,6 @@ export default {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-img img {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-footer-center {
|
.layout-footer-center {
|
||||||
padding: 0px 15px;
|
padding: 0px 15px;
|
||||||
|
|
||||||
|
|
|
@ -2621,12 +2621,12 @@ dom-serializer@0:
|
||||||
domelementtype "^2.0.1"
|
domelementtype "^2.0.1"
|
||||||
entities "^2.0.0"
|
entities "^2.0.0"
|
||||||
|
|
||||||
dom7@^3.0.0:
|
dom7@^2.1.5:
|
||||||
version "3.0.0"
|
version "2.1.5"
|
||||||
resolved "https://registry.npm.taobao.org/dom7/download/dom7-3.0.0.tgz#b861ce5d67a6becd7aaa3ad02942ff14b1240331"
|
resolved "https://registry.yarnpkg.com/dom7/-/dom7-2.1.5.tgz#a79411017800b31d8400070cdaebbfc92c1f6377"
|
||||||
integrity sha1-uGHOXWemvs16qjrQKUL/FLEkAzE=
|
integrity sha512-xnhwVgyOh3eD++/XGtH+5qBwYTgCm0aW91GFgPJ3XG+jlsRLyJivnbP0QmUBFhI+Oaz9FV0s7cxgXHezwOEBYA==
|
||||||
dependencies:
|
dependencies:
|
||||||
ssr-window "^3.0.0-alpha.1"
|
ssr-window "^2.0.0"
|
||||||
|
|
||||||
domain-browser@^1.1.1:
|
domain-browser@^1.1.1:
|
||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
|
@ -7487,10 +7487,10 @@ sshpk@^1.7.0:
|
||||||
safer-buffer "^2.0.2"
|
safer-buffer "^2.0.2"
|
||||||
tweetnacl "~0.14.0"
|
tweetnacl "~0.14.0"
|
||||||
|
|
||||||
ssr-window@^3.0.0, ssr-window@^3.0.0-alpha.1:
|
ssr-window@^2.0.0:
|
||||||
version "3.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.npm.taobao.org/ssr-window/download/ssr-window-3.0.0.tgz#fd5b82801638943e0cc704c4691801435af7ac37"
|
resolved "https://registry.yarnpkg.com/ssr-window/-/ssr-window-2.0.0.tgz#98c301aef99523317f8d69618f0010791096efc4"
|
||||||
integrity sha1-/VuCgBY4lD4MxwTEaRgBQ1r3rDc=
|
integrity sha512-NXzN+/HPObKAx191H3zKlYomE5WrVIkoCB5IaSdvKokxTpjBdWfr0RaP+1Z5KOfDT0ZVz+2tdtiBkhsEQ9p+0A==
|
||||||
|
|
||||||
ssri@^5.2.4:
|
ssri@^5.2.4:
|
||||||
version "5.3.0"
|
version "5.3.0"
|
||||||
|
@ -7753,14 +7753,13 @@ svgo@^1.0.0:
|
||||||
unquote "~1.1.1"
|
unquote "~1.1.1"
|
||||||
util.promisify "~1.0.0"
|
util.promisify "~1.0.0"
|
||||||
|
|
||||||
swiper@^6.4.1:
|
swiper@^5.2.0:
|
||||||
version "6.4.1"
|
version "5.4.5"
|
||||||
resolved "https://registry.npm.taobao.org/swiper/download/swiper-6.4.1.tgz?cache=0&sync_timestamp=1607518804170&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fswiper%2Fdownload%2Fswiper-6.4.1.tgz#6d4e9252ed4226821d4005e77924e929848de8af"
|
resolved "https://registry.yarnpkg.com/swiper/-/swiper-5.4.5.tgz#a350f654bf68426dbb651793824925512d223c0f"
|
||||||
integrity sha1-bU6SUu1CJoIdQAXneSTpKYSN6K8=
|
integrity sha512-7QjA0XpdOmiMoClfaZ2lYN6ICHcMm72LXiY+NF4fQLFidigameaofvpjEEiTQuw3xm5eksG5hzkaRsjQX57vtA==
|
||||||
dependencies:
|
dependencies:
|
||||||
dom7 "^3.0.0"
|
dom7 "^2.1.5"
|
||||||
ssr-window "^3.0.0"
|
ssr-window "^2.0.0"
|
||||||
tslib "^2.0.0"
|
|
||||||
|
|
||||||
table@4.0.2:
|
table@4.0.2:
|
||||||
version "4.0.2"
|
version "4.0.2"
|
||||||
|
@ -7942,11 +7941,6 @@ tslib@^1.10.0:
|
||||||
resolved "https://registry.npm.taobao.org/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1602286724979&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
|
resolved "https://registry.npm.taobao.org/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1602286724979&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
|
||||||
integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA=
|
integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA=
|
||||||
|
|
||||||
tslib@^2.0.0:
|
|
||||||
version "2.0.3"
|
|
||||||
resolved "https://registry.npm.taobao.org/tslib/download/tslib-2.0.3.tgz?cache=0&sync_timestamp=1602286724979&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftslib%2Fdownload%2Ftslib-2.0.3.tgz#8e0741ac45fc0c226e58a17bfc3e64b9bc6ca61c"
|
|
||||||
integrity sha1-jgdBrEX8DCJuWKF7/D5kubxsphw=
|
|
||||||
|
|
||||||
tty-browserify@0.0.0:
|
tty-browserify@0.0.0:
|
||||||
version "0.0.0"
|
version "0.0.0"
|
||||||
resolved "https://registry.npm.taobao.org/tty-browserify/download/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"
|
resolved "https://registry.npm.taobao.org/tty-browserify/download/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"
|
||||||
|
|
|
@ -86,4 +86,9 @@ export const getMemberFeedbackDetail = (id) => {
|
||||||
return getRequest(`/feedback/${id}`);
|
return getRequest(`/feedback/${id}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//管理员获取发送详情列表
|
||||||
|
export const getMemberMessage = (params) => {
|
||||||
|
return getRequest(`/message/member`, params);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,17 @@
|
||||||
title: "充值方式",
|
title: "充值方式",
|
||||||
key: "rechargeWay",
|
key: "rechargeWay",
|
||||||
width: 120,
|
width: 120,
|
||||||
|
render: (h, params) => {
|
||||||
|
if (params.row.rechargeWay === 'ALIPAY') {
|
||||||
|
return h('div', [h('span', {}, '支付宝')]);
|
||||||
|
} else if (params.row.rechargeWay === 'WECHAT') {
|
||||||
|
return h('div', [h('span', {}, '微信')]);
|
||||||
|
} else if (params.row.rechargeWay === 'BANK_TRANSFER') {
|
||||||
|
return h('div', [h('span', {}, '线下转账')]);
|
||||||
|
} else {
|
||||||
|
return h('div', [h('span', {}, '')]);
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "支付状态",
|
title: "支付状态",
|
||||||
|
@ -137,6 +148,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "充值时间",
|
||||||
|
key: "createTime",
|
||||||
|
align: "left",
|
||||||
|
width: 190,
|
||||||
|
sortable: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "支付时间",
|
title: "支付时间",
|
||||||
key: "payTime",
|
key: "payTime",
|
||||||
|
|
|
@ -78,7 +78,7 @@ export default {
|
||||||
color: "red",
|
color: "red",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
this.$options.filters.unitPrice(params.row.money, "¥")
|
this.$options.filters.unitPrice(-params.row.money, "- ¥")
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
import { getVerifyImg, postVerifyImg } from './verify.js';
|
import { getVerifyImg, postVerifyImg } from './verify.js';
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
verifyType: {
|
verifyType: { // 验证方式,登录,注册等
|
||||||
defalut: 'LOGIN',
|
defalut: 'LOGIN',
|
||||||
type: String
|
type: String
|
||||||
}
|
}
|
||||||
|
@ -97,9 +97,6 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
|
||||||
// this.getImg();
|
|
||||||
},
|
|
||||||
watch: {
|
watch: {
|
||||||
verifyType: {
|
verifyType: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
<Row class="operation" style="margin-top: 20px">
|
<Row class="operation" style="margin-top: 20px">
|
||||||
<Button @click="sendMessage" type="primary">发送消息</Button>
|
<Button @click="sendMessage" type="primary">发送消息</Button>
|
||||||
</Row>
|
</Row>
|
||||||
|
<Row>
|
||||||
<Table
|
<Table
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
border
|
border
|
||||||
|
@ -45,6 +46,7 @@
|
||||||
@on-sort-change="messageChangeSort"
|
@on-sort-change="messageChangeSort"
|
||||||
@on-selection-change="messageChangeSelect"
|
@on-selection-change="messageChangeSelect"
|
||||||
></Table>
|
></Table>
|
||||||
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchMessageForm.pageNumber"
|
:current="searchMessageForm.pageNumber"
|
||||||
|
@ -62,6 +64,7 @@
|
||||||
</TabPane>
|
</TabPane>
|
||||||
|
|
||||||
<TabPane label="通知类站内信" name="SETTING">
|
<TabPane label="通知类站内信" name="SETTING">
|
||||||
|
<Row>
|
||||||
<Table
|
<Table
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
border
|
border
|
||||||
|
@ -72,6 +75,7 @@
|
||||||
@on-sort-change="changeSort"
|
@on-sort-change="changeSort"
|
||||||
@on-selection-change="changeSelect"
|
@on-selection-change="changeSelect"
|
||||||
></Table>
|
></Table>
|
||||||
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
@ -120,7 +124,8 @@
|
||||||
<Input v-model="form.noticeTitle" clearable type="text" style="width: 90%" maxlength="20"/>
|
<Input v-model="form.noticeTitle" clearable type="text" style="width: 90%" maxlength="20"/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="消息内容" prop="noticeContent">
|
<FormItem label="消息内容" prop="noticeContent">
|
||||||
<Input v-model="form.noticeContent" clearable type="textarea" style="width: 90%" maxlength="50" :autosize="{maxRows:4,minRows: 4}" show-word-limit />
|
<Input v-model="form.noticeContent" clearable type="textarea" style="width: 90%" maxlength="50"
|
||||||
|
:autosize="{maxRows:4,minRows: 4}" show-word-limit/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -137,24 +142,34 @@
|
||||||
:title="messageModalTitle"
|
:title="messageModalTitle"
|
||||||
v-model="messageModalVisible"
|
v-model="messageModalVisible"
|
||||||
:mask-closable="false"
|
:mask-closable="false"
|
||||||
:width="500"
|
:width="800"
|
||||||
>
|
>
|
||||||
<Form ref="messageSendForm" :model="messageSendForm" :label-width="100" :rules="messageFormValidate">
|
<Form ref="messageSendForm" :model="messageSendForm" :label-width="100" :rules="messageFormValidate">
|
||||||
<FormItem label="消息标题" prop="title">
|
<FormItem label="消息标题" prop="title">
|
||||||
<Input v-model="messageSendForm.title" maxlength="15" clearable style="width: 90%"/>
|
<Input v-model="messageSendForm.title" maxlength="15" clearable style="width: 70%"/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="消息内容" prop="content">
|
<FormItem label="消息内容" prop="content">
|
||||||
<Input
|
<Input
|
||||||
v-model="messageSendForm.content"
|
v-model="messageSendForm.content"
|
||||||
:rows="4"
|
:rows="4"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
style="max-height:60vh;overflow:auto;width: 90%"
|
style="max-height:60vh;overflow:auto;width: 70%"
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
||||||
|
<FormItem label="发送对象">
|
||||||
|
<RadioGroup type="button" button-style="solid" v-model="messageSendForm.messageClient"
|
||||||
|
@on-change="selectObject">
|
||||||
|
<Radio label="member">会员</Radio>
|
||||||
|
<Radio label="store">商家</Radio>
|
||||||
|
</RadioGroup>
|
||||||
|
</FormItem>
|
||||||
|
|
||||||
<FormItem label="发送范围">
|
<FormItem label="发送范围">
|
||||||
<RadioGroup type="button" button-style="solid" v-model="messageSendForm.messageRange" @on-change="selectShop">
|
<RadioGroup type="button" button-style="solid" v-model="messageSendForm.messageRange" @on-change="selectShop">
|
||||||
<Radio label="ALL">全站</Radio>
|
<Radio label="ALL">全站</Radio>
|
||||||
<Radio label="APPOINT">指定商家</Radio>
|
<Radio v-if="messageSendForm.messageClient == 'store'" label="APPOINT">指定商家</Radio>
|
||||||
|
<Radio v-if="messageSendForm.messageClient == 'member'" label="MEMBER">指定会员</Radio>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="指定商家" v-if="shopShow">
|
<FormItem label="指定商家" v-if="shopShow">
|
||||||
|
@ -165,6 +180,17 @@
|
||||||
</Option>
|
</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<FormItem label="选择会员" prop="scopeType"
|
||||||
|
v-if="memberShow">
|
||||||
|
<Button type="primary" icon="ios-add" @click="addVip" ghost>选择会员</Button>
|
||||||
|
<div style="margin-top:24px;" v-if="messageSendForm.messageClient == 'member'">
|
||||||
|
<Table border :columns="userColumns" :data="this.selectedMember">
|
||||||
|
</Table>
|
||||||
|
</div>
|
||||||
|
</FormItem>
|
||||||
|
<Modal width="1200" v-model="checkUserList">
|
||||||
|
<userList v-if="checkUserList" @callback="callbackSelectUser" :selectedList="selectedMember" ref="memberLayout"/>
|
||||||
|
</Modal>
|
||||||
</Form>
|
</Form>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<Button type="text" @click="messageModalVisible = false">取消</Button>
|
<Button type="text" @click="messageModalVisible = false">取消</Button>
|
||||||
|
@ -180,7 +206,7 @@
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="messageDetailModalVisible"
|
v-model="messageDetailModalVisible"
|
||||||
:mask-closable="false"
|
:mask-closable="false"
|
||||||
:width="700"
|
:width="800"
|
||||||
>
|
>
|
||||||
<Form ref="messageSendForm" :model="messageSendForm" :label-width="100" :rules="messageFormValidate">
|
<Form ref="messageSendForm" :model="messageSendForm" :label-width="100" :rules="messageFormValidate">
|
||||||
<FormItem label="消息标题" prop="title">
|
<FormItem label="消息标题" prop="title">
|
||||||
|
@ -195,13 +221,21 @@
|
||||||
style="max-height:60vh;overflow:auto;width: 50%"
|
style="max-height:60vh;overflow:auto;width: 50%"
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<FormItem label="发送对象">
|
||||||
|
<RadioGroup type="button" button-style="solid" v-model="messageSendForm.messageClient">
|
||||||
|
<Radio disabled label="member">会员</Radio>
|
||||||
|
<Radio disabled label="store">商家</Radio>
|
||||||
|
</RadioGroup>
|
||||||
|
</FormItem>
|
||||||
<FormItem label="发送范围">
|
<FormItem label="发送范围">
|
||||||
<RadioGroup type="button" button-style="solid" v-model="messageSendForm.messageRange">
|
<RadioGroup type="button" button-style="solid" v-model="messageSendForm.messageRange">
|
||||||
<Radio disabled label="ALL">全站</Radio>
|
<Radio disabled label="ALL">全站</Radio>
|
||||||
<Radio disabled label="APPOINT">指定商家</Radio>
|
<Radio v-if="messageSendForm.messageClient == 'store'" disabled label="APPOINT">指定商家</Radio>
|
||||||
|
<Radio v-if="messageSendForm.messageClient == 'member'" disabled label="MEMBER">指定会员</Radio>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="指定商家">
|
<FormItem label="指定商家" v-if="messageSendForm.messageClient == 'store'">
|
||||||
|
<Row>
|
||||||
<Table
|
<Table
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
border
|
border
|
||||||
|
@ -209,16 +243,43 @@
|
||||||
:data="shopMessageData"
|
:data="shopMessageData"
|
||||||
ref="table"
|
ref="table"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
@on-sort-change="messageChangeSort"
|
@on-sort-change="shopMessageChangeSort"
|
||||||
@on-selection-change="messageChangeSelect"
|
|
||||||
></Table>
|
></Table>
|
||||||
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchShopMessageForm.pageNumber"
|
:current="searchShopMessageForm.pageNumber"
|
||||||
:total="shopMessageDataTotal"
|
:total="shopMessageDataTotal"
|
||||||
:page-size="searchShopMessageForm.pageSize"
|
:page-size="searchShopMessageForm.pageSize"
|
||||||
@on-change="messageChangePage"
|
@on-change="shopMessageChangePage"
|
||||||
@on-page-size-change="messageChangePageSize"
|
@on-page-size-change="shopMessageChangePageSize"
|
||||||
|
:page-size-opts="[10, 20, 50]"
|
||||||
|
size="small"
|
||||||
|
show-total
|
||||||
|
show-elevator
|
||||||
|
show-sizer
|
||||||
|
></Page>
|
||||||
|
</Row>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="指定会员" v-if="messageSendForm.messageClient == 'member'">
|
||||||
|
<Row>
|
||||||
|
<Table
|
||||||
|
:loading="loading"
|
||||||
|
border
|
||||||
|
:columns="memberMessageDetailColumns"
|
||||||
|
:data="memberMessageData"
|
||||||
|
ref="table"
|
||||||
|
sortable="custom"
|
||||||
|
@on-sort-change="memberMessageChangeSort"
|
||||||
|
></Table>
|
||||||
|
</Row>
|
||||||
|
<Row type="flex" justify="end" class="page">
|
||||||
|
<Page
|
||||||
|
:current="searchMemberMessageForm.pageNumber"
|
||||||
|
:total="memberMessageDataTotal"
|
||||||
|
:page-size="searchMemberMessageForm.pageSize"
|
||||||
|
@on-change="memberMessageChangePage"
|
||||||
|
@on-page-size-change="memberMessageChangePageSize"
|
||||||
:page-size-opts="[10, 20, 50]"
|
:page-size-opts="[10, 20, 50]"
|
||||||
size="small"
|
size="small"
|
||||||
show-total
|
show-total
|
||||||
|
@ -239,14 +300,18 @@
|
||||||
import * as API_Setting from "@/api/setting.js";
|
import * as API_Setting from "@/api/setting.js";
|
||||||
import * as API_Other from "@/api/other.js";
|
import * as API_Other from "@/api/other.js";
|
||||||
import * as API_Shop from "@/api/shops.js";
|
import * as API_Shop from "@/api/shops.js";
|
||||||
|
import userList from "@/views/member/list/index";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "bill",
|
name: "bill",
|
||||||
components: {},
|
components: {
|
||||||
|
userList
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
openSearch: true, // 显示搜索
|
openSearch: true, // 显示搜索
|
||||||
|
checkUserList: false, //会员选择器
|
||||||
|
selectedMember: [], //选择的会员
|
||||||
openTip: true, // 显示提示
|
openTip: true, // 显示提示
|
||||||
loading: true, // 表单加载状态
|
loading: true, // 表单加载状态
|
||||||
modalVisible: false, // 添加或编辑显示
|
modalVisible: false, // 添加或编辑显示
|
||||||
|
@ -255,6 +320,7 @@
|
||||||
messageModalTitle: "", // 发送站内信标题
|
messageModalTitle: "", // 发送站内信标题
|
||||||
messageDetailModalVisible: false, // 添加或编辑显示
|
messageDetailModalVisible: false, // 添加或编辑显示
|
||||||
shopShow: false, //指定商家是否出现
|
shopShow: false, //指定商家是否出现
|
||||||
|
memberShow: false, //指定会员是否出现
|
||||||
shopList: [],//店铺列表
|
shopList: [],//店铺列表
|
||||||
searchForm: {
|
searchForm: {
|
||||||
// 搜索框初始化对象
|
// 搜索框初始化对象
|
||||||
|
@ -283,6 +349,12 @@
|
||||||
pageNumber: 1, // 当前页数
|
pageNumber: 1, // 当前页数
|
||||||
pageSize: 10, // 页面大小
|
pageSize: 10, // 页面大小
|
||||||
},
|
},
|
||||||
|
//发送给会员的消息
|
||||||
|
searchMemberMessageForm: {
|
||||||
|
// 搜索框初始化对象
|
||||||
|
pageNumber: 1, // 当前页数
|
||||||
|
pageSize: 10, // 页面大小
|
||||||
|
},
|
||||||
form: {
|
form: {
|
||||||
noticeNode: "",
|
noticeNode: "",
|
||||||
noticeTitle: ""
|
noticeTitle: ""
|
||||||
|
@ -290,6 +362,7 @@
|
||||||
//消息发送表单
|
//消息发送表单
|
||||||
messageSendForm: {
|
messageSendForm: {
|
||||||
messageRange: "ALL",
|
messageRange: "ALL",
|
||||||
|
messageClient: "member",
|
||||||
userIds: [],
|
userIds: [],
|
||||||
userNames: [],
|
userNames: [],
|
||||||
},
|
},
|
||||||
|
@ -413,6 +486,45 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
// 用户表格
|
||||||
|
userColumns: [
|
||||||
|
{
|
||||||
|
title: "用户名称",
|
||||||
|
key: "nickName",
|
||||||
|
minWidth: 120,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "手机号",
|
||||||
|
key: "mobile",
|
||||||
|
render: (h, params) => {
|
||||||
|
return h("div", params.row.mobile || "暂未填写");
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "操作",
|
||||||
|
key: "action",
|
||||||
|
minWidth: 50,
|
||||||
|
align: "center",
|
||||||
|
render: (h, params) => {
|
||||||
|
return h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
size: "small",
|
||||||
|
type: "error",
|
||||||
|
ghost: true,
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.delUser(params.index);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"删除"
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
noticeData: [], // 表单数据
|
noticeData: [], // 表单数据
|
||||||
noticeDataTotal: 0, // 表单数据总数
|
noticeDataTotal: 0, // 表单数据总数
|
||||||
messageColumns: [
|
messageColumns: [
|
||||||
|
@ -427,7 +539,22 @@
|
||||||
minWidth: 350,
|
minWidth: 350,
|
||||||
tooltip: true
|
tooltip: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "发送对象",
|
||||||
|
key: "messageClient",
|
||||||
|
width: 100,
|
||||||
|
render: (h, params) => {
|
||||||
|
if (params.row.messageClient == "member") {
|
||||||
|
return h('div', [
|
||||||
|
h('span', {}, '会员'),
|
||||||
|
]);
|
||||||
|
} else if (params.row.messageClient == "store") {
|
||||||
|
return h('div', [
|
||||||
|
h('span', {}, '商家'),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "发送类型",
|
title: "发送类型",
|
||||||
key: "messageRange",
|
key: "messageRange",
|
||||||
|
@ -439,7 +566,11 @@
|
||||||
]);
|
]);
|
||||||
} else if (params.row.messageRange == "APPOINT") {
|
} else if (params.row.messageRange == "APPOINT") {
|
||||||
return h('div', [
|
return h('div', [
|
||||||
h('span', {}, '指定用户'),
|
h('span', {}, '指定商家'),
|
||||||
|
]);
|
||||||
|
} else if (params.row.messageRange == "MEMBER") {
|
||||||
|
return h('div', [
|
||||||
|
h('span', {}, '指定会员'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -529,6 +660,36 @@
|
||||||
],
|
],
|
||||||
shopMessageData: [], // 发送给店铺的消息数据
|
shopMessageData: [], // 发送给店铺的消息数据
|
||||||
shopMessageDataTotal: 0, // 发送给店铺的消息数据总数
|
shopMessageDataTotal: 0, // 发送给店铺的消息数据总数
|
||||||
|
|
||||||
|
memberMessageDetailColumns: [
|
||||||
|
{
|
||||||
|
title: "会员ID",
|
||||||
|
key: "memberId",
|
||||||
|
maxWidth: 300,
|
||||||
|
sortable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "会员名称",
|
||||||
|
key: "memberName",
|
||||||
|
sortable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "是否已读",
|
||||||
|
key: "status",
|
||||||
|
maxWidth: 120,
|
||||||
|
render: (h, params) => {
|
||||||
|
if (params.row.status == "ALREADY_READY") {
|
||||||
|
return h("Badge", {props: {status: "success", text: "已读"}})
|
||||||
|
} else if (params.row.status == "UN_READY") {
|
||||||
|
return h("Badge", {props: {status: "processing", text: "未读"}})
|
||||||
|
} else {
|
||||||
|
return h("Badge", {props: {status: "processing", text: "回收站"}})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
],
|
||||||
|
memberMessageData: [], // 发送给店铺的消息数据
|
||||||
|
memberMessageDataTotal: 0, // 发送给店铺的消息数据总数
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -536,6 +697,41 @@
|
||||||
this.getMessage();
|
this.getMessage();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 返回已选择的用户
|
||||||
|
callbackSelectUser(val) {
|
||||||
|
// 每次将返回的数据回调判断
|
||||||
|
let findUser = this.selectedMember.find((item) => {
|
||||||
|
return item.id === val.id;
|
||||||
|
});
|
||||||
|
// 如果没有则添加
|
||||||
|
if (!findUser) {
|
||||||
|
this.selectedMember.push(val);
|
||||||
|
} else {
|
||||||
|
// 有重复数据就删除
|
||||||
|
this.selectedMember.map((item, index) => {
|
||||||
|
if (item.id === findUser.id) {
|
||||||
|
this.selectedMember.splice(index, 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.reSelectMember();
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除选择的会员
|
||||||
|
delUser(index) {
|
||||||
|
this.selectedMember.splice(index, 1);
|
||||||
|
this.reSelectMember();
|
||||||
|
},
|
||||||
|
//更新选择的会员
|
||||||
|
reSelectMember() {
|
||||||
|
this.form.memberDTOS = this.selectedMember.map((item) => {
|
||||||
|
return {
|
||||||
|
nickName: item.nickName,
|
||||||
|
id: item.id
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
//获取全部商家
|
//获取全部商家
|
||||||
getShopList() {
|
getShopList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
@ -548,6 +744,13 @@
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// 添加指定用户
|
||||||
|
addVip() {
|
||||||
|
this.checkUserList = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.memberLayout.selectedMember = true;
|
||||||
|
});
|
||||||
|
},
|
||||||
paneChange(v) {
|
paneChange(v) {
|
||||||
if (v == "SETTING") {
|
if (v == "SETTING") {
|
||||||
this.getNoticeMessage()
|
this.getNoticeMessage()
|
||||||
|
@ -582,6 +785,42 @@
|
||||||
this.getMessage();
|
this.getMessage();
|
||||||
this.clearSelectAll();
|
this.clearSelectAll();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//会员消息每页条数发生变化
|
||||||
|
memberMessageChangePageSize(v) {
|
||||||
|
this.searchMemberMessageForm.pageSize = v;
|
||||||
|
this.messageDetail();
|
||||||
|
},
|
||||||
|
//会员消息页数变化
|
||||||
|
memberMessageChangePage(v) {
|
||||||
|
this.searchMemberMessageForm.pageNumber = v;
|
||||||
|
this.messageDetail();
|
||||||
|
this.clearSelectAll();
|
||||||
|
},
|
||||||
|
//会员消息
|
||||||
|
memberMessageChangeSort(e) {
|
||||||
|
this.searchMemberMessageForm.sort = e.key;
|
||||||
|
this.searchMemberMessageForm.order = e.order;
|
||||||
|
this.messageDetail()
|
||||||
|
},
|
||||||
|
|
||||||
|
//店铺消息每页条数发生变化
|
||||||
|
shopMessageChangePageSize(v) {
|
||||||
|
this.searchShopMessageForm.pageSize = v;
|
||||||
|
this.messageDetail();
|
||||||
|
},
|
||||||
|
//店铺消息页数变化
|
||||||
|
shopMessageChangePage(v) {
|
||||||
|
this.searchShopMessageForm.pageNumber = v;
|
||||||
|
this.messageDetail();
|
||||||
|
this.clearSelectAll();
|
||||||
|
},
|
||||||
|
//店铺消息
|
||||||
|
shopMessageChangeSort(e) {
|
||||||
|
this.searchShopMessageForm.sort = e.key;
|
||||||
|
this.searchShopMessageForm.order = e.order;
|
||||||
|
this.messageDetail()
|
||||||
|
},
|
||||||
//消息
|
//消息
|
||||||
messageChangeSort(e) {
|
messageChangeSort(e) {
|
||||||
this.searchMessageForm.sort = e.key;
|
this.searchMessageForm.sort = e.key;
|
||||||
|
@ -647,9 +886,11 @@
|
||||||
this.messageModalVisible = true
|
this.messageModalVisible = true
|
||||||
this.messageModalTitle = "发送站内信"
|
this.messageModalTitle = "发送站内信"
|
||||||
this.shopShow = false
|
this.shopShow = false
|
||||||
|
this.memberShow = false
|
||||||
this.messageSendForm =
|
this.messageSendForm =
|
||||||
{
|
{
|
||||||
messageRange: "ALL",
|
messageRange: "ALL",
|
||||||
|
messageClient: "member",
|
||||||
content: "",
|
content: "",
|
||||||
title: "",
|
title: "",
|
||||||
userIds: [],
|
userIds: [],
|
||||||
|
@ -658,6 +899,18 @@
|
||||||
},
|
},
|
||||||
//管理员发送站内信提交
|
//管理员发送站内信提交
|
||||||
sendMessageSubmit() {
|
sendMessageSubmit() {
|
||||||
|
let userIds = [];
|
||||||
|
let userNames = [];
|
||||||
|
console.warn(this.selectedMember)
|
||||||
|
if (this.messageSendForm.messageClient == 'member' && this.messageSendForm.messageRange == 'MEMBER'){
|
||||||
|
this.selectedMember.forEach(function(item, index) {
|
||||||
|
userIds.push(item.id)
|
||||||
|
userNames.push(item.username)
|
||||||
|
})
|
||||||
|
this.messageSendForm.userIds = userIds
|
||||||
|
this.messageSendForm.userNames = userNames
|
||||||
|
}
|
||||||
|
|
||||||
if (this.messageSendForm.userIds.length <= 0 && this.messageSendForm.messageRange == "APPOINT") {
|
if (this.messageSendForm.userIds.length <= 0 && this.messageSendForm.messageRange == "APPOINT") {
|
||||||
this.$Message.error("请选择发送对象");
|
this.$Message.error("请选择发送对象");
|
||||||
return
|
return
|
||||||
|
@ -677,14 +930,27 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
//发送对象选择
|
||||||
|
selectObject(v) {
|
||||||
|
this.messageSendForm.messageRange = "ALL"
|
||||||
|
this.shopShow = false
|
||||||
|
this.memberShow =false
|
||||||
|
},
|
||||||
//弹出选择商家的框
|
//弹出选择商家的框
|
||||||
selectShop(v) {
|
selectShop(v) {
|
||||||
if (v == "APPOINT") {
|
if (v == "APPOINT") {
|
||||||
this.getShopList()
|
this.getShopList()
|
||||||
this.shopShow = true
|
this.shopShow = true
|
||||||
|
this.memberShow = false
|
||||||
}
|
}
|
||||||
if (v == "ALL") {
|
if (v == "ALL") {
|
||||||
this.shopShow = false
|
this.shopShow = false
|
||||||
|
this.memberShow = false
|
||||||
|
}
|
||||||
|
if (v == "MEMBER") {
|
||||||
|
this.shopShow = false
|
||||||
|
this.memberShow = true
|
||||||
|
this.selectedMember = []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取管理员发送列表
|
//获取管理员发送列表
|
||||||
|
@ -731,19 +997,38 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//消息详情
|
//消息详情
|
||||||
detail(v) {
|
messageDetail() {
|
||||||
this.searchShopMessageForm.messageId = v.id
|
if (this.messageSendForm.messageClient == 'member') {
|
||||||
|
API_Other.getMemberMessage(this.searchMemberMessageForm).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.memberMessageData = res.result.records;
|
||||||
|
this.memberMessageDataTotal = res.result.total;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
console.warn(this.searchShopMessageForm)
|
||||||
API_Other.getShopMessage(this.searchShopMessageForm).then((res) => {
|
API_Other.getShopMessage(this.searchShopMessageForm).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.messageDetailModalVisible = true;
|
|
||||||
this.modalTitle = "消息详情"
|
|
||||||
this.messageSendForm = v
|
|
||||||
this.shopMessageData = res.result.records;
|
this.shopMessageData = res.result.records;
|
||||||
this.shopMessageDataTotal = res.result.total;
|
this.shopMessageDataTotal = res.result.total;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
//消息详情弹出框
|
||||||
|
detail(v) {
|
||||||
|
console.warn(this.searchShopMessageForm)
|
||||||
|
this.messageSendForm = v
|
||||||
|
if (this.messageSendForm.messageClient == 'member') {
|
||||||
|
this.searchMemberMessageForm.messageId = v.id
|
||||||
|
} else {
|
||||||
|
this.searchShopMessageForm.messageId = v.id
|
||||||
|
}
|
||||||
|
this.messageDetail();
|
||||||
|
this.messageDetailModalVisible = true;
|
||||||
|
this.modalTitle = "消息详情"
|
||||||
|
},
|
||||||
edit(v) {
|
edit(v) {
|
||||||
API_Setting.getNoticeMessageDetail(v.id).then((res) => {
|
API_Setting.getNoticeMessageDetail(v.id).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|
|
@ -22,10 +22,10 @@ export default {
|
||||||
buyer: 'https://buyer-api.pickmall.cn',
|
buyer: 'https://buyer-api.pickmall.cn',
|
||||||
seller: 'https://store-api.pickmall.cn',
|
seller: 'https://store-api.pickmall.cn',
|
||||||
manager: 'https://admin-api.pickmall.cn',
|
manager: 'https://admin-api.pickmall.cn',
|
||||||
// common: 'http://192.168.0.109:8890',
|
// common: 'http://192.168.0.100:8890',
|
||||||
// buyer: 'http://192.168.0.109:8888',
|
// buyer: 'http://192.168.0.100:8888',
|
||||||
// seller: 'http://192.168.0.109:8889',
|
// seller: 'http://192.168.0.100:8889',
|
||||||
// manager: 'http://192.168.0.109:8887'
|
// manager: 'http://192.168.0.100:8887'
|
||||||
},
|
},
|
||||||
api_prod: {
|
api_prod: {
|
||||||
common: 'https://common-api.pickmall.cn',
|
common: 'https://common-api.pickmall.cn',
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="detail-item">
|
<div class="detail-item">
|
||||||
<div>
|
<div @click="navigateTo('seckill')">
|
||||||
<span>{{homeData.seckillNum || 0}}</span>
|
<span>{{homeData.seckillNum || 0}}</span>
|
||||||
<div>待参加活动</div>
|
<div>待参加活动</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue