success.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view class="sub" :style="'padding-top:'+padtop+'px'">
  3. <navbar :back="false" :title="codetit" :bgcolor="backgroundColor" color="#fff" fixed zIndex="1010" :center="true" :custom='true' @getTop="getTop" back="true"/>
  4. <!-- 头部 -->
  5. <view class="pt28">
  6. <image :src="subimg" class="sub_img"></image>
  7. <view class="sub_tit">{{codetit}}</view>
  8. <view class="sub_txt">当前二维码已核销 可点击按钮继续核销</view>
  9. <view class="sub_back" @click="getCodeFn">继续核销</view>
  10. <view class="sub_home" @click="getHome">返回首页</view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default{
  16. data(){
  17. return{
  18. padtop:this.$http._GET.customBarH||0,
  19. backgroundColor: 'linear-gradient(90deg, #A00517, #E93030)',
  20. subimg:require("@/static/images/submit.png"),
  21. codetit:"核销成功"
  22. }
  23. },
  24. methods:{
  25. getTop(e){
  26. this.padtop=e
  27. },
  28. getCodeFn(){
  29. var that=this;
  30. uni.redirectTo({
  31. url:'/pages/code/code'
  32. })
  33. },
  34. getHome(){
  35. uni.switchTab({
  36. url:"/pages/index/index"
  37. })
  38. }
  39. }
  40. }
  41. </script>
  42. <style scoped lang="scss">
  43. .sub{box-sizing: border-box;width: 100%;min-height: 100vh;}
  44. .sub_img{width: 238rpx;height: 256rpx;display: block;margin:0 auto 56rpx;}
  45. .sub_tit{font-size: 30rpx;font-weight: bold;
  46. color: #000000;margin-bottom: 20rpx;text-align: center;}
  47. .sub_txt{font-size: 26rpx;color: #666666;text-align: center;width: 260rpx;margin: 0 auto 90rpx;}
  48. .sub_back{width: 416rpx;height:84rpx;width: 208px;
  49. height: 42px;
  50. background: linear-gradient(90deg, #A00517, #E93030);
  51. border-radius: 21px;display: flex;align-items: center;justify-content: center;font-size: 30rpx;color: #ffffff;margin:0 auto 0;}
  52. .pt28{padding-top: 56rpx;}
  53. .sub_home{font-size: 0.26rem;color: #AAAAAA;text-align: center;position: fixed;bottom: 1rem;left: 50%;transform: translateX(-50%);}
  54. </style>