Selaa lähdekoodia

修改tinymce
系统管理新增用户正确输入表单后还提示手机号为空问题处理
脱敏信息处理

yongzonghuang 4 vuotta sitten
vanhempi
commit
6c09bc7bdc

+ 111 - 0
pages_category_page2/userModule/unsubscribe.vue

@@ -0,0 +1,111 @@
+<template>
+	<view class="content">
+		<view class="topbg">
+			<image src="../../static/images/unsubscribeBg.png" mode=""></image>
+		</view>
+		<view class="content-text">
+			<view class="text-align fs32 fs-bold">
+				账户注销重要提醒
+			</view>
+			<view class="font-color-C5AA7B fs30 mar-top-20">
+				在您确认注销平台账户之前,请您充分阅读、理解并同意下列事项:
+			</view>
+			<view class="mar-top-20">
+				如您不同意下列任一内容,请不要进行账户注销操作。您通过网络页面确认申请注销,视为您同意接受本提醒所有内容)
+			</view>
+			<p class="mar-top-20">1. 本帐号的个人资料和历史信息(包括头像、用户、订单记录、浏览记录、收藏等)都将无法找回</p>
+			<p class="mar-top-20">2. 你将无法登录、使用本帐号</p>
+			<p class="mar-top-20">3. 通过本帐号使用、授权登录或绑定本帐号后使用的相关记录将无法找回。你将无法再登录,使用上述服务,你曾获得的虚拟权益等财产性利益视为你自动放弃,将无法继续使用。</p>
+		</view>
+		<view class="content-text">
+			<view class="fs32 fs-bold">
+				注销后,您将放弃以下权限
+			</view>
+			<p class="mar-top-20">1. 您的所有交易记录将被清空,请确保所有交易已完结且无纠纷,账户注销后因历史交易可能产生的退换货、维权相关的资金退回等权益将视作自动放弃。</p>
+			<p class="mar-top-20">2. 您的身份信息、账户信息、积分、会员权益等将被清空且无法恢复。</p>
+		</view>
+		<view class="content-text">
+			<view class="fs32 fs-bold">
+				注销,您需要满足以下条件
+			</view>
+			<p class="mar-top-20">1. 账户近期不存在交易:您的账户无未完成订单、无已完成但未满15天订单。</p>
+			<p class="mar-top-20">2. 账户相关财产权益已结清:您的账户不存在可提现的余额。</p>
+		</view>
+		<view class="content-text">
+			<view class="agreement">
+				<image v-if="!agreement" src="../../static/images/none.png" mode="" @click="agreement=true"></image>
+				<image v-else src="../../static/images/solid.png" mode="" @click="agreement=false"></image>
+				<text class="font-color-999">我已阅读并同意</text>
+				<text class="font-color-C5AA7B" @click="protocol('app_user_agreement')">《账户注销重要提醒》</text>
+			</view>
+			<view class="btn" @click="consent">同意注销</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				agreement:false
+			}
+		},
+		methods:{
+			consent(){
+				if(!this.agreement){
+					uni.showToast({
+						title: '请先阅读并同意《账户注销重要提醒》',
+						duration: 2000,
+						icon: 'none'
+					});
+				}else{
+					uni.navigateTo({
+						url:'unsubscribeCode'
+					})
+				}
+				
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.content {
+		background-color: #F5F5F5;
+		.topbg {
+			width: 100%;
+			height: 400rpx;
+
+			image {
+				width: 100%;
+				height: 100%;
+			}
+		}
+
+		.content-text {
+			position: relative;
+			top: -340rpx;
+			margin: 30rpx;
+			border-radius: 5rpx;
+			padding: 30rpx;
+			background-color: #FFFFFF;
+			.btn{
+				background: #333333;
+				color: #FFFFFF;
+				height: 88rpx;
+				width: 600rpx;
+				text-align: center;
+				line-height: 88rpx;
+				margin-top: 40rpx;
+			}
+			.agreement {
+				line-height: 50rpx;
+				image{
+					width: 34rpx;
+					height: 34rpx;
+					margin-right: 15upx;
+				}
+			}
+		}
+	}
+</style>

+ 194 - 0
pages_category_page2/userModule/unsubscribeCode.vue

@@ -0,0 +1,194 @@
+<template>
+	<!-- 登录 -->
+	<view class="container flex-items-plus flex-column">
+		<view class="login-logoBox">
+			<image class="login-logo" src="https://ceres.zkthink.com/static/images/loginLogo.png"></image>
+		</view>
+		<view class="iphoneNum-box flex-row-plus flex-items">
+			<view style="margin-right: 30rpx">
+				<image class="loginIcon" src="https://ceres.zkthink.com/static/images/phone.png"></image>
+			</view>
+			<view>
+				<input v-model="userInfo.phone" placeholder-class="iphoneNum-input" type="number" disabled
+					placeholder="请输入您的手机号" />
+			</view>
+		</view>
+		<view class="flex-row-plus mar-top-20">
+			<view class="code-box">
+				<view style="margin-right: 30rpx">
+					<image class="loginIcon" src="https://ceres.zkthink.com/static/images/code.png"></image>
+				</view>
+				<view>
+					<input v-model="code" placeholder-class="codeNum-input" placeholder="请输入验证码" />
+				</view>
+			</view>
+			<view :class="disabled === true ? 'on' : ''" :disabled="disabled" class="getcode" @click="codede">{{text}}
+			</view>
+		</view>
+		<view class="mar-top-60">
+			<view class="registerBut mar-top-100" @click="unsubscribe">立即注销</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import sendVerifyCode from "@/mixins/SendVerifyCode";
+	const NET = require('../../utils/request')
+	const API = require('../../config/api')
+	export default {
+		data() {
+			return {
+				code: '',
+				userInfo: {}
+			}
+		},
+		mixins: [sendVerifyCode],
+		onLoad() {
+			this.userInfo = uni.getStorageSync('storage_userInfo')
+			console.log(this.userInfo)
+		},
+		methods: {
+
+			// 获取验证码
+			codede() {
+				this.getVerify()
+			},
+			getVerify() {
+				NET.request(API.Verify, {
+					phone: this.userInfo.phone,
+				}, 'GET').then(res => {
+					this.sendCode()
+				}).catch(res => {
+					uni.showToast({
+						title: res.data.message,
+						duration: 1000,
+						icon: 'none'
+					});
+				})
+			},
+			// 账户注销
+			unsubscribe() {
+				NET.request(API.delUser + this.code, {}, "delete").then(res => {
+					console.log(res)
+					if (res.code == '200') {
+						uni.showLoading({
+							mask: true,
+							title: '注销成功,正在退出...',
+							duration: 2000,
+						});
+						setTimeout(function() {
+							uni.removeStorageSync('storage_key');
+							uni.removeStorageSync('distributorId');
+							uni.reLaunch({
+								url: 'login',
+								success() {
+									uni.hideLoading()
+								}
+							})
+						}, 1000)
+					} else {
+						uni.showToast({
+							title: res.data.message,
+							duration: 1000,
+							icon: 'none'
+						});
+					}
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss">
+	.container {
+		background-color: #FFFFFF;
+		height: 100vh;
+
+		.login-logoBox {
+			margin-top: -300rpx;
+
+			.login-logo {
+				width: 234rpx;
+				height: 193rpx;
+			}
+		}
+
+		.iphoneNum-box {
+			margin-top: 100rpx;
+			border-bottom: 1rpx solid #DDDDDD;
+			height: 100rpx;
+			width: 600rpx;
+
+			.loginIcon {
+				width: 40rpx;
+				height: 53rpx;
+			}
+
+			.iphoneNum-input {
+				color: #999999;
+				font-size: 28rpx;
+				font-weight: 400;
+			}
+		}
+
+		.passwordNum-box {
+			border-bottom: 1rpx solid #DDDDDD;
+			height: 100rpx;
+			width: 600rpx;
+
+			.passwordNum-input {
+				color: #999999;
+				font-size: 28rpx;
+				font-weight: 400;
+				width: 346rpx;
+			}
+		}
+
+		.code-box {
+			border-bottom: 1rpx solid #DDDDDD;
+			height: 100rpx;
+			width: 360rpx;
+			display: flex;
+			flex-direction: row;
+			justify-content: space-between;
+			align-items: center;
+
+			.loginIcon {
+				width: 44rpx;
+				height: 50rpx;
+			}
+
+			.code-lab {
+				width: 200rpx;
+			}
+
+			.codeNum-input {
+				color: #999999;
+				font-size: 28rpx;
+				font-weight: 400;
+			}
+		}
+
+		.getcode {
+			background-color: #C5AA7B;
+			height: 100rpx;
+			width: 230rpx;
+			display: flex;
+			flex-direction: row;
+			justify-content: center;
+			align-items: center;
+			margin-left: 20rpx;
+			color: #FFFFFF;
+		}
+
+		.registerBut {
+			background: #333333;
+			color: #FFEBC4;
+			height: 100rpx;
+			width: 600rpx;
+			text-align: center;
+			line-height: 100rpx;
+			margin-top: 30rpx;
+		}
+	}
+</style>

BIN
static/images/none.png


BIN
static/images/right.png


BIN
static/images/solid.png


BIN
static/images/unsubscribeBg.png