#
whycq
2023-10-24 57da15d6ce587fa0abe8d140f531b5ec798a12a4
#
1个文件已修改
100 ■■■■■ 已修改文件
pages/business/cstmrInfo/cstmrInfo.vue 100 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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>