会员权益

This commit is contained in:
2026-04-29 15:33:58 +08:00
commit 54965243da
2787 changed files with 242809 additions and 0 deletions

View File

@@ -0,0 +1,281 @@
<!-- +----------------------------------------------------------------------
| 麦沃德科技赋能开发者助力商协会发展
+----------------------------------------------------------------------
| Copyright (c) 20172024 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>

View File

@@ -0,0 +1,231 @@
<!-- +----------------------------------------------------------------------
| 麦沃德科技赋能开发者助力商协会发展
+----------------------------------------------------------------------
| Copyright (c) 20172024 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>