twoHappyInfo.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view >
  3. <image src="../../static/bg.png" mode="" class="bg" ></image>
  4. <view class="" style="margin-left: 30rpx;padding-top: 44rpx;">
  5. <image src="../../static/index/goback.png" mode="" style="width: 64rpx;height: 64rpx;" @click="goback"></image>
  6. </view>
  7. <view class="content">
  8. <image :src="item.show_image" mode="" class="avr"></image>
  9. <view class="title">
  10. {{item.title}}
  11. </view>
  12. <view class="intro">
  13. 商家介绍
  14. </view>
  15. <view class="" v-html="item.content">
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. onLoad(e) {
  23. console.log(e.item)
  24. this.item=uni.getStorageSync('item')
  25. },
  26. data() {
  27. return {
  28. item:{}
  29. }
  30. },
  31. methods: {
  32. goback(){
  33. uni.navigateBack()
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. .content{
  40. position: relative;
  41. box-sizing: border-box;
  42. padding: 20rpx;
  43. margin: 80rpx auto 0;
  44. width: 690rpx;
  45. min-height: 800rpx;
  46. background: #FFFFFF;
  47. border-radius: 20rpx;
  48. .avr{
  49. position: absolute;
  50. top: -44rpx;
  51. left: 28rpx;
  52. width: 132rpx;
  53. height: 132rpx;
  54. border-radius: 16rpx;
  55. }
  56. .title{
  57. font-size: 36rpx;
  58. font-weight: 600;
  59. text-align: center;
  60. }
  61. .intro{
  62. margin: 44rpx 0 20rpx;
  63. font-size: 32rpx;
  64. font-weight: 600;
  65. }
  66. }
  67. </style>