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