首页修改
This commit is contained in:
parent
d28034fbf4
commit
bdcb5b32a3
|
|
@ -13,7 +13,7 @@
|
||||||
"type" : "uniCloud"
|
"type" : "uniCloud"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"playground" : "custom",
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ module.exports = {
|
||||||
//实名制移动端
|
//实名制移动端
|
||||||
realBmwUrl: 'http://192.168.0.14:1911/bmw',
|
realBmwUrl: 'http://192.168.0.14:1911/bmw',
|
||||||
//实名制移动端 -- 新
|
//实名制移动端 -- 新
|
||||||
realNewBmwUrl: 'http://192.168.0.14:1911',
|
realNewBmwUrl: 'http://112.29.103.165:1616',
|
||||||
|
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
|
|
|
||||||
|
|
@ -271,6 +271,7 @@ export default {
|
||||||
this.idNumber=option.idNumber||"";
|
this.idNumber=option.idNumber||"";
|
||||||
if(this.idNumber!=""){
|
if(this.idNumber!=""){
|
||||||
this.selectPersonQualificationsContent()
|
this.selectPersonQualificationsContent()
|
||||||
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view style="padding: 0 20rpx">
|
<view style="padding: 0 20rpx">
|
||||||
<scroll-view class="data-container" scroll-y="true">
|
<scroll-view class="data-container" scroll-y="true">
|
||||||
<view class="scroll-item" v-for="(item, index) in companyInfoList" :key="index" @tap="onViewWorkDetails(item)">
|
<view class="scroll-item" v-for="(item, index) in companyInfoList" :key="index" @click="onViewWorkDetails(item)">
|
||||||
<view class="item-1">
|
<view class="item-1">
|
||||||
<view>{{ index + 1 }}</view>
|
<view>{{ index + 1 }}</view>
|
||||||
<view>
|
<view>
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
<view>工种</view>
|
<view>工种</view>
|
||||||
<view style="font-weight: bold;margin-left: 40rpx;">{{item.postName}}</view>
|
<view style="font-weight: bold;margin-left: 40rpx;">{{item.postName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 40%;margin:0 20rpx;display: flex;align-items: center;">
|
<view style="width: 45%;margin:0 20rpx;display: flex;align-items: center;">
|
||||||
<view style="width: 100rpx;">联系方式</view>
|
<view style="width: 100rpx;">联系方式</view>
|
||||||
<view style="color: #3f9dfd; font-weight: bold;margin-left: 40rpx;">{{item.phone}}</view>
|
<view style="color: #3f9dfd; font-weight: bold;margin-left: 40rpx;">{{item.phone}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
<text style="color: red;" v-if="item.isPlanWorker==0">否</text>
|
<text style="color: red;" v-if="item.isPlanWorker==0">否</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 40%;margin:0 20rpx;display: flex;align-items: center;">
|
<view style="width: 45%;margin:0 20rpx;display: flex;align-items: center;">
|
||||||
<view>红绿灯状态</view>
|
<view>红绿灯状态</view>
|
||||||
<view style="font-weight: bold;margin-left: 40rpx;">
|
<view style="font-weight: bold;margin-left: 40rpx;">
|
||||||
<text style="color: green;" v-if="item.lightStatus==2">绿灯</text>
|
<text style="color: green;" v-if="item.lightStatus==2">绿灯</text>
|
||||||
|
|
@ -469,35 +469,36 @@ export default {
|
||||||
},
|
},
|
||||||
/* 点击跳转详情 */
|
/* 点击跳转详情 */
|
||||||
onViewWorkDetails(row) {
|
onViewWorkDetails(row) {
|
||||||
|
console.log(row)
|
||||||
uni.navigateTo({ url: `/pages/realName/index/pages/personDetail?idNumber=${row.idNumber}` })
|
uni.navigateTo({ url: `/pages/realName/index/pages/personDetail?idNumber=${row.idNumber}` })
|
||||||
},
|
},
|
||||||
/* 收藏与取消收藏 */
|
/* 收藏与取消收藏 */
|
||||||
onCollection(e, row) {
|
onCollection(e, row) {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
// const params = {
|
const params = {
|
||||||
// id: row.collectId,
|
id: row.collectId,
|
||||||
// userId: uni.getStorageSync('realNameUser').userId,
|
userId: uni.getStorageSync('realNameUser').userId,
|
||||||
// foreignId: row.proId,
|
foreignId: row.proId,
|
||||||
// type: 1
|
type: 1
|
||||||
// }
|
}
|
||||||
|
uni.request({
|
||||||
// // console.log('params参数', params)
|
url: `${config.loginBaseUrl}${
|
||||||
|
row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect'
|
||||||
// uni.request({
|
}`,
|
||||||
// url: `${config.loginBaseUrl}${
|
method: 'POST',
|
||||||
// row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect'
|
data: JSON.stringify(params),
|
||||||
// }`,
|
header: {
|
||||||
// method: 'POST',
|
'Content-Type': 'application/json',
|
||||||
// data: JSON.stringify(params),
|
token: this.token
|
||||||
// header: {
|
},
|
||||||
// 'Content-Type': 'application/json',
|
success: res => {
|
||||||
// token: this.token
|
if (res.data.code === 200) {
|
||||||
// },
|
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
||||||
// success: res => {
|
this.getWorkPlantData()
|
||||||
// console.log('res收藏结果', res)
|
}
|
||||||
// },
|
},
|
||||||
// fail: err => {}
|
fail: err => {}
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,17 +27,13 @@
|
||||||
<view style="padding: 0 20rpx">
|
<view style="padding: 0 20rpx">
|
||||||
<scroll-view class="data-container" scroll-y="true">
|
<scroll-view class="data-container" scroll-y="true">
|
||||||
<view class="scroll-item" v-for="(item, index) in companyInfoList" :key="index">
|
<view class="scroll-item" v-for="(item, index) in companyInfoList" :key="index">
|
||||||
|
|
||||||
<view class="item-1">
|
<view class="item-1">
|
||||||
<view>{{ index + 1 }}</view>
|
<view>{{ index + 1 }}</view>
|
||||||
<view>{{ item.proName }}</view>
|
<view>{{ item.proName }}</view>
|
||||||
<uni-icons
|
<uni-icons :type="item.isCollect == 1 ? 'star-filled' : 'star'" size="20" @catchtap="onCollection($event, item)" :style="{ color: item.isCollect == 1 ? '#f9971e' : '' }" style="position: absolute;right: 1%;"></uni-icons>
|
||||||
:type="item.isCollect == 1 ? 'star-filled' : 'star'"
|
|
||||||
size="20"
|
|
||||||
@catchtap="onCollection($event, item)"
|
|
||||||
:style="{ color: item.isCollect == 1 ? '#f9971e' : '' }"
|
|
||||||
style="position: absolute; right: 1%"
|
|
||||||
></uni-icons>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="item-2">
|
<view class="item-2">
|
||||||
<view>{{ item.subComName }}</view>
|
<view>{{ item.subComName }}</view>
|
||||||
<view>{{ item.voltageLevel }}</view>
|
<view>{{ item.voltageLevel }}</view>
|
||||||
|
|
@ -372,31 +368,31 @@ export default {
|
||||||
|
|
||||||
/* 收藏与取消收藏 */
|
/* 收藏与取消收藏 */
|
||||||
onCollection(e, row) {
|
onCollection(e, row) {
|
||||||
e.stopPropagation()
|
console.log(row)
|
||||||
// const params = {
|
const params = {
|
||||||
// id: row.collectId,
|
id: row.collectId,
|
||||||
// userId: uni.getStorageSync('realNameUser').userId,
|
userId: uni.getStorageSync('realNameUser').userId,
|
||||||
// foreignId: row.proId,
|
foreignId: row.proId,
|
||||||
// type: 1
|
type: 1
|
||||||
// }
|
}
|
||||||
|
uni.request({
|
||||||
// // console.log('params参数', params)
|
url: `${config.loginBaseUrl}${
|
||||||
|
row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect'
|
||||||
// uni.request({
|
}`,
|
||||||
// url: `${config.loginBaseUrl}${
|
method: 'POST',
|
||||||
// row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect'
|
data: JSON.stringify(params),
|
||||||
// }`,
|
header: {
|
||||||
// method: 'POST',
|
'Content-Type': 'application/json',
|
||||||
// data: JSON.stringify(params),
|
token: this.token
|
||||||
// header: {
|
},
|
||||||
// 'Content-Type': 'application/json',
|
success: res => {
|
||||||
// token: this.token
|
if (res.data.code === 200) {
|
||||||
// },
|
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
||||||
// success: res => {
|
this.getWorkPlantData()
|
||||||
// console.log('res收藏结果', res)
|
}
|
||||||
// },
|
},
|
||||||
// fail: err => {}
|
fail: err => {}
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -302,30 +302,30 @@ export default {
|
||||||
/* 收藏与取消收藏 */
|
/* 收藏与取消收藏 */
|
||||||
onCollection(e, row) {
|
onCollection(e, row) {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
// const params = {
|
const params = {
|
||||||
// id: row.collectId,
|
id: row.collectId,
|
||||||
// userId: uni.getStorageSync('realNameUser').userId,
|
userId: uni.getStorageSync('realNameUser').userId,
|
||||||
// foreignId: row.proId,
|
foreignId: row.proId,
|
||||||
// type: 1
|
type: 1
|
||||||
// }
|
}
|
||||||
|
uni.request({
|
||||||
// // console.log('params参数', params)
|
url: `${config.loginBaseUrl}${
|
||||||
|
row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect'
|
||||||
// uni.request({
|
}`,
|
||||||
// url: `${config.loginBaseUrl}${
|
method: 'POST',
|
||||||
// row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect'
|
data: JSON.stringify(params),
|
||||||
// }`,
|
header: {
|
||||||
// method: 'POST',
|
'Content-Type': 'application/json',
|
||||||
// data: JSON.stringify(params),
|
token: this.token
|
||||||
// header: {
|
},
|
||||||
// 'Content-Type': 'application/json',
|
success: res => {
|
||||||
// token: this.token
|
if (res.data.code === 200) {
|
||||||
// },
|
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
||||||
// success: res => {
|
this.getWorkPlantData()
|
||||||
// console.log('res收藏结果', res)
|
}
|
||||||
// },
|
},
|
||||||
// fail: err => {}
|
fail: err => {}
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -223,30 +223,30 @@ export default {
|
||||||
/* 收藏与取消收藏 */
|
/* 收藏与取消收藏 */
|
||||||
onCollection(e, row) {
|
onCollection(e, row) {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
// const params = {
|
const params = {
|
||||||
// id: row.collectId,
|
id: row.collectId,
|
||||||
// userId: uni.getStorageSync('realNameUser').userId,
|
userId: uni.getStorageSync('realNameUser').userId,
|
||||||
// foreignId: row.proId,
|
foreignId: row.proId,
|
||||||
// type: 1
|
type: 1
|
||||||
// }
|
}
|
||||||
|
uni.request({
|
||||||
// // console.log('params参数', params)
|
url: `${config.loginBaseUrl}${
|
||||||
|
row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect'
|
||||||
// uni.request({
|
}`,
|
||||||
// url: `${config.loginBaseUrl}${
|
method: 'POST',
|
||||||
// row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect'
|
data: JSON.stringify(params),
|
||||||
// }`,
|
header: {
|
||||||
// method: 'POST',
|
'Content-Type': 'application/json',
|
||||||
// data: JSON.stringify(params),
|
token: this.token
|
||||||
// header: {
|
},
|
||||||
// 'Content-Type': 'application/json',
|
success: res => {
|
||||||
// token: this.token
|
if (res.data.code === 200) {
|
||||||
// },
|
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
||||||
// success: res => {
|
this.getWorkPlantData()
|
||||||
// console.log('res收藏结果', res)
|
}
|
||||||
// },
|
},
|
||||||
// fail: err => {}
|
fail: err => {}
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<image class="imgBox" src="../../../static/realName/reset_pass.png" mode=""></image>
|
<image class="imgBox" src="../../../static/realName/reset_pass.png" mode=""></image>
|
||||||
<text class="textBox">修改密码</text>
|
<text class="textBox">修改密码</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="view-item">
|
<!-- <view class="view-item">
|
||||||
<image class="imgBox" src="../../../static/realName/my_upload.png" mode=""></image>
|
<image class="imgBox" src="../../../static/realName/my_upload.png" mode=""></image>
|
||||||
<text class="textBox">上传情况</text>
|
<text class="textBox">上传情况</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
<view class="view-item">
|
<view class="view-item">
|
||||||
<image class="imgBox" src="../../../static/realName/icon_update_data.png" mode=""></image>
|
<image class="imgBox" src="../../../static/realName/icon_update_data.png" mode=""></image>
|
||||||
<text class="textBox">更新数据</text>
|
<text class="textBox">更新数据</text>
|
||||||
</view>
|
</view> -->
|
||||||
<!-- <view class="view-item">
|
<!-- <view class="view-item">
|
||||||
<image class="imgBox" src="../../../static/realName/my_update.png" mode=""></image>
|
<image class="imgBox" src="../../../static/realName/my_update.png" mode=""></image>
|
||||||
<text class="textBox">更新系统</text>
|
<text class="textBox">更新系统</text>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue