index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view style="padding-top: 30rpx;">
  3. <view v-if="showScan" class="scanBox" @click="getCode">
  4. <image src="../../static/fangwei/icon.png" mode="widthFix" style="width: 140rpx;"></image>
  5. <view class="scanBox_middle">
  6. <text class="title">扫码发货</text>
  7. <!-- <text>通过扫码发货可以更改产品防伪码上的客户信息</text> -->
  8. <text>给客户发货之前,先扫描每套货上的二维码(防伪码),这样客户收到货之后二维码上就是客户的信息。</text>
  9. <!-- <text>简单·快捷·一键发货</text> -->
  10. </view>
  11. <image src="../../static/new_stock/arrow.png" mode="widthFix" style="width:48rpx;"></image>
  12. </view>
  13. <view v-else class="tipd">
  14. <image src="../../static/default/no_record.png" mode="widthFix" style="width: 70%;"></image>
  15. <view class="title">
  16. 抱歉,您没有权限访问
  17. </view>
  18. </view>
  19. <view v-if="showScan" class="hint_box flexC" @click="howSend">
  20. <image src="../../static/icon/query.png"></image>
  21. <text>如何扫码发货</text>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. showScan: false,
  30. data: []
  31. }
  32. },
  33. onLoad(ops) {
  34. },
  35. onShow() {
  36. const userInfo = this.$store.state.userinfo
  37. if (userInfo.user_type == 3) {
  38. this.showScan = true
  39. } else {
  40. this.showScan = false
  41. }
  42. },
  43. methods: {
  44. getCode() {
  45. uni.navigateTo({
  46. url: './belong'
  47. })
  48. },
  49. //跳转到如何扫码发货
  50. howSend() {
  51. uni.navigateTo({
  52. url: '../howSend/howSend'
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. page {
  60. background-color: #fff;
  61. }
  62. .tipd {
  63. width: 100%;
  64. height: 400rpx;
  65. position: absolute;
  66. top: 20%;
  67. justify-content: center;
  68. display: flex;
  69. align-items: center;
  70. flex-direction: column;
  71. .title {
  72. margin-top: 25rpx;
  73. font-size: 30rpx;
  74. font-weight: bold;
  75. color: #555555;
  76. }
  77. }
  78. .scanBox {
  79. // margin: 0 24rpx;
  80. width: 702rpx;
  81. height: 374rpx;
  82. margin: 0 auto;
  83. background-image: url(../../static/fangwei/bg1.png);
  84. background-size: 100% 100%;
  85. display: flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. padding: 0 24rpx;
  89. // padding: 0 48rpx 0 24rpx;
  90. &_middle {
  91. width: 70%;
  92. display: flex;
  93. flex-direction: column;
  94. margin: 0 10rpx;
  95. text {
  96. color: #FFFFFF;
  97. font-size: 28rpx;
  98. }
  99. .title {
  100. font-size: 44rpx;
  101. font-weight: bold;
  102. margin-bottom: 10rpx;
  103. }
  104. }
  105. }
  106. .hint_box {
  107. margin-top: 30rpx;
  108. image {
  109. width: 40rpx;
  110. height: 40rpx;
  111. vertical-align: middle;
  112. margin-right: 10rpx;
  113. }
  114. text {
  115. font-size: 32rpx;
  116. color: $base-color;
  117. font-weight: bold;
  118. }
  119. }
  120. </style>