会员权益
This commit is contained in:
281
pagesAdmin/component/examine-custom.vue
Normal file
281
pagesAdmin/component/examine-custom.vue
Normal file
@@ -0,0 +1,281 @@
|
||||
<!-- +----------------------------------------------------------------------
|
||||
| 麦沃德科技赋能开发者,助力商协会发展
|
||||
+----------------------------------------------------------------------
|
||||
| Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
||||
+----------------------------------------------------------------------
|
||||
| 沃德商协会系统并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
+----------------------------------------------------------------------
|
||||
| Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
|
||||
+----------------------------------------------------------------------
|
||||
| 组件-会员自定义字段(会员审核) 开发者: 麦沃德科技-半夏
|
||||
+---------------------------------------------------------------------- -->
|
||||
|
||||
<template>
|
||||
<view class="component-member-custom">
|
||||
<block v-for="(item, index) in showData" :key="index">
|
||||
<!-- 文本域 -->
|
||||
<view class="custom-item" v-if="item.type == 'textarea'">
|
||||
<view class="item-title">{{item.label}}</view>
|
||||
<view class="item-content" v-if="(showType == 1 && item.field == 'introduce_content') || (showType == 2 && item.field == 'company_introduction') || (showType == 3 && item.field == 'organize_introduction')">
|
||||
<mp-html :content="item.value || '暂未完善'"></mp-html>
|
||||
</view>
|
||||
<view class="item-content" v-else>{{item.value || '暂未完善'}}</view>
|
||||
</view>
|
||||
<!-- 图片 -->
|
||||
<view class="custom-item" v-else-if="item.type == 'image'">
|
||||
<view class="item-title">{{item.label}}</view>
|
||||
<view class="item-list" v-if="item.value">
|
||||
<view class="list-image" v-for="(img, num) in item.value.split(',')" :key="num">
|
||||
<image class="image" :src="img" mode="aspectFill" @click="previewImage(index, num)"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-content" v-else>暂未完善</view>
|
||||
</view>
|
||||
<!-- 视频 -->
|
||||
<view class="custom-item" v-else-if="item.type == 'video'">
|
||||
<view class="item-title">{{item.label}}</view>
|
||||
<view class="item-video" v-if="item.value">
|
||||
<video class="video" :src="item.value" controls></video>
|
||||
</view>
|
||||
<view class="item-content" v-else>暂未完善</view>
|
||||
</view>
|
||||
<!-- 证书 -->
|
||||
<view class="custom-item" v-else-if="item.type == 'cert'">
|
||||
<view class="item-title">{{item.label}}</view>
|
||||
<view class="item-cert" v-if="item.value && item.value.image">
|
||||
<view class="cert-text">姓名:{{item.value.name}}</view>
|
||||
<view class="cert-text">证书编号:{{item.value.number}}</view>
|
||||
<image class="cert-image" :src="item.value.image" mode="widthFix" @click="previewImage(index)"></image>
|
||||
</view>
|
||||
<view class="item-content" v-else>暂未完善</view>
|
||||
</view>
|
||||
<!-- 文件 -->
|
||||
<view class="custom-item" v-else-if="item.type == 'file'">
|
||||
<view class="item-title">{{item.label}}</view>
|
||||
<view class="item-file" v-if="item.value && item.value.length">
|
||||
<view class="file-box" v-for="(file, number) in item.value" :key="number">
|
||||
<view class="box-name text-ellipsis">{{file.name || "文件"}}</view>
|
||||
<view class="box-btn" @click="handleView(file.path)">
|
||||
<image src="/static/see.png" mode="aspectFit"></image>
|
||||
<text>查看</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-content" v-else>暂未完善</view>
|
||||
</view>
|
||||
<!-- 地址 -->
|
||||
<view class="custom-item flex" v-else-if="item.type == 'text' && showType == 1 && item.field == 'address'">
|
||||
<view class="item-title">{{item.label}}</view>
|
||||
<view class="item-value flex-item">{{ item.value ? (item.value.address || "暂未完善") : "暂未完善"}}</view>
|
||||
</view>
|
||||
<!-- 手机号 -->
|
||||
<view class="custom-item flex align-items-center flex-wrap" v-else-if="item.type == 'number' && showType == 1 && item.field == 'mobile'">
|
||||
<view class="item-title">{{item.label}}</view>
|
||||
<view class="item-value flex-item">{{item.value || "暂未完善"}}</view>
|
||||
<view class="item-icon" :style="{'background-image': 'url('+ iconPhone +')'}" v-if="iconPhone" @click="onContact(item.value)"></view>
|
||||
</view>
|
||||
<!-- 其他 -->
|
||||
<view class="custom-item flex" v-else>
|
||||
<view class="item-title">{{item.label}}</view>
|
||||
<view class="item-value flex-item">{{(item.value || item.value === 0) ? item.value : "暂未完善"}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from "vuex"
|
||||
import svgData from "@/common/svg.js"
|
||||
export default {
|
||||
name: "memberCustom",
|
||||
props: ["showData", "showType"],
|
||||
computed: {
|
||||
...mapState({
|
||||
iconPhone: state => {
|
||||
return svgData.svgToUrl("phone", state.app.themeColor)
|
||||
},
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 预览图片
|
||||
previewImage(i, j = 0) {
|
||||
let list = []
|
||||
if (this.showData[i].type == "cert") {
|
||||
list = [this.showData[i].value.image]
|
||||
} else {
|
||||
list = this.showData[i].value.split(",")
|
||||
}
|
||||
uni.previewImage({
|
||||
urls: list,
|
||||
current: j
|
||||
});
|
||||
},
|
||||
// 查看附件
|
||||
handleView(link) {
|
||||
this.$util.downloadFile(link).then(() => {
|
||||
uni.hideLoading()
|
||||
}).catch((error) => {
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: error?.errMsg || '附件下载失败',
|
||||
})
|
||||
})
|
||||
},
|
||||
// 联系
|
||||
onContact(mobile) {
|
||||
this.$util.toPage({
|
||||
mode: 6,
|
||||
phone: mobile,
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.component-member-custom {
|
||||
.custom-item {
|
||||
padding: 32rpx 0;
|
||||
border-bottom: 1px solid #F1F4FF;
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.item-title {
|
||||
color: #5A5B6E;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
line-height: 40rpx;
|
||||
margin-right: 32rpx;
|
||||
}
|
||||
|
||||
.item-value {
|
||||
color: #5A5B6E;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
word-break: break-all;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.item-content {
|
||||
color: #5A5B6E;
|
||||
font-size: 28rpx;
|
||||
line-height: 1.5;
|
||||
word-break: break-all;
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
|
||||
.item-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 32rpx;
|
||||
column-gap: 3.5%;
|
||||
row-gap: 24rpx;
|
||||
|
||||
.list-image {
|
||||
position: relative;
|
||||
width: 31%;
|
||||
height: 0;
|
||||
padding-top: 31%;
|
||||
|
||||
.image {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-video {
|
||||
margin-top: 32rpx;
|
||||
|
||||
.video {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.item-image {
|
||||
margin-top: 32rpx;
|
||||
|
||||
.image {
|
||||
width: 100%;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.item-cert {
|
||||
padding-top: 8rpx;
|
||||
|
||||
.cert-text {
|
||||
margin-top: 24rpx;
|
||||
color: #5A5B6E;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.cert-image {
|
||||
margin-top: 24rpx;
|
||||
width: 100%;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.item-file {
|
||||
margin-top: 32rpx;
|
||||
|
||||
.file-box {
|
||||
border-radius: 16rpx;
|
||||
border: 1rpx solid #EEE;
|
||||
background: #FFF;
|
||||
padding: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 16rpx;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.box-name {
|
||||
flex: 1;
|
||||
color: #5A5B6E;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
|
||||
.box-btn {
|
||||
margin-left: 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
image {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
text {
|
||||
margin-left: 20rpx;
|
||||
color: #5A5B6E;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-icon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
background-size: 32rpx;
|
||||
margin-left: 24rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
231
pagesAdmin/component/examine.vue
Normal file
231
pagesAdmin/component/examine.vue
Normal file
@@ -0,0 +1,231 @@
|
||||
<!-- +----------------------------------------------------------------------
|
||||
| 麦沃德科技赋能开发者,助力商协会发展
|
||||
+----------------------------------------------------------------------
|
||||
| Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
||||
+----------------------------------------------------------------------
|
||||
| 沃德商协会系统并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
+----------------------------------------------------------------------
|
||||
| Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
|
||||
+----------------------------------------------------------------------
|
||||
| 组件-审核列表 开发者: 麦沃德科技-半夏
|
||||
+---------------------------------------------------------------------- -->
|
||||
|
||||
<template>
|
||||
<view class="component-member-examine" :style="{'--theme-color': themeColor}">
|
||||
<view class="examine-item" v-for="item in showData" :key="item.id">
|
||||
<view class="item-top">
|
||||
<view class="top-pending" v-if="item.child_state == 1 || item.child_state == 3 || item.child_state == 4">
|
||||
<view class="pending-bg"></view>
|
||||
<view class="pending-status">
|
||||
<text v-if="item.child_state == 1">入会审核</text>
|
||||
<text v-else-if="item.child_state == 3">已通过信息审核,等待缴费</text>
|
||||
<text v-else-if="item.child_state == 4">缴费审核</text>
|
||||
</view>
|
||||
<view class="pending-time" v-if="item.child_state != 3">{{item.createtime}}</view>
|
||||
</view>
|
||||
<view class="top-reviewed" v-else>
|
||||
<view class="reviewed-status" v-if="item.child_state == 6">
|
||||
<image class="icon" src="/static/mine/pass.png" mode="aspectFit"></image>
|
||||
<text class="text" style="color: #00A980;">已通过审核</text>
|
||||
</view>
|
||||
<view class="reviewed-status" v-else-if="item.child_state == 2 || item.child_state == 5">
|
||||
<image class="icon" src="/static/mine/reject.png" mode="aspectFit"></image>
|
||||
<text class="text" style="color: #FF626E;">已驳回申请</text>
|
||||
</view>
|
||||
<view class="reviewed-time">{{item.createtime}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-center flex align-items-center">
|
||||
<image class="center-avatar" :src="item.avatar" mode="aspectFill"></image>
|
||||
<view class="center-info flex-item">
|
||||
<view class="info-name text-ellipsis">{{item.name}}</view>
|
||||
<view class="info-level text-ellipsis">申请级别:{{item.level.name}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-bottom flex" v-if="item.child_state == 1 || item.child_state == 4">
|
||||
<view class="bottom-btn" @click="onConfirm(1, item.id, item.child_state)">
|
||||
<image class="icon" src="/static/mine/pass.png" mode="aspectFit"></image>
|
||||
<text class="text">通过</text>
|
||||
</view>
|
||||
<view class="bottom-btn" @click="onConfirm(2, item.id, item.child_state)">
|
||||
<image class="icon" src="/static/mine/reject.png" mode="aspectFit"></image>
|
||||
<text class="text">驳回</text>
|
||||
</view>
|
||||
<view class="bottom-btn" @click="toDetails(item.id)">
|
||||
<view class="icon" style="background-size: 32rpx 32rpx;" :style="{'background-image': 'url('+ iconDetails +')'}" v-if="iconDetails"></view>
|
||||
<text class="text">详情</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from "vuex"
|
||||
import svgData from "@/common/svg.js"
|
||||
export default {
|
||||
name: "memberExamine",
|
||||
props: ["showData"],
|
||||
computed: {
|
||||
...mapState({
|
||||
themeColor: state => state.app.themeColor,
|
||||
iconDetails: state => {
|
||||
return svgData.svgToUrl("details", state.app.themeColor)
|
||||
},
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 跳转会员详情
|
||||
toDetails(id) {
|
||||
this.$util.toPage({
|
||||
mode: 1,
|
||||
path: "/pagesAdmin/examine/details?id=" + id
|
||||
})
|
||||
},
|
||||
// 通过/驳回操作
|
||||
onConfirm(type, id, state) {
|
||||
this.$emit("onConfirm", { type, id, state })
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.component-member-examine {
|
||||
.examine-item {
|
||||
border-radius: 16rpx;
|
||||
background: #FFF;
|
||||
overflow: hidden;
|
||||
margin-top: 32rpx;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.item-top {
|
||||
.top-pending {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding: 12rpx 32rpx;
|
||||
height: 72rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.pending-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
background: var(--theme-color);
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
.pending-status {
|
||||
color: var(--theme-color);
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
|
||||
.pending-time {
|
||||
color: #8D929C;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.top-reviewed {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding: 12rpx 32rpx;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #F1F4FF;
|
||||
|
||||
.reviewed-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.icon {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
}
|
||||
|
||||
.text {
|
||||
margin-left: 16rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.reviewed-time {
|
||||
color: #8D929C;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-center {
|
||||
padding: 32rpx;
|
||||
|
||||
.center-avatar {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.center-info {
|
||||
margin-left: 20rpx;
|
||||
|
||||
.info-name {
|
||||
color: #5A5B6E;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.info-level {
|
||||
margin-top: 16rpx;
|
||||
color: #8D929C;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-bottom {
|
||||
border-top: 1px solid #F1F4FF;
|
||||
|
||||
.bottom-btn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
padding: 20rpx;
|
||||
border-left: 1px solid #F1F4FF;
|
||||
|
||||
&:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.text {
|
||||
margin-left: 16rpx;
|
||||
color: #5A5B6E;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
391
pagesAdmin/examine/details.vue
Normal file
391
pagesAdmin/examine/details.vue
Normal file
@@ -0,0 +1,391 @@
|
||||
<!-- +----------------------------------------------------------------------
|
||||
| 麦沃德科技赋能开发者,助力商协会发展
|
||||
+----------------------------------------------------------------------
|
||||
| Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
||||
+----------------------------------------------------------------------
|
||||
| 沃德商协会系统并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
+----------------------------------------------------------------------
|
||||
| Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
|
||||
+----------------------------------------------------------------------
|
||||
| 审核会员详情 开发者: 麦沃德科技-半夏
|
||||
+---------------------------------------------------------------------- -->
|
||||
|
||||
<template>
|
||||
<page-meta :page-style="'overflow:' + (pageShow ? 'hidden' : 'visible')"></page-meta>
|
||||
<view class="container" :style="{'--theme-color': themeColor}">
|
||||
<!-- 标题栏 -->
|
||||
<title-bar title="审核会员详情"></title-bar>
|
||||
<!-- 内容区 -->
|
||||
<view class="container-main" v-if="loadEnd">
|
||||
<view class="main-tips" :style="{top: titleBarHeight + 'px'}" v-if="examineInfo.child_state == 1 || examineInfo.child_state == 3 || examineInfo.child_state == 4">
|
||||
<view class="tips-bg"></view>
|
||||
<view class="tips-status">
|
||||
<text v-if="examineInfo.child_state == 1">入会审核</text>
|
||||
<text v-else-if="examineInfo.child_state == 3">已通过信息审核,等待缴费</text>
|
||||
<text v-else-if="examineInfo.child_state == 4">缴费审核</text>
|
||||
</view>
|
||||
<view class="tips-time" v-if="examineInfo.child_state != 3">{{examineInfo.createtime}}</view>
|
||||
</view>
|
||||
<view class="main-info flex align-items-center">
|
||||
<image class="info-avatar" :src="examineInfo.avatar" mode="aspectFill"></image>
|
||||
<view class="info-box flex-item">
|
||||
<view class="name">{{examineInfo.name}}</view>
|
||||
<view class="level">申请级别:{{examineInfo.level_name}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-field" v-if="examineInfo.type == 1">
|
||||
<view class="field-custom">
|
||||
<examine-custom :show-type="1" :show-data="examineInfo.custom_content"></examine-custom>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-field" v-else-if="examineInfo.type == 2">
|
||||
<view class="field-custom">
|
||||
<view class="custom-title">个人信息</view>
|
||||
<examine-custom :show-type="1" :show-data="examineInfo.custom_content.person"></examine-custom>
|
||||
</view>
|
||||
<view class="field-custom">
|
||||
<view class="custom-title">企业信息</view>
|
||||
<examine-custom :show-type="2" :show-data="examineInfo.custom_content.company"></examine-custom>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-field" v-else-if="examineInfo.type == 3">
|
||||
<view class="field-custom">
|
||||
<view class="custom-title">个人信息</view>
|
||||
<examine-custom :show-type="1" :show-data="examineInfo.custom_content.person"></examine-custom>
|
||||
</view>
|
||||
<view class="field-custom">
|
||||
<view class="custom-title">团体信息</view>
|
||||
<examine-custom :show-type="3" :show-data="examineInfo.custom_content.organize"></examine-custom>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-item" v-if="examineInfo.pay_voucher">
|
||||
<view class="item-title">支付凭证</view>
|
||||
<image class="item-image" :src="examineInfo.pay_voucher" mode="widthFix" @click="previewPayVoucher()"></image>
|
||||
</view>
|
||||
<view class="main-footer">
|
||||
<view class="footer-btn flex justify-content-between">
|
||||
<view class="btn-box flex flex-center" style="background: #ECFFFA;" @click="handleConfirm(1)">
|
||||
<image class="icon" src="/static/mine/pass.png" mode="aspectFit"></image>
|
||||
<text class="text">通过</text>
|
||||
</view>
|
||||
<view class="btn-box flex flex-center" style="background: #FFEDEE;" @click="handleConfirm(2)">
|
||||
<image class="icon" src="/static/mine/reject.png" mode="aspectFit"></image>
|
||||
<text class="text">驳回</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="safe-padding"></view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 底部导航 -->
|
||||
<tab-bar></tab-bar>
|
||||
<!-- 驳回申请弹窗 -->
|
||||
<confirm-modal ref="confirmModal" @onChange="pageChange"></confirm-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from "vuex"
|
||||
import examineCustom from "@/pagesAdmin/component/examine-custom.vue"
|
||||
import confirmModal from "@/pages/component/modal/confirm.vue"
|
||||
export default {
|
||||
components: {
|
||||
examineCustom,
|
||||
confirmModal,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 页面是否阻止滚动
|
||||
pageShow: false,
|
||||
// 加载完成
|
||||
loadEnd: false,
|
||||
// 标题栏高度
|
||||
titleBarHeight: 0,
|
||||
// 审核id
|
||||
examineId: null,
|
||||
// 审核信息
|
||||
examineInfo: [],
|
||||
// 延时器
|
||||
timeout: null,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
themeColor: state => state.app.themeColor,
|
||||
})
|
||||
},
|
||||
mounted() {
|
||||
// #ifdef MP-WEIXIN
|
||||
let statusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
||||
let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
|
||||
this.titleBarHeight = statusBarHeight + (menuButtonInfo.top - statusBarHeight) * 2 + menuButtonInfo.height
|
||||
// #endif
|
||||
},
|
||||
onLoad(option) {
|
||||
this.examineId = option.id
|
||||
uni.showLoading({
|
||||
title: "加载中"
|
||||
})
|
||||
this.getExamineInfo(() => {
|
||||
uni.hideLoading()
|
||||
this.loadEnd = true
|
||||
})
|
||||
},
|
||||
onUnload() {
|
||||
clearTimeout(this.timeout)
|
||||
},
|
||||
methods: {
|
||||
// 改变页面滚动状态
|
||||
pageChange(state) {
|
||||
this.pageShow = state
|
||||
},
|
||||
// 获取审核信息
|
||||
getExamineInfo(fn) {
|
||||
this.$util.request("member.examine.details", {
|
||||
id: this.examineId,
|
||||
}).then(res => {
|
||||
if (fn) fn()
|
||||
if (res.code == 1) {
|
||||
this.examineInfo = res.data
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch(error => {
|
||||
if (fn) fn()
|
||||
console.error('获取审核信息 ', error)
|
||||
})
|
||||
},
|
||||
// 预览支付凭证图片
|
||||
previewPayVoucher() {
|
||||
uni.previewImage({
|
||||
urls: [this.examineInfo.pay_voucher],
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
// 审核操作
|
||||
handleConfirm(type) {
|
||||
if (type == 1) {
|
||||
this.$refs.confirmModal.open({
|
||||
content: "确认申请信息无误?<br />点击【确认】完成审核",
|
||||
cancelText: "我再想想",
|
||||
confirmText: "确认",
|
||||
cancelColor: "#999999",
|
||||
confirmColor: this.themeColor,
|
||||
success: (data) => {
|
||||
if (data.confirm) {
|
||||
uni.showLoading({
|
||||
title: "加载中",
|
||||
mask: true
|
||||
})
|
||||
this.$util.request(this.examineInfo.child_state == 1 ? "member.examine.examineApply" : "member.examine.examineOffline", {
|
||||
state: 2,
|
||||
id: this.examineId,
|
||||
}).then(res => {
|
||||
uni.hideLoading()
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: "审核成功",
|
||||
icon: "success",
|
||||
duration: 1500,
|
||||
mask: true
|
||||
})
|
||||
this.timeout = setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 1500);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch(error => {
|
||||
uni.hideLoading()
|
||||
console.error('通过审核 ', error)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (type == 2) {
|
||||
this.$refs.confirmModal.open({
|
||||
title: "驳回申请",
|
||||
editable: true,
|
||||
placeholderText: "请输入驳回原因",
|
||||
cancelText: "我再想想",
|
||||
confirmText: "提交",
|
||||
cancelColor: "#999999",
|
||||
confirmColor: this.themeColor,
|
||||
success: (data) => {
|
||||
if (data.confirm) {
|
||||
uni.showLoading({
|
||||
title: "加载中",
|
||||
mask: true
|
||||
})
|
||||
this.$util.request(this.examineInfo.child_state == 1 ? "member.examine.examineApply" : "member.examine.examineOffline", {
|
||||
state: 3,
|
||||
id: this.examineId,
|
||||
reject: data.content
|
||||
}).then(res => {
|
||||
uni.hideLoading()
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: "审核成功",
|
||||
icon: "success",
|
||||
duration: 1500,
|
||||
mask: true
|
||||
})
|
||||
this.timeout = setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 1500);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch(error => {
|
||||
uni.hideLoading()
|
||||
console.error('通过审核 ', error)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.container {
|
||||
.container-main {
|
||||
padding-bottom: 112rpx;
|
||||
|
||||
.main-tips {
|
||||
position: sticky;
|
||||
z-index: 99;
|
||||
padding: 12rpx 32rpx;
|
||||
height: 72rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #FFF;
|
||||
|
||||
.tips-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
background: var(--theme-color);
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
.tips-status {
|
||||
color: var(--theme-color);
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
|
||||
.tips-time {
|
||||
color: #8D929C;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.main-info {
|
||||
background: #FFF;
|
||||
padding: 32rpx;
|
||||
|
||||
.info-avatar {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.info-box {
|
||||
margin-left: 32rpx;
|
||||
|
||||
.name {
|
||||
color: #5A5B6E;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.level {
|
||||
margin-top: 16rpx;
|
||||
color: #8D929C;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main-field {
|
||||
.field-custom {
|
||||
margin-top: 32rpx;
|
||||
background: #FFF;
|
||||
padding: 32rpx;
|
||||
|
||||
.custom-title {
|
||||
color: #5A5B6E;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
line-height: 44rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main-item {
|
||||
margin-top: 32rpx;
|
||||
background: #FFF;
|
||||
padding: 32rpx;
|
||||
|
||||
.item-title {
|
||||
color: #5A5B6E;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.item-image {
|
||||
width: 100%;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.main-footer {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 12rpx 32rpx;
|
||||
background: #FFF;
|
||||
|
||||
.footer-btn {
|
||||
.btn-box {
|
||||
border-radius: 16rpx;
|
||||
padding: 24rpx;
|
||||
width: calc(50% - 8rpx);
|
||||
|
||||
.icon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.text {
|
||||
margin-left: 16rpx;
|
||||
color: #5A5B6E;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
255
pagesAdmin/examine/index.vue
Normal file
255
pagesAdmin/examine/index.vue
Normal file
@@ -0,0 +1,255 @@
|
||||
<!-- +----------------------------------------------------------------------
|
||||
| 麦沃德科技赋能开发者,助力商协会发展
|
||||
+----------------------------------------------------------------------
|
||||
| Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
||||
+----------------------------------------------------------------------
|
||||
| 沃德商协会系统并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
+----------------------------------------------------------------------
|
||||
| Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
|
||||
+----------------------------------------------------------------------
|
||||
| 审核会员 开发者: 麦沃德科技-半夏
|
||||
+---------------------------------------------------------------------- -->
|
||||
|
||||
<template>
|
||||
<page-meta :page-style="'overflow:' + (pageShow ? 'hidden' : 'visible')"></page-meta>
|
||||
<view class="container">
|
||||
<!-- 标题栏 -->
|
||||
<title-bar title="审核会员"></title-bar>
|
||||
<!-- 内容区 -->
|
||||
<view class="container-main" v-if="loadEnd">
|
||||
<view class="main-screen flex" :style="{top: titleBarHeight + 'px'}">
|
||||
<view class="screen-item" :class="{active: selectScreen == 1}" @click="changeScreen(1)">待审核</view>
|
||||
<view class="screen-item" :class="{active: selectScreen == 2}" @click="changeScreen(2)">已审核</view>
|
||||
</view>
|
||||
<view class="main-list">
|
||||
<examine-item :show-data="examineList" @onConfirm="handleConfirm" v-if="examineList.length"></examine-item>
|
||||
<empty top="30%" title="暂无相关内容~" v-else></empty>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 底部导航 -->
|
||||
<tab-bar></tab-bar>
|
||||
<!-- 驳回申请弹窗 -->
|
||||
<confirm-modal ref="confirmModal" @onChange="pageChange"></confirm-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from "vuex"
|
||||
import examineItem from "@/pagesAdmin/component/examine.vue"
|
||||
import confirmModal from "@/pages/component/modal/confirm.vue"
|
||||
export default {
|
||||
components: {
|
||||
examineItem,
|
||||
confirmModal,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 页面是否阻止滚动
|
||||
pageShow: false,
|
||||
// 加载完成
|
||||
loadEnd: false,
|
||||
// 标题栏高度
|
||||
titleBarHeight: 0,
|
||||
// 已选分类
|
||||
selectScreen: 1,
|
||||
// 审核列表
|
||||
examineList: [],
|
||||
// 分类查询参数
|
||||
page: 1,
|
||||
limit: 20,
|
||||
hasMore: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
themeColor: state => state.app.themeColor,
|
||||
})
|
||||
},
|
||||
mounted() {
|
||||
// #ifdef MP-WEIXIN
|
||||
let statusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
||||
let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
|
||||
this.titleBarHeight = statusBarHeight + (menuButtonInfo.top - statusBarHeight) * 2 + menuButtonInfo.height
|
||||
// #endif
|
||||
},
|
||||
onLoad() {
|
||||
uni.showLoading({
|
||||
title: "加载中"
|
||||
})
|
||||
this.getExamineList(() => {
|
||||
uni.hideLoading()
|
||||
this.loadEnd = true
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
if (this.loadEnd) {
|
||||
uni.pageScrollTo({
|
||||
scrollTop: 0,
|
||||
duration: 0
|
||||
});
|
||||
this.page = 1
|
||||
this.getExamineList()
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.getExamineList(() => {
|
||||
uni.stopPullDownRefresh();
|
||||
})
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.hasMore) {
|
||||
this.page++
|
||||
this.getExamineList()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 改变页面滚动状态
|
||||
pageChange(state) {
|
||||
this.pageShow = state
|
||||
},
|
||||
// 获取审核列表
|
||||
getExamineList(fn) {
|
||||
this.$util.request("member.examine.list", {
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
state: this.selectScreen
|
||||
}).then(res => {
|
||||
if (fn) fn()
|
||||
if (res.code == 1) {
|
||||
let list = res.data.data
|
||||
this.hasMore = this.page < res.data.total / this.limit ? true : false
|
||||
this.examineList = this.page == 1 ? list : [...this.examineList, ...list];
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch(error => {
|
||||
if (fn) fn()
|
||||
console.error('获取审核列表 ', error)
|
||||
})
|
||||
},
|
||||
// 更改状态
|
||||
changeScreen(id) {
|
||||
this.selectScreen = id
|
||||
this.getExamineList()
|
||||
},
|
||||
// 审核操作
|
||||
handleConfirm(e) {
|
||||
if (e.type == 1) {
|
||||
this.$refs.confirmModal.open({
|
||||
content: "确认申请信息无误?<br />点击【确认】完成审核",
|
||||
cancelText: "我再想想",
|
||||
confirmText: "确认",
|
||||
cancelColor: "#999999",
|
||||
confirmColor: this.themeColor,
|
||||
success: (data) => {
|
||||
if (data.confirm) {
|
||||
uni.showLoading({
|
||||
title: "加载中",
|
||||
mask: true
|
||||
})
|
||||
this.$util.request(e.state == 1 ? "member.examine.examineApply" : "member.examine.examineOffline", {
|
||||
state: 2,
|
||||
id: e.id,
|
||||
}).then(res => {
|
||||
uni.hideLoading()
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: "审核成功",
|
||||
icon: "success",
|
||||
duration: 1500
|
||||
})
|
||||
this.page = 1
|
||||
this.getExamineList()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch(error => {
|
||||
uni.hideLoading()
|
||||
console.error('通过审核 ', error)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (e.type == 2) {
|
||||
this.$refs.confirmModal.open({
|
||||
title: "驳回申请",
|
||||
editable: true,
|
||||
placeholderText: "请输入驳回原因",
|
||||
cancelText: "我再想想",
|
||||
confirmText: "提交",
|
||||
cancelColor: "#999999",
|
||||
confirmColor: this.themeColor,
|
||||
success: (data) => {
|
||||
if (data.confirm) {
|
||||
uni.showLoading({
|
||||
title: "加载中",
|
||||
mask: true
|
||||
})
|
||||
this.$util.request(e.state == 1 ? "member.examine.examineApply" : "member.examine.examineOffline", {
|
||||
state: 3,
|
||||
id: e.id,
|
||||
reject: data.content
|
||||
}).then(res => {
|
||||
uni.hideLoading()
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: "审核成功",
|
||||
icon: "success",
|
||||
duration: 1500
|
||||
})
|
||||
this.page = 1
|
||||
this.getExamineList()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch(error => {
|
||||
uni.hideLoading()
|
||||
console.error('通过审核 ', error)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.container {
|
||||
.container-main {
|
||||
.main-screen {
|
||||
position: sticky;
|
||||
z-index: 99;
|
||||
background: #FFF;
|
||||
|
||||
.screen-item {
|
||||
width: 50%;
|
||||
color: #8D929C;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
padding: 36rpx 24rpx;
|
||||
text-align: center;
|
||||
|
||||
&.active {
|
||||
color: #5A5B6E;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main-list {
|
||||
padding: 32rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user