接口对接修改
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
>{{ engineering.name }}
|
||||
<!-- <view class="header-title-extra">用能</view> -->
|
||||
</view>
|
||||
<view class="header-des-mini mb10">{{ engineering.provinceName + engineering.cityName }} {{ engineering.createTime }}</view>
|
||||
<view class="header-des-mini mb10"
|
||||
>{{ engineering.provinceName + engineering.cityName }} {{ engineering.createTime }}</view
|
||||
>
|
||||
<view class="header-des">{{ engineering.description }} </view>
|
||||
</view>
|
||||
<view class="nav">
|
||||
@@ -41,10 +43,19 @@
|
||||
</view>
|
||||
</uni-card>
|
||||
<Cn-empty v-if="store.empty"></Cn-empty>
|
||||
<uni-load-more v-if="store.data && store.data.length > 0" :status="store.status"></uni-load-more>
|
||||
<uni-load-more
|
||||
v-if="store.data && store.data.length > 0"
|
||||
:status="store.status"
|
||||
></uni-load-more>
|
||||
</view>
|
||||
<view style="padding: 0 20rpx" v-show="navMenuActive == 2">
|
||||
<image class="gplot gplot-box" mode="aspectFill" src="/static/test2.pic.png" v-for="(item, key) in 3" :key="key" />
|
||||
<image
|
||||
class="gplot gplot-box"
|
||||
mode="aspectFill"
|
||||
src="/static/test2.pic.png"
|
||||
v-for="(item, key) in 3"
|
||||
:key="key"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<uni-fab
|
||||
@@ -75,11 +86,16 @@ export default {
|
||||
{
|
||||
text: '项目',
|
||||
},
|
||||
// {
|
||||
// text: '拓扑图',
|
||||
// },
|
||||
],
|
||||
content: [
|
||||
{
|
||||
text: '拓扑图',
|
||||
iconPath: '/static/share.png',
|
||||
text: '编辑',
|
||||
},
|
||||
],
|
||||
content: [],
|
||||
navHeight: 0,
|
||||
navMenuActive: 0,
|
||||
}
|
||||
@@ -93,6 +109,10 @@ export default {
|
||||
})
|
||||
} else if (e.item.text == '分享') {
|
||||
this.$refs.share.open()
|
||||
} else if (e.item.text == '编辑') {
|
||||
uni.navigateTo({
|
||||
url: '/pages/engineering/new?engineering=' + encodeURIComponent(JSON.stringify(this.engineering)),
|
||||
})
|
||||
}
|
||||
},
|
||||
navMenuClick(index) {
|
||||
@@ -124,7 +144,7 @@ export default {
|
||||
},
|
||||
jumpProject(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/project/detail?project=' + JSON.stringify(item),
|
||||
url: '/pages/project/detail?project=' + encodeURIComponent(JSON.stringify(item)),
|
||||
})
|
||||
},
|
||||
init() {
|
||||
@@ -134,7 +154,7 @@ export default {
|
||||
},
|
||||
},
|
||||
onLoad(option) {
|
||||
this.engineering = JSON.parse(option.engineering)
|
||||
this.engineering = JSON.parse(decodeURIComponent(option.engineering))
|
||||
let userInfo = uni.getStorageSync('userInfo')
|
||||
if (userInfo.authorities == '3') {
|
||||
this.content.push({
|
||||
|
||||
Reference in New Issue
Block a user