figure-rule.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <view
  3. v-bind:class="['page-width', 'figure-rule', 'component-height', `${theme}-figure-rule`]"
  4. >
  5. <image
  6. class="page-width component-height background-image"
  7. src="/plugins/gift/image/head-texture-background.png"
  8. ></image>
  9. <view class="page-width text-content component-height dir-left-nowrap">
  10. <view class="figure box-grow-0 dir-top-nowrap">
  11. <view class="box-grow-0 big-text text-color">表达心意新方式</view>
  12. <view class="box-grow-0 small-text text-color">
  13. ·&nbsp;网上送礼&nbsp;&nbsp;&nbsp;·&nbsp;对方填地址&nbsp;&nbsp;&nbsp;·&nbsp;支持转赠
  14. </view>
  15. </view>
  16. <view class="rule box-grow-0">
  17. <view class="identification" @click="routeGo()">
  18. 规则
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. name: 'figure-rule',
  27. props: [`theme`],
  28. methods: {
  29. routeGo() {
  30. uni.navigateTo({
  31. url: `/plugins/gift/rule/rule`
  32. })
  33. }
  34. }
  35. }
  36. </script>
  37. <style scoped lang="scss">
  38. @import '../../css/gift.scss';
  39. /* 广告图 规则 */
  40. .figure-rule {
  41. position: relative;
  42. }
  43. .text-content {
  44. position: absolute;
  45. top: 0;
  46. left: 0;
  47. }
  48. .rule {
  49. width: 12.5%;
  50. padding-top: #{40upx};
  51. .identification {
  52. width: 100%;
  53. border-top-left-radius: #{30upx};
  54. border-bottom-left-radius: #{30upx};
  55. background-color: rgba(0,0,0,.3);
  56. font-size: #{24upx};
  57. color: #ffffff;
  58. padding: #{12upx 24upx 12upx 20upx};
  59. }
  60. }
  61. .figure {
  62. width: 87.5%;
  63. padding-bottom: #{69upx};
  64. .text-color {
  65. color: #ffffff;
  66. }
  67. .big-text {
  68. font-size: #{48upx};
  69. padding: #{30upx 0 8upx 55upx};
  70. }
  71. .small-text {
  72. font-size: #{26upx};
  73. padding: #{8upx 0 52upx 48upx};
  74. }
  75. }
  76. .component-height {
  77. height: #{260upx};
  78. }
  79. </style>