园区详情
This commit is contained in:
parent
1746305c7e
commit
f1f041d1a1
106
app.json
106
app.json
@ -1,54 +1,56 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/domain/domain",
|
||||
"pages/policy/policy",
|
||||
"pages/invest/invest",
|
||||
"pages/company/company",
|
||||
"pages/garden/garden",
|
||||
"pages/superiority-detail/superiority-detail",
|
||||
"pages/invest-detail/invest-detail",
|
||||
"pages/unique-detail/unique-detail",
|
||||
"pages/plates/plates",
|
||||
"pages/policy-detail/policy-detail"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "达拉特招商",
|
||||
"navigationBarBackgroundColor": "#ffffff"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#797979",
|
||||
"selectedColor": "#28804F",
|
||||
"borderStyle": "white",
|
||||
"list": [{
|
||||
"pagePath": "pages/index/index",
|
||||
"selectedIconPath": "/imgs/ic_bottom_index_sel.png",
|
||||
"iconPath": "/imgs/ic_bottom_index_normal.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/domain/domain",
|
||||
"selectedIconPath": "/imgs/ic_bottom_domain_sel.png",
|
||||
"iconPath": "/imgs/ic_bottom_domain_normal.png",
|
||||
"text": "产业"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/policy/policy",
|
||||
"selectedIconPath": "/imgs/ic_bottom_policy_sel.png",
|
||||
"iconPath": "/imgs/ic_bottom_policy_normal.png",
|
||||
"text": "政策"
|
||||
}
|
||||
]
|
||||
},
|
||||
"style": "v2",
|
||||
"componentFramework": "glass-easel",
|
||||
"sitemapLocation": "sitemap.json",
|
||||
"lazyCodeLoading": "requiredComponents",
|
||||
"useExtendedLib": {
|
||||
"weui": true
|
||||
},
|
||||
"usingComponents": {
|
||||
"page-loading": "/components/page-loading/page-loading"
|
||||
}
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/domain/domain",
|
||||
"pages/policy/policy",
|
||||
"pages/invest/invest",
|
||||
"pages/company/company",
|
||||
"pages/garden/garden",
|
||||
"pages/superiority-detail/superiority-detail",
|
||||
"pages/invest-detail/invest-detail",
|
||||
"pages/unique-detail/unique-detail",
|
||||
"pages/plates/plates",
|
||||
"pages/policy-detail/policy-detail",
|
||||
"pages/industry-area/industry-area"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "达拉特招商",
|
||||
"navigationBarBackgroundColor": "#ffffff"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#797979",
|
||||
"selectedColor": "#28804F",
|
||||
"borderStyle": "white",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"selectedIconPath": "/imgs/ic_bottom_index_sel.png",
|
||||
"iconPath": "/imgs/ic_bottom_index_normal.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/domain/domain",
|
||||
"selectedIconPath": "/imgs/ic_bottom_domain_sel.png",
|
||||
"iconPath": "/imgs/ic_bottom_domain_normal.png",
|
||||
"text": "产业"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/policy/policy",
|
||||
"selectedIconPath": "/imgs/ic_bottom_policy_sel.png",
|
||||
"iconPath": "/imgs/ic_bottom_policy_normal.png",
|
||||
"text": "政策"
|
||||
}
|
||||
]
|
||||
},
|
||||
"style": "v2",
|
||||
"componentFramework": "glass-easel",
|
||||
"sitemapLocation": "sitemap.json",
|
||||
"lazyCodeLoading": "requiredComponents",
|
||||
"useExtendedLib": {
|
||||
"weui": true
|
||||
},
|
||||
"usingComponents": {
|
||||
"page-loading": "/components/page-loading/page-loading"
|
||||
}
|
||||
}
|
4
app.wxss
4
app.wxss
@ -243,6 +243,10 @@ page::after {
|
||||
}
|
||||
|
||||
.news-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
padding: 42rpx;
|
||||
font-size: 28rpx;
|
||||
color: #242424;
|
||||
|
@ -213,9 +213,9 @@ Page({
|
||||
}, 2000);
|
||||
},
|
||||
//园区详情
|
||||
showGarden() {
|
||||
showGarden(e) {
|
||||
wx.navigateTo({
|
||||
url: '/pages/garden/garden',
|
||||
url: '/pages/industry-area/industry-area?id=' + e.currentTarget.dataset.id,
|
||||
})
|
||||
}
|
||||
})
|
@ -80,7 +80,7 @@
|
||||
</view>
|
||||
<view class="area-box mt-20">
|
||||
<block wx:for="{{industryAreaList}}" wx:key="index">
|
||||
<view class="area-item" bind:tap="showGarden">
|
||||
<view class="area-item" bind:tap="showGarden" data-id="{{item.newsContentId}}">
|
||||
<image src="{{imgBasePath}}{{item.newsContentCoverList[0].contentCoverId}}" mode="aspectFill"></image>
|
||||
<text>{{item.newsContentTitle}}</text>
|
||||
</view>
|
||||
|
54
pages/industry-area/industry-area.js
Normal file
54
pages/industry-area/industry-area.js
Normal file
@ -0,0 +1,54 @@
|
||||
// pages/unique-detail/unique-detail.js
|
||||
import DomainService from '../../utils/api/domainApi';
|
||||
import utils from '../../utils/util';
|
||||
const app = getApp();
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
bean: {},
|
||||
showPageLoading: true,
|
||||
imgBasePath: app.globalData.imgPath
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
var id = options.id
|
||||
if (id) {
|
||||
this.getDetail(id)
|
||||
} else {
|
||||
wx.navigateBack()
|
||||
}
|
||||
},
|
||||
getDetail(id) {
|
||||
var _self = this
|
||||
DomainService.doDetail(id)
|
||||
.then(res => {
|
||||
|
||||
if (res) {
|
||||
wx.setNavigationBarTitle({
|
||||
title: res.newsContentTitle,
|
||||
})
|
||||
res.newsContentContent = utils.formatHtml(res.newsContentContent)
|
||||
_self.setData({
|
||||
bean: res
|
||||
})
|
||||
}
|
||||
_self.setData({
|
||||
showPageLoading: false
|
||||
})
|
||||
}, err => {
|
||||
_self.setData({
|
||||
showPageLoading: false
|
||||
})
|
||||
wx.showToast({
|
||||
icon: 'none',
|
||||
title: '网络错误(unique)',
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
4
pages/industry-area/industry-area.json
Normal file
4
pages/industry-area/industry-area.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "详情"
|
||||
}
|
13
pages/industry-area/industry-area.wxml
Normal file
13
pages/industry-area/industry-area.wxml
Normal file
@ -0,0 +1,13 @@
|
||||
<view class="body">
|
||||
<view class="news-title">{{bean.title}}</view>
|
||||
<view class="news-attr-box">
|
||||
<view class="news-attr">发布:{{bean.newsContentAuthor}}</view>
|
||||
<view class="news-attr">发布时间:{{bean.newsContentPublishTime}}</view>
|
||||
</view>
|
||||
|
||||
<view class="news-content">
|
||||
<image src="{{imgBasePath}}{{bean.newsContentCoverList[0].contentCoverId}}" style="align-self: center;width: 100%;"></image>
|
||||
<rich-text nodes="{{bean.newsContentContent}}"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
<page-loading wx:if="{{showPageLoading}}"></page-loading>
|
28
pages/industry-area/industry-area.wxss
Normal file
28
pages/industry-area/industry-area.wxss
Normal file
@ -0,0 +1,28 @@
|
||||
/* pages/superiority-detail/superiority-detail.wxss */
|
||||
page {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.news-title {
|
||||
padding: 20rpx 30rpx;
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
color: #242424;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.news-attr-box {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.news-attr {
|
||||
font-size: 24rpx;
|
||||
color: #949494;
|
||||
}
|
||||
|
||||
.news-attr:nth-of-type(n+2) {
|
||||
margin-left: 20rpx;
|
||||
}
|
@ -9,7 +9,8 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
bean: {},
|
||||
showPageLoading: true
|
||||
showPageLoading: true,
|
||||
imgBasePath: app.globalData.imgPath
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -5,6 +5,7 @@
|
||||
<view class="news-attr">发布时间:{{bean.newsContentPublishTime}}</view>
|
||||
</view>
|
||||
<view class="news-content">
|
||||
<image wx:if="{{bean.newsContentCoverList.length>0}}" src="{{imgBasePath}}{{bean.newsContentCoverList[0].contentCoverId}}" style="align-self: center;width: 100%;"></image>
|
||||
<rich-text nodes="{{bean.newsContentContent}}"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
|
Loading…
Reference in New Issue
Block a user