Commit 8d52613a authored by Morson's avatar Morson

页面样式微调

parent 0e74b5fe
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</view> </view>
</view> </view>
<view class="bottom-view"> <view class="bottom-view">
<button class="btn, bottom-btn" @click="submitForm" :loading="submiting" :disabled="disabledSubmit"><text class="button-text">确定</text></button> <button class="btn, bottom-btn" @click="$u.throttle(submitForm, 500)" :loading="submiting" :disabled="disabledSubmit"><text class="button-text">确定</text></button>
</view> </view>
</view> </view>
</template> </template>
...@@ -342,6 +342,7 @@ export default { ...@@ -342,6 +342,7 @@ export default {
self.submiting = false; self.submiting = false;
if(res && res.code == 200) { if(res && res.code == 200) {
self.$u.route({ self.$u.route({
type: 'redirect',
url: 'pages/order/detail', url: 'pages/order/detail',
params: { params: {
id: self.orderId id: self.orderId
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<u-search <u-search
v-model="search.keyword" v-model="search.keyword"
bg-color="#FFFFFF" bg-color="#FFFFFF"
placeholder="搜订单" placeholder="搜索:工单号·用户姓名·手机号·地址"
search-icon-color="#999999" search-icon-color="#999999"
color="#333333" color="#333333"
placeholder-color="#999999" placeholder-color="#999999"
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
'font-weight': 500, 'font-weight': 500,
'color': '#2272FF' 'color': '#2272FF'
}" }"
:focus="true"
@search="searchOrder" @search="searchOrder"
@custom="searchOrder" @custom="searchOrder"
></u-search> ></u-search>
...@@ -77,8 +78,12 @@ ...@@ -77,8 +78,12 @@
}, },
// 页面数据 // 页面数据
getOrderList() { getOrderList() {
let self = this;
if(!self.search.keyword) {
return false
}
// 状态处理 // 状态处理
var self = this;
self.search.pageNumber += 1 self.search.pageNumber += 1
self.$u.api.listOrder(self.search).then((res) => { self.$u.api.listOrder(self.search).then((res) => {
if (res.code == 200) { if (res.code == 200) {
......
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