From f1befa80c8e88d3c2cd7d2f268c4b8678d2108e8 Mon Sep 17 00:00:00 2001 From: whycq <123456> Date: 星期一, 16 五月 2022 22:11:44 +0800 Subject: [PATCH] # --- pages/basics/demo.vue | 127 ++++++++++++++++++++++-------------------- 1 files changed, 66 insertions(+), 61 deletions(-) diff --git a/pages/basics/demo.vue b/pages/basics/demo.vue index 7db179d..fe66283 100644 --- a/pages/basics/demo.vue +++ b/pages/basics/demo.vue @@ -1,20 +1,70 @@ <template> <view> - <scroll-view> - <view> - <view v-for="(item,index) in data" :key="index" class="demo-list"> - <view><text>璁㈠崟锛�</text><text>{{item.orderNo}}</text></view> - <view>搴斿叆鏁伴噺锛歿{item.anfme}}</view> - <view>宸插叆鏁伴噺锛歿{item.inQty}}</view> - <view>鍟嗗搧缂栫爜锛歿{item.matnr}}</view> - <view>鍟嗗搧鍚嶇О锛歿{item.maktx}}</view> - <view>璁㈠崟鐘舵�侊細{{item.state$}}</view> + + <view class="square-2"> + <view class="square-title"> + <view class="title-sign"><view class="sign"></view></view> + <view class="title-text"><text>娌℃湁鎸夐挳</text></view> + </view> + <view class="square-content"> + <view class="content-input"> + <input type="text" placeholder="鎵爜 / 杈撳叆"> + <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons> </view> </view> - </scroll-view> - <view class="foot flex justify-around"> - <button class="cu-btn bg-blue lg">涓婃灦</button> - <button class="cu-btn bg-blue lg">鎾ら攢涓婃灦</button> + </view> + + <view class="square-2"> + <view class="square-title"> + <view class="title-sign"><view class="sign"></view></view> + <view class="title-text"><text>鍙充晶鎸夐挳</text></view> + </view> + <view class="square-content"> + <view class="content-input-btn"> + <input type="text"> + <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons> + </view> + <view class="content-btn"> + <button class="cu-btn bg-blue pda-btn">鎻愬彇</button> + </view> + </view> + </view> + + <view class="square-3"> + <view class="square-title"> + <view class="title-sign"><view class="sign"></view></view> + <view class="title-text"><text>宸︿晶涓嬫媺</text></view> + </view> + <view class="square-content"> + <view class="content-combox"> + + <uni-combox emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="绔欏彴鍙�"></uni-combox> + </view> + + </view> + <view class="square-content"> + <view class="content-input-combox"> + <input type="text"> + <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons> + </view> + </view> + </view> + + <view class="square-1"> + <view class="square-title"> + <view class="title-sign"><view class="sign"></view></view> + <view class="title-text"><text>鎵樼洏鏉$爜</text></view> + </view> + </view> + + <view class="square-none"> + <view class="v-show">鏆傛棤鏇村鏁版嵁...</view> + </view> + + + <!-- 鍟嗗搧鍒楄〃 --> + <view> + <view></view> </view> </view> </template> @@ -23,58 +73,13 @@ export default { data() { return { - data: [] + staNoList:[], + staNo:'', } }, - mounted() { - const UIP = uni.getStorageSync('UIP'); - this.baseIP = UIP; - const UPORT = uni.getStorageSync('UPORT'); - this.basePORT = UPORT; - this.render() - }, - methods: { - // 琛ㄦ牸鍔犺浇 - render(param) { - let that = this; - if(param) { - that.needData['order_no'] = param; - that.getData(); - } else { - that.getData(); - } - - }, - getData() { - let that = this - uni.request({ - url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/receiveDetl/list/auth", - header:{'token':uni.getStorageSync('token')}, - data: that.needData, - success(res) { - var res = res.data - if (res.code === 200) { - - that.data = res.data.records - console.log(that.data) - } - } - }) - }, - } } </script> <style> - .demo-list { - background-color: #FFFFFF; - box-shadow: 0px 0px 2px #d3d3d3; - } - .foot { - width: 100%; - background-color: #ffffff; - position: fixed; - bottom: 0; - box-shadow: 0px -2px 5px gray; - } + </style> -- Gitblit v1.9.1