From 6d4fa64e31b29f6d49ed6a495a553661eacfbd18 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期三, 21 九月 2022 16:06:12 +0800 Subject: [PATCH] # --- pages/basics/pickOffLines.vue | 40 ++++++++++++++++++++++++++++++---------- 1 files changed, 30 insertions(+), 10 deletions(-) diff --git a/pages/basics/pickOffLines.vue b/pages/basics/pickOffLines.vue index e2b9879..e47d52a 100644 --- a/pages/basics/pickOffLines.vue +++ b/pages/basics/pickOffLines.vue @@ -39,13 +39,13 @@ <view class="button"> <button :type="item.btnType" style="width: 150rpx;font-size: 24rpx;height: 60rpx;line-height:60rpx;margin-left: 170rpx;" - @click="open">{{item.btnText}}</button> + @click="open(index)">{{item.btnText}}</button> </view> </view> </view> <!-- 寮瑰嚭灞� --> - <view style="position: absolute;width: 100%;min-height: 100%;background-color: rgba(0, 0, 0, 0.5); + <view style="position: fixed;width: 100%;min-height: 100%;background-color: rgba(0, 0, 0, 0.5); z-index: 999;left: 0;top: 0;margin: 0;padding: 0;display: flex;flex-direction: column;align-items:center; justify-content:center" v-if="popShow"> <view style="background-color: #fff;width: 90%;min-height: 200rpx;border-radius: 14rpx;"> @@ -65,9 +65,9 @@ </view> <view class="column" style="border-top: 1rpx solid #ccc;height: 100rpx;line-height: 100rpx;"> <view style="width: 50%;border-right: 1rpx solid #ccc;text-align: center;letter-spacing: 8px; - font-weight: 700;">鍙栨秷</view> + font-weight: 700;" @click="close">鍙栨秷</view> <view style="width: 50%;text-align: center;letter-spacing: 8px;color: #409EFF; - font-weight: 700;">纭</view> + font-weight: 700;" @click="confirm()">纭</view> </view> </view> </view> @@ -99,7 +99,9 @@ ], btnType:"primary", // default btnText: '宸插嚭搴�', // 鏈‘璁� - popShow:false + popShow:false, + index:0, + } @@ -141,15 +143,33 @@ records[i]['btnText'] = '鏈‘璁�' } that.matList = res.data.records - - + } else if (res.code === 403) { + uni.showToast({title: res.msg, icon: "none", position: 'top'}) + setTimeout(() => { + uni.reLaunch({ + url: '../login/login' + }); + }, 1000); + } else { + uni.showToast({title: res.msg, icon: "none",position: 'top'}) } } }) }, - open() { - - } + open(index) { + this.popShow = true + this.index = index + }, + close() { + this.popShow = false + }, + confirm() { + this.popShow = false + this.matList[this.index].btnText= '宸插嚭搴�' + this.matList[this.index].btnType = 'primary' + }, + + } } </script> -- Gitblit v1.9.1