Commit ca1729ab authored by 潘永坪's avatar 潘永坪

取号限流处理

parent 874536be
......@@ -5,7 +5,6 @@ if(process.env.NODE_ENV === 'development'){//开发环境
}else{
baseUrl= 'https://manager.pangdly.com/'
}
const request = (url = '', data = {},showLoad) => {
data.reqId = new Date().getTime() //获取时间戳
let show=showLoad||true
......
......@@ -328,7 +328,10 @@ export default {
//清空之前选中的数据以及状态
this.detailData=''
this.chooseProduct=[]
if(this.$refs.detail){
//解决支付宝小程序报错问题
this.$refs.detail.showPop = false
}
let token = uni.getStorageSync('token')
if (token) {
uni.getLocation({
......
......@@ -5,7 +5,7 @@
<input placeholder="请输入购票预留手机号/身份证号" v-model="search" />
</view>
<view class="query">
<text class="button" @click="query()">查询订单</text>
<text class="button" @click="clickQuery()">查询订单</text>
</view>
</view>
......@@ -43,8 +43,12 @@ export default {
this.merchantCode=this.$commonjs.getKey(option,'merchantCode')
},
methods: {
//---点击查询
clickQuery(){
uni.$u.throttle(this.queryList,3000)
},
//---查询订单
query(){
queryList(){
if(!this.search){
uni.showToast({
title:'请输入手机号或者身份证号',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment