From d87aedc99e562cafae6e9706229724846b735963 Mon Sep 17 00:00:00 2001
From: yangjie <812952667@qq.com>
Date: Thu, 2 Sep 2021 16:53:11 +0800
Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=94=AF=E4=BB=98=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/sanshui-modal/index.vue | 4 +-
components/sanshui-payment-password/index.vue | 8 +--
pages.json | 2 +-
pages/order/confirmation.vue | 22 ++++++---
pages/pay/payment/payment.vue | 8 ++-
pages/tabBar/user/user.vue | 49 +++++++++++--------
pages/user/bindingCard/bindingCard.vue | 14 +++++-
pages/user/unionCard/unionCard.vue | 2 +-
8 files changed, 72 insertions(+), 37 deletions(-)
diff --git a/components/sanshui-modal/index.vue b/components/sanshui-modal/index.vue
index 0837d1e..938319b 100644
--- a/components/sanshui-modal/index.vue
+++ b/components/sanshui-modal/index.vue
@@ -94,8 +94,8 @@
box-sizing: border-box;
opacity: 0;
position: fixed;
- top: 44px;
- bottom: 50px;
+ top: 0px;
+ bottom: 0px;
left: 0;
width: 100%;
pointer-events: none;
diff --git a/components/sanshui-payment-password/index.vue b/components/sanshui-payment-password/index.vue
index aa08a71..4a7c33a 100644
--- a/components/sanshui-payment-password/index.vue
+++ b/components/sanshui-payment-password/index.vue
@@ -331,11 +331,11 @@
}
},
checkSafePwd(type) {
- uni.showLoading({
- title: '校验安全密码中'
- });
+ // uni.showLoading({
+ // title: '校验安全密码中'
+ // });
setTimeout(() => {//模拟请求,把这个换成ajax请求哈,或者emit出去 外面去请求,但是建议都集成在这边 省的写一堆重置代码
- uni.hideLoading();
+ // uni.hideLoading();
let response = {//模拟返回
code: 1,
msg: '密码正确'
diff --git a/pages.json b/pages.json
index 9c9184f..a48e375 100644
--- a/pages.json
+++ b/pages.json
@@ -497,7 +497,7 @@
"path" : "pages/user/bindingCard/bindingCard",
"style" :
{
- "navigationBarTitleText": "綁定卡号",
+ "navigationBarTitleText": "绑定定卡号",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white",
diff --git a/pages/order/confirmation.vue b/pages/order/confirmation.vue
index 6d9ff0a..ce44b63 100644
--- a/pages/order/confirmation.vue
+++ b/pages/order/confirmation.vue
@@ -118,7 +118,7 @@
-
-
-
+
+
我的
@@ -209,24 +209,7 @@
// }
],
//操作列表
- czList: [
- // {
- // url: '../../user/bindingCardList/bindingCardList',
- // text: '卡列表',
- // img: '../../../static/img/pas.png'
- // },
- {
- url: '../../user/unionCard/unionCard',
- text: '工会卡',
- img: '../../../static/img/ghk.png'
- },
- {
- url: '../../login/updatePas/resetPas',
- text: '修改密码',
- img: '../../../static/img/pas.png'
- },
-
- ],
+ czList: '',
}
},
//下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 "enablePullDownRefresh": true
@@ -261,6 +244,32 @@
if (app.globalData.userInfo) {
this.findUser();
}
+
+ if (!app.globalData.userInfo.isSetPayPwd) {
+ this.czList = [{
+ url: '../../user/unionCard/unionCard',
+ text: '工会卡',
+ img: '../../../static/img/ghk.png'
+ },
+ {
+ url: '../../login/updatePas/updatePas',
+ text: '设置密码',
+ img: '../../../static/img/pas.png'
+ },
+ ]
+ return;
+ }
+ this.czList = [{
+ url: '../../user/unionCard/unionCard',
+ text: '工会卡',
+ img: '../../../static/img/ghk.png'
+ },
+ {
+ url: '../../login/updatePas/resetPas',
+ text: '修改密码',
+ img: '../../../static/img/pas.png'
+ },
+ ]
},
methods: {
findUser() {
diff --git a/pages/user/bindingCard/bindingCard.vue b/pages/user/bindingCard/bindingCard.vue
index fa315bc..7a8c2a2 100644
--- a/pages/user/bindingCard/bindingCard.vue
+++ b/pages/user/bindingCard/bindingCard.vue
@@ -109,8 +109,8 @@
getHuiLianTongCardByCardNo(params).then(res => {
uni.hideLoading()
if (res.return_code == '000000') {
- this.phoneNumber = res.return_data.userMobile;
- // this.phoneNumber = 15583658692;
+ // this.phoneNumber = res.return_data.userMobile;
+ this.phoneNumber = 15583658692;
this.disStute = true
} else {
uni.showToast({
@@ -153,6 +153,16 @@
key: "balanceCardNo",
data: this.cardNoNumber
})
+ app.globalData.userInfo = res.return_data
+ .object
+ .highUser;
+ app.globalData.token = res.return_data.uniqueCode;
+ uni.setStorage({
+ key: "user",
+ data: res.return_data
+ .object
+ .highUser
+ })
uni.showToast({
title: '绑定成功',
icon: "success",
diff --git a/pages/user/unionCard/unionCard.vue b/pages/user/unionCard/unionCard.vue
index 3c994c3..d93f971 100644
--- a/pages/user/unionCard/unionCard.vue
+++ b/pages/user/unionCard/unionCard.vue
@@ -234,7 +234,7 @@
this.cardConsumeList = [];
uni.hideLoading();
uni.showToast({
- title:'请求超时稍后重试!',
+ title:res.return_msg,
icon:'none',
duration: 2000
})