FinancialServicesIdeasDetails2.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <template>
  2. <div style="width: 100%;background:#fff">
  3. <div class="autoBox box cool">
  4. <div class="crumbs">
  5. <el-breadcrumb separator="/">
  6. <el-breadcrumb-item :to="{ path: 'home' }" replace>{{$t('common.Home')}}</el-breadcrumb-item>
  7. <el-breadcrumb-item :to="{ path: 'financialServices' }" replace>{{$t('common.FinancialServices')}}</el-breadcrumb-item>
  8. <el-breadcrumb-item :to="{ path: 'FinancialServicesFundIdeas' }" replace>{{$t('common.FundIdeas')}}</el-breadcrumb-item>
  9. <el-breadcrumb-item >{{iniData.title}}</el-breadcrumb-item>
  10. </el-breadcrumb>
  11. </div>
  12. </div>
  13. <div class="autoBox box1">
  14. <div style="padding: 0 80px">
  15. <div class="ideasTitle">
  16. {{iniData.title}}
  17. <p style="text-align: center;font-size: 18px;color: #666666;font-weight: 700;margin-top: 30px">{{iniData.subtitle}}</p>
  18. </div>
  19. <div style=" width: 100%;display: flex;justify-content: space-between;">
  20. <div v-html="iniData.introduction"></div>
  21. <!-- <div style="margin-top: 30px;width: 33.2%">-->
  22. <!-- <div style="width: 90%">-->
  23. <!-- <div style="width: 100%">-->
  24. <!-- <img src="@/assets/img/financialService/initiativeOne.png" alt="" style="width: 100%;height: 250px">-->
  25. <!-- </div>-->
  26. <!-- <div style="margin-top: 30px">-->
  27. <!-- <div style="width: 16px;height: 16px;background: #E99C45;display: inline-block"></div>-->
  28. <!-- {{$t(keyContent[0].title)}}-->
  29. <!-- </div>-->
  30. <!-- <p style="font-size: 18px;color: #666666;font-weight: normal">{{$t(keyContent[0].label)}}</p>-->
  31. <!-- </div>-->
  32. <!-- </div>-->
  33. <!-- <div style="margin-top: 30px;width: 33.2%">-->
  34. <!-- <div style="width: 90%">-->
  35. <!-- <div style="width: 100%">-->
  36. <!-- <img src="@/assets/img/financialService/initiativeTwo.png" alt="" style="width: 100%;height: 250px">-->
  37. <!-- </div>-->
  38. <!-- <div style="margin-top: 30px">-->
  39. <!-- <div style="width: 16px;height: 16px;background: #274586;display: inline-block"></div>-->
  40. <!-- {{$t(keyContent[1].title)}}-->
  41. <!-- </div>-->
  42. <!-- <p style="font-size: 18px;color: #666666;font-weight: normal">{{$t(keyContent[1].label)}}</p>-->
  43. <!-- </div>-->
  44. <!-- </div>-->
  45. <!-- <div style="margin-top: 30px;width: 33.2%">-->
  46. <!-- <div style="width: 90%">-->
  47. <!-- <div style="width: 100%">-->
  48. <!-- <img src="@/assets/img/financialService/initiativeThree.png" alt="" style="width: 100%;height: 250px">-->
  49. <!-- </div>-->
  50. <!-- <div style="margin-top: 30px">-->
  51. <!-- <div style="width: 16px;height: 16px;background: #4E70B5;display: inline-block"></div>-->
  52. <!-- {{$t(keyContent[2].title)}}-->
  53. <!-- </div>-->
  54. <!-- <p style="font-size: 18px;color: #666666;font-weight: normal">{{$t(keyContent[2].label)}}</p>-->
  55. <!-- </div>-->
  56. <!-- </div>-->
  57. </div>
  58. <!-- <div style="font-size: 18px;font-weight: 700;color: #666666;margin: 30px 0;min-height: 250px;background: #F9FAFC">-->
  59. <!-- <div style="width: 25%;float: left;height: 223px">-->
  60. <!-- <img v-if="$i18n.locale=='zh'" src="@/assets/img/financialService/threeFinance.png" alt="" style="width: 333px;height: 100%">-->
  61. <!-- <img v-if="$i18n.locale=='en'" src="@/assets/img/financialService/threeFinance2.png" alt="" style="width: 333px;height: 100%">-->
  62. <!-- </div>-->
  63. <!-- <div style="width: 65%;float: right;margin: 0px 20px 20px 0;">-->
  64. <!-- <p style="text-align: center;font-weight: 700">{{$t('common.SupportEachOther')}}</p>-->
  65. <!-- <p style="font-weight: normal">{{$t('common.Projectsincubated')}}</p>-->
  66. <!-- </div>-->
  67. <!-- <div style="clear: both"></div>-->
  68. <!-- </div>-->
  69. </div>
  70. </div>
  71. <!-- 登录提示-->
  72. <!-- <el-dialog-->
  73. <!-- :title="$i18n.locale=='zh'?'提示':'Reminder'"-->
  74. <!-- :visible.sync="toViewLogin"-->
  75. <!-- :width="$i18n.locale=='zh'?'500px':'750px'"-->
  76. <!-- :height="$i18n.locale=='zh'?'300px':'386px'"-->
  77. <!-- :before-close="toViewLoginChange"-->
  78. <!-- >-->
  79. <!-- <div style="width: 100%;height: 100%;">-->
  80. <!-- <img src="@/assets/img/loginTips.png" alt="" style="width: 180px;height: 180px;margin-left: 20px;">-->
  81. <!-- <div style="float: right;margin-right: 20px;" :style="$i18n.locale=='zh'?'width: 49%;margin-top: 10px;':'width: 453px;margin-top: -25px;'">-->
  82. <!-- <div style="font-size: 20px;font-weight: normal;color: #333333;-->
  83. <!-- font-family: HiraginoSansGB-W3, HiraginoSansGB;-->
  84. <!-- line-height: 40px;">-->
  85. <!-- {{$t('common.ReminderFirst')}}-->
  86. <!-- </div>-->
  87. <!-- <div style="font-size: 16px;font-family: HiraginoSansGB-W3, HiraginoSansGB;-->
  88. <!-- font-weight: normal;color: #666666;line-height: 30px;">-->
  89. <!-- {{$t('common.ReminderSecond')}} <span style="color: #0091FF;font-size: 18px;">{{num}}</span> {{$t('common.ReminderThird')}}-->
  90. <!-- </div>-->
  91. <!-- <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;-->
  92. <!-- font-weight: normal;color: #666666;line-height: 30px;">-->
  93. <!-- {{$t('common.ReminderForth')}}-->
  94. <!-- </div>-->
  95. <!-- <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;-->
  96. <!-- height:33px;line-height:60px;font-weight: normal;color: #0091FF;">-->
  97. <!-- <span style="margin-left: 40px;" class="cursor" @click="toView('login')">-->
  98. <!-- {{$t('common.ReminderFifth')}}-->
  99. <!-- </span>-->
  100. <!-- <span style="margin-left: 10px;" class="cursor" @click="toView('Register')">-->
  101. <!-- {{$t('common.ReminderSixth')}}-->
  102. <!-- </span>-->
  103. <!-- </div>-->
  104. <!-- </div>-->
  105. <!-- </div>-->
  106. <!-- </el-dialog>-->
  107. </div>
  108. </template>
  109. <script>
  110. import {getBaseFundIdeasInfos} from '@/api/financialService/baseFundIdeasInfo'
  111. import {getFollowModeNumlByModelIdAndUserId} from "../../api/operation/basePortalModelFollowInfo";
  112. import {getToken } from "@/utils/auth";
  113. import Base from "@/views/base/Base";
  114. import { saveFollowModel } from "@/api/operation/basePortalModelFollowInfo";
  115. export default{
  116. name:'FinancialServicesIdeasDetails2',
  117. extends: Base,
  118. data(){
  119. return{
  120. num:5,
  121. iniData:{},
  122. ifcommon:false,
  123. toViewLogin:false,
  124. keyContent:[
  125. {
  126. title:'common.GreenDevelopmentFund',
  127. label:'common.Development1'
  128. },
  129. {
  130. title:'common.GreenInnovationFund',
  131. label:'common.Innovation1'
  132. },
  133. {
  134. title:'common.GreenConstructionFund',
  135. label:'common.Construction1'
  136. },
  137. ],
  138. params:{
  139. pageSize:"5",
  140. pageNo:"1",
  141. language:'',
  142. baseEntityId:'',
  143. statusDict:'2'
  144. }
  145. }
  146. },
  147. mounted() {
  148. this.getDetails();
  149. },
  150. watch: {
  151. '$i18n.locale'(){
  152. this.getDetails();
  153. },
  154. },
  155. methods:{
  156. // 未登录跳转
  157. loginTipsChange(){
  158. const that=this;
  159. this.num =5;
  160. // clearInterval(timer_interval);
  161. this.timer = setInterval(function() {
  162. if (that.num > 0) {
  163. that.num--;
  164. } else {
  165. if(that.toViewLogin==true){
  166. clearInterval(that.timer);
  167. that.toView('login');
  168. }else {
  169. clearInterval(that.timer);
  170. }
  171. }
  172. }, 1000)
  173. },
  174. // 判断未登录跳转是否关闭
  175. toViewLoginChange(done){
  176. this.toViewLogin=false;
  177. this.num=5;
  178. clearInterval(this.timer);
  179. },
  180. getDetails(){
  181. this.params.language = this.$i18n.locale.toUpperCase();
  182. this.params.baseEntityId = this.$route.query.key;
  183. getBaseFundIdeasInfos(this.params).then((res)=>{
  184. this.iniData = res.data.baseFundIdeasInfos[0];
  185. this.iniData.introduction = this.iniData.introduction.replace(/<img[^>]*>/gi, function(match, capture) {
  186. var match = match.replace(/(title="(.*?)")/ig,'');
  187. return match;
  188. })
  189. this.iniData.keyword = this.iniData.keyword.split(',');
  190. this.getMyCollecModel()
  191. })
  192. },
  193. // 项目收藏改变
  194. // shareChange() {
  195. // if (this.ifcommon) {
  196. // this.Collection("unfollow");
  197. // }else{
  198. // this.Collection("follow");
  199. // }
  200. // },
  201. // Collection: function (collectType) {
  202. // let user = window.localStorage.getItem("user");
  203. // if (!this.$Cookies.get('token')) {
  204. // this.toViewLogin = true;
  205. // } else {
  206. // var users = JSON.parse(user);
  207. // var token = "" + getToken();
  208. // var userId = users.userId;
  209. // var baseEntityId =this.iniData.baseEntityId;
  210. //
  211. // // 接口逻辑
  212. // this.submitHandler((token) => {
  213. // saveFollowModel(baseEntityId, "finance", userId, collectType, token)
  214. // .then((result) => {
  215. // console.log(result)
  216. // this.$message({
  217. // message: result.data,
  218. // type: "success",
  219. // });
  220. // this.ifcommon = !this.ifcommon;
  221. // this.resetToken();
  222. // })
  223. // .catch((error) => {
  224. // this.$message({
  225. // message: result.data,
  226. // type: "failed",
  227. // });
  228. // });
  229. // });
  230. // }
  231. // },
  232. // getMyCollecModel(){
  233. // const that= this;
  234. // let user = window.localStorage.getItem("user");
  235. // if (this.$Cookies.get('token')) {
  236. //
  237. // var users = JSON.parse(user);
  238. // var token = "" + getToken();
  239. // var baseEntityId = this.iniData.baseEntityId;
  240. // this.userId = users.userId;
  241. // getFollowModeNumlByModelIdAndUserId(
  242. // baseEntityId,
  243. // "finance",
  244. // this.userId
  245. // ).then((res) => {
  246. // this.ifcommon = res.data;
  247. // console.log(
  248. // res.data,
  249. // "---------------------------------------------------------------------------"
  250. // );
  251. // });
  252. //
  253. // }
  254. // },
  255. }
  256. }
  257. </script>
  258. <style scoped>
  259. .box {
  260. margin-top: 10px;
  261. background: #fff;
  262. /* height: 500px; */
  263. padding: 20px 0;
  264. }
  265. .crumbs {
  266. margin-left: 20px;
  267. }
  268. .box1 {
  269. padding: 0;
  270. /* transform: translateX(-20px); */
  271. background: #fff;
  272. margin-top: 15px;
  273. }
  274. body {
  275. margin: 0;
  276. }
  277. .ideasTitle{
  278. font-size: 28px;
  279. color: #666666;
  280. font-weight: 700;
  281. margin: 30px auto;
  282. text-align: center;
  283. }
  284. .contentList{
  285. width: 100%;
  286. display: flex;
  287. justify-content: space-between;
  288. }
  289. </style>