小程序静态文件过大

This commit is contained in:
hanchaobo
2024-03-08 09:20:02 +08:00
parent 2341d73a42
commit 3588bed039
18 changed files with 1014 additions and 841 deletions
+440 -270
View File
@@ -3,14 +3,16 @@
<view class="assignrbitrators">
<uni-forms ref="form" :modelValue="formData" :rules="rules">
<uni-section title="案件信息" type="line" padding></uni-section>
<uni-forms-item label="案件压缩包:" name="headZip" label-width="120px">
<uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileListZip"
:auto-upload="false" @select="selectZip" :limit='1' />
</uni-forms-item>
<uni-forms-item label="申请人调解请求:" name="arbitratClaims" label-width="120px" required
:rules="[{required: true,errorMessage: '申请人调解请求不能为空'}]"
>
<uni-easyinput v-model="formData.arbitratClaims" type="textarea" placeholder="请输入申请人调解请求" />
:rules="[{required: true,errorMessage: '申请人调解请求不能为空'}]">
<uni-easyinput v-model="formData.arbitratClaims" type="textarea" placeholder="请输入申请人调解请求" />
</uni-forms-item>
<uni-forms-item label="事实和理由:" name="facts" label-width="120px" required
:rules="[{required: true,errorMessage: '事实和理由不能为空'}]"
>
:rules="[{required: true,errorMessage: '事实和理由不能为空'}]">
<uni-easyinput v-model="formData.facts" type="textarea" placeholder="请输入事实和理由" />
</uni-forms-item>
<!-- <uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="120px" required
@@ -24,15 +26,16 @@
<uni-data-select :localdata="templateList" v-model="formData.templateId"></uni-data-select>
</uni-forms-item> -->
<uni-forms-item label="申请人案件证据资料上传:" name="headImage" label-width="120px">
<uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList" :auto-upload="false" @select="select" :limit='1' />
<uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList"
:auto-upload="false" @select="select" :limit='1' />
</uni-forms-item>
<uni-forms-item label="证据:" label-width="120px" v-if="ids">
<uni-forms-item label="证据:" label-width="120px" v-if="ids">
<view class="" v-for="item in formData.caseAttachList">
<uni-link v-if="item.annexType==2" :href="baseUrl+item.annexPath" color="#007BFF"
:text="item.annexName"></uni-link>
</view>
</uni-forms-item>
<uni-forms-item label="调解申请书:" label-width="120px" v-if="ids">
<uni-forms-item label="调解申请书:" label-width="120px" v-if="ids">
<view class="" v-for="item in formData.caseAttachList">
<uni-link v-if="item.annexType==3" :href="baseUrl+item.annexPath" color="#007BFF"
:text="item.annexName"></uni-link>
@@ -40,222 +43,215 @@
</uni-forms-item>
<uni-section title="双方信息" type="line" padding></uni-section>
<uni-forms-item label="选择机构或自然人" label-width="120px" name="objectiJuris">
<uni-data-checkbox class='checkbox'
:disabled="ids?true:false"
:localdata="objectiJurisArr"
v-model="formData.affiliate.organizeFlag"
@change='clearValidate'></uni-data-checkbox>
<uni-data-checkbox class='checkbox' :disabled="ids?true:false" :localdata="objectiJurisArr"
v-model="formData.affiliate.organizeFlag" @change='clearValidate'></uni-data-checkbox>
</uni-forms-item>
<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName" name="affiliate.applicationName" label-width="120px" required >
<uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text" :placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'"/>
<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName"
name="affiliate.applicationName" label-width="120px" required>
<uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text"
:placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'" />
</uni-forms-item>
<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code" label-width="120px" required
:rules="rulesappNo">
<uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text" :placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" />
<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code"
label-width="120px" required :rules="rulesappNo">
<uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text"
:placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" />
</uni-forms-item>
<uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0" name="affiliate.applicationEmail" label-width="120px" required
>
<uni-easyinput v-model="formData.affiliate.applicationEmail"
:disabled="disabledApplicat"
type="text" placeholder="请输入申请人邮箱" />
<uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0"
name="affiliate.applicationEmail" label-width="120px" required>
<uni-easyinput v-model="formData.affiliate.applicationEmail" :disabled="disabledApplicat"
type="text" placeholder="请输入申请人邮箱" />
</uni-forms-item>
<uni-forms-item label="申请人电话:" v-if="formData.affiliate.organizeFlag==0" name="affiliate.applicationPhone" label-width="120px" required
>
<uni-easyinput v-model="formData.affiliate.applicationPhone" :disabled="disabledApplicat" type="text" placeholder="请输入申请人电话" />
<uni-forms-item label="申请人电话:" v-if="formData.affiliate.organizeFlag==0"
name="affiliate.applicationPhone" label-width="120px" required>
<uni-easyinput v-model="formData.affiliate.applicationPhone" :disabled="disabledApplicat"
type="text" placeholder="请输入申请人电话" />
</uni-forms-item>
<uni-forms-item label="法定代表人:" v-if="formData.affiliate.organizeFlag==1" name="affiliate.compLegalPerson" label-width="120px" required
>
<uni-forms-item label="法定代表人:" v-if="formData.affiliate.organizeFlag==1"
name="affiliate.compLegalPerson" label-width="120px" required>
<uni-easyinput v-model="formData.affiliate.compLegalPerson" type="text" placeholder="请输入法定代表人" />
</uni-forms-item>
<uni-forms-item label="申请人住所:" name="affiliate.applicantHome" label-width="120px" required
:rules="[{required: true,errorMessage: '申请人住所不能为空'}]"
>
:rules="[{required: true,errorMessage: '申请人住所不能为空'}]">
<uni-easyinput v-model="formData.affiliate.applicantHome" type="text" placeholder="请输入申请人住所" />
</uni-forms-item>
<uni-forms-item label="申请人联系地址:" name="affiliate.applicantAddress" label-width="120px" required
:rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]"
>
:rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]">
<uni-easyinput v-model="formData.affiliate.applicantAddress" type="text" placeholder="请输入申请人联系地址" />
</uni-forms-item>
<uni-forms-item label="代理人联系电话:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text" placeholder="请输入代理人联系电话" />
<uni-forms-item label="代理人联系电话:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text"
placeholder="请输入代理人联系电话" />
</uni-forms-item>
<uni-forms-item label="代理人姓名:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.nameAgent" :disabled="disabledVal" type="text" placeholder="请输入委托代理人姓名" />
<uni-forms-item label="代理人姓名:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.nameAgent" :disabled="disabledVal" type="text"
placeholder="请输入委托代理人姓名" />
</uni-forms-item>
<uni-forms-item label="代理人邮箱:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text" placeholder="请输入代理人邮箱" />
<uni-forms-item label="代理人邮箱:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text"
placeholder="请输入代理人邮箱" />
</uni-forms-item>
<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-forms-item>
<uni-forms-item label="被申请人联系电话:" name="affiliate.respondentPhone" label-width="120px" required
:rules="[
<uni-forms-item label="被申请人联系电话:" name="affiliate.respondentPhone" label-width="120px" required :rules="[
{required: true,errorMessage: '被申请人联系电话不能为空'},
{pattern:'^[1][3,4,5,6,7,8,9][0-9]{9}$',errorMessage:'被申请人联系电话格式不正确'}
]"
>
]">
<uni-easyinput v-model="formData.affiliate.respondentPhone" type="text" placeholder="请输入被申请人联系电话" />
</uni-forms-item>
<uni-forms-item label="被申请人身份证号:" name="affiliate.respondentIdentityNum" label-width="120px" required
:rules="[
:rules="[
{required: true,errorMessage: '被申请人身份证号不能为空'},
{pattern:'^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$',errorMessage:'被申请人身份证格式错误'}
]"
>
<uni-easyinput v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur" type="text" placeholder="请输入被申请人身份证号" />
]">
<uni-easyinput v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur" type="text"
placeholder="请输入被申请人身份证号" />
</uni-forms-item>
<uni-forms-item label="被申请人性别" label-width="120px" required>
<uni-data-checkbox class='checkbox'
:disabled='true'
v-model="formData.affiliate.respondentSex"
<uni-data-checkbox class='checkbox' :disabled='true' v-model="formData.affiliate.respondentSex"
:localdata="respondentSexy"></uni-data-checkbox>
</uni-forms-item>
<uni-forms-item label="被申请人出生年月日" label-width="120px">
<uni-datetime-picker v-model="formData.affiliate.respondentBirth" :disabled='true' type="date" :clear-icon="false" />
<uni-datetime-picker v-model="formData.affiliate.respondentBirth" :disabled='true' type="date"
:clear-icon="false" />
</uni-forms-item>
<uni-forms-item label="被申请人住所:" name="affiliate.respondentHome" label-width="120px" required
:rules="[{required: true,errorMessage: '被申请人住所不能为空'}]"
>
:rules="[{required: true,errorMessage: '被申请人住所不能为空'}]">
<uni-easyinput v-model="formData.affiliate.respondentHome" type="text" placeholder="请输入被申请人住所" />
</uni-forms-item>
<uni-forms-item label="被申请人邮箱:" name="affiliate.respondentEmail" label-width="120px" required
:rules="[
<uni-forms-item label="被申请人邮箱:" name="affiliate.respondentEmail" label-width="120px" required :rules="[
{required: true,errorMessage: '被申请人邮箱不能为空'},
{pattern:'^\\S+?@\\S+?\\.\\S+?$',errorMessage:'邮箱格式不正确'}
]"
>
]">
<uni-easyinput v-model="formData.affiliate.respondentEmail" type="text" placeholder="请输入被申请人邮箱" />
</uni-forms-item>
</uni-forms>
<view class="determine" style="text-align: center;">
<button class="mini-btn"
type="primary" size="mini"
@tap="submitReasont">确定</button>
<button style="margin-left:30rpx;" class="mini-btn"
type="default" size="mini"
@tap="cencalBut">取消</button>
<button class="mini-btn" type="primary" size="mini" @tap="submitReasont">确定</button>
<button style="margin-left:30rpx;" class="mini-btn" type="default" size="mini"
@tap="cencalBut">取消</button>
</view>
</view>
</view>
</template>
</view>
</template>
<script>
import {getTemplate,getInfoByIdCard,caseApplicationInsert,updateComfire,caseApplicationSelectById,getUserInfo} from '../../../api/handlecase/index.js'
import {
getTemplate,
getInfoByIdCard,
caseApplicationInsert,
updateComfire,
caseApplicationSelectById,
getUserInfo
} from '../../../api/handlecase/index.js'
import {
getToken
} from '@/utils/auth'
import config from '@/config'
export default {
data() {
return {
baseUrl : config.baseUrlTJ,
formData:{
affiliate:{
organizeFlag: 0,
respondentSex: 0,
},
columnValueList: [],
caseAttachList: [],
return {
baseUrl: config.baseUrlTJ,
formZipData: {},
formData: {
affiliate: {
organizeFlag: 0,
respondentSex: 0,
},
getUserInfoList:{},
ids:null,
tempFilePaths: null,
templateList:[],
objectiJurisArr: [{
text: '自然人',
value: 0
}, {
text: '机构',
value: 1
}],
respondentSexy: [
{
text: '女',
value: 1
}, {
text: '男',
value: 0
}
],
disabledVal:false,
disabledApplicat:false,
fileList: {},
rules:{},
rulesappName: [
{
required: true,
errorMessage: '输入信息不能为空',
},{
validateFunction: (rule, value, data, callback) => {
//判断手机号格式时候正确
if (value.length<1) {
if(this.formData.affiliate.organizeFlag == 0){
callback('请输入申请人姓名')
}else{
callback('请输入机构名称')
}
}
return true
columnValueList: [],
caseAttachList: [],
},
getUserInfoList: {},
ids: null,
tempFilePaths: null,
tempFilePathsZip: null,
templateList: [],
objectiJurisArr: [{
text: '自然人',
value: 0
}, {
text: '机构',
value: 1
}],
respondentSexy: [{
text: '女',
value: 1
}, {
text: '男',
value: 0
}],
disabledVal: false,
disabledApplicat: false,
fileList: {},
fileListZip: {},
rules: {},
rulesappName: [{
required: true,
errorMessage: '输入信息不能为空',
}, {
validateFunction: (rule, value, data, callback) => {
//判断手机号格式时候正确
if (value.length < 1) {
if (this.formData.affiliate.organizeFlag == 0) {
callback('请输入申请人姓名')
} else {
callback('请输入机构名称')
}
}
],
rulesappNo: [
{
required: true,
errorMessage:'输入信息不能为空',
},{
validateFunction: (rule, value, data, callback) => {
//判断手机号格
if(this.formData.affiliate.organizeFlag == 0){
let pNoReg = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
if(!pNoReg.test(value)){
callback('请输入正确的身份证号码')
}
}else{
if(!value){
callback('请输入正确的机构信息')
}
}
return true
return true
}
}],
rulesappNo: [{
required: true,
errorMessage: '输入信息不能为空',
}, {
validateFunction: (rule, value, data, callback) => {
//判断手机号格
if (this.formData.affiliate.organizeFlag == 0) {
let pNoReg =
/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
if (!pNoReg.test(value)) {
callback('请输入正确的身份证号码')
}
} else {
if (!value) {
callback('请输入正确的机构信息')
}
}
]
}
return true
}
}]
}
},
methods:{
submitReasont(){
this.$refs.form.validate().then(res=>{
methods: {
submitReasont() {
this.$refs.form.validate().then(res => {
console.log(this.ids)
if(this.ids){
this.modifyData(this.formData)
}else{
this.insertFn(this.formData)
}
}).catch(err =>{
if (this.ids) {
this.modifyData(this.formData)
} else {
this.insertFn(this.formData)
}
}).catch(err => {
})
},
// 获取新增默认值
getUserInfoNumber(){
getUserInfo().then(res =>{
getUserInfoNumber() {
getUserInfo().then(res => {
this.getUserInfoList = 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, 'code', res.data.idCard)
this.$set(this.formData.affiliate, 'applicationEmail', res.data.email)
@@ -263,7 +259,7 @@
// this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
this.disabledVal = false
this.disabledApplicat = true
}else if(this.formData.affiliate.organizeFlag == 1){
} else if (this.formData.affiliate.organizeFlag == 1) {
console.log(this.formData.affiliate.organizeFlag)
this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
this.$set(this.formData.affiliate, 'agentEmail', res.data.email)
@@ -271,132 +267,300 @@
this.disabledVal = true
this.disabledApplicat = false
}
})
},
clearValidate(val){
if(this.formData.affiliate.organizeFlag == 0){
clearValidate(val) {
if (this.formData.affiliate.organizeFlag == 0) {
this.$set(this.formData.affiliate, 'applicationName', this.getUserInfoList.nickName)
this.$set(this.formData.affiliate, 'code', this.getUserInfoList.idCard)
this.$set(this.formData.affiliate, 'applicationEmail', this.getUserInfoList.email)
this.$set(this.formData.affiliate, 'applicationPhone', this.getUserInfoList.phonenumber)
this.$set(this.formData.affiliate, 'nameAgent', null)
this.$set(this.formData.affiliate, 'agentEmail', null)
this.$set(this.formData.affiliate, 'contactTelphoneAgent', null)
if (this.formZipData.affiliate) {
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
.applicantAddress);
this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData
.affiliate.contactTelphoneAgent);
this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate
.nameAgent);
this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate
.agentEmail);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
.respondentEmail);
this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
.compLegalPerson);
} else {
this.$set(this.formData.affiliate, 'nameAgent', null)
this.$set(this.formData.affiliate, 'agentEmail', null)
this.$set(this.formData.affiliate, 'contactTelphoneAgent', null)
}
this.disabledVal = false
this.disabledApplicat = true
}else if(this.formData.affiliate.organizeFlag == 1){
} else if (this.formData.affiliate.organizeFlag == 1) {
this.$set(this.formData.affiliate, 'nameAgent', this.getUserInfoList.nickName)
this.$set(this.formData.affiliate, 'agentEmail', this.getUserInfoList.email)
this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.getUserInfoList.phonenumber)
this.$set(this.formData.affiliate, 'applicationName', null)
this.$set(this.formData.affiliate, 'code', null)
this.$set(this.formData.affiliate, 'applicationEmail', null)
this.$set(this.formData.affiliate, 'applicationPhone', null)
if (this.formZipData.affiliate) {
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
this.$set(this.formData.affiliate, 'applicationName', this.formZipData.affiliate
.applicationName);
this.$set(this.formData.affiliate, 'code', this.formZipData.affiliate.code);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
.applicantAddress);
this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
.compLegalPerson);
this.$set(this.formData.affiliate, 'applicationEmail', this.formZipData.affiliate
.applicationEmail);
this.$set(this.formData.affiliate, 'applicationPhone', this.formZipData.affiliate
.applicationPhone);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
.respondentEmail);
} else {
this.$set(this.formData.affiliate, 'applicationName', null)
this.$set(this.formData.affiliate, 'code', null)
this.$set(this.formData.affiliate, 'applicationEmail', null)
this.$set(this.formData.affiliate, 'applicationPhone', null)
}
this.disabledVal = true
this.disabledApplicat = false
}
// this.formData.affiliate.applicationName =null
// this.formData.affiliate.code =null
this.$refs["form"].clearValidate()
// this.formData.affiliate.applicationName =null
// this.formData.affiliate.code =null
this.$refs["form"].clearValidate()
},
/** 获取裁决书模板 */
getTemplateFn(data) {
getTemplate(data).then((res) => {
//this.templateList = res.rows;
res.rows.forEach(item=>{
this.templateList.push({value:item.id,text:item.temName})
getTemplate(data).then((res) => {
//this.templateList = res.rows;
res.rows.forEach(item => {
this.templateList.push({
value: item.id,
text: item.temName
})
})
});
});
},
/** 根据案件id获取对应信息 */
caseApplicationSelectByIdFn(data) {
caseApplicationSelectById(data).then(res => {
res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex)
this.formData = res.data
console.log(this.formData)
})
},
/** 根据案件id获取对应信息 */
caseApplicationSelectByIdFn(data) {
caseApplicationSelectById(data).then(res=>{
res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex)
this.formData = res.data
console.log( this.formData)
})
},
// 被申请人获取性别出生年月
handleBlur(){
handleBlur() {
let idCards = {
idCard: this.formData.affiliate.respondentIdentityNum,
};
getInfoByIdCard(idCards).then(res=>{
idCard: this.formData.affiliate.respondentIdentityNum,
};
getInfoByIdCard(idCards).then(res => {
this.formData.affiliate.respondentSex = Number(res.respondentSex);
this.formData.affiliate.respondentBirth = res.respondentBirth;
})
},
// 新增案件
insertFn(data) {
caseApplicationInsert(data).then((res) => {
uni.showToast({
title: '新增成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'../index'
})
// this.$router.go(-1)
});
insertFn(data) {
caseApplicationInsert(data).then((res) => {
uni.showToast({
title: '新增成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url: '../index'
})
// this.$router.go(-1)
});
},
//修改案件
modifyData(data) {
updateComfire(data).then((res) => {
uni.showToast({
title: '修改成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'../index'
})
});
},
// 文件上传
select(e) {
this.tempFilePaths = e.tempFilePaths;
// loading
uni.showLoading({
title: '上传中'
});
uni.uploadFile({
url: config.baseUrlTJ + "/common/upload",
filePath: this.tempFilePaths[0],
header: {
Authorization: getToken() || '',
},
formData: {
annexType: 2,
id: this.formData.id
},
name: 'file',
success: (res) => {
let result = JSON.parse(res.data)
this.formData.caseAttachList.push({
annexId: result.annexId,
annexName: result.fileName
});
console.log(result.fileName)
uni.showToast({
title: '上传成功',
icon: 'none',
duration: 1000
})
uni.hideLoading();
},
fail: (err) => {
uni.showToast({
title: '上传失败',
icon: 'none',
duration: 1000
})
uni.hideLoading()
}
modifyData(data) {
updateComfire(data).then((res) => {
uni.showToast({
title: '修改成功',
icon: 'none',
duration: 1000
})
},
cencalBut(){
uni.navigateTo({
url: '../index'
})
});
},
// 压缩包上传
selectZip(e) {
if (e.tempFiles[0].extname != 'zip') {
uni.showToast({
title: '上传类型为zip',
icon: 'none',
duration: 1000
})
return
}
// loading
this.tempFilePathsZip = e.tempFilePaths;
uni.showLoading({
title: '上传中'
});
uni.uploadFile({
url: config.baseUrlTJ + "/caseApplication/userIdentify",
filePath: this.tempFilePathsZip[0],
header: {
Authorization: getToken() || '',
},
name: 'file',
success: (res) => {
let result = JSON.parse(res.data)
uni.showToast({
title: '上传成功',
icon: 'none',
duration: 1000
})
this.formZipData = result.data;
if (this.formData.affiliate.organizeFlag == 0) {
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
.applicantAddress);
this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData
.affiliate.contactTelphoneAgent);
this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate
.nameAgent);
this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate
.agentEmail);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
.respondentEmail);
this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
.compLegalPerson);
} else if (this.formData.affiliate.organizeFlag == 1) {
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
this.$set(this.formData.affiliate, 'applicationName', this.formZipData.affiliate
.applicationName);
this.$set(this.formData.affiliate, 'code', this.formZipData.affiliate.code);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
.applicantAddress);
this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
.compLegalPerson);
this.$set(this.formData.affiliate, 'applicationEmail', this.formZipData.affiliate
.applicationEmail);
this.$set(this.formData.affiliate, 'applicationPhone', this.formZipData.affiliate
.applicationPhone);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
.respondentEmail);
}
uni.hideLoading();
},
fail: (err) => {
uni.showToast({
title: '上传失败',
icon: 'none',
duration: 1000
})
uni.hideLoading()
}
})
},
// 文件上传
select(e) {
this.tempFilePaths = e.tempFilePaths;
// loading
uni.showLoading({
title: '上传中'
});
uni.uploadFile({
url: config.baseUrlTJ + "/common/upload",
filePath: this.tempFilePaths[0],
header: {
Authorization: getToken() || '',
},
formData: {
annexType: 2,
id: this.formData.id
},
name: 'file',
success: (res) => {
let result = JSON.parse(res.data)
this.formData.caseAttachList.push({
annexId: result.annexId,
annexName: result.fileName
});
console.log(result.fileName)
uni.showToast({
title: '上传成功',
icon: 'none',
duration: 1000
})
uni.hideLoading();
},
fail: (err) => {
uni.showToast({
title: '上传失败',
icon: 'none',
duration: 1000
})
uni.hideLoading()
}
})
},
cencalBut() {
uni.navigateBack({
delta: 1
})
@@ -404,27 +568,33 @@
},
onLoad(data) {
this.ids = data.id
if(this.ids){
this.caseApplicationSelectByIdFn({id:data.id})
uni.setNavigationBarTitle({title:"案件修改"})
}else{
uni.setNavigationBarTitle({title:"案件新增"})
if (this.ids) {
this.caseApplicationSelectByIdFn({
id: data.id
})
uni.setNavigationBarTitle({
title: "案件修改"
})
} else {
uni.setNavigationBarTitle({
title: "案件新增"
})
}
this.getTemplateFn()
this.getUserInfoNumber()
this.getUserInfoNumber()
},
onReady() {
this.$refs.form.setRules(this.rules)
}
}
</script>
</script>
<style lang="scss">
page {
background-color: #ffffff;
}
.assignrbitrators{
.assignrbitrators {
margin: 30rpx;
}
}
</style>
+223 -221
View File
@@ -1,246 +1,248 @@
<template>
<view class="normal-login-container">
<view class="logo-content align-center justify-center flex" v-if="logSyste==1">
<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
</image>
<text class="title">仲裁平台</text>
<template>
<view class="normal-login-container">
<view class="logo-content align-center justify-center flex" v-if="logSyste==1">
<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
</image>
<text class="title">仲裁平台</text>
</view>
<view class="logo-content align-center justify-center flex" v-if="logSyste==2">
<image style="width: 100rpx;height: 100rpx;" src="../static/refree.png" mode="widthFix">
<image style="width: 100rpx;height: 100rpx;" src="https://txroom.xayunmei.com/refree.png" mode="widthFix">
</image>
<text class="title">调解平台</text>
</view>
<view class="login-form-content">
<view class="input-item flex align-center">
<view class="iconfont icon-user icon"></view>
<input v-model="loginForm.username" class="input" type="text" placeholder="请输入账号" maxlength="30" />
</view>
<view class="input-item flex align-center">
<view class="iconfont icon-password icon"></view>
<input v-model="loginForm.password" type="password" class="input" placeholder="请输入密码" maxlength="20" />
</view>
<view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
<view class="iconfont icon-code icon"></view>
<input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
<view class="login-code">
<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
</view>
</view>
<view class="login-form-content">
<view class="input-item flex align-center">
<view class="iconfont icon-user icon"></view>
<input v-model="loginForm.username" class="input" type="text" placeholder="请输入账号" maxlength="30" />
</view>
<view class="input-item flex align-center">
<view class="iconfont icon-password icon"></view>
<input v-model="loginForm.password" type="password" class="input" placeholder="请输入密码" maxlength="20" />
</view>
<view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
<view class="iconfont icon-code icon"></view>
<input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
<view class="login-code">
<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
</view>
</view>
<view class="ageen-read">
<checkbox-group @change="handleAgreeChange">
<checkbox value="agree"/>
<checkbox value="agree" />
<text class="agreen-text">阅读并同意</text>
<text @click="equityNotice" class="text-blue">《权益告知书》</text>
</checkbox-group>
</view>
<view class="action-btn">
<button @click="handleLogin" class="login-btn cu-btn block bg-blue lg round">登录</button>
</view>
<view class="reg text-center" v-if="register">
<text class="text-grey1">没有账号?</text>
<text @click="handleUserRegister" class="text-blue">立即注册</text>
</view>
<!-- <view class="reg text-center" v-if="register">
<text class="text-grey1">使用其他方式登录:</text>
<text @click="handleUserRegister" class="text-blue"></text>
</view> -->
<!-- <view class="xieyi text-center">
<text class="text-grey1">登录即代表同意</text>
<text @click="handleUserAgrement" class="text-blue">《用户协议》</text>
<text @click="handlePrivacy" class="text-blue">《隐私协议》</text>
</view> -->
</view>
</view>
</template>
<script>
import {
getCodeImg
} from '@/api/login'
export default {
data() {
return {
codeUrl: "",
</view>
<view class="action-btn">
<button @click="handleLogin" class="login-btn cu-btn block bg-blue lg round">登录</button>
</view>
<view class="reg text-center" v-if="register">
<text class="text-grey1">没有账号?</text>
<text @click="handleUserRegister" class="text-blue">立即注册</text>
</view>
<!-- <view class="reg text-center" v-if="register">
<text class="text-grey1">使用其他方式登录:</text>
<text @click="handleUserRegister" class="text-blue"></text>
</view> -->
<!-- <view class="xieyi text-center">
<text class="text-grey1">登录即代表同意</text>
<text @click="handleUserAgrement" class="text-blue">《用户协议》</text>
<text @click="handlePrivacy" class="text-blue">《隐私协议》</text>
</view> -->
</view>
</view>
</template>
<script>
import {
getCodeImg
} from '@/api/login'
export default {
data() {
return {
codeUrl: "",
captchaEnabled: true,
logSyste:0,
// 用户注册开关
register: true,
globalConfig: getApp().globalData.config,
loginForm: {
username: "",
password: "",
code: "",
logSyste: 0,
// 用户注册开关
register: true,
globalConfig: getApp().globalData.config,
loginForm: {
username: "",
password: "",
code: "",
uuid: '',
},
isSelectAgree:[]
}
},
created() {
this.getCode()
},
isSelectAgree: []
}
},
created() {
this.getCode()
},
methods: {
handleAgreeChange(e){
handleAgreeChange(e) {
this.isSelectAgree = e.detail.value
},
// 用户注册
handleUserRegister() {
this.$tab.redirectTo(`/pages/realName`)
},
// 用户注册
handleUserRegister() {
this.$tab.redirectTo(`/pages/realName`)
},
// 权益告知书
equityNotice(){
equityNotice() {
//this.$tab.redirectTo(`/pages/personalInfoCollection`)
this.$tab.navigateTo(`/pages/personalInfoCollection?title=权益告知书`)
},
// 隐私协议
handlePrivacy() {
let site = this.globalConfig.appInfo.agreements[0]
this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
},
// 用户协议
handleUserAgrement() {
let site = this.globalConfig.appInfo.agreements[1]
this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
},
// 获取图形验证码
getCode() {
getCodeImg().then(res => {
this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled
if (this.captchaEnabled) {
this.codeUrl = 'data:image/gif;base64,' + res.img
this.loginForm.uuid = res.uuid
}
})
},
// 登录方法
async handleLogin() {
const sysType = uni.getStorageSync('sysType')
if (this.loginForm.username === "") {
this.$modal.msgError("请输入您的账号")
}else if(this.isSelectAgree.length < 1){
this.$modal.msgError("请先阅读个人信息收集条款并同意")
} else if (this.loginForm.password === "") {
this.$modal.msgError("请输入您的密码")
} else if (this.loginForm.code === "" && this.captchaEnabled) {
this.$modal.msgError("请输入验证码")
} else {
this.$modal.loading("登录中,请耐心等待...")
this.pwdLogin()
}
},
// 密码登录
async pwdLogin() {
this.$store.dispatch('Login', this.loginForm).then(() => {
this.$modal.closeLoading()
this.loginSuccess()
}).catch(() => {
if (this.captchaEnabled) {
this.getCode()
}
})
},
// 登录成功后,处理函数
loginSuccess(result) {
// 设置用户信息
this.$store.dispatch('GetInfo').then(res => {
this.$tab.reLaunch('/pages/work/index')
})
},
onLoad(options){
let vals = decodeURIComponent(options.values);
this.logSyste = vals
// 隐私协议
handlePrivacy() {
let site = this.globalConfig.appInfo.agreements[0]
this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
},
// 用户协议
handleUserAgrement() {
let site = this.globalConfig.appInfo.agreements[1]
this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
},
// 获取图形验证码
getCode() {
getCodeImg().then(res => {
this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled
if (this.captchaEnabled) {
this.codeUrl = 'data:image/gif;base64,' + res.img
this.loginForm.uuid = res.uuid
}
})
},
// 登录方法
async handleLogin() {
const sysType = uni.getStorageSync('sysType')
if (this.loginForm.username === "") {
this.$modal.msgError("请输入您的账号")
} else if (this.isSelectAgree.length < 1) {
this.$modal.msgError("请先阅读个人信息收集条款并同意")
} else if (this.loginForm.password === "") {
this.$modal.msgError("请输入您的密码")
} else if (this.loginForm.code === "" && this.captchaEnabled) {
this.$modal.msgError("请输入验证码")
} else {
this.$modal.loading("登录中,请耐心等待...")
this.pwdLogin()
}
},
// 密码登录
async pwdLogin() {
this.$store.dispatch('Login', this.loginForm).then(() => {
this.$modal.closeLoading()
this.loginSuccess()
}).catch(() => {
if (this.captchaEnabled) {
this.getCode()
}
})
},
// 登录成功后,处理函数
loginSuccess(result) {
// 设置用户信息
this.$store.dispatch('GetInfo').then(res => {
this.$tab.reLaunch('/pages/work/index')
})
},
onLoad(options) {
let vals = decodeURIComponent(options.values);
this.logSyste = vals
}
}
}
</script>
<style lang="scss">
page {
background-color: #ffffff;
}
.normal-login-container {
width: 100%;
.logo-content {
width: 100%;
font-size: 21px;
text-align: center;
padding-top: 15%;
image {
border-radius: 4px;
}
.title {
margin-left: 10px;
}
}
.login-form-content {
// text-align: center;
margin: 20px auto;
margin-top: 15%;
width: 80%;
.input-item {
margin: 20px auto;
background-color: #f5f6f7;
height: 45px;
border-radius: 20px;
.icon {
font-size: 38rpx;
margin-left: 10px;
color: #999;
}
.input {
width: 100%;
font-size: 14px;
line-height: 20px;
text-align: left;
padding-left: 15px;
}
}
.login-btn {
margin-top: 40px;
height: 45px;
}
.reg {
margin-top: 15px;
}
.xieyi {
color: #333;
margin-top: 20px;
}
.login-code {
height: 38px;
float: right;
.login-code-img {
height: 38px;
position: absolute;
margin-left: 10px;
width: 200rpx;
}
}
}
</script>
<style lang="scss">
page {
background-color: #ffffff;
}
.normal-login-container {
width: 100%;
.logo-content {
width: 100%;
font-size: 21px;
text-align: center;
padding-top: 15%;
image {
border-radius: 4px;
}
.ageen-read{
margin-top:65rpx;
.agreen-text{
padding-left:20rpx;
.title {
margin-left: 10px;
}
}
.login-form-content {
// text-align: center;
margin: 20px auto;
margin-top: 15%;
width: 80%;
.input-item {
margin: 20px auto;
background-color: #f5f6f7;
height: 45px;
border-radius: 20px;
.icon {
font-size: 38rpx;
margin-left: 10px;
color: #999;
}
}
}
}
.input {
width: 100%;
font-size: 14px;
line-height: 20px;
text-align: left;
padding-left: 15px;
}
}
.login-btn {
margin-top: 40px;
height: 45px;
}
.reg {
margin-top: 15px;
}
.xieyi {
color: #333;
margin-top: 20px;
}
.login-code {
height: 38px;
float: right;
.login-code-img {
height: 38px;
position: absolute;
margin-left: 10px;
width: 200rpx;
}
}
.ageen-read {
margin-top: 65rpx;
.agreen-text {
padding-left: 20rpx;
color: #999;
}
}
}
}
</style>
+306 -307
View File
@@ -1,17 +1,18 @@
<template>
<view class="work-container">
<!-- 仲裁轮播图 -->
<uni-swiper-dot v-if="sysType==1" class="uni-swiper-dot-box" :info="data" :current="current" field="content">
<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
<swiper-item v-for="(item, index) in data" :key="index">
<view class="swiper-item" @click="clickBannerItem(item)">
<image :src="item.image" mode="aspectFill" :draggable="false" />
</view>
</swiper-item>
</swiper>
</uni-swiper-dot>
<template>
<view class="work-container">
<!-- 仲裁轮播图 -->
<uni-swiper-dot v-if="sysType==1" class="uni-swiper-dot-box" :info="data" :current="current" field="content">
<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
<swiper-item v-for="(item, index) in data" :key="index">
<view class="swiper-item" @click="clickBannerItem(item)">
<image :src="item.image" mode="aspectFill" :draggable="false" />
</view>
</swiper-item>
</swiper>
</uni-swiper-dot>
<!-- 调解轮播图 -->
<uni-swiper-dot v-if="sysType==2" class="uni-swiper-dot-box" :info="refreesVal" :current="current" field="content">
<uni-swiper-dot v-if="sysType==2" class="uni-swiper-dot-box" :info="refreesVal" :current="current"
field="content">
<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
<swiper-item v-for="(item, index) in refreesVal" :key="index">
<view class="swiper-item" @click="clickBannerItem(item)">
@@ -19,310 +20,308 @@
</view>
</swiper-item>
</swiper>
</uni-swiper-dot>
<!-- 宫格组件 -->
<!-- <uni-section v-if="certificationStatus == '1'" class="uni-section" title="系统管理" type="line">
<template v-slot:right>
已认证
</template>
</uni-section>
<uni-section v-else class="uni-section" title="系统管理" type="line" @click="certification">
<template v-slot:right>
未认证
</template>
</uni-section> -->
<!-- <uni-section class="uni-section" title="系统管理" type="line"></uni-section> -->
<view class="grid-body">
<uni-grid :column="4" :showBorder="false">
<uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(0)">
<uni-icons type="calendar-filled" size="30" color="#327DD7"></uni-icons>
</uni-swiper-dot>
<!-- 宫格组件 -->
<!-- <uni-section v-if="certificationStatus == '1'" class="uni-section" title="系统管理" type="line">
<template v-slot:right>
已认证
</template>
</uni-section>
<uni-section v-else class="uni-section" title="系统管理" type="line" @click="certification">
<template v-slot:right>
未认证
</template>
</uni-section> -->
<!-- <uni-section class="uni-section" title="系统管理" type="line"></uni-section> -->
<view class="grid-body">
<uni-grid :column="4" :showBorder="false">
<uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(0)">
<uni-icons type="calendar-filled" size="30" color="#327DD7"></uni-icons>
<text class="text" v-if="sysType == 1">待办案件</text>
<text class="text" v-if="sysType == 2">我的申请</text>
</view>
</uni-grid-item>
<uni-grid-item v-if="sysType == 2 && checkPermi(['caseManagement:list:add'])">
<view class="grid-item-box" @tap="changeGrid(1)">
<uni-icons type="staff-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">立案申请</text>
</view>
</uni-grid-item>
<!-- <uni-grid-item v-if="sysType == 2">
<view class="grid-item-box" @tap="changeGrid(2)">
<uni-icons type="color" size="30" color="#327DD7"></uni-icons>
<text class="text">线上调解</text>
</view>
</uni-grid-item>
<uni-grid-item v-if="sysType == 2">
<view class="grid-item-box" @tap="changeGrid(3)">
<uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
<text class="text">我的申请</text>
</view>
</uni-grid-item> -->
<!-- <uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(4)">
<uni-icons type="heart-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">证据交换</text>
</view>
</uni-grid-item> -->
<uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(5)">
<uni-icons type="bars" size="30" color="#327DD7"></uni-icons>
<text class="text" v-if="sysType == 2">我的申请</text>
</view>
</uni-grid-item>
<uni-grid-item v-if="sysType == 2 && checkPermi(['caseManagement:list:add'])">
<view class="grid-item-box" @tap="changeGrid(1)">
<uni-icons type="staff-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">立案申请</text>
</view>
</uni-grid-item>
<!-- <uni-grid-item v-if="sysType == 2">
<view class="grid-item-box" @tap="changeGrid(2)">
<uni-icons type="color" size="30" color="#327DD7"></uni-icons>
<text class="text">线上调解</text>
</view>
</uni-grid-item>
<uni-grid-item v-if="sysType == 2">
<view class="grid-item-box" @tap="changeGrid(3)">
<uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
<text class="text">我的申请</text>
</view>
</uni-grid-item> -->
<!-- <uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(4)">
<uni-icons type="heart-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">证据交换</text>
</view>
</uni-grid-item> -->
<uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(5)">
<uni-icons type="bars" size="30" color="#327DD7"></uni-icons>
<text class="text" v-if="sysType == 1">视频审理</text>
<text class="text" v-if="sysType == 2">线上调解</text>
</view>
</uni-grid-item>
<!-- <uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(6)">
<uni-icons type="email-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">查询快递</text>
</view>
</uni-grid-item> -->
<!-- <uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(7)">
<uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
<text class="text">在线签字</text>
</view>
</uni-grid-item> -->
<!-- <uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(8)">
<uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">仲裁文书</text>
</view>
</uni-grid-item>
<uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(9)">
<uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">法规政策</text>
</view>
</uni-grid-item> -->
</uni-grid>
</view>
</view>
</template>
<script>
import {
startEid
} from '../../mp_ecard_sdk/main.js'
import {
getEidtoken,
sendEidtoken
} from "../../api/login.js"
export default {
data() {
return {
current: 0,
swiperDotIndex: 0,
data: [{
image: 'https://img.tukuppt.com/bg_grid/00/09/96/qWJxN1umma.jpg!/fh/350'
},
{
image: 'https://img.tukuppt.com/bg_grid/00/18/92/JBheZs7ZVK.jpg!/fh/350'
},
{
image: 'https://img.tukuppt.com/bg_grid/00/81/07/DGEl4suqeV.jpg!/fh/350'
}
],
refreesVal :[
<text class="text" v-if="sysType == 2">线上调解</text>
</view>
</uni-grid-item>
<!-- <uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(6)">
<uni-icons type="email-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">查询快递</text>
</view>
</uni-grid-item> -->
<!-- <uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(7)">
<uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
<text class="text">在线签字</text>
</view>
</uni-grid-item> -->
<!-- <uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(8)">
<uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">仲裁文书</text>
</view>
</uni-grid-item>
<uni-grid-item>
<view class="grid-item-box" @tap="changeGrid(9)">
<uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
<text class="text">法规政策</text>
</view>
</uni-grid-item> -->
</uni-grid>
</view>
</view>
</template>
<script>
import {
startEid
} from '../../mp_ecard_sdk/main.js'
import {
getEidtoken,
sendEidtoken
} from "../../api/login.js"
export default {
data() {
return {
current: 0,
swiperDotIndex: 0,
data: [{
image: 'https://img.tukuppt.com/bg_grid/00/09/96/qWJxN1umma.jpg!/fh/350'
},
{
image:'../../static/tiaojie1.png'
},{
image:'../../static/tiaojie2.png'
},{
image:'../../static/tiaojie4.png'
image: 'https://img.tukuppt.com/bg_grid/00/18/92/JBheZs7ZVK.jpg!/fh/350'
},
{
image: 'https://img.tukuppt.com/bg_grid/00/81/07/DGEl4suqeV.jpg!/fh/350'
}
],
certificationStatus: "",
],
refreesVal: [{
image: 'https://txroom.xayunmei.com/tiaojie1.png'
}, {
image: 'https://txroom.xayunmei.com/tiaojie2.png'
}, {
image: 'https://txroom.xayunmei.com/tiaojie4.png'
}],
certificationStatus: "",
eidToken: "",
sysType:null
}
},
methods: {
clickBannerItem(item) {
console.info(item)
},
changeSwiper(e) {
this.current = e.detail.current
},
changeGrid(e) {
// this.$modal.showToast('模块建设中~')
// if (this.certificationStatus == "0") {
// uni.showToast({
// title: '请先完成实名认证',
// icon: 'none',
// duration: 1000
// })
// return
// }
switch (e) {
case 0:
uni.navigateTo({
url: ('/pages/handlecase/index')
})
break;
case 5:
uni.navigateTo({
url: ('/pages/im/index')
})
break;
case 6:
uni.navigateTo({
url: ('/pages/expressDelivery/index')
})
break;
case 7:
uni.navigateTo({
url: ('/pages/signature/index')
})
sysType: null
}
},
methods: {
clickBannerItem(item) {
console.info(item)
},
changeSwiper(e) {
this.current = e.detail.current
},
changeGrid(e) {
// this.$modal.showToast('模块建设中~')
// if (this.certificationStatus == "0") {
// uni.showToast({
// title: '请先完成实名认证',
// icon: 'none',
// duration: 1000
// })
// return
// }
switch (e) {
case 0:
uni.navigateTo({
url: ('/pages/handlecase/index')
})
break;
case 5:
uni.navigateTo({
url: ('/pages/im/index')
})
break;
case 6:
uni.navigateTo({
url: ('/pages/expressDelivery/index')
})
break;
case 7:
uni.navigateTo({
url: ('/pages/signature/index')
})
break;
case 1:
uni.navigateTo({
url: (`/pages/handlecase/component/newlyAddedCase?title=新增案件`)
})
break;
default:
break;
}
},
// 获取eidtoken
getEidtokenFn() {
getEidtoken({}).then(res => {
console.log(res.data.EidToken, "kkkkkkkkk");
this.eidToken = res.data.EidToken
})
},
// 点击实名认证
certification() {
let that = this
// uni.navigateTo({
// url: ('/mp_ecard_sdk/index/index')
// })
startEid({
data: {
token: this.eidToken,
},
verifyDoneCallback(res) {
const {
token,
verifyDone
} = res;
console.log('收到核身完成的res:', res);
console.log('核身的token是:', token);
console.log('是否完成核身:', verifyDone);
sendEidtoken({
"eidToken": token
}).then(res => {
that.certificationStatus = '1'
})
},
});
}
},
break;
default:
break;
}
},
// 获取eidtoken
getEidtokenFn() {
getEidtoken({}).then(res => {
console.log(res.data.EidToken, "kkkkkkkkk");
this.eidToken = res.data.EidToken
})
},
// 点击实名认证
certification() {
let that = this
// uni.navigateTo({
// url: ('/mp_ecard_sdk/index/index')
// })
startEid({
data: {
token: this.eidToken,
},
verifyDoneCallback(res) {
const {
token,
verifyDone
} = res;
console.log('收到核身完成的res:', res);
console.log('核身的token是:', token);
console.log('是否完成核身:', verifyDone);
sendEidtoken({
"eidToken": token
}).then(res => {
that.certificationStatus = '1'
})
},
});
}
},
onLoad() {
this.sysType = uni.getStorageSync('sysType');
console.log(this.sysType)
// sendEidtoken({
// "eidToken": 'C0339AE1-7B30-4DB9-B1E4-35A10F45249B'
// }).then(res => {
// // that.certificationStatus = '已认证'
// })
this.getEidtokenFn()
// this.certificationStatus = uni.getStorageSync('certificationStatus')
},
}
</script>
<style lang="scss">
/* #ifndef APP-NVUE */
page {
display: flex;
flex-direction: column;
box-sizing: border-box;
background-color: #fff;
min-height: 100%;
height: auto;
}
view {
font-size: 14px;
line-height: inherit;
}
/* #endif */
.text {
text-align: center;
font-size: 26rpx;
margin-top: 10rpx;
}
.grid-item-box {
flex: 1;
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: column;
align-items: center;
justify-content: center;
padding: 15px 0;
}
.uni-margin-wrap {
width: 690rpx;
width: 100%;
;
}
.swiper {
height: 300rpx;
}
.swiper-box {
height: 150px;
}
.swiper-item {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: column;
justify-content: center;
align-items: center;
color: #fff;
height: 300rpx;
line-height: 300rpx;
}
.grid-body {
// background-image: url('https://img.tukuppt.com/bg_grid/00/18/52/aEicoC2qMI.jpg!/fh/350');
background-repeat: no-repeat;
background-size: cover;
height: 900rpx;
// color: #fff;
opacity: 0.9;
}
.uni-section {
background-color: #b90404 !important;
color: #fff;
}
/deep/ .uni-section__content-title {
color: #fff !important;
}
@media screen and (min-width: 500px) {
.uni-swiper-dot-box {
width: 400px;
/* #ifndef APP-NVUE */
margin: 0 auto;
/* #endif */
margin-top: 8px;
}
.image {
width: 100%;
}
}
console.log(this.sysType)
// sendEidtoken({
// "eidToken": 'C0339AE1-7B30-4DB9-B1E4-35A10F45249B'
// }).then(res => {
// // that.certificationStatus = '已认证'
// })
this.getEidtokenFn()
// this.certificationStatus = uni.getStorageSync('certificationStatus')
},
}
</script>
<style lang="scss">
/* #ifndef APP-NVUE */
page {
display: flex;
flex-direction: column;
box-sizing: border-box;
background-color: #fff;
min-height: 100%;
height: auto;
}
view {
font-size: 14px;
line-height: inherit;
}
/* #endif */
.text {
text-align: center;
font-size: 26rpx;
margin-top: 10rpx;
}
.grid-item-box {
flex: 1;
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: column;
align-items: center;
justify-content: center;
padding: 15px 0;
}
.uni-margin-wrap {
width: 690rpx;
width: 100%;
;
}
.swiper {
height: 300rpx;
}
.swiper-box {
height: 150px;
}
.swiper-item {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: column;
justify-content: center;
align-items: center;
color: #fff;
height: 300rpx;
line-height: 300rpx;
}
.grid-body {
// background-image: url('https://img.tukuppt.com/bg_grid/00/18/52/aEicoC2qMI.jpg!/fh/350');
background-repeat: no-repeat;
background-size: cover;
height: 900rpx;
// color: #fff;
opacity: 0.9;
}
.uni-section {
background-color: #b90404 !important;
color: #fff;
}
/deep/ .uni-section__content-title {
color: #fff !important;
}
@media screen and (min-width: 500px) {
.uni-swiper-dot-box {
width: 400px;
/* #ifndef APP-NVUE */
margin: 0 auto;
/* #endif */
margin-top: 8px;
}
.image {
width: 100%;
}
}
</style>