开放平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <template>
  2. <div class="detail-box">
  3. <div class="elMenu-box">
  4. <el-menu
  5. default-active="2"
  6. class="el-menu-vertical-demo"
  7. @open="handleOpen"
  8. @close="handleClose"
  9. >
  10. <el-submenu index="1">
  11. <template slot="title">
  12. <span>导航一</span>
  13. </template>
  14. <el-menu-item-group>
  15. <template slot="title">分组一</template>
  16. <el-menu-item index="1-1">选项1</el-menu-item>
  17. <el-menu-item index="1-2">选项2</el-menu-item>
  18. </el-menu-item-group>
  19. <el-menu-item-group title="分组2">
  20. <el-menu-item index="1-3">选项3</el-menu-item>
  21. </el-menu-item-group>
  22. <el-submenu index="1-4">
  23. <template slot="title">选项4</template>
  24. <el-menu-item index="1-4-1">选项1</el-menu-item>
  25. </el-submenu>
  26. </el-submenu>
  27. <el-menu-item index="2">
  28. <span slot="title">导航二</span>
  29. </el-menu-item>
  30. <el-menu-item index="3" disabled>
  31. <span slot="title">导航三</span>
  32. </el-menu-item>
  33. <el-menu-item index="4">
  34. <span slot="title">导航四</span>
  35. </el-menu-item>
  36. </el-menu>
  37. </div>
  38. <div class="detail-right">
  39. <div class="right-head">
  40. <div class="head-item1">
  41. <div class="auto-item">嗨</div>
  42. <div class="auto-text">
  43. <div class="text-1">Google App</div>
  44. <div class="text-2">这是一个全新的app</div>
  45. <div class="text-3">123948人正在使用中</div>
  46. </div>
  47. <div class="auto-right">
  48. <div class="div1">SDK下载</div>
  49. <div class="div2">接口测试</div>
  50. <div class="div3">申请接入</div>
  51. </div>
  52. </div>
  53. <div class="head-item2">
  54. <div class="item-div1">
  55. <span class="span1">应用场景:</span>
  56. <span class="span2">可用于导购平台的高佣转链工具</span>
  57. </div>
  58. <div class="item-div2">
  59. <span class="span1">应用场景:</span>
  60. <span class="span2"
  61. >高效转链接口将您的pid信息、商品地址及优惠券信息进行转链,转链后的结果可进行推广或完成订单,接口支持授权淘宝账号下所有PID进行转链。由于接口特殊性,请适量缓存已转链的链接,以达最佳效率。(接联盟通知,v1.2.0官方比价订单佣金调整正式生效时间推迟至7月22日)</span
  62. >
  63. </div>
  64. </div>
  65. </div>
  66. <div class="right-baran">
  67. <span style="margin-right: auto"
  68. >调用接口推荐使用SDK(省去验签环节和请求编码环节,帮助您高效快速接入</span
  69. >
  70. <span style="color: #1890ff; cursor: pointer">SDK下载</span>
  71. </div>
  72. <div class="right-content">
  73. <div class="content-head">
  74. <span :class="{ element: elementId === 1 }" @click="elementId = 1"
  75. >接口说明</span
  76. >
  77. <span :class="{ element: elementId === 2 }" @click="elementId = 2"
  78. >更新日志</span
  79. >
  80. </div>
  81. <ApiExplain v-if="elementId === 1" />
  82. <ApiSteps v-if="elementId === 2" />
  83. </div>
  84. </div>
  85. </div>
  86. </template>
  87. <script>
  88. import ApiExplain from "@/components/domain/apiExplain";
  89. import ApiSteps from "@/components/domain/apiSteps";
  90. export default {
  91. components: {
  92. ApiExplain,ApiSteps
  93. },
  94. data() {
  95. return {
  96. elementId: 1,
  97. };
  98. },
  99. };
  100. </script>
  101. <style lang="scss" scoped>
  102. .detail-box {
  103. display: flex;
  104. .elMenu-box {
  105. width: 250px;
  106. height: 837px;
  107. background: #ffffff;
  108. border-radius: 14px;
  109. overflow: hidden;
  110. }
  111. .detail-right {
  112. width: 930px;
  113. margin-left: auto;
  114. .right-head {
  115. width: 930px;
  116. min-height: 272px;
  117. background: #ffffff;
  118. border-radius: 14px;
  119. padding: 20px 20px 16px 20px;
  120. box-sizing: border-box;
  121. display: flex;
  122. flex-flow: column;
  123. .head-item1 {
  124. display: flex;
  125. margin-bottom: 20px;
  126. .auto-item {
  127. width: 90px;
  128. height: 90px;
  129. background: #2f89fc;
  130. border-radius: 14px;
  131. text-align: center;
  132. line-height: 90px;
  133. font-size: 32px;
  134. color: #fff;
  135. margin-right: 20px;
  136. }
  137. .auto-text {
  138. flex-flow: column;
  139. display: flex;
  140. .text-1 {
  141. color: #333333;
  142. font-size: 24px;
  143. }
  144. .text-2 {
  145. color: #999999;
  146. font-size: 14px;
  147. }
  148. .text-3 {
  149. color: #1890ff;
  150. font-size: 14px;
  151. margin-top: auto;
  152. }
  153. }
  154. .auto-right {
  155. margin-left: auto;
  156. display: flex;
  157. align-items: center;
  158. div {
  159. width: 96px;
  160. height: 40px;
  161. border-radius: 6px;
  162. box-sizing: border-box;
  163. text-align: center;
  164. line-height: 40px;
  165. font-size: 16px;
  166. cursor: pointer;
  167. }
  168. .div1,
  169. .div2 {
  170. border: 1px solid #dddddd;
  171. color: #999999;
  172. }
  173. .div2 {
  174. margin: 0 20px;
  175. }
  176. .div3 {
  177. background: #1890ff;
  178. color: #fff;
  179. }
  180. }
  181. }
  182. .head-item2 {
  183. width: 100%;
  184. padding: 20px;
  185. min-height: 126px;
  186. background: #f7f8fa;
  187. border-radius: 14px;
  188. box-sizing: border-box;
  189. font-size: 14px;
  190. .span1 {
  191. color: #333333;
  192. }
  193. .span2 {
  194. color: #999999;
  195. flex: 1;
  196. }
  197. .item-div1 {
  198. margin-bottom: 5px;
  199. display: flex;
  200. }
  201. .item-div2 {
  202. line-height: 21px;
  203. display: flex;
  204. }
  205. }
  206. }
  207. .right-baran {
  208. width: 930px;
  209. height: 56px;
  210. background: #fffcec;
  211. border-radius: 14px;
  212. border: 1px solid #feeebb;
  213. margin: 20px 0;
  214. color: #6a3904;
  215. font-size: 14px;
  216. display: flex;
  217. align-items: center;
  218. padding: 0 20px;
  219. box-sizing: border-box;
  220. }
  221. .right-content {
  222. width: 100%;
  223. box-sizing: border-box;
  224. padding: 20px;
  225. background: #ffffff;
  226. border-radius: 14px;
  227. .content-head {
  228. color: #333333;
  229. font-size: 16px;
  230. padding-bottom: 8px;
  231. margin-bottom: 18px;
  232. span {
  233. padding-bottom: 8px;
  234. margin-right: 60px;
  235. border-bottom: 4px solid transparent;
  236. }
  237. .element {
  238. border-bottom: 4px solid #2f89fc;
  239. transition: border-color 1s;
  240. }
  241. }
  242. }
  243. }
  244. }
  245. </style>