小程序新增添加国籍类型,修改页面跳转

This commit is contained in:
gyj
2024-03-12 15:20:01 +08:00
parent 8111c269ef
commit 3e8354dfdf
5 changed files with 113 additions and 29 deletions
+2
View File
@@ -1,4 +1,5 @@
{ {
"lazyCodeLoading":"requiredComponents",
"pages": [{ "pages": [{
"path": "pages/switchSystem", "path": "pages/switchSystem",
"style": { "style": {
@@ -255,4 +256,5 @@
"navigationBarTitleText": "RuoYi", "navigationBarTitleText": "RuoYi",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
} }
} }
+43 -5
View File
@@ -46,17 +46,32 @@
<uni-data-checkbox class='checkbox' :disabled="ids?true:false" :localdata="objectiJurisArr" <uni-data-checkbox class='checkbox' :disabled="ids?true:false" :localdata="objectiJurisArr"
v-model="formData.affiliate.organizeFlag" @change='clearValidate'></uni-data-checkbox> v-model="formData.affiliate.organizeFlag" @change='clearValidate'></uni-data-checkbox>
</uni-forms-item> </uni-forms-item>
<!-- <uni-section title="申请人" type="line" padding></uni-section> -->
<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName" <uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName"
name="affiliate.applicationName" label-width="120px" required> name="affiliate.applicationName" label-width="120px" required>
<uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text" <uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text"
:placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'" /> :placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code" <uni-forms-item label="证件类型" label-width="120px" v-if="formData.affiliate.organizeFlag==0">
<uni-data-select
v-model="formData.affiliate.idType"
:localdata="certificate"
@change="changeDocment"
:disabled="true"
></uni-data-select>
</uni-forms-item>
<uni-forms-item label="国籍" label-width="120px">
<uni-data-select
v-model="formData.affiliate.nationality"
:localdata="nationality"
:disabled="formData.affiliate.organizeFlag==0"
></uni-data-select>
</uni-forms-item>
<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '证件号码':'机构代码'" name="affiliate.code"
label-width="120px" required :rules="rulesappNo"> label-width="120px" required :rules="rulesappNo">
<uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text" <uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text"
:placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" /> :placeholder="formData.affiliate.organizeFlag==0 ? '请输入证件号码':'请输入统一社会代码'" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0" <uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0"
name="affiliate.applicationEmail" label-width="120px" required> name="affiliate.applicationEmail" label-width="120px" required>
<uni-easyinput v-model="formData.affiliate.applicationEmail" :disabled="disabledApplicat" <uni-easyinput v-model="formData.affiliate.applicationEmail" :disabled="disabledApplicat"
@@ -79,6 +94,7 @@
:rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]"> :rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]">
<uni-easyinput v-model="formData.affiliate.applicantAddress" type="text" placeholder="请输入申请人联系地址" /> <uni-easyinput v-model="formData.affiliate.applicantAddress" type="text" placeholder="请输入申请人联系地址" />
</uni-forms-item> </uni-forms-item>
<uni-section title="代理人" type="line" padding></uni-section>
<uni-forms-item label="代理人联系电话:" label-width="120px"> <uni-forms-item label="代理人联系电话:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text" <uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text"
placeholder="请输入代理人联系电话" /> placeholder="请输入代理人联系电话" />
@@ -91,6 +107,7 @@
<uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text" <uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text"
placeholder="请输入代理人邮箱" /> placeholder="请输入代理人邮箱" />
</uni-forms-item> </uni-forms-item>
<uni-section title="被申请人" type="line" padding></uni-section>
<uni-forms-item label="被申请人姓名:" name="affiliate.respondentName" label-width="120px" required <uni-forms-item label="被申请人姓名:" name="affiliate.respondentName" label-width="120px" required
:rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]"> :rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]">
<uni-easyinput v-model="formData.affiliate.respondentName" type="text" placeholder="请输入被申请人姓名" /> <uni-easyinput v-model="formData.affiliate.respondentName" type="text" placeholder="请输入被申请人姓名" />
@@ -156,11 +173,21 @@
data() { data() {
return { return {
baseUrl: config.baseUrlTJ, baseUrl: config.baseUrlTJ,
certificate: [
{ value: 0, text: "身份证" },
{ value: 1, text: "护照" },
],
nationality: [
{ value: 0, text: "国内" },
{ value: 1, text: "国外" },
],
formZipData: {}, formZipData: {},
formData: { formData: {
affiliate: { affiliate: {
organizeFlag: 0, organizeFlag: 0,
respondentSex: 0, respondentSex: 0,
idType:0,
nationality:0
}, },
columnValueList: [], columnValueList: [],
caseAttachList: [], caseAttachList: [],
@@ -251,11 +278,14 @@
getUserInfoNumber() { getUserInfoNumber() {
getUserInfo().then(res => { getUserInfo().then(res => {
this.getUserInfoList = res.data this.getUserInfoList = res.data
console.log(res.data)
if (this.formData.affiliate.organizeFlag == 0) { if (this.formData.affiliate.organizeFlag == 0) {
this.$set(this.formData.affiliate, 'applicationName', res.data.nickName) this.$set(this.formData.affiliate, 'applicationName', res.data.nickName)
this.$set(this.formData.affiliate, 'code', res.data.idCard) this.$set(this.formData.affiliate, 'code', res.data.idCard)
this.$set(this.formData.affiliate, 'applicationEmail', res.data.email) this.$set(this.formData.affiliate, 'applicationEmail', res.data.email)
this.$set(this.formData.affiliate, 'applicationPhone', res.data.phonenumber) this.$set(this.formData.affiliate, 'applicationPhone', res.data.phonenumber)
this.$set(this.formData.affiliate, 'idType', res.data.idType)
this.$set(this.formData.affiliate, 'nationality', res.data.nationality)
// this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName) // this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
this.disabledVal = false this.disabledVal = false
this.disabledApplicat = true this.disabledApplicat = true
@@ -264,6 +294,7 @@
this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName) this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
this.$set(this.formData.affiliate, 'agentEmail', res.data.email) this.$set(this.formData.affiliate, 'agentEmail', res.data.email)
this.$set(this.formData.affiliate, 'contactTelphoneAgent', res.data.phonenumber) this.$set(this.formData.affiliate, 'contactTelphoneAgent', res.data.phonenumber)
this.$set(this.formData.affiliate, 'nationality', res.data.nationality)
this.disabledVal = true this.disabledVal = true
this.disabledApplicat = false this.disabledApplicat = false
} }
@@ -411,8 +442,8 @@
icon: 'none', icon: 'none',
duration: 1000 duration: 1000
}) })
uni.navigateTo({ uni.navigateBack({
url: '../index' delta: 1
}) })
}); });
}, },
@@ -565,6 +596,10 @@
delta: 1 delta: 1
}) })
}, },
// 改变证件类型
changeDocment(e){
console.log(e)
}
}, },
onLoad(data) { onLoad(data) {
this.ids = data.id this.ids = data.id
@@ -597,4 +632,7 @@
.assignrbitrators { .assignrbitrators {
margin: 30rpx; margin: 30rpx;
} }
::v-deep .uni-icons[data-v-a2e81f6e]{
display: none;
}
</style> </style>
+7 -2
View File
@@ -170,7 +170,7 @@
} }
} }
this.getList(obj) this.getList(obj)
} },
}, },
onShow() { onShow() {
this.buttonList = [] this.buttonList = []
@@ -201,8 +201,13 @@
// caseStatus:4 // caseStatus:4
// } // }
// this.getList(obj) // this.getList(obj)
},
onUnload(){
wx.reLaunch({
url: '/pages/work/index'
})
} }
} }
</script> </script>
+16 -16
View File
@@ -1,5 +1,5 @@
<template> <template>
<view class="content"> <view class="content">
<view class="header"> <view class="header">
<uni-section title="我的代办事项" type="line" padding></uni-section> <uni-section title="我的代办事项" type="line" padding></uni-section>
</view> </view>
@@ -162,14 +162,14 @@
<view class="imgTitle">待案件归档</view> <view class="imgTitle">待案件归档</view>
</view> </view>
</view> --> </view> -->
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import {todoCount,toDoCountReferee} from '@/api/homePage/index.js' import {todoCount,toDoCountReferee} from '@/api/homePage/index.js'
import LuanqingEmpty from "@/components/luanqing-empty.vue" import LuanqingEmpty from "@/components/luanqing-empty.vue"
import config from '@/config' import config from '@/config'
export default { export default {
components: { components: {
'luanqing-empty': LuanqingEmpty, 'luanqing-empty': LuanqingEmpty,
@@ -211,16 +211,16 @@
}, },
onShow() { onShow() {
this.getHomePage() this.getHomePage()
}, },
onLoad: function() { onLoad: function() {
this.sysType = uni.getStorageSync('sysType'); this.sysType = uni.getStorageSync('sysType');
console.log(this.sysType) console.log(this.sysType)
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
page { page {
background-color: #ffffff; background-color: #ffffff;
} }
@@ -267,5 +267,5 @@
} }
} }
} }
} }
</style> </style>
+45 -6
View File
@@ -3,7 +3,8 @@
<view class="logo-content align-center justify-center flex"> <view class="logo-content align-center justify-center flex">
<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix"> <image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
</image> </image>
<text class="title">仲裁系统注册</text> <text class="title" v-if="sysType==1">仲裁系统注册</text>
<text class="title" v-if="sysType==2">调解系统注册</text>
</view> </view>
<view class="login-form-content"> <view class="login-form-content">
<view class="input-item flex align-center" style="width: 60%;margin: 0px;"> <view class="input-item flex align-center" style="width: 60%;margin: 0px;">
@@ -18,10 +19,25 @@
<!-- <view class="iconfont icon-user icon"></view> --> <!-- <view class="iconfont icon-user icon"></view> -->
<input v-model="registerForm.verifyCode" class="input" type="number" placeholder="请输入手机验证码" <input v-model="registerForm.verifyCode" class="input" type="number" placeholder="请输入手机验证码"
maxlength="30" /> maxlength="30" />
</view>
<view class="input-item flex align-center">
<uni-data-select
style="text-align: left;"
v-model="registerForm.idType"
:localdata="certificate"
@change="certificateValue"
></uni-data-select>
</view>
<view class="input-item flex align-center">
<uni-data-select
style="text-align: left;"
v-model="registerForm.nationality"
:localdata="nationality"
></uni-data-select>
</view> </view>
<view class="input-item flex align-center"> <view class="input-item flex align-center">
<!-- <view class="iconfont icon-user icon"></view> --> <!-- <view class="iconfont icon-user icon"></view> -->
<input v-model="registerForm.identityNo" class="input" type="text" placeholder="请输入身份证号" <input v-model="registerForm.identityNo" class="input" type="text" :placeholder="registerForm.idType==0?'请输入身份证号':'请输入护照'"
maxlength="30" /> maxlength="30" />
</view> </view>
<view class="input-item flex align-center"> <view class="input-item flex align-center">
@@ -70,6 +86,7 @@
sendCode, sendCode,
wxregister wxregister
} from '@/api/login' } from '@/api/login'
import constant from '../utils/constant'
export default { export default {
data() { data() {
@@ -87,8 +104,19 @@
uuid: '', uuid: '',
name: '', name: '',
identityNo: "", identityNo: "",
id: "" id: "",
} idType:0,
nationality:0
},
sysType:null,
certificate: [
{ value: 0, text: "身份证" },
{ value: 1, text: "护照" },
],
nationality: [
{ value: 0, text: "国内" },
{ value: 1, text: "国外" },
],
} }
}, },
created() { created() {
@@ -196,8 +224,14 @@
this.$store.dispatch('GetInfo').then(res => { this.$store.dispatch('GetInfo').then(res => {
this.$tab.reLaunch('/pages/index') this.$tab.reLaunch('/pages/index')
}) })
},
certificateValue(e){
this.registerForm.idType = e
} }
} },
onLoad(){
this.sysType = uni.getStorageSync('sysType');
}
} }
</script> </script>
@@ -205,7 +239,12 @@
page { page {
background-color: #ffffff; background-color: #ffffff;
} }
::v-deep .uni-select[data-v-6b64008e]{
border: none;
}
::v-deep .uni-icons[data-v-a2e81f6e]{
display: none;
}
.normal-login-container { .normal-login-container {
width: 100%; width: 100%;
background-color: #ffffff; background-color: #ffffff;