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