|  |  |  | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <view class="container"> | 
|---|
|  |  |  | <view class="code"> | 
|---|
|  |  |  | <uni-search-bar :focus="searchValueFocus" v-model="searchValue"  @input="searchValueInput()" | 
|---|
|  |  |  | <uni-search-bar :focus="searchValueFocus" v-model="searchValue"  @input="searchValueInput2()" | 
|---|
|  |  |  | maxlength="500" ancel="cancel" @clear="clear" placeholder="输入 / 扫描 订单号"> | 
|---|
|  |  |  | </uni-search-bar> | 
|---|
|  |  |  | <view class="code-title"> | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | searchValueInput2() { | 
|---|
|  |  |  | let _this = this | 
|---|
|  |  |  | uni.request({ | 
|---|
|  |  |  | url: `${_this.baseUrl}/order/head/page/auth`, | 
|---|
|  |  |  | header: {'token': uni.getStorageSync('token')}, | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | curr: 1, | 
|---|
|  |  |  | limit: 30, | 
|---|
|  |  |  | order_no: _this.searchValue | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | success(res) { | 
|---|
|  |  |  | res = res.data | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | _this.dataList = res.data.records | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | searchValueInput() { | 
|---|
|  |  |  | let count = 0 | 
|---|
|  |  |  | let sign = 0 | 
|---|
|  |  |  | 
|---|
|  |  |  | header: {'token': uni.getStorageSync('token')}, | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | curr: 1, | 
|---|
|  |  |  | limit: 1000, | 
|---|
|  |  |  | limit: 30, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | success(res) { | 
|---|
|  |  |  | res = res.data | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | _this.dataList = res.data | 
|---|
|  |  |  | _this.oldDataList = [..._this.dataList] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|