solution.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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" @click="openMadel">查看解决方案</button>
  28. </view>
  29. </view>
  30. </view>
  31. <tui-modal
  32. :show.sync="modal"
  33. custom
  34. @cancel="() => (modal = false)"
  35. maskClosable
  36. color="#333"
  37. :size="32"
  38. >
  39. <view class="tui-modal-custom">
  40. <view class="tui-modal-custom-text">如有需要,可通过右下角电话或微信联系客服</view>
  41. <button height="72rpx" class="solution_btn" :size="28" shape="circle" @click="() => (modal = false)">确定</button>
  42. </view>
  43. </tui-modal>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. bgImg: 'https://static.caimei365.com/app/img/supplier-login/solution/bg.png',
  51. // 解决方案内容
  52. solutionList: [
  53. {
  54. id: 1,
  55. title: '基础版',
  56. bgImg: 'https://static.caimei365.com/app/img/supplier-login/solution/01.png',
  57. content: [
  58. {
  59. text: '品牌商城入驻'
  60. },
  61. {
  62. text: '品牌内容宣发'
  63. },
  64. {
  65. text: '用户画像洞察'
  66. },
  67. {
  68. text: '客户旅程搭建'
  69. },
  70. {
  71. text: '客户线索跟踪'
  72. },
  73. {
  74. text: '线索转化'
  75. }
  76. ]
  77. },
  78. {
  79. id: 2,
  80. title: '高级版',
  81. bgImg: 'https://static.caimei365.com/app/img/supplier-login/solution/02.png',
  82. content: [
  83. {
  84. text: '基础版全部内容'
  85. },
  86. {
  87. text: '引流关键词策划和布局'
  88. },
  89. {
  90. text: '漏斗模型转化率评估'
  91. },
  92. {
  93. text: '数字营销内容策划'
  94. },
  95. {
  96. text: '客户线索跟踪'
  97. },
  98. {
  99. text: '线索转化'
  100. }
  101. ]
  102. },
  103. {
  104. id: 3,
  105. title: '战略版',
  106. bgImg: 'https://static.caimei365.com/app/img/supplier-login/solution/03.png',
  107. content: [
  108. {
  109. text: '高级版全部内容'
  110. },
  111. {
  112. text: '设置销售目标'
  113. },
  114. {
  115. text: '数据模型策划和执行'
  116. },
  117. {
  118. text: '品牌私域运营及正品认证通'
  119. },
  120. {
  121. text: '开放平台全域销售系统'
  122. },
  123. {
  124. text: '保证销售目标的执行'
  125. }
  126. ]
  127. }
  128. ],
  129. modal: false,
  130. btnStyle: [
  131. {
  132. text: '确定',
  133. type: '',
  134. plain: false
  135. }
  136. ]
  137. }
  138. },
  139. methods: {
  140. openMadel() {
  141. this.modal = true
  142. }
  143. }
  144. }
  145. </script>
  146. <style scoped lang="scss">
  147. .solution {
  148. box-sizing: border-box;
  149. padding: 1rpx;
  150. margin-top: 120rpx;
  151. .solution_container {
  152. padding: 0 72rpx;
  153. box-sizing: border-box;
  154. .solution_item {
  155. width: 606rpx;
  156. height: 610rpx;
  157. box-sizing: border-box;
  158. display: flex;
  159. margin-bottom: 60rpx;
  160. .solution_item_bg {
  161. display: flex;
  162. align-items: center;
  163. writing-mode: vertical-rl;
  164. justify-content: center;
  165. width: 140rpx;
  166. font-size: 56rpx;
  167. color: #ffffff;
  168. font-weight: Bold;
  169. }
  170. .solution_item_container {
  171. width: calc(100% - 140rpx);
  172. height: 100%;
  173. position: relative;
  174. box-sizing: border-box;
  175. padding: 63rpx 70rpx;
  176. background-color: #fff;
  177. .solution_text {
  178. font-size: 28rpx;
  179. color: #666666;
  180. line-height: 64rpx;
  181. position: relative;
  182. white-space: nowrap;
  183. }
  184. .solution_text::before {
  185. content: '';
  186. border: 1px solid #b2b2b2;
  187. width: 10rpx;
  188. height: 10rpx;
  189. position: absolute;
  190. left: -30rpx;
  191. top: 25rpx;
  192. transform: rotate(45deg);
  193. }
  194. .solution_btn {
  195. position: absolute;
  196. width: 220rpx;
  197. height: 72rpx;
  198. background: #ff5b00;
  199. border-radius: 4rpx;
  200. color: #fff;
  201. font-size: 28rpx;
  202. text-align: center;
  203. line-height: 72rpx;
  204. right: 40rpx;
  205. bottom: 48rpx;
  206. }
  207. }
  208. }
  209. }
  210. }
  211. .tui-modal-custom {
  212. padding: 40rpx 20rpx 10rpx 20rpx;
  213. .tui-modal-custom-text {
  214. font-size: 32rpx;
  215. color: #666666;
  216. text-align: center;
  217. }
  218. .solution_btn {
  219. width: 400rpx;
  220. height: 72rpx;
  221. margin-top: 40rpx;
  222. background: #FF5B00;
  223. border-radius: 36rpx;
  224. color: white;
  225. font-size: 28rpx;
  226. text-align: center;
  227. line-height: 72rpx;
  228. }
  229. }
  230. </style>