solution.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <template>
  2. <view
  3. class="solution"
  4. :style="{
  5. background: 'url(' + bgImg + ')',
  6. 'background-repeat': 'no-repeat',
  7. 'background-size': '100% 100%'
  8. }"
  9. >
  10. <slot name="supplier-title"></slot>
  11. <view class="solution_container">
  12. <view class="solution_item" v-for="item in solutionList" :key="item.id">
  13. <view
  14. class="solution_item_bg"
  15. :style="{
  16. background: 'url(' + item.bgImg + ')',
  17. 'background-repeat': 'no-repeat',
  18. 'background-size': '100%'
  19. }"
  20. >
  21. {{ item.title }}
  22. </view>
  23. <view class="solution_item_container">
  24. <view class="solution_text" v-for="(text, index) in item.content" :key="index">
  25. {{ text.text }}
  26. </view>
  27. <button type="default" class="solution_btn">查看解决方案</button>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. bgImg: require('@/static/supplier-login/solution/bg.png'),
  38. // 解决方案内容
  39. solutionList: [
  40. {
  41. id: 1,
  42. title: '基础版',
  43. bgImg: require('@/static/supplier-login/solution/01.png'),
  44. content: [
  45. {
  46. text: '品牌商城入驻'
  47. },
  48. {
  49. text: '品牌内容宣发'
  50. },
  51. {
  52. text: '用户画像洞察'
  53. },
  54. {
  55. text: '客户旅程搭建'
  56. },
  57. {
  58. text: '客户线索跟踪'
  59. },
  60. {
  61. text: '线索转化'
  62. }
  63. ]
  64. },
  65. {
  66. id: 2,
  67. title: '高级版',
  68. bgImg: require('@/static/supplier-login/solution/02.png'),
  69. content: [
  70. {
  71. text: '基础版全部内容'
  72. },
  73. {
  74. text: '引流关键词策划和布局'
  75. },
  76. {
  77. text: '漏斗模型转化率评估'
  78. },
  79. {
  80. text: '数字营销内容策划'
  81. },
  82. {
  83. text: '客户线索跟踪'
  84. },
  85. {
  86. text: '线索转化'
  87. }
  88. ]
  89. },
  90. {
  91. id: 3,
  92. title: '战略版',
  93. bgImg: require('@/static/supplier-login/solution/03.png'),
  94. content: [
  95. {
  96. text: '高级版全部内容'
  97. },
  98. {
  99. text: '设置销售目标'
  100. },
  101. {
  102. text: '数据模型策划和执行'
  103. },
  104. {
  105. text: '品牌私域运营及正品认证通'
  106. },
  107. {
  108. text: '开放平台全域销售系统'
  109. },
  110. {
  111. text: '保证销售目标的执行'
  112. }
  113. ]
  114. }
  115. ]
  116. }
  117. }
  118. }
  119. </script>
  120. <style scoped lang="scss">
  121. .solution {
  122. box-sizing: border-box;
  123. padding: 1rpx;
  124. margin-top: 120rpx;
  125. .solution_container {
  126. padding: 0 72rpx;
  127. box-sizing: border-box;
  128. .solution_item {
  129. width: 606rpx;
  130. height: 610rpx;
  131. box-sizing: border-box;
  132. display: flex;
  133. margin-bottom: 60rpx;
  134. .solution_item_bg {
  135. display: flex;
  136. align-items: center;
  137. writing-mode: vertical-rl;
  138. justify-content: center;
  139. width: 140rpx;
  140. font-size: 56rpx;
  141. color: #ffffff;
  142. font-weight: Bold;
  143. }
  144. .solution_item_container {
  145. width: calc(100% - 140rpx);
  146. height: 100%;
  147. position: relative;
  148. box-sizing: border-box;
  149. padding: 63rpx 70rpx;
  150. background-color: #fff;
  151. .solution_text {
  152. font-size: 28rpx;
  153. color: #666666;
  154. line-height: 64rpx;
  155. position: relative;
  156. white-space: nowrap;
  157. }
  158. .solution_text::before {
  159. content: '';
  160. border: 1px solid #b2b2b2;
  161. width: 10rpx;
  162. height: 10rpx;
  163. position: absolute;
  164. left: -30rpx;
  165. top: 25rpx;
  166. transform: rotate(45deg);
  167. }
  168. .solution_btn {
  169. position: absolute;
  170. width: 220rpx;
  171. height: 72rpx;
  172. background: #FF5B00;
  173. border-radius: 4rpx;
  174. color: #fff;
  175. font-size: 28rpx;
  176. text-align: center;
  177. line-height: 72rpx;
  178. right: 40rpx;
  179. bottom: 48rpx;
  180. }
  181. }
  182. }
  183. }
  184. }
  185. </style>