credentials.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <!--
  2. * @Descripttion: 售货凭证
  3. * @version: 1.0.0
  4. * @Author: dream
  5. * @Date: 2021-03-26 15:06:57
  6. * @LastEditors: dream
  7. * @LastEditTime: 2021-04-12 14:13:03
  8. -->
  9. <template>
  10. <view class="after-sales-credenttials">
  11. <textarea
  12. class="note iph-bg-fff"
  13. placeholder="请输入申请备注…"
  14. placeholder-style="color: #cccccc;"
  15. ></textarea>
  16. <view class="img-list iph-bg-fff">
  17. <view class="img-item">
  18. <image class="note-img" src="https://www.youmeitu.com/imgesmeinv/47.jpg?x-oss-process=image/resize,m_fill,w_180,h_270" mode="aspectFill" @click="look" />
  19. <view class="del-icon iph-icon-close"></view>
  20. </view>
  21. <view class="upload-icon iph-icon-upload" @click="upload"></view>
  22. </view>
  23. <button class="submit-btn" :disabled="!isRead">提交申请</button>
  24. <view class="u-flex u-row-center">
  25. <u-checkbox class="checkall" v-model="isRead" shape="circle">
  26. <view class="u-font-24 u-line-34 read">我已阅读<text class="instructions" @click="showIndtructions = true">《售后说明》</text></view>
  27. </u-checkbox>
  28. </view>
  29. <u-popup v-model="showIndtructions" mode="center" border-radius="16">
  30. <view class="popup-body">
  31. <view class="u-font-36 u-line-50 text-weight-500 u-text-center">售后说明</view>
  32. <view class="u-font-28 u-line-40 u-m-t-32 u-m-l-24 u-m-r-24">1.发起售后需上传签收单,最少一张,最多3张</view>
  33. <view class="u-font-28 u-line-40 u-m-t-32 u-m-l-24 u-m-r-24 u-p-b-40 u-border-bottom">2.提交申请后将为您生成一笔服务单,可在客服页面进行查看服务进度</view>
  34. <view class="know-btn" @click="showIndtructions = false">我知道了</view>
  35. </view>
  36. </u-popup>
  37. </view>
  38. </template>
  39. <script>
  40. import { uploadImg } from '@/utils/upload'
  41. export default {
  42. name: 'afterSalesCredentials',
  43. data () {
  44. return {
  45. isRead: false,
  46. showIndtructions: false
  47. }
  48. },
  49. onLoad () {
  50. },
  51. methods: {
  52. look () {
  53. uni.previewImage({
  54. urls: ['https://www.youmeitu.com/imgesmeinv/40.jpg']
  55. })
  56. },
  57. lookInstructions () {
  58. uni.showModal({
  59. title: '售后说明',
  60. content: `
  61. 1.发起售后需上传签收单,最少一张,最多3张
  62. 2.提交申请后将为您生成一笔服务单,可在客服页面进行查看服务进度
  63. `,
  64. success: function (res) {
  65. if (res.confirm) {
  66. console.log('用户点击确定')
  67. } else if (res.cancel) {
  68. console.log('用户点击取消')
  69. }
  70. }
  71. })
  72. },
  73. upload () {
  74. uploadImg()
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .after-sales-credenttials {
  81. .note {
  82. padding: 16px 32px;
  83. width: auto;
  84. height: 216px;
  85. }
  86. .img-list {
  87. padding: 32px;
  88. display: flex;
  89. .img-item {
  90. position: relative;
  91. margin-right: 16px;
  92. .note-img {
  93. width: 204px;
  94. height: 204px;
  95. }
  96. .del-icon {
  97. position: absolute;
  98. top: 8px;
  99. right: 8px;
  100. width: 36px;
  101. height: 36px;
  102. }
  103. }
  104. .upload-icon {
  105. width: 204px;
  106. height: 204px;
  107. }
  108. }
  109. .submit-btn {
  110. margin: 48px 32px 32px;
  111. padding: 22px 0;
  112. font-size: 32px;
  113. line-height: 44px;
  114. color: $iph-standby-text;
  115. background-color: $u-type-primary;
  116. border-radius: 8px;
  117. &[disabled] {
  118. background-color: $u-type-primary !important;
  119. opacity: .4;
  120. }
  121. }
  122. .read {
  123. color: $iph-desc-text;
  124. .instructions {
  125. color: $u-type-primary;
  126. }
  127. }
  128. .checkall {
  129. /deep/ .u-checkbox {
  130. .u-checkbox__icon-wrap--circle {
  131. width: 28px !important;
  132. height: 28px !important;
  133. }
  134. }
  135. .check-all {
  136. font-size: 26px;
  137. line-height: 36px;
  138. color: $iph-base-text;
  139. }
  140. }
  141. .popup-body {
  142. box-sizing: border-box;
  143. padding: 40px 8px 0;
  144. width: 576px;
  145. height: 448px;
  146. .know-btn {
  147. padding: 24px 0;
  148. line-height: 44px;
  149. font-size: 32px;
  150. font-weight: 600;
  151. text-align: center;
  152. color: $u-type-primary;
  153. }
  154. }
  155. }
  156. </style>