select.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="refund-select">
  3. <view class="select-item" @click="goPage(1)">
  4. <view class="left">
  5. <image src="/static/images/select01.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="/static/images/select02.png" mode=""></image>
  16. </view>
  17. <view class="right-wrapper">
  18. <view class="title">我要退货退款</view>
  19. <view class="txt">已收到货,需要退还收到的货物</view>
  20. </view>
  21. <view class="iconfont icon-xiangyou"></view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default{
  27. data(){
  28. return {
  29. order_id:'',
  30. type:0,
  31. ids:''
  32. }
  33. },
  34. onLoad(options) {
  35. this.order_id = options.order_id,
  36. this.type = options.type
  37. this.ids = options.ids || ''
  38. },
  39. methods:{
  40. goPage(type){
  41. if(this.type ==1 && this.ids){
  42. uni.navigateTo({
  43. url:`/pages/users/refund/confirm?ids=${this.ids}&refund_type=${type}&type=${this.type}&order_id=${this.order_id}`
  44. })
  45. }else{
  46. uni.navigateTo({
  47. url:`/pages/users/refund/index?order_id=${this.order_id}&refund_type=${type}&type=${this.type}`
  48. })
  49. }
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. .refund-select{
  56. .select-item{
  57. position: relative;
  58. display: flex;
  59. align-items: center;
  60. padding: 25rpx 0;
  61. background-color: #fff;
  62. border-bottom: 1px solid #f0f0f0;
  63. }
  64. .left{
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. width: 105rpx;
  69. image{
  70. width:50rpx;
  71. height: 46rpx;
  72. }
  73. }
  74. .right-wrapper{
  75. position: relative;
  76. .title{
  77. font-size: 26rpx;
  78. color: #282828;
  79. }
  80. .txt{
  81. margin-top: 10rpx;
  82. color: #999999;
  83. font-size: 22rpx;
  84. }
  85. }
  86. .icon-xiangyou{
  87. position: absolute;
  88. right: 30rpx;
  89. top: 50%;
  90. transform: translateY(-50%);
  91. color: #AAAAAA;
  92. font-size: 30rpx;
  93. }
  94. }
  95. </style>