integral_exchange.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template>
  2. <view class="dt-page">
  3. <view class="main-poster-wrap">
  4. <image class="main-poster" src="https://gss3.bdstatic.com/-Po3dSag_xI4khGkpoWK1HF6hhy/baike/c0%3Dbaike180%2C5%2C5%2C180%2C60/sign=3a0c96f6dfa20cf4529df68d17602053/8d5494eef01f3a294e7bc4bf9625bc315c607c0b.jpg" mode="aspectFill"></image>
  5. </view>
  6. <view class="goods-hd-wrap">
  7. <view class="title">《霹雳娇娃》电影票</view>
  8. <view class="sub-info-wrap">
  9. <view class="specifications">规格:1张</view>
  10. <view class="has-exchange">已兑换:250份</view>
  11. </view>
  12. </view>
  13. <view class="goods-detail-wrap">
  14. <view class="detail-item">
  15. <view class="subtitle">商品介绍</view>
  16. <view class="sub-content">霹雳娇娃电影票</view>
  17. </view>
  18. <view class="detail-item">
  19. <view class="subtitle">使用流程</view>
  20. <view class="sub-content">猫眼电影通兑换券使用说明》\n\n1.兑换券限在猫眼/美团客户端选座购票使用;\n\n2打开猫眼/美团客户端(美团需要先在首页点击猫眼LOGO,进入猫眼后兑换),登录后打开我的点击“优惠券”在页面上方白框中输入兑换券密码,点击“添加即可;\n\n3.打开并登录猫眼/美团客户端,选择影片,选择影城及座位后点击付款,选择“活动与优惠券”,选择兑换券即可,仅限票价不高于兑换券面值的场次使用;\n\n4.本通兑券不记名、不挂失、不兑现,请妥善保存,一旦添加不可解绑;\n\n5.每批次兑换券每个用户最多限领取4张,每张通兑券仅限使用1次\n\n6.每个订单最多使用4张(同一账号、手机号、设备或支付账号相同,即视为同一账户);\n\n7.不能异地兑换,只能兑换手机定位所在地当地影院场次影票;\n\n8.请在兑换券有效期内使用。\n\n9.仅可兑换2D/3D普通厅场次。</view>
  21. </view>
  22. <view class="detail-item">
  23. <view class="subtitle">使用规则</view>
  24. <view class="sub-content">特别注意:一个手机设备+一个帐号=一个用户。同一台手机设备,换不同的帐号来绑券是不允许的!猫眼电影券码不能用作包场使用</view>
  25. </view>
  26. </view>
  27. <view class="btn-submit-fix"></view>
  28. <button
  29. class="btn-submit"
  30. hover-class="button-hover-scale"
  31. :class="{
  32. 'btn-submit-disable':disabled
  33. }"
  34. :disabled="disabled"
  35. @tap="tapSubmit" >16000积分兑换</button>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data () {
  41. return {
  42. disabled:false
  43. }
  44. },
  45. methods:{
  46. tapSubmit(){
  47. this.$dialog.confirm({
  48. content:'兑换后将扣除12600积分,确认兑换?',
  49. success:async (res)=>{
  50. if(res.confirm){
  51. console.log(res.confirm)
  52. this.disabled = true
  53. this.$dialog.alert({
  54. content:'兑换成功,请留意短信消息~'
  55. })
  56. }
  57. }
  58. })
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .dt-page {
  65. min-height:100vh;
  66. background-color:#f2f2f2;
  67. .main-poster-wrap{
  68. display:flex;
  69. .main-poster {
  70. width: 100%;
  71. height: 400upx;
  72. }
  73. }
  74. .goods-hd-wrap {
  75. display: flex;
  76. flex-wrap: wrap;
  77. padding:30upx;
  78. background-color: #fff;
  79. .title {
  80. width: 100%;
  81. font-size: 30upx;
  82. font-weight: bold;
  83. }
  84. .sub-info-wrap{
  85. padding-top:30upx;
  86. line-height: 1;
  87. display:flex;
  88. justify-content: space-between;
  89. width:100%;
  90. font-size:24upx;
  91. .specifications{
  92. color:#666;
  93. }
  94. .has-exchange{
  95. color:$dt-color-primary;
  96. }
  97. }
  98. }
  99. .goods-detail-wrap{
  100. margin-top:20upx;
  101. background-color:#fff;
  102. padding:36upx 30upx 0 40upx;
  103. .detail-item{
  104. padding-bottom:36upx;
  105. .subtitle{
  106. position:relative;
  107. font-weight:500;
  108. line-height:30upx;
  109. }
  110. .subtitle:before{
  111. position:absolute;
  112. left:-16upx;top:50%;
  113. transform: translateY(-50%);
  114. width:6upx;
  115. height:30upx;
  116. border-radius:4upx;
  117. background-color:$dt-color-primary;
  118. content:'';
  119. }
  120. .sub-content{
  121. margin-top:20upx;
  122. white-space: pre-wrap;
  123. font-size:24upx;
  124. color:#666;
  125. line-height:1.5;
  126. }
  127. }
  128. }
  129. .btn-submit-fix{
  130. width:100%;
  131. height:130upx;
  132. }
  133. .btn-submit{
  134. position:fixed;
  135. bottom:0;
  136. left: 0;
  137. width:100%;
  138. height:100upx;
  139. line-height:100upx;
  140. background-color:$dt-color-primary;
  141. border-radius:0;
  142. }
  143. .btn-submit-disable{
  144. color:#fff;
  145. background-color:#CCCCCC;
  146. }
  147. }
  148. </style>