| | |
| | | <!-- <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> |
| | | |
| | |
| | | data() { |
| | | return { |
| | | csmtrList: [], |
| | | csmtrs: [], |
| | | last_id: '', |
| | | user: { |
| | | username: '', |
| | |
| | | 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 |
| | |
| | | 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> |