From dc512a5c085b6735b0895830109c8b3e5295bd51 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期一, 20 三月 2023 14:25:31 +0800 Subject: [PATCH] # --- /dev/null | 72 ------------------ pages/mat/matSelected.vue | 80 ++++++++++++++++++++ pages.json | 8 + pages/mat/matQuery.vue | 64 ++++++++++++++++ 4 files changed, 151 insertions(+), 73 deletions(-) diff --git a/pages.json b/pages.json index 9409f2f..f7297df 100644 --- a/pages.json +++ b/pages.json @@ -1,7 +1,13 @@ { "pages": [ //pages鏁扮粍涓涓�椤硅〃绀哄簲鐢ㄥ惎鍔ㄩ〉锛屽弬鑰冿細https://uniapp.dcloud.io/collocation/pages { - "path": "pages/mat/matSelect", + "path": "pages/mat/matSelected", + "style": { + "navigationBarTitleText": "鐗╂枡" + } + }, + { + "path": "pages/mat/matQuery", "style": { "navigationBarTitleText": "鐗╂枡" } diff --git a/pages/mat/matQuery.vue b/pages/mat/matQuery.vue index 02409e3..3d79164 100644 --- a/pages/mat/matQuery.vue +++ b/pages/mat/matQuery.vue @@ -1,8 +1,72 @@ <template> + <view> + <!-- 鎼滅储妗� --> + <view class="search-bar"> + <uni-search-bar placeholder=" 鎵爜 / 杈撳叆" bgColor="#EEEEEE" @confirm="search" /> + </view> + <scroll-view> + <view class="tag-list" v-for="(item,i) in tagList" :key="i"> + <view class="tag"> + <view style="display: flex;"> + <view class="wms-tag" :style="baColor" >鍒嗙被</view> + </view> + </view> + <view class="tag-item">{{desc}} {{item.name}}</view> + </view> + </scroll-view> + </view> </template> <script> + export default { + data() { + return { + tagList: [{name:"whhhsupp"},{},{}], + matList: [], + tag: '鍒嗙被', + baColor: "background-color: #0081ff;", + desc: '缂栫爜:' + } + }, + onLoad() { + }, + methods: { + search() { + } + } + } </script> <style> + @import url('../../static/css/wms.css/wms.css'); + .tag-list { + width: 94%; + min-height: 160rpx; + margin: 10px auto; + background-color: #FFF; + border-radius: 5px; + box-shadow: 0 5upx 20upx rgba(0, 0, 0, 0.2); + } + .tag { + display: flex; + flex-direction: column; + min-height: 80rpx; + border-bottom: 1px solid #e2e2e2; + } + .wms-tag { + min-width: 60rpx; + margin-left: 50rpx; + margin-top: 30rpx; + color: #FFF; + font-size: 14px; + padding: 4rpx 12rpx; + } + .tag-item { + width: 100%; + min-height: 60rpx; + line-height: 2; + padding-left: 50rpx; + color: #606266; + font-size: 14px; + } </style> \ No newline at end of file diff --git a/pages/mat/matSelect.vue b/pages/mat/matSelect.vue deleted file mode 100644 index 3d79164..0000000 --- a/pages/mat/matSelect.vue +++ /dev/null @@ -1,72 +0,0 @@ -<template> - <view> - <!-- 鎼滅储妗� --> - <view class="search-bar"> - <uni-search-bar placeholder=" 鎵爜 / 杈撳叆" bgColor="#EEEEEE" @confirm="search" /> - </view> - <scroll-view> - <view class="tag-list" v-for="(item,i) in tagList" :key="i"> - <view class="tag"> - <view style="display: flex;"> - <view class="wms-tag" :style="baColor" >鍒嗙被</view> - </view> - </view> - <view class="tag-item">{{desc}} {{item.name}}</view> - </view> - </scroll-view> - </view> -</template> - -<script> - export default { - data() { - return { - tagList: [{name:"whhhsupp"},{},{}], - matList: [], - tag: '鍒嗙被', - baColor: "background-color: #0081ff;", - desc: '缂栫爜:' - } - }, - onLoad() { - }, - methods: { - search() { - } - } - } -</script> - -<style> - @import url('../../static/css/wms.css/wms.css'); - .tag-list { - width: 94%; - min-height: 160rpx; - margin: 10px auto; - background-color: #FFF; - border-radius: 5px; - box-shadow: 0 5upx 20upx rgba(0, 0, 0, 0.2); - } - .tag { - display: flex; - flex-direction: column; - min-height: 80rpx; - border-bottom: 1px solid #e2e2e2; - } - .wms-tag { - min-width: 60rpx; - margin-left: 50rpx; - margin-top: 30rpx; - color: #FFF; - font-size: 14px; - padding: 4rpx 12rpx; - } - .tag-item { - width: 100%; - min-height: 60rpx; - line-height: 2; - padding-left: 50rpx; - color: #606266; - font-size: 14px; - } -</style> \ No newline at end of file diff --git a/pages/mat/matSelected.vue b/pages/mat/matSelected.vue new file mode 100644 index 0000000..89e24cf --- /dev/null +++ b/pages/mat/matSelected.vue @@ -0,0 +1,80 @@ +<template> + <view> + <view class="form"> + <view class="form-item"> + <view class="form-item-desc"><text>鍟嗗搧缂栫爜</text></view> + <view class="form-item-content"><text>{{4561234}}</text></view> + </view> + <view class="form-item"> + <view class="form-item-desc"><text>鍟嗗搧鍚嶇О</text></view> + <view class="form-item-content"><text>{{"45681asda"}}</text></view> + </view> + <view class="form-item"> + <view class="form-item-desc"><text>瑙勬牸</text></view> + <view class="form-item-content"><text>{{"45681asda"}}</text></view> + </view> + <view class="form-item"> + <view class="form-item-desc"><text>鎵瑰彿</text></view> + <view class="form-item-content"> + <view class="form-input"> + <input type="text"> + </view> + </view> + </view> + <view class="form-item"> + <view class="form-item-desc"><text>鏁伴噺</text></view> + <view class="form-item-content"> + <uni-number-box :max="99999999" :step='1' color="#747474" /> + </view> + </view> + </view> + <!-- 搴曢儴鎿嶄綔鎸夐挳 --> + <view class="buttom"> + <button size="mini" type="primary">鎻愬彇</button> + </view> + </view> +</template> + +<script> +</script> + +<style> + @import url('../../static/css/wms.css/wms.css'); + .form { + min-height: 80rpx; + background-color: #FFF; + margin-top: 10px; + color: #606266; + box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.2) ; + } + .form-item { + height: 100rpx; + line-height: 100rpx; + border-bottom: 1px solid #DCDFE6; + margin-left: 40rpx; + display: flex; + align-items: center; + } + .form-item-desc { + width: 30%; + } + .form-item-content { + width: 60%; + } + + .form-item:last-child { + border: none; + } + .form-input { + display: flex; + align-items: center; + width: 50vw; + height: 50rpx; + padding: 2px 5px; + border-bottom: 1px solid #E4E7ED; + border-radius: 5rpx; + } + .form-input input{ + color: #606266; + } +</style> \ No newline at end of file -- Gitblit v1.9.1