|
|
@@ -16,7 +16,7 @@
|
|
|
<video :src="infoObj.video_url" id="myVideo" controls="true"></video>
|
|
|
</div>
|
|
|
<!-- 企业研发投入补贴 -->
|
|
|
- <div class="card-input-content">
|
|
|
+ <div class="card-input-content" v-if="infoObj.level != '5' ">
|
|
|
<div class="card-input">
|
|
|
<div class="card-title">{{ infoObj.project_name || '-'}}</div>
|
|
|
<div class="table">
|
|
|
@@ -45,7 +45,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 项目概况 -->
|
|
|
- <div class="card-situation" v-if="infoObj.project_desc">
|
|
|
+ <div class="card-situation" v-if="infoObj.project_desc && infoObj.level != '5'" >
|
|
|
<div class="card-title">项目概况</div>
|
|
|
<p>
|
|
|
{{ infoObj.project_desc || '-'}}
|
|
|
@@ -55,7 +55,7 @@
|
|
|
<!-- <div class="card-group" v-for="(item, idx) in model" :key="idx">
|
|
|
<policy-deatil-card :model="item" :isMar="idx == model.length - 1"></policy-deatil-card>
|
|
|
</div> -->
|
|
|
- <div class="card-group">
|
|
|
+ <div class="card-group" v-if="infoObj.level != '5' ">
|
|
|
<div class="content-basic">
|
|
|
<div class="card-title">基本信息</div>
|
|
|
<div class="item-list">
|
|
|
@@ -88,7 +88,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="card-group">
|
|
|
+ <div class="card-group" v-if="infoObj.level != '5' ">
|
|
|
<div class="content-basic">
|
|
|
<div class="card-title">支持力度</div>
|
|
|
<div class="item-list">
|
|
|
@@ -108,7 +108,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="content-rich" :class="{ 'margin-bottom-80': false }">
|
|
|
+ <div class="content-rich" :class="{ 'margin-bottom-80': false }" v-if="infoObj.level != '5' ">
|
|
|
<div class="card-title">{{ textModel1.title }}</div>
|
|
|
<div class="item-list">
|
|
|
<div class="term">
|
|
|
@@ -119,7 +119,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="content-rich" :class="{ 'margin-bottom-80': false }">
|
|
|
+ <div class="content-rich" :class="{ 'margin-bottom-80': false }" v-if="infoObj.level != '5' ">
|
|
|
<div class="card-title">{{ textModel2.title }}</div>
|
|
|
<div class="item-list">
|
|
|
<div class="term">
|
|
|
@@ -130,7 +130,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="content-rich" :class="{ 'margin-bottom-80': false }">
|
|
|
+ <div class="content-rich" :class="{ 'margin-bottom-80': false }" v-if="infoObj.level != '5' ">
|
|
|
<div class="card-title">{{ textModel3.title }}</div>
|
|
|
<div class="item-list">
|
|
|
<div class="term">
|
|
|
@@ -141,7 +141,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="content-rich" :class="{ 'margin-bottom-80': false }" style="margin-bottom: 90rpx;">
|
|
|
+ <div class="content-rich" :class="{ 'margin-bottom-80': false }" style="margin-bottom: 90rpx;" v-if="infoObj.level != '5' ">
|
|
|
<div class="card-title">联系方式</div>
|
|
|
<div class="item-list">
|
|
|
<div class="term">
|
|
|
@@ -151,7 +151,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="width: 100%">
|
|
|
+ <div class="content-rich" style="margin-bottom: 90rpx;" v-if="infoObj.level == '5' ">
|
|
|
+ <div class="term">
|
|
|
+ <div class="term-value-group">
|
|
|
+ <u-parse :content="level5Model"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="width: 100%">
|
|
|
<footer-share
|
|
|
style="width: 100%"
|
|
|
:isCollection="true"
|
|
|
@@ -182,9 +189,11 @@ export default {
|
|
|
2: "市级政策",
|
|
|
3: "新区政策",
|
|
|
4: "新城政策",
|
|
|
+ 5: "政策解读"
|
|
|
},
|
|
|
id: "",
|
|
|
pageId:'',
|
|
|
+ pageLevel:'',
|
|
|
textModel1: {
|
|
|
title: "申报条件",
|
|
|
text: "",
|
|
|
@@ -201,17 +210,20 @@ export default {
|
|
|
// title: "联系方式",
|
|
|
// text: "",
|
|
|
// },
|
|
|
+ level5Model:'',
|
|
|
scrollTop: 0,
|
|
|
infoObj: {},
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.pageId = option.id;
|
|
|
+ this.pageLevel = option.level;
|
|
|
+ console.log(option)
|
|
|
// this.getDetailInfo(id);
|
|
|
this.getUserAuth();
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.getDetailInfo(this.pageId);
|
|
|
+ this.getDetailInfo(this.pageId,this.pageLevel);
|
|
|
},
|
|
|
methods: {
|
|
|
goAuthPage(){
|
|
|
@@ -241,7 +253,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getDetailInfo(ids) {
|
|
|
+ getDetailInfo(ids,levels) {
|
|
|
let md5Sign = md5(
|
|
|
"method=" +
|
|
|
"common" +
|
|
|
@@ -270,15 +282,20 @@ export default {
|
|
|
success: (res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
if (res.data.data.video_url) {
|
|
|
- res.data.data.video_url =
|
|
|
- getApp().globalData.shareUrl + res.data.data.video_url;
|
|
|
+ res.data.data.video_url = getApp().globalData.shareUrl + res.data.data.video_url;
|
|
|
}
|
|
|
- res.data.data.level = this.levelList[res.data.data.level];
|
|
|
this.infoObj = res.data.data;
|
|
|
- this.getRich1(ids);
|
|
|
- this.getRich2(ids);
|
|
|
- this.getRich3(ids);
|
|
|
- this.getRich4(ids);
|
|
|
+ console.log(this.infoObj)
|
|
|
+ if(levels != '5'){
|
|
|
+ res.data.data.level = this.levelList[res.data.data.level];
|
|
|
+ this.getRich1(ids);
|
|
|
+ this.getRich2(ids);
|
|
|
+ this.getRich3(ids);
|
|
|
+ this.getRich4(ids);
|
|
|
+ }else {
|
|
|
+ this.getRich5(ids);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
fail: () => {
|
|
|
@@ -376,56 +393,89 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ getRich5(ids) {
|
|
|
+ uni.request({
|
|
|
+ url: `https://kiq.xazhima.com/content/policy/${Math.floor(
|
|
|
+ ids / 1000
|
|
|
+ )}/${ids}_5.html`,
|
|
|
+ method: "GET",
|
|
|
+ header: {
|
|
|
+ "content-type": "application/x-www-form-urlencoded",
|
|
|
+ },
|
|
|
+ success: (res) => {
|
|
|
+ if (res.statusCode === 200) {
|
|
|
+ this.level5Model = this.replaceImg(res.data);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: () => {
|
|
|
+ console.log("连接失败");
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
+ replaceImg(html) {
|
|
|
+ let result = html.replace(
|
|
|
+ /<img [^>]*src=['"]([^'"]+)[^>]*>/gi,
|
|
|
+ function (match, capture) {
|
|
|
+ return (
|
|
|
+ "<img src=" +
|
|
|
+ getApp().globalData.shareUrl +
|
|
|
+ capture +
|
|
|
+ ' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
|
|
|
+ );
|
|
|
+ }
|
|
|
+ );
|
|
|
+ return result;
|
|
|
+ },
|
|
|
collectionPage() {
|
|
|
- if(!getApp().globalData.user_name){
|
|
|
- this.goAuthPage();
|
|
|
- return
|
|
|
- }
|
|
|
- let md5Sign = md5(
|
|
|
- "method=" +
|
|
|
- "user" +
|
|
|
- "×tamp=" +
|
|
|
- getApp().globalData.globalTimestamp +
|
|
|
- "&secret=" +
|
|
|
- getApp().globalData.secret
|
|
|
- );
|
|
|
- let url =
|
|
|
- getApp().globalData.shareUrl +
|
|
|
- "api/api.php" +
|
|
|
- "?method=user&source=policy&action=collect_add×tamp=" +
|
|
|
- getApp().globalData.globalTimestamp +
|
|
|
- "&sign=" +
|
|
|
- md5Sign;
|
|
|
- uni.request({
|
|
|
- url: url,
|
|
|
- method: "POST",
|
|
|
- header: {
|
|
|
- "content-type": "application/x-www-form-urlencoded",
|
|
|
- },
|
|
|
- data: {
|
|
|
- openId: getApp().globalData.open_id,
|
|
|
- source: "policy",
|
|
|
- source_name: "政策",
|
|
|
- source_id: this.infoObj.id,
|
|
|
- source_title: this.infoObj.title,
|
|
|
- },
|
|
|
- success: (res) => {
|
|
|
- if (res.data.code === 200) {
|
|
|
- res.data.data
|
|
|
- ? (this.infoObj.if_collect = true)
|
|
|
- : (this.infoObj.if_collect = false);
|
|
|
- this.$forceUpdate();
|
|
|
- uni.showToast({
|
|
|
- duration: 3000,
|
|
|
- title: res.data.msg,
|
|
|
- icon: "none",
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- fail: () => {
|
|
|
- console.log("连接失败");
|
|
|
- },
|
|
|
- });
|
|
|
+ if(!getApp().globalData.user_name){
|
|
|
+ this.goAuthPage();
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let md5Sign = md5(
|
|
|
+ "method=" +
|
|
|
+ "user" +
|
|
|
+ "×tamp=" +
|
|
|
+ getApp().globalData.globalTimestamp +
|
|
|
+ "&secret=" +
|
|
|
+ getApp().globalData.secret
|
|
|
+ );
|
|
|
+ let url =
|
|
|
+ getApp().globalData.shareUrl +
|
|
|
+ "api/api.php" +
|
|
|
+ "?method=user&source=policy&action=collect_add×tamp=" +
|
|
|
+ getApp().globalData.globalTimestamp +
|
|
|
+ "&sign=" +
|
|
|
+ md5Sign;
|
|
|
+ uni.request({
|
|
|
+ url: url,
|
|
|
+ method: "POST",
|
|
|
+ header: {
|
|
|
+ "content-type": "application/x-www-form-urlencoded",
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ openId: getApp().globalData.open_id,
|
|
|
+ source: "policy",
|
|
|
+ source_name: "政策",
|
|
|
+ source_id: this.infoObj.id,
|
|
|
+ source_title: this.infoObj.title,
|
|
|
+ },
|
|
|
+ success: (res) => {
|
|
|
+ if (res.data.code === 200) {
|
|
|
+ res.data.data
|
|
|
+ ? (this.infoObj.if_collect = true)
|
|
|
+ : (this.infoObj.if_collect = false);
|
|
|
+ this.$forceUpdate();
|
|
|
+ uni.showToast({
|
|
|
+ duration: 3000,
|
|
|
+ title: res.data.msg,
|
|
|
+ icon: "none",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: () => {
|
|
|
+ console.log("连接失败");
|
|
|
+ },
|
|
|
+ });
|
|
|
},
|
|
|
shareRequest() {
|
|
|
let md5Sign = md5(
|