From e720ce9920a7845b96d146a7f9e6b7dcf810a74e Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期四, 19 五月 2022 13:36:37 +0800
Subject: [PATCH] #
---
pages/basics/demo.vue | 208 ++++++++++++++++++++-------------------------------
1 files changed, 82 insertions(+), 126 deletions(-)
diff --git a/pages/basics/demo.vue b/pages/basics/demo.vue
index 45df114..c7f97d8 100644
--- a/pages/basics/demo.vue
+++ b/pages/basics/demo.vue
@@ -1,24 +1,86 @@
<template>
<view>
- <scroll-view>
- <view class="demo-tab">
- <checkbox-group @change="checkbox">
- <label v-for="(item,index) in data" :key="index" class="demo-list" :class="item.checked">
- <view class="demo-list-left"><checkbox :value="index+''" :checked="item.checked" />
- </view>
- <view class="demo-list-right">
- <view><text style="width: 90rpx;">璁㈠崟 | </text>{{item.orderNo}}<text>搴忓彿锛歿{index+1}}</text></view>
- <view><text>鍟嗗搧缂栫爜锛�</text>{{item.matnr}}</view>
- <view><text>搴斿叆鏁伴噺锛�</text><view class="text-num">{{item.anfme}}</view><text>鍟嗗搧鍚嶇О锛�</text>{{item.maktx}}</view>
- <view><text>宸插叆鏁伴噺锛�</text><view class="text-num">{{item.inQty}}</view><text>璁㈠崟鐘舵�侊細</text>{{item.state$}}</view>
- </view>
- </label>
- </checkbox-group>
+
+ <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>
- </scroll-view>
- <view class="foot flex justify-around">
- <button class="cu-btn bg-yellow lg">涓婃灦</button>
- <button class="cu-btn bg-yellow lg">鎾ら攢涓婃灦</button>
+ <view class="square-content">
+ <view class="content-input">
+ <input type="text" placeholder="鎵爜 / 杈撳叆">
+ <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons>
+ </view>
+ </view>
+ </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 class="square-form">
+ <view class="form-title">
+ <text>缁撴潫鏃堕棿</text>
+ </view>
+ <view class="form-input">
+ <input type="text" placeholder="璇疯緭鍏�...">
+ </view>
+ </view>
+ <!-- 琛ㄥ崟蹇呭~ -->
+ <view class="square-form">
+ <view class="form-title">
+ <text>缁撴潫鏃堕棿</text>
+ </view>
+ <view class="form-input">
+ <input type="text" placeholder="璇疯緭鍏�...">
+ </view>
</view>
</view>
</template>
@@ -27,119 +89,13 @@
export default {
data() {
return {
- data: [],
- background:'unCheck',
- color:''
+ 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
- that.setCheck()
-
- }
- }
- })
- },
- setCheck() {
- for (var i = 0; i < this.data.length; i++) {
- var key = 'checked',
- value = null
- this.data[i][key] = value
- }
- },
- checkbox: function (e) {
- var val = e.detail.value
- for (var i = 0; i < val.length; i++) {
- val[i] = parseInt(val[i])
- this.data[val[i]].checked = 'blue'
-
- }
-
- },
- }
}
</script>
<style>
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #55ffff;
- }
- .demo-tab {
- }
- .demo-list {
-
- border-bottom: 1px solid #d8d8d8;
- height: 160rpx;
- }
- .demo-list:last-child {
- margin-bottom: 99rpx;
- }
- label {
- display: block;
- }
- .demo-list-left {
- display: inline-block;
- width: 100rpx;
- text-align: center;
- height: 150rpx;
- line-height: 150rpx;
- }
- .demo-list-right {
- display: inline-block;
- width: 650rpx;
- float: right;
- }
-
- .demo-list-right text {
- display: inline-block;
- width: 150rpx;
- }
- .text-num {
- display: inline-block;
- width: 90rpx;
- }
-
- .foot {
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- background-color: #ffffff;
- position: fixed;
- bottom: 0;
- border-top: 1rpx solid #d8d8d8;
- }
- checkbox {
- /* transform:scale(0.7) */
- }
</style>
--
Gitblit v1.9.1