Commit c35e0ddc authored by tanjuanjuan's avatar tanjuanjuan

修改

parent 56bace18
......@@ -67,7 +67,7 @@
</view> -->
</view>
</view>
<!-- <view class="item">
<!-- <view class="item">
<view class="item_title">提取</view>
<view class="item_box">
<view class="iboxcommon">
......@@ -92,7 +92,7 @@
</view>
</view>
</view> -->
<!-- <view class="item">
<!-- <view class="item">
<view class="item_title">贷款</view>
<view class="item_box">
<view class="ibox">
......@@ -113,7 +113,7 @@
</view>
</view> -->
<view class="item">
<view class="item_title">更多服务{{personPinia.teststr}}</view>
<view class="item_title">更多服务{{personStore.teststr}}</view>
<view class="item_box" @click="goToMap">公积金地图</view>
</view>
</view>
......@@ -130,7 +130,8 @@
} from 'vue'
import {
mapPinia, personPinia
mapPinia,
personPinia
} from '@/store';
const personStore = personPinia()
......@@ -160,12 +161,12 @@
flag4.value = !flag4.value
}
const pInfo = computed(() => {
return personStore.person||null
return personStore.person || null
})
// const loadData = computed(() => {
// return store.state.loadData || ""
// })
const goToMap=()=>{
const goToMap = () => {
xma.navigateTo({
url: "/pages/map/map",
animationType: 'pop-in',
......@@ -188,31 +189,35 @@
spidno: info.data.uIdCardNo,
trantime: getCurrentTimestamp()
},
header:{
header: {
'content-type': 'application/json'
},
method: "GET",
success: function(res) {
const info = JSON.parse(res.data.data)
//store.commit('setPersonInfo', info.body.detail);
personStore.person=info.body.detail;
personStore.person = info.body.detail;
console.log("pinia person")
console.log(personStore.person.snname)
//公积金地图
axios.get('https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjzx', {
params: {
xma.request({
url: 'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjzx',
data: {
pageSize: 50,
pageIndex: 1
}
}).then(response => {
let data = JSON.parse(response.data.data)
},
header: {
'content-type': 'application/json'
},
method: "GET",
success: function(res) {
let data = JSON.parse(res.data.data)
//store.commit('setApartments', data.data);
mapStore.mapList=data.data;
mapStore.mapList = data.data;
console.log("pinia map")
console.log(typeof mapStore.mapList)
}).catch(error => {
// 处理错误
console.error('Error fetching data:', error);
},
});
},
});
......@@ -242,7 +247,7 @@
if (pInfo.value) {
let year = String(pInfo.value.zghjny).slice(0, 4)
let month = String(pInfo.value.zghjny).slice(4, 6)
return year + '年'+ month + '月'
return year + '年' + month + '月'
} else {
return ""
}
......
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