From 174d44ef6c2ca7c9b30e1421ef9a8431a439b8c3 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期六, 13 八月 2022 10:08:50 +0800 Subject: [PATCH] # --- pages.json | 9 + pages/basics/test.vue | 271 ++++++++++++++++++++++++++++++++++++++ pages/index/index.vue | 88 ++++++------ 3 files changed, 324 insertions(+), 44 deletions(-) diff --git a/pages.json b/pages.json index ac12afa..4eb9f32 100644 --- a/pages.json +++ b/pages.json @@ -108,6 +108,15 @@ "enablePullDownRefresh": false } + }, + { + "path" : "pages/basics/test", + "style" : + { + "navigationBarTitleText": "娴嬭瘯", + "enablePullDownRefresh": false + + } } diff --git a/pages/basics/test.vue b/pages/basics/test.vue new file mode 100644 index 0000000..53b7476 --- /dev/null +++ b/pages/basics/test.vue @@ -0,0 +1,271 @@ +<template> + <view > + <scroll-view scroll-y catch:touchmove="touchmove"> + <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 readonly="value" v-model="locNo" type="text" placeholder="鎵爜 / 杈撳叆" > + <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></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"> + <input v-model="userId" type="text" placeholder="鎵爜 / 杈撳叆"> + <uni-icons type="closeempty" size="20" color="#dadada" @click="foucss()"></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>PACK鏉$爜</text></view> + </view> + <view class="square-content"> + <view class="content-input"> + <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆"> + <uni-icons type="closeempty" size="20" color="#dadada" @click="foucss()"></uni-icons> + </view> + </view> + </view> + </scroll-view> + <view class="footer flex justify-around"> + <view> + <button class="cu-btn lg" @click="resst()">閲嶇疆</button> + </view> + <view> + <button class="cu-btn lg pakin-btn bg-blue" @click="confirm()">纭</button> + </view> + </view> + <view> + <!-- 鎻愮ず淇℃伅寮圭獥 --> + <uni-popup ref="message" type="message"> + <uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message> + </uni-popup> + </view> + </view> +</template> + +<script> + import permision from "@/common/permission.js" + export default { + data() { + return { + commonUrl:null, + locNo: '', + userId: '', + barcode: '', + barcodeFocus:true, + focus:false, + type: 'center', + msgType: 'success', + messageText: '杩欐槸涓�鏉℃垚鍔熸彁绀�', + } + }, + mounted(){ + const UIP = uni.getStorageSync('UIP'); + this.baseIP = UIP; + const UPORT = uni.getStorageSync('UPORT'); + this.basePORT = UPORT + const PROJ = uni.getStorageSync('UPROJ'); + this.baseUrl = PROJ + this.getUrl() + }, + onLoad() { + // #ifdef APP + setInterval(()=>{ + uni.hideKeyboard() + },20) + // #endif + }, + methods: { + // 鑾峰彇url + getUrl() { + this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl + }, + confirm() { + let that = this + var testMast = {locNo:that.locNo, + userId:that.userId, + barcode:that.barcode} + uni.request({ + url: that.commonUrl + '/test/startUp/auth', + data: { + testMast:testMast, + }, + header: { + 'token':uni.getStorageSync('token') + }, + method: 'GET', + success(result) { + console.log(result) + } + }) + }, + + change(e) { + console.log('褰撳墠妯″紡锛�' + e.type + ',鐘舵�侊細' + e.show); + }, + + } + } +</script> + + + +<style> + /* @import "../../colorui/main.css"; + @import "../../colorui/icon.css"; */ + /* + + */ + .pop-btn { + position: absolute; + width: 100%; + bottom: 20rpx; + } + .pak-seach-box { + background-color: #FFFFFF; + margin: 15rpx 15rpx 0rpx 15rpx; + width: 96%; + height: 150rpx; + border-radius: 20rpx; + } + .box-top{ + display: block; + height: 60rpx; + width: 720rpx; + } + .color-block-blue { + background-color: #1E9FFF; + display: inline-block; + float: left; + margin: 15rpx 15rpx 0 15rpx; + width: 12rpx; + height: 40rpx; + border: 5rpx solid #1E9FFF; + border-radius: 20rpx; + } + .title { + display: inline-block; + float: left; + font-size: 34rpx; + font-weight: 700; + height: 50rpx; + line-height: 50rpx; + margin-top: 10rpx; + } + .box-buttom { + display: inline-block; + background-color: #ededed; + width: 65%; + height: 60rpx; + border-radius: 20rpx; + margin: 15rpx 15rpx 0rpx 15rpx; + } + .box-buttom input { + width: 75%; + float: left; + margin: 8rpx 10rpx 0rpx 25rpx; + } + .box-buttom .search-icon{ + width: 60rpx; + height: 60rpx; + float: right; + margin-top: 5rpx; + margin-right: 10rpx; + } + /* .pak-seach-box input { + background-color: #ededed; + border: 1rpx solid #d8d8d8; + display: inline-block; + border-radius: 20rpx; + float: left; + width: 70%; + height: 60rpx; + line-height: 60rpx; + margin: 15rpx 15rpx 0rpx 15rpx; + padding-left: 20rpx; + } */ + .pak-seach-box button { + background-color: #1E9FFF; + color: #ffffff; + display: inline-block; + float: right; + width: 180rpx; + height: 60rpx; + margin: 15rpx 15rpx 0rpx 15rpx; + line-height: 60rpx; + } + .pakin-btn { + background-color: #1E9FFF; + } + .pak-data-box { + background-color: #F1F1F1; + margin: 15rpx 15rpx 0rpx 15rpx; + width: 96%; + height: 70rpx; + border-radius: 20rpx; + } + .pak-data-box .box-top { + background-color: #FFFFFF; + height: 70rpx; + border-radius: 20rpx 20rpx 20rpx 20rpx; + } + .bg-false { + background-color: #FFFFFF; + } + .bg-true { + background-color: #ebebeb; + } + .data-list { + border-bottom: 1px solid #d8d8d8; + height: 130rpx; + margin: 15rpx; + border-radius: 20rpx; + } + .data-list:first-child { + margin-top: 20rpx; + } + .data-list:last-child { + margin-bottom: 200rpx; + } + /* .data-list-left { + display: inline-block; + float: left; + text-align: center; + width: 100rpx; + height: 180rpx; + line-height: 180rpx; + } */ + .data-list-left { + display: inline-block; + float: left; + margin-left: 6%; + height: 130rpx; + /* line-height: 100rpx; */ + color: #676767; + } + .matnr { + font-size: 14px; + font-weight: 700; + /* padding-top: 15rpx; */ + padding-top: 15rpx; + } + .data-list-right { + display: inline-block; + float: right; + height: 130rpx; + line-height: 130rpx; + margin-right: 10%; + } +</style> \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index d84e139..ae2af6b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -24,53 +24,53 @@ return { elements:[ { - title: '涓嬬嚎鎵撳寘', - name: 'offline', + title: '娴嬭瘯', + name: 'test', color: 'blue', cuIcon: 'forward' }, - { - title: '濮斿鍏ュ簱', - name: 'outPakin', - color: 'blue', - cuIcon: 'copy' - }, - { - title: '鍑哄簱纭', - name: 'checkout', - color: 'blue', - cuIcon: 'edit' - }, - { - title: '娈嬫鍝�', - name: 'bad', - color: 'blue', - cuIcon: 'delete' - }, - { - title: '搴撲綅鐩樼偣', - name: 'stockCheck', - color: 'blue', - cuIcon: 'safe' - }, - { - title: '缁勬墭鍏ュ簱', - name: 'pakin', - color: 'grey', - cuIcon: 'copy' - }, - { - title: '璁㈠崟缁勬墭', - name: 'order', - color: 'grey', - cuIcon: 'goods' - }, - { - title: '閫�鍑虹櫥褰�', - name: 'logOut', - color: 'grey', - cuIcon: 'exit' - }, + // { + // title: '濮斿鍏ュ簱', + // name: 'outPakin', + // color: 'blue', + // cuIcon: 'copy' + // }, + // { + // title: '鍑哄簱纭', + // name: 'checkout', + // color: 'blue', + // cuIcon: 'edit' + // }, + // { + // title: '娈嬫鍝�', + // name: 'bad', + // color: 'blue', + // cuIcon: 'delete' + // }, + // { + // title: '搴撲綅鐩樼偣', + // name: 'stockCheck', + // color: 'blue', + // cuIcon: 'safe' + // }, + // { + // title: '缁勬墭鍏ュ簱', + // name: 'pakin', + // color: 'grey', + // cuIcon: 'copy' + // }, + // { + // title: '璁㈠崟缁勬墭', + // name: 'order', + // color: 'grey', + // cuIcon: 'goods' + // }, + // { + // title: '閫�鍑虹櫥褰�', + // name: 'logOut', + // color: 'grey', + // cuIcon: 'exit' + // }, ] } -- Gitblit v1.9.1