Commit d18e56f5 authored by zhangsan's avatar zhangsan

1

parent 85c87e41
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite --host 0.0.0.0 --port 3006", "dev": "vite --host 0.0.0.0 --port 3007",
"build": "vite build", "build": "vite build",
"type-check": "vue-tsc --noEmit", "type-check": "vue-tsc --noEmit",
"preview": "vite preview" "preview": "vite preview"
......
...@@ -13,19 +13,31 @@ ...@@ -13,19 +13,31 @@
<var-button class="varbtn11" @click="gotoyj" block>去填写邮寄信息</var-button> <var-button class="varbtn11" @click="gotoyj" block>去填写邮寄信息</var-button>
</div> </div>
</van-popup> </van-popup>
<van-popup v-model:show="show1" :style="{ padding: '20px 0 50px',background:'transparent' }">
<div class="yjbg34">
<img src="@/static/active34/1.png" alt="">
<div class="yjwarp">
<img src="@/static/active34/2.png" @click="eventBus.popupVisible1 = false" alt="">
<img src="@/static/active34/3.png" @click="gotoyj" alt="">
</div>
</div>
</van-popup>
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import eventBus from '@/utils/eventBus'; import eventBus from '@/utils/eventBus';
import PageLoading from '@/components/PageLoading.vue' import PageLoading from '@/components/PageLoading.vue'
import { useRouter } from 'vue-router'; import { useRoute,useRouter } from 'vue-router';
const route = useRoute()
const router = useRouter() const router = useRouter()
const gotoyj = ()=>{ const gotoyj = ()=>{
eventBus.popupVisible = false eventBus.popupVisible = false
eventBus.popupVisible1 = false
router.push('/kpsl/cardsl') router.push('/kpsl/cardsl')
} }
const show = computed(()=>eventBus.popupVisible && router?.path != '/kpsl/cardsl') const show = computed(()=>eventBus.popupVisible && route?.path != '/kpsl/cardsl')
const show1 = computed(()=>eventBus.popupVisible1 && (!['/kpsl/cardsl','/kpsl/cardActive'].includes(route?.path)))
</script> </script>
<style lang="scss"> <style lang="scss">
...@@ -47,6 +59,34 @@ const show = computed(()=>eventBus.popupVisible && router?.path != '/kpsl/cardsl ...@@ -47,6 +59,34 @@ const show = computed(()=>eventBus.popupVisible && router?.path != '/kpsl/cardsl
font-weight: 700; font-weight: 700;
} }
} }
.yjbg34{
position: relative;
img{
width: 100%;
height: auto;
}
.yjwarp{
position: absolute;
bottom: 30px;
left: 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
box-sizing: border-box;
img{
width: 45%;
}
}
}
// <div class="yjbg34">
// <img src="@/static/active34/1.png" alt="">
// <div class="yjwarp">
// <var-button class="varbtn11" @click="eventBus.popupVisible = false" block>我知道了</var-button>
// <var-button class="varbtn11" @click="gotoyj" block>去填写邮寄信息</var-button>
// </div>
// </div>
/* 移动端适配 */ /* 移动端适配 */
html { html {
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
......
...@@ -109,7 +109,11 @@ const payParams = ref({ ...@@ -109,7 +109,11 @@ const payParams = ref({
payTitle: '支付', payTitle: '支付',
payType: '0', payType: '0',
productId: '0', productId: '0',
needPassword: false needPassword: false,
a1: '',
a2: '',
a3: '',
a4: ''
}) })
// 支付方式配置 // 支付方式配置
const methodsConfig = { const methodsConfig = {
...@@ -176,8 +180,11 @@ const submitPay = async () => { ...@@ -176,8 +180,11 @@ const submitPay = async () => {
payType: selectedMethod.value, payType: selectedMethod.value,
amount: payParams.value.amount, amount: payParams.value.amount,
productCode: payParams.value.payType, productCode: payParams.value.payType,
a1: payParams.value.a1,
a2: payParams.value.a2,
a3: payParams.value.a3,
a4: payParams.value.a4,
} }
const res = await request.post('/business/businessPayOrder/add', payData) const res = await request.post('/business/businessPayOrder/add', payData)
if (res.code === 200) { if (res.code === 200) {
const payUrl = res.result const payUrl = res.result
......
...@@ -36,6 +36,11 @@ export const useUserInfo = () => { ...@@ -36,6 +36,11 @@ export const useUserInfo = () => {
} else { } else {
eventBus.popupVisible = false; // 隐藏弹窗 eventBus.popupVisible = false; // 隐藏弹窗
} }
if (userInfo.value?.sysUser?.a10 == 2) {
eventBus.popupVisible1 = true; // 显示弹窗
} else {
eventBus.popupVisible1 = false; // 隐藏弹窗
}
return res.result; return res.result;
} }
return null; return null;
......
No preview for this file type
...@@ -2,6 +2,7 @@ import { reactive } from 'vue'; ...@@ -2,6 +2,7 @@ import { reactive } from 'vue';
const eventBus = reactive({ const eventBus = reactive({
popupVisible: false, popupVisible: false,
popupVisible1: false,
}); });
export default eventBus; export default eventBus;
\ No newline at end of file
...@@ -41,6 +41,7 @@ const titleMap: Record<string, string> = { ...@@ -41,6 +41,7 @@ const titleMap: Record<string, string> = {
signIn: "每日签到", signIn: "每日签到",
txjd: "邀请奖励提现进度", txjd: "邀请奖励提现进度",
yongjin: "团队佣金", yongjin: "团队佣金",
cardActive: "银行卡激活",
}; };
......
...@@ -35,6 +35,9 @@ service.interceptors.response.use( ...@@ -35,6 +35,9 @@ service.interceptors.response.use(
// 解密响应数据 // 解密响应数据
let res = response.data; let res = response.data;
if (response.config.url.includes('/sys/randomImage/1629428467008')) {
return res
}
if (typeof res === 'string') { if (typeof res === 'string') {
try { try {
res = JSON.parse(AESUtil.decrypt(res)); res = JSON.parse(AESUtil.decrypt(res));
......
<template>
<div class="card-active">
<div class="card-preview">
<div class="card-title">经济发展专项卡</div>
<div class="card-image">
<img src="@/static/kpsl/2.png" alt="经济发展专项卡">
</div>
<div class="card-btn-warp">
<div :class="cardActive == 1 ? 'card-btn-active card-btn' : 'card-btn'"
@click="!cardInfo.a13 ? cardActive = 1 : ''">身份证激活</div>
<div :class="cardActive == 2 ? 'card-btn-active card-btn' : 'card-btn'"
@click="!cardInfo.a13 ? cardActive = 2 : ''">银行卡激活</div>
</div>
<var-input :readonly="Boolean(cardInfo.a13)" size="small" variant="outlined" v-model="userinfo" :placeholder="cardActive == 1 ? '请输入身份证号' : '请输入银行卡号'" />
<var-button block class="card-btn1" type="primary" @click="handleActive">{{ !cardInfo.a13 ? "免费激活" : "已成功激活" }}</var-button>
</div>
</div>
</template>
<script lang="ts" setup>
import { isValidIDCard, isValidBankCard } from '@/utils/userInfoCheck'
import { useRoute, useRouter } from 'vue-router'
import request from '@/utils/request'
const route = useRoute()
const router = useRouter()
const cardActive = ref(1)
const userinfo = ref('')
const cardId = ref('')
cardId.value = route.query.id as string
const cardInfo = ref({})
const getCardInfo = () => {
request.get(`/business/businessYw1/queryById?id=${cardId.value}`).then(res => {
if(res.code === 200) {
cardActive.value = res.data.a13 || 1
userinfo.value = res.data.a14
cardInfo.value = res.data
}
})
}
getCardInfo()
const handleActive = () => {
if(cardInfo.value.a13) {
showToast('已成功激活')
return
}
if (cardActive.value === 1) {
if (!isValidIDCard(userinfo.value)) {
showToast('身份证号格式不正确')
return
}
}
if (cardActive.value === 2) {
if (!isValidBankCard(userinfo.value)) {
showToast('银行卡号格式不正确')
return
}
}
request.put(`/business/businessYw1/editByU`, {
id: cardId.value,
a13: cardActive.value,
a14: userinfo.value,
a7:6
}).then(res => {
if(res.code === 200) {
showSuccessToast('激活成功')
setTimeout(() => {
router.replace('/kpsl/cardsl')
}, 1000)
}
})
}
</script>
<style scoped lang="scss">
.card-active {
padding: 20px 10px;
height: inherit;
background: url('@/static/cbg1.png') no-repeat;
background-size: 100% 100%;
box-sizing: border-box;
.card-preview {
position: relative;
background: #fff;
padding: 10px;
border-radius: 6px;
box-sizing: border-box;
margin-bottom: 10px;
.card-title {
font-size: 14px;
font-weight: 700;
color: #333;
text-align: center;
margin-bottom: 10px;
}
.card-image {
width: 100%;
height: 200px;
background: #f0f0f0;
border-radius: 10px;
overflow: hidden;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
}
.card-btn-warp {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
margin-top: 20px;
.card-btn {
border: 1px solid #d2d2d2;
flex: 1;
text-align: center;
padding: 10px 0;
border-radius: 6px;
font-size: 14px;
color: #000;
}
.card-btn-active {
background: #d4f1c5;
}
}
.card-btn1 {
background: #3a9256;
color: #fff;
width: 70%;
border-radius: 20px;
margin: 20px auto;
}
:deep(.var-input) {
margin-top: 20px;
}
}
</style>
This diff is collapsed.
...@@ -63,6 +63,11 @@ ...@@ -63,6 +63,11 @@
<var-icon name="lock-check" /> <var-icon name="lock-check" />
</template> </template>
</var-input> </var-input>
<var-input placeholder="验证码" v-model="captcha">
<template #append-icon>
<img @click="getCapcha" :src="captchaImg" alt="" style="width: 100px; height: 30px;">
</template>
</var-input>
<var-button class="submit-btn" type="primary" block native-type="submit" :loading="registerLoading"> <var-button class="submit-btn" type="primary" block native-type="submit" :loading="registerLoading">
立即注册 立即注册
</var-button> </var-button>
...@@ -91,6 +96,9 @@ const userName = ref('') ...@@ -91,6 +96,9 @@ const userName = ref('')
const password = ref('') const password = ref('')
const registerLoading = ref(false) const registerLoading = ref(false)
const yqm = ref('') const yqm = ref('')
const captcha = ref('')
const captchaImg = ref('')
const checkKey = ref('')
let timer: ReturnType<typeof setInterval> | null = null let timer: ReturnType<typeof setInterval> | null = null
yqm.value = route.query.yqm || '' yqm.value = route.query.yqm || ''
...@@ -104,6 +112,8 @@ const onRegisterSubmit = async () => { ...@@ -104,6 +112,8 @@ const onRegisterSubmit = async () => {
const res = await request.post('/sys/user/mobileRegister', { const res = await request.post('/sys/user/mobileRegister', {
username: userName.value, username: userName.value,
password: password.value, password: password.value,
captcha: captcha.value,
checkKey: checkKey.value,
yqm: yqm.value yqm: yqm.value
}) })
if (res.code === 200) { if (res.code === 200) {
...@@ -126,6 +136,14 @@ const downloadApp = () => { ...@@ -126,6 +136,14 @@ const downloadApp = () => {
const onLineService = () => { const onLineService = () => {
window.location.href = sessionStorage.getItem('kfurl') || '' window.location.href = sessionStorage.getItem('kfurl') || ''
} }
const getCapcha = async () => {
const res = await request.get(`/sys/randomImage/1629428467008?t=${new Date().getTime()}`)
if (res.code === 0) {
captchaImg.value = res.result
checkKey.value = '1629428467008'
}
}
getCapcha()
// 组件销毁时清除定时器 // 组件销毁时清除定时器
onUnmounted(() => { onUnmounted(() => {
if (timer) { if (timer) {
...@@ -227,6 +245,7 @@ onUnmounted(() => { ...@@ -227,6 +245,7 @@ onUnmounted(() => {
.register-link { .register-link {
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
span { span {
color: #409ec8; color: #409ec8;
cursor: pointer; cursor: pointer;
......
...@@ -47,12 +47,12 @@ const handleClick = (item) => { ...@@ -47,12 +47,12 @@ const handleClick = (item) => {
return return
} }
if (item.path == '/yqjl/txjd') { if (item.path == '/yqjl/txjd') {
if (userData.value.smCount < 2) { // if (userData.value.smCount < 2) {
showToast('邀请2位好友提前开放') // showToast('邀请2位好友提前开放')
return // return
} // }
showToast('即将开放') // return false
return false router.push(item.path);
} else { } else {
router.push(item.path); router.push(item.path);
} }
...@@ -116,12 +116,12 @@ const tixian = () => { ...@@ -116,12 +116,12 @@ const tixian = () => {
if (!isEealNameAuthentication()) { if (!isEealNameAuthentication()) {
return return
} }
if (userData.value.smCount < 2) { // if (userData.value.smCount < 2) {
showToast('邀请2位好友提前开放') // showToast('邀请2位好友提前开放')
return // return
} // }
showToast('即将开放') // showToast('即将开放')
return false // return false
router.push('/yqjl/txjd') router.push('/yqjl/txjd')
} }
const actions = { const actions = {
......
...@@ -72,7 +72,7 @@ const a6 = ref(0) ...@@ -72,7 +72,7 @@ const a6 = ref(0)
const a7 = ref(0) const a7 = ref(0)
request.get('/business/businessWallet/getInfo').then(res => { request.get('/business/businessWallet/getInfo').then(res => {
userInfo.value = res.result userInfo.value = res.result
a6.value = userInfo.value.sysUser.a6 || 1 a6.value = userInfo.value.sysUser.a6 || 0
a7.value = userInfo.value.sysUser.a7 || 0 a7.value = userInfo.value.sysUser.a7 || 0
getbankCard() getbankCard()
}) })
...@@ -86,7 +86,7 @@ const payUpRef = ref<any>(null) ...@@ -86,7 +86,7 @@ const payUpRef = ref<any>(null)
const stepsBase: CardStep[] = [ const stepsBase: CardStep[] = [
{ text: '您的提现已提交,请等待审核!' }, { text: '您的提现已提交,请等待审核!' },
{ text: '恭喜您的审核已通过,请等待入款!' }, { text: '恭喜您的审核已通过,请等待入款!' },
{ text: '请立刻补缴大额存款保险费(补缴后即可原路返还)', amount: 600, tips: '补缴大额存款保险费' }, { text: '请立刻补缴大额存款保险费(补缴后即可原路返还)', amount: 500, tips: '补缴大额存款保险费' },
{ text: '等待入款!' }, { text: '等待入款!' },
{ text: '查询到前方还有92848位家人正在等待入款!邮储推出立刻到账服务 仅提供600号人', amount: 300, tips: '立刻到账服务手续费' }, { text: '查询到前方还有92848位家人正在等待入款!邮储推出立刻到账服务 仅提供600号人', amount: 300, tips: '立刻到账服务手续费' },
{ text: '前方还有328位等待入款!' }, { text: '前方还有328位等待入款!' },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment