index.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <u-popup :show="popupShow" bgColor="transparent" :safeAreaInsetBottom="false" @close="close" @open="open">
  3. <view class="popupBox">
  4. <view class="popupBox_title">
  5. <image class="popupBox_title_img13" src="https://guess-shop.oss-cn-beijing.aliyuncs.com/static/online/img13.png" mode="" />
  6. <image class="popupBox_title_img12" src="https://guess-shop.oss-cn-beijing.aliyuncs.com/static/online/img14.png" mode="" />
  7. <view>
  8. <view class="popupBox_title_l">订单核销完成
  9. </view>
  10. </view>
  11. </view>
  12. <view class="popupBox_content">
  13. <view class="">
  14. <view class="popupBox_point" v-if="form.giftPoints">恭喜获得{{form.givePointsExpect}}礼包豆</view>
  15. <!-- <image src="https://guess-shop.oss-cn-beijing.aliyuncs.com/static/online/img15.png" mode="" /> -->
  16. <image v-if="form.orderType!=1" @click="goPath(`/pages/game/index?orderNumber=${form.orderNumber}`)" src="/static/img47.png" mode="" />
  17. <image @click="goGiftPackageCenter()" class="mb44" src="/static/img48.png" mode="" />
  18. <view class="btnBox" @click="goBack()">
  19. <view>返回</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </u-popup>
  25. </template>
  26. <script>
  27. export default {
  28. props:{
  29. form:{
  30. type:Object,
  31. default:()=>{}
  32. }
  33. },
  34. data () {
  35. return {
  36. popupShow: false
  37. }
  38. },
  39. methods: {
  40. openFun () {
  41. this.popupShow = true;
  42. },
  43. close () {
  44. this.popupShow = false
  45. },
  46. goBack () {
  47. uni.navigateBack()
  48. },
  49. goPath (path) {
  50. uni.navigateTo({
  51. url: path,
  52. })
  53. },
  54. goGiftPackageCenter(){
  55. uni.switchTab({
  56. url:"/pages/tabBar/giftPackageCenter"
  57. })
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang='scss' scoped>
  63. .popupBox {
  64. position: relative;
  65. .popupBox_title {
  66. width: 100%;
  67. position: absolute;
  68. top: -93rpx;
  69. z-index: 10;
  70. > .popupBox_title_img13 {
  71. width: 695rpx;
  72. height: 194rpx;
  73. }
  74. .popupBox_title_img12 {
  75. width: 235rpx;
  76. height: 190rpx;
  77. position: absolute;
  78. top: -4rpx;
  79. right: 17rpx;
  80. }
  81. > view {
  82. display: flex;
  83. align-items: center;
  84. padding: 65rpx 0 0 30rpx;
  85. position: absolute;
  86. top: 0;
  87. left: 0;
  88. .popupBox_title_l {
  89. font-size: 48rpx;
  90. color: #ffffff;
  91. font-family: FZCuYuan-M03;
  92. margin-right: 100rpx;
  93. text {
  94. font-size: 32rpx;
  95. color: #ffffff;
  96. display: inline-block;
  97. margin-left: 20rpx;
  98. }
  99. }
  100. .popupBox_title_r {
  101. .popupBox_title_r_l {
  102. font-size: 26rpx;
  103. color: #ffffff;
  104. text-decoration: line-through;
  105. }
  106. .popupBox_title_r_r {
  107. font-size: 32rpx;
  108. color: #ffffff;
  109. font-family: FZCuYuan-M03;
  110. text-decoration: none;
  111. }
  112. }
  113. }
  114. }
  115. .popupBox_content {
  116. padding: 55rpx 0rpx 0;
  117. background: linear-gradient(180deg, #c90700 0%, #ffe8e6 58%, #ffffff 32%);
  118. border-radius: 40rpx 40rpx 0rpx 0rpx;
  119. background-size: 100% 1900rpx;
  120. background-position-y: -300rpx;
  121. > view {
  122. background: linear-gradient(180deg, #ffedec 0%, #ffffff 39%);
  123. border-radius: 40rpx 40rpx 0rpx 0rpx;
  124. padding: 50rpx 0rpx 20rpx;
  125. position: relative;
  126. z-index: 11;
  127. text-align: center;
  128. .popupBox_point {
  129. font-size: 34rpx;
  130. color: #1a1a1a;
  131. font-family: FZCuYuan-M03;
  132. margin-bottom: 8rpx;
  133. }
  134. image {
  135. width: 690rpx;
  136. height: 148rpx;
  137. // margin-bottom: 90rpx;
  138. margin-top: 30rpx;
  139. }
  140. .mb44 {
  141. margin-bottom: 44rpx;
  142. }
  143. .btnBox {
  144. width: 100%;
  145. padding: 35rpx 50rpx;
  146. box-sizing: border-box;
  147. border-top: 1rpx solid #e7e7e7;
  148. background: #ffffff;
  149. > view {
  150. height: 80rpx;
  151. background: #fb0b03;
  152. border-radius: 40rpx;
  153. font-size: 32rpx;
  154. color: #ffffff;
  155. text-align: center;
  156. line-height: 80rpx;
  157. }
  158. }
  159. }
  160. }
  161. }
  162. </style>