delivery-method.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="delivery">
  3. <!-- <image src="../../static/imgs/shop/send.png" @click="sendGoods" class="way" v-if="way == 2"></image>
  4. <image src="../../static/imgs/shop/delivery.png" @click="haveDelivery" class="way" v-if="way == 1"></image> -->
  5. <!-- <view v-if="way != 1 && way != 2"> -->
  6. <image src="../../static/send.png" @click="sendGoods" class="way"></image>
  7. <image src="../../static/delivery.png" @click="haveDelivery" class="way"></image>
  8. <!-- </view> -->
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. order_no: '',
  16. // way: '', //1 自提 2物流发货
  17. user_id: '' //用户id
  18. };
  19. },
  20. onLoad(ops) {
  21. this.order_no = ops.order_no;
  22. // this.way = ops.way;
  23. this.user_id = ops.user_id;
  24. },
  25. methods: {
  26. /*物流发货*/
  27. sendGoods() {
  28. uni.navigateTo({
  29. url: '../../../pages/send-goods/send-goods?order_no=' + this.order_no + '&user_id=' + this
  30. .user_id
  31. });
  32. },
  33. haveDelivery(order_no) {
  34. uni.navigateTo({
  35. url: '../interview/interview?order_no=' + this.order_no
  36. });
  37. }
  38. }
  39. };
  40. </script>
  41. <style lang="scss">
  42. .delivery {
  43. width: 690rpx;
  44. margin: 0 auto;
  45. .way {
  46. width: 100%;
  47. height: 400rpx;
  48. margin-top: 30rpx;
  49. }
  50. }
  51. </style>