orderQuery.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <view class="orderQuery">
  3. <u-toast ref="uToast" />
  4. <!-- 切换 -->
  5. <view class="tap">
  6. <view class="li" @tap=" indexUrl('phoneListInit')">
  7. <image src="../../static/img/tapimg1.png" mode=""></image>
  8. <text>全国靓号</text>
  9. </view>
  10. <view class="li" @tap=" indexUrl('loca')">
  11. <image src="../../static/img/tapimg2.png" mode=""></image>
  12. <text>本地靓号</text>
  13. </view>
  14. <view class="li" @tap="flow()">
  15. <image src="../../static/img/tapimg3.png" mode=""></image>
  16. <text v-if="configAll.system_index_m1==1">流量卡</text>
  17. <text v-if="configAll.system_index_m1==2">号码定制</text>
  18. <text v-if="configAll.system_index_m1==3">特价号</text>
  19. </view>
  20. <view class="li">
  21. <view class="buttonType">
  22. <button open-type="contact">
  23. <image src="../../static/img/tapimg4.png" mode=""></image>
  24. <text>联系客服</text>
  25. </button>
  26. </view>
  27. </view>
  28. <view class="li">
  29. <image src="../../static/img/tapimg5.png" mode=""></image>
  30. <text>订单查询</text>
  31. </view>
  32. </view>
  33. <view class="query">
  34. <u-input v-model="mobile" placeholder-style="font-size:26rpx;" :clearable="false" placeholder="请输入您下单时联系人手机号"/>
  35. <view class="btn" @tap="orderList()">
  36. 查询
  37. </view>
  38. </view>
  39. <!-- 联系客服 -->
  40. <w-Load :wx="wx" v-on:childByValue="childByValue"></w-Load>
  41. </view>
  42. </template>
  43. <script>
  44. import wLoad from "@/components/w-load/w-load.vue"
  45. export default {
  46. data() {
  47. return {
  48. wx:false,
  49. mobile:'',
  50. }
  51. },
  52. components:{
  53. wLoad : wLoad
  54. },
  55. onLoad() {
  56. let _this=this;
  57. },
  58. methods: {
  59. indexUrl(val){
  60. uni.navigateTo({
  61. url: '/pages/index/index?type='+val,
  62. })
  63. },
  64. // 特价号跳转
  65. flow(){
  66. if(this.configAll.system_index_m1==1){
  67. uni.navigateTo({
  68. url: '/pages/flow/flow',
  69. })
  70. }else if(this.configAll.system_index_m1==2){
  71. uni.navigateTo({
  72. url: '/pageA/customized/customized',
  73. })
  74. }else{
  75. uni.navigateTo({
  76. url: '/pages/index/index?system_index_m1='+this.configAll.system_index_m1,
  77. })
  78. }
  79. },
  80. childByValue: function (childValue) {
  81. this.wx = childValue
  82. },
  83. orderList(){
  84. uni.navigateTo({
  85. url: '/pageA/orderList/orderList?mobile='+this.mobile,
  86. })
  87. },
  88. }
  89. }
  90. </script>
  91. <style lang="scss">
  92. .orderQuery{
  93. .query{
  94. position: relative;
  95. width: 680rpx;
  96. margin: 50rpx auto;
  97. border: 1rpx solid $uni-color-BGC;
  98. border-radius: 20rpx;
  99. /deep/ input{
  100. padding-left: 20rpx;
  101. }
  102. .btn{
  103. position: absolute;
  104. right: 0;
  105. top:0;
  106. width: 120rpx;
  107. height: 100%;
  108. background-color: $uni-color-BGC;
  109. text-align: center;
  110. line-height: 70rpx;
  111. border-radius: 20rpx;
  112. font-size: 24rpx;
  113. color: #fff;
  114. z-index: 10;
  115. }
  116. }
  117. .tap{
  118. display: flex;
  119. flex-wrap: wrap;
  120. justify-content: space-between;
  121. margin-top: 24rpx;
  122. .li{
  123. width: 150rpx;
  124. text-align: center;
  125. image{
  126. width: 82rpx;
  127. height: 82rpx;
  128. }
  129. text{
  130. display: inline-block;
  131. width: 100%;
  132. font-size: 24rpx;
  133. color: #716F6F;
  134. }
  135. }
  136. }
  137. }
  138. </style>