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

取号限流处理

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