Commit 1edfea6a authored by tanjuanjuan's avatar tanjuanjuan

修改

parent c133f5b3
...@@ -224,8 +224,8 @@ ...@@ -224,8 +224,8 @@
range: ['ACCOUNT', 'MOBILE', 'CITIZEN'], range: ['ACCOUNT', 'MOBILE', 'CITIZEN'],
success(info) { success(info) {
//公积金个人信息 //公积金个人信息
infoStore.spidno = info.data.uIdCardNo; //infoStore.spidno = info.data.uIdCardNo;
infoStore.spidno="510112193507180089"
personInfo({ personInfo({
spidno: infoStore.spidno, spidno: infoStore.spidno,
trantime: getCurrentTimestamp() trantime: getCurrentTimestamp()
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
<view class="red" @click="copyPaste">复制并粘贴</view> <view class="red" @click="copyPaste">复制并粘贴</view>
<view class="textareastyle"> <view class="textareastyle">
<wd-textarea v-model="promiseValue" placeholder="请完整输入本人授权同意内容" auto-height <wd-textarea v-model="promiseValue" placeholder="请完整输入本人授权同意内容" auto-height no-border />
no-border/>
<view class="err" v-if="errFlag">请完整输入本人授权同意内容</view> <view class="err" v-if="errFlag">请完整输入本人授权同意内容</view>
</view> </view>
</view> </view>
...@@ -28,47 +27,53 @@ ...@@ -28,47 +27,53 @@
<script setup> <script setup>
import xh from 'xinhua-sdk'; import xh from 'xinhua-sdk';
import { import {
ref,computed ref,
computed
} from 'vue' } from 'vue'
import {agreementInfo,ifSignAgreement} from '../../api/request' import {
import {infoPinia} from '@/store' agreementInfo,
const infoStore=infoPinia() ifSignAgreement
} from '../../api/request'
import {
infoPinia
} from '@/store'
const infoStore = infoPinia()
const pCardNo = computed(() => { const pCardNo = computed(() => {
return infoStore.spidno || 0 return infoStore.spidno || 0
}) })
console.log(infoStore.spidno) console.log(infoStore.spidno)
const standstr="本人已仔细阅读上述所有内容,同意授权并遵守上述承诺。" const standstr = "本人已仔细阅读上述所有内容,同意授权并遵守上述承诺。"
const agreeContent=ref(''); const agreeContent = ref('');
const agreeTitle=ref("") const agreeTitle = ref("")
const promiseValue = ref("") const promiseValue = ref("")
const count = ref(5); const count = ref(5);
const countFlag = ref(true) const countFlag = ref(true)
const errFlag = ref(false) const errFlag = ref(false)
const escapeHtml=(str)=>{ const escapeHtml = (str) => {
var arrEntities={ var arrEntities = {
'lt':'<', 'lt': '<',
'gt':'>', 'gt': '>',
'nbsp':'' 'nbsp': ''
} }
return str.replace(/&(lt|gt|nbsp);/ig,function(all,t){ return str.replace(/&(lt|gt|nbsp);/ig, function(all, t) {
return arrEntities[t] return arrEntities[t]
}) })
} }
ifSignAgreement({ ifSignAgreement({
"zjhm":pCardNo.value "zjhm": pCardNo.value
}).then(res=>{ }).then(res => {
console.log(res) console.log(res)
}) })
agreementInfo({ agreementInfo({
"nodedm":359 "nodedm": 359
}).then(res => { }).then(res => {
const data = JSON.parse(res.data); const data = JSON.parse(res.data);
agreeTitle.value=data.data.list.acc_info[0].bt; agreeTitle.value = data.data.list.acc_info[0].bt;
agreeContent.value=escapeHtml(data.data.list.acc_info[0].nrnew); agreeContent.value = escapeHtml(data.data.list.acc_info[0].nrnew);
}) })
...@@ -84,24 +89,30 @@ ...@@ -84,24 +89,30 @@
promiseValue.value = standstr promiseValue.value = standstr
} }
const goToNext=()=>{ const goToNext = () => {
if(promiseValue.value != standstr){ if (promiseValue.value != standstr) {
errFlag.value=true; errFlag.value = true;
return; return;
} }
tyAgreement({ tyAgreement({
"zjhm":pCardNo.value "zjhm": pCardNo.value
}).then(res=>{ }).then(res => {
console.log(res) console.log(res)
//发起请求获取离职人员基本信息
//跳转下一页
xma.navigateTo({
url: "/pages/account/account",
animationType: 'pop-in',
animationDuration: 200
})
}) })
// xma.navigateTo({
// url: "/pages/account/account",
// animationType: 'pop-in',
// animationDuration: 200
// })
} }
const goBack=()=>{ const goBack = () => {
xma.navigateTo({ xma.navigateTo({
url: "/pages/index/index", url: "/pages/index/index",
animationType: 'pop-in', animationType: 'pop-in',
...@@ -137,22 +148,31 @@ ...@@ -137,22 +148,31 @@
} }
.item .title { .item .title {
position:relative; position: relative;
text-indent: 10px; text-indent: 10px;
} }
.title:before{
content:""; .title:before {
display:block; content: "";
width:5px; display: block;
height:16px; width: 5px;
border-radius:3px; height: 16px;
background:rgb(249, 99, 26); border-radius: 3px;
position:absolute; background: rgb(249, 99, 26);
top:3px; position: absolute;
left:0px; top: 3px;
} left: 0px;
.content{margin-bottom:20px} }
.content p{font-size:14px;line-height:20px;}
.content {
margin-bottom: 20px
}
.content p {
font-size: 14px;
line-height: 20px;
}
.item1 { .item1 {
border-radius: 6px; border-radius: 6px;
background-color: white; background-color: white;
...@@ -179,7 +199,7 @@ ...@@ -179,7 +199,7 @@
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
color: red; color: red;
margin-bottom:8px; margin-bottom: 8px;
} }
.promise { .promise {
...@@ -191,21 +211,32 @@ ...@@ -191,21 +211,32 @@
margin: 0 auto 10px margin: 0 auto 10px
} }
.err{font-size:12px;color:red !important;margin-top:5px;} .err {
.textareastyle{background:#f4fcff;padding:5px 10px;box-sizing:border-box;border-radius: 5px;} font-size: 12px;
.textareastyle{ color: red !important;
:deep(){ margin-top: 5px;
background-color:transparent; }
.textareastyle {
background: #f4fcff;
padding: 5px 10px;
box-sizing: border-box;
border-radius: 5px;
}
.textareastyle {
:deep() {
background-color: transparent;
border-bottom: none; border-bottom: none;
color:#423f3f; color: #423f3f;
text-align:justify; text-align: justify;
} }
} }
.textareastyle :deep(*){ .textareastyle :deep(*) {
background-color:transparent; background-color: transparent;
border-bottom: none; border-bottom: none;
color:#423f3f; color: #423f3f;
text-align:justify; text-align: justify;
} }
</style> </style>
\ No newline at end of file
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