Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

apply-ex-goods-step1.vue 4.6KB

vor 2 Jahren
vor 11 Monaten
vor 2 Jahren
vor 1 Jahr
vor 2 Jahren
vor 6 Monaten
vor 1 Jahr
vor 2 Jahren
vor 6 Monaten
vor 1 Jahr
vor 2 Jahren
vor 2 Jahren
vor 1 Jahr
vor 2 Jahren
vor 2 Jahren
vor 1 Jahr
vor 2 Jahren
vor 11 Monaten
vor 2 Jahren
vor 2 Jahren
vor 1 Jahr
vor 2 Jahren
vor 7 Monaten
vor 2 Jahren
vor 1 Jahr
vor 2 Jahren
vor 7 Monaten
vor 2 Jahren
vor 2 Jahren
vor 6 Monaten
vor 2 Jahren
vor 1 Jahr
vor 6 Monaten
vor 1 Jahr
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view class="oderPage">
  3. <u-form :model="form" :error-type="errorType">
  4. <view class="from">
  5. <u-form-item prop="applyType">
  6. <view class="from_item">
  7. <text style="color: #004576;"><text class="red">*</text>申请类型:</text>
  8. <view style="display: flex;">
  9. <picker @change="bindPickerChange" :value="index" :range="columnsOld">
  10. <view class="uni-input">{{index>=0?columnsOld[index]:"请选择"}}</view>
  11. </picker>
  12. <u-icon name="arrow-right" style="margin-left: 10px;display: flex;"
  13. @click="showPicker"></u-icon>
  14. </view>
  15. </view>
  16. </u-form-item>
  17. </view>
  18. </u-form>
  19. <view class="content">
  20. <view class="title"><text class="red">*</text>设备更换需将原设备寄回</view>
  21. <view class="title1"><image :src="`${$imgUrl}common/apply-goods.png`"></image><text>寄回信息</text></view>
  22. <view class="content-box">
  23. <view class="phone">
  24. <text>收件人:</text>
  25. <text>ETC售后</text>
  26. </view>
  27. <view class="phone">
  28. <text>联系电话:</text>
  29. <text>18798751224</text>
  30. </view>
  31. <view>此电话仅用于ETC售后收取快递,如需咨询业务请致电4008008787</view>
  32. </view>
  33. <view class="title1"><image :src="`${$imgUrl}common/tips.png`"></image><text>寄回地址</text></view>
  34. <view class="content-box">补换订单审核时效:设备签收后的2个自然日完成审核,审核通过后请关注订单物流单号;</view>
  35. </view>
  36. <button class="submit" @click="submit">下一步</button>
  37. </view>
  38. </template>
  39. <script setup lang="ts">
  40. import {
  41. navTo
  42. } from "@/utils/utils.ts"
  43. import {
  44. ref,
  45. reactive
  46. } from "vue";
  47. import {
  48. onReady
  49. } from "@dcloudio/uni-app";
  50. import {
  51. onLoad
  52. } from "@dcloudio/uni-app";
  53. // 表单数据
  54. const form = reactive({
  55. orderId: '',
  56. applyType: '',
  57. })
  58. //接受通过该id查询订单详情
  59. const oldId = ref('')
  60. const applyType = ref('')
  61. //选择器数据
  62. const index = ref('-1');
  63. const columnsOld = ["换货-换卡签"]
  64. const columns = [
  65. {
  66. label: '换货-换卡签',
  67. // 其他属性值
  68. id: 'ALL'
  69. },
  70. ]
  71. const bindPickerChange = (e) => {
  72. console.log('picker发送选择改变,携带值为', e.detail.value)
  73. index.value = e.detail.value
  74. form.applyType = columns[e.detail.value].id
  75. applyType.value = columns[e.detail.value].label
  76. }
  77. // 验证规则
  78. const rules = {
  79. }
  80. // 验证提示类型(toast要版本为1.3.5才支持)
  81. const errorType = ['message', 'border-bottom', 'toast']
  82. // 设置验证规则
  83. const myForm = ref(null)
  84. onReady(() => {
  85. // myForm.value.setRules(rules)
  86. })
  87. let show = ref(false)
  88. // 打开地区先择器
  89. const showPicker = function () {
  90. show.value = true
  91. }
  92. // 提交
  93. const submit = () => {
  94. if (form.applyType) {
  95. console.log('验证通过', form);
  96. navTo(`/subpackage/orders/apply-ex-goods?orderId=${form.orderId}&applyType=${form.applyType}`) //测试用
  97. } else {
  98. uni.showToast({
  99. title: "请选择申请类型",
  100. icon: "none"
  101. })
  102. }
  103. }
  104. onLoad((option) => {
  105. form.orderId = option.orderId
  106. oldId.value = option.id
  107. console.log(form,option.id);
  108. });
  109. </script>
  110. <style>
  111. page {
  112. width: 100%;
  113. height: 100%;
  114. display: flex;
  115. flex-direction: column;
  116. }
  117. </style>
  118. <style lang="scss" scoped>
  119. .oderPage {
  120. flex: 1;
  121. width: 100%;
  122. .from {
  123. background-color: #fff;
  124. ::v-deep .u-form-item {
  125. padding: 0;
  126. line-height: normal;
  127. .u-form-item__message {
  128. margin-bottom: 12rpx
  129. }
  130. }
  131. .from_item {
  132. display: flex;
  133. flex-wrap: nowrap;
  134. justify-content: space-between;
  135. padding: 0 30rpx;
  136. align-items: center;
  137. height: 80rpx;
  138. ::v-deep .input {
  139. text-align: right;
  140. flex: 1;
  141. background: transparent;
  142. input {
  143. text-align: right;
  144. }
  145. }
  146. }
  147. }
  148. }
  149. .submit {
  150. background:linear-gradient(to right,#01243A,#004576);
  151. width: 670rpx;
  152. height: 80rpx;
  153. color: #fff;
  154. border-radius: 100rpx;
  155. margin: 26px auto;
  156. font-size: 32rpx;
  157. }
  158. .red {
  159. color: red;
  160. margin-right: 10rpx;
  161. }
  162. .content{
  163. font-weight: 400;
  164. font-size: 28rpx;
  165. color: #6C6C6C;
  166. background-color: white;
  167. width: 100%;
  168. margin-top: 20rpx;
  169. padding: 30rpx;
  170. box-sizing: border-box;
  171. image{
  172. width: 8rpx;
  173. height: 26rpx;
  174. margin-right: 10rpx;
  175. }
  176. .title{
  177. font-weight: 400;
  178. font-size: 30rpx;
  179. color: #111111;
  180. }
  181. .title1{
  182. font-weight: 400;
  183. font-size: 28rpx;
  184. color: #111111;
  185. margin: 20rpx 0 30rpx 0;
  186. }
  187. .content-box{
  188. background: #F1F1F1;
  189. padding: 20rpx;
  190. .phone{
  191. margin-bottom: 6rpx;
  192. text:first-child{
  193. margin-right: 6rpx;
  194. }
  195. }
  196. }
  197. }
  198. </style>