select.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="refund-select" :style="viewColor">
  3. <view class="select-item" @click="goPage(1)">
  4. <view class="left">
  5. <image :src="domain+'/static/diy/select01'+keyColor+'.png'" mode=""></image>
  6. </view>
  7. <view class="right-wrapper">
  8. <view class="title">我要退款(无需退货)</view>
  9. <view class="txt">未收到货,或与卖家协商同意不退货只退款</view>
  10. </view>
  11. <view class="iconfont icon-xiangyou"></view>
  12. </view>
  13. <view class="select-item" @click="goPage(2)">
  14. <view class="left">
  15. <image :src="domain+'/static/diy/select02'+keyColor+'.png'" mode=""></image>
  16. </view>
  17. <view class="right-wrapper">
  18. <view class="title">{{order_type != 2 ? '我要退货退款' : '我要退款'}}</view>
  19. <view class="txt" v-if="order_type != 2">已收到货,需要退还收到的货物</view>
  20. </view>
  21. <view class="iconfont icon-xiangyou"></view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. // +----------------------------------------------------------------------
  27. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  28. // +----------------------------------------------------------------------
  29. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  30. // +----------------------------------------------------------------------
  31. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  32. // +----------------------------------------------------------------------
  33. // | Author: CRMEB Team <admin@crmeb.com>
  34. // +----------------------------------------------------------------------
  35. import {mapGetters} from "vuex";
  36. import { HTTP_REQUEST_URL } from '@/config/app';
  37. export default{
  38. computed: mapGetters(['viewColor', 'keyColor']),
  39. data(){
  40. return {
  41. domain: HTTP_REQUEST_URL,
  42. order_id:'',
  43. type:0,
  44. ids:'',
  45. order_type: 0
  46. }
  47. },
  48. onLoad(options) {
  49. this.order_id = options.order_id
  50. this.type = options.type
  51. this.ids = options.ids || ''
  52. this.order_type = options.order_type
  53. },
  54. methods:{
  55. goPage(type){
  56. if(this.type ==1 && this.ids){
  57. uni.redirectTo({
  58. url:`/pages/users/refund/confirm?ids=${this.ids}&refund_type=${type}&type=${this.type}&order_id=${this.order_id}`
  59. })
  60. }else{
  61. uni.redirectTo({
  62. url:`/pages/users/refund/index?order_id=${this.order_id}&refund_type=${type}&type=${this.type}`
  63. })
  64. }
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss">
  70. .refund-select{
  71. .select-item{
  72. position: relative;
  73. display: flex;
  74. align-items: center;
  75. padding: 25rpx 0;
  76. background-color: #fff;
  77. border-bottom: 1px solid #f0f0f0;
  78. }
  79. .left{
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. width: 105rpx;
  84. image{
  85. width:50rpx;
  86. height: 46rpx;
  87. }
  88. }
  89. .right-wrapper{
  90. position: relative;
  91. .title{
  92. font-size: 26rpx;
  93. color: #282828;
  94. }
  95. .txt{
  96. margin-top: 10rpx;
  97. color: #999999;
  98. font-size: 22rpx;
  99. }
  100. }
  101. .icon-xiangyou{
  102. position: absolute;
  103. right: 30rpx;
  104. top: 50%;
  105. transform: translateY(-50%);
  106. color: #AAAAAA;
  107. font-size: 30rpx;
  108. }
  109. }
  110. </style>