From 57da15d6ce587fa0abe8d140f531b5ec798a12a4 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 24 十月 2023 16:44:25 +0800 Subject: [PATCH] # --- pages/business/cstmrInfo/cstmrInfo.vue | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 100 insertions(+), 0 deletions(-) diff --git a/pages/business/cstmrInfo/cstmrInfo.vue b/pages/business/cstmrInfo/cstmrInfo.vue index 629e143..db20f13 100644 --- a/pages/business/cstmrInfo/cstmrInfo.vue +++ b/pages/business/cstmrInfo/cstmrInfo.vue @@ -38,6 +38,31 @@ <!-- <uni-load-more :status="status" :icon-size="16" :content-text="contentText" /> --> <u-empty v-if="true" icon="../../../static/image/emptyList.png" v-show="!csmtrList"/> + <view class="fxbtn"> + <uni-icons type="plusempty" color="#fff" @click="add()" ></uni-icons> + </view> + + + <!-- 鎺ュ彇绐楀彛 --> + <view> + <uni-popup ref="inputDialog" type="dialog"> + <view class="popup"> + <!-- 鏍囬 --> + <view class="title">鎺ュ彇</view> + <scroll-view scroll-y="true" style="height: 23vh;touch-action: none;"> + <view style="display: flex;justify-content: center;margin: 8px;align-items: center;" v-for="item in csmtrs"> + <checkbox style="flex: 1;display: flex;justify-content: flex-end;"></checkbox> + <view style="flex: 4;">{{item.name}}</view> + </view> + </scroll-view> + <view class="btn"> + <view class="btn-left" @click="close">鍙栨秷</view> + <view class="btn-right" @click="confirm">纭</view> + </view> + + </view> + </uni-popup> + </view> </view> </template> @@ -47,6 +72,7 @@ data() { return { csmtrList: [], + csmtrs: [], last_id: '', user: { username: '', @@ -100,6 +126,28 @@ open() { this.show = true console.log(this.columns); + }, + add() { + let _this = this + uni.request({ + url: `${_this.baseUrl}/cstmr2/all/get/kv`, + header: {'token' : uni.getStorageSync('token')}, + method: 'POST', + success(res) { + res = res.data + if (res.data) { + _this.csmtrs = res.data + } + console.log(res); + } + }) + this.$refs.inputDialog.open() + }, + close() { + this.$refs.inputDialog.close() + }, + confirm() { + this.$refs.inputDialog.close() }, getUserTree() { let _this = this @@ -274,4 +322,56 @@ font-weight: 900; color: #303133; } */ + .fxbtn { + position: fixed; + bottom: 50px; + right: 10px; + width: 40px; + height: 40px; + background-color: #46a7ff; + color: #FFF; + display: flex; + align-items: center; + justify-content: center; + border-radius: 50%; + + } + .popup { + width: 80vw; + min-height: 100rpx; + background-color: #FFF; + border-radius: 25rpx; + } + .title { + height: 100rpx; + line-height: 100rpx; + width: 100%; + color: #606266; + text-align: center; + font-size: 16px; + } + .btn { + display: flex; + height: 90rpx; + margin-top: 20rpx; + border-top: 1px solid #DCDFE6; + justify-content: center; + align-items: center; + } + .btn-left { + display: flex; + flex: 1; + height: 100%; + justify-content: center; + align-items: center; + color: #606266; + border-right: 1px solid #DCDFE6; + } + .btn-right { + display: flex; + flex: 1; + justify-content: center; + align-items: center; + color: #409EFF; + } </style> -- Gitblit v1.9.1