plugin_details.blade.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. @extends('layouts.base')
  2. @section('title', '安装应用')
  3. @section('content')
  4. <link rel="stylesheet" href="{{resource_get('plugins/plugins-market/assets/css/index.css')}}">
  5. <style>
  6. .base_set{
  7. background: #fff;
  8. margin: 10px 10px 0 20px;
  9. }
  10. .vue-main-title{
  11. margin-left: 20px;
  12. padding-top: 10px;
  13. }
  14. .detailRoute{
  15. padding:0 10px;
  16. color: #333333;
  17. display: block;
  18. }
  19. .cardBox{
  20. display: flex;
  21. flex-wrap: wrap;
  22. }
  23. .box{
  24. width: 100%;
  25. background: #fff;
  26. margin:0 10px 10px 15px;
  27. display: flex;
  28. padding: 20px;
  29. border-radius: 10px;
  30. font-weight: normal;
  31. }
  32. .boxDetail{
  33. width: 100%;
  34. background: #fff;
  35. margin: 20px 10px;
  36. display: flex;
  37. padding: 20px;
  38. border-radius: 10px;
  39. }
  40. .box img{
  41. margin-right: 22px;
  42. }
  43. .box .cardDetail{
  44. display: flex;
  45. flex-direction: column;
  46. justify-content: space-between;
  47. width: 100%;
  48. }
  49. .box .cardDetail .verification{
  50. color: #202020;
  51. font-size: 22px;
  52. }
  53. .buttonLeft{
  54. display: flex;
  55. justify-content: space-between;
  56. }
  57. .box .grant{
  58. background: #ec544a;
  59. color: #fff;
  60. border-radius: 4px;
  61. border-color: #ec544a;
  62. }
  63. .box .grant:hover{
  64. background: #ec544a;
  65. color: #fff;
  66. border-color: #ec544a;
  67. }
  68. .box .grant:active{
  69. background: #fcd7d3;
  70. color: #ec544a;
  71. border-color: #fcd7d3;
  72. }
  73. .activeGrant{
  74. color: #ec544a;
  75. background: #fcd7d3;
  76. border-radius: 4px;
  77. border-color: #fcd7d3;
  78. }
  79. .box .activeGrant:hover{
  80. background: #fcd7d3;
  81. color: #ec544a;
  82. border-color: #fcd7d3;
  83. }
  84. .box .activeGrant:active{
  85. background: #fcd7d3;
  86. color: #ec544a;
  87. border-color: #fcd7d3;
  88. }
  89. .box .install{
  90. background: #29ba9c;
  91. color: #fff;
  92. border-radius: 4px;
  93. }
  94. .activeInstall{
  95. background-color: #c6eee2;
  96. color: #29ba9c;
  97. border-radius: 4px;
  98. border-color: #c6eee2;
  99. }
  100. .box .btnGoback {
  101. /* padding: 8px 20px; */
  102. height: 42px;
  103. width: 140px;
  104. display: flex;
  105. justify-content: center;
  106. align-items: center;
  107. background: #29ba9c;
  108. color: #ffffff;
  109. border-radius: 4px;
  110. cursor: pointer;
  111. }
  112. .categoryDes{
  113. color:#595959;
  114. text-overflow: ellipsis;
  115. display: -webkit-box;
  116. -webkit-line-clamp: 3;
  117. -webkit-box-orient: vertical;
  118. font-size: 16px;
  119. }
  120. .detailCard{
  121. background: #fff;
  122. margin: 20px 10px 20px 20px;
  123. }
  124. .detailCardBox{
  125. display: flex;
  126. justify-content: center;
  127. margin-top: 138px;
  128. padding-bottom: 138px;
  129. color: #595959;
  130. font-size: 16px;
  131. }
  132. .el-button--whiteBackground {
  133. background: #ec544a !important;
  134. color: #fff !important;
  135. border-color: #ec544a !important;
  136. }
  137. .categoryDes-card {
  138. display: flex;
  139. justify-content: space-between;
  140. color: #595959;
  141. }
  142. .buttonLeft .el-button {
  143. height: 42px;
  144. width: 96px;
  145. }
  146. </style>
  147. <div class="all">
  148. <div id="app" v-cloak>
  149. <el-form ref="form" label-width="15%">
  150. <div class="base_set">
  151. <div style="margin:10px;background:#fff;padding-top: 10px;">
  152. <div class="vue-main-title">
  153. <!-- <div class="vue-main-title-left"></div> -->
  154. <div class="vue-main-title-content" style="font-size: 16px;font-weight: normal;"><span @click="btnGoback" style="cursor: pointer;">应用市场</span> > 应用详情介绍</div>
  155. </div>
  156. </div>
  157. <div class="cardBox">
  158. <div class="box" v-for="(item,index) in boxData" :key="index">
  159. <img :src="item.imageUrl" alt="" style="width: 170px;height: 170px;">
  160. <div class="cardDetail">
  161. <div style="display: flex;justify-content: space-between;">
  162. <div>
  163. <span class="verification">[[item.title]]</span>
  164. <span class="tip" style="display: flex;" v-if="item.empower == 'un_auth' && item.version_status == 'installed'">涉嫌盗版使用,请卸载或联系客服</span>
  165. </div>
  166. </div>
  167. <div class="categoryDes-card" >
  168. <span class="categoryDes">分类: [[item.title]]</span>
  169. <span style="font-size: 14px;">版本号:[[item.version]]</span>
  170. </div>
  171. <span class="categoryDes">描述: [[item.description]]</span>
  172. <div class="buttonLeft">
  173. <div>
  174. <!-- empower == 验证授权 -->
  175. <el-button type="whiteBackground" class="grant" v-if="item.empower == 'auth'">已授权</el-button>
  176. <el-button type="whiteBackground" class="activeGrant" v-if="item.empower == 'un_auth'">未授权</el-button>
  177. <!-- version_status == 安装、升级、未安装 -->
  178. <el-button class="install" v-if="item.version_status == 'un_install'">安装</el-button>
  179. <el-button class="install" v-if="item.version_status == 'new'">可升级</el-button>
  180. <!-- <el-button class="install" v-if="item.version_status == 'un_auth'">安装</el-button> -->
  181. <el-button class="activeInstall" v-if="item.version_status == 'installed'">已安装</el-button>
  182. </div>
  183. <span class="btnGoback" @click="btnGoback">返回应用市场</span>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="detailCard">
  190. <div class="vue-main-title">
  191. <div class="vue-main-title-left" style="height: 24px;margin-top: 1px;"></div>
  192. <div class="vue-main-title-content" style="font-size: 20px;font-weight: normal;">详情介绍</div>
  193. </div>
  194. <div class="detailCardBox" v-if="boxData.length > 0">
  195. <div v-html="boxData[0].content"></div>
  196. <div v-if="!boxData[0].content">暂无详情,请联系客服咨询</div>
  197. </div>
  198. </div>
  199. </el-form>
  200. </div>
  201. </div>
  202. <script>
  203. let detailData = {!! $data?:'{}' !!};
  204. var app = new Vue({
  205. el: "#app",
  206. delimiters: ['[[', ']]'],
  207. name: 'market',
  208. data() {
  209. return {
  210. boxData:[],
  211. detailData:detailData
  212. }
  213. },
  214. mounted() {
  215. console.log(detailData,'data');
  216. this.boxData.push(this.detailData)
  217. },
  218. methods: {
  219. btnGoback(){
  220. let link =`{!! yzWebFullUrl('plugins.jump') !!}`
  221. window.location.href = link;
  222. },
  223. },
  224. })
  225. </script>
  226. @endsection