From b125c51758f343f8f01c1094ef4c4250dee1cb8e Mon Sep 17 00:00:00 2001
From: Sliverber <2622874537@qq.com>
Date: Wed, 13 Mar 2024 14:47:41 +0800
Subject: [PATCH] 111
---
App.vue | 6 +-
api/api.js | 14 +-
components/payments/index.vue | 1 +
components/productWindow/index.vue | 3 +-
config/app.js | 4 +-
main.js | 8 +-
package-lock.json | 466 +-----
package.json | 6 +
pages.json | 31 +
pages/goods_details/index.vue | 8 +-
pages/index/index.vue | 95 +-
pages/user/index.vue | 61 +-
pages/users/alipay_returns/alipay_return.vue | 12 +-
pages/users/faceBack/index.vue | 49 +
pages/users/login/index.vue | 3 +-
pages/users/order_improve/index.vue | 1491 ++++++++++++++++++
pages/users/order_improves/index.vue | 124 +-
pages/users/repayment/index.vue | 19 +-
uni.scss | 2 +-
utils/request.js | 3 +-
vue.config.js | 3 +-
21 files changed, 1907 insertions(+), 502 deletions(-)
create mode 100644 package.json
create mode 100644 pages/users/faceBack/index.vue
create mode 100644 pages/users/order_improve/index.vue
diff --git a/App.vue b/App.vue
index fe76236..948648e 100644
--- a/App.vue
+++ b/App.vue
@@ -1,3 +1,7 @@
+
+
+
\ No newline at end of file
diff --git a/pages/users/login/index.vue b/pages/users/login/index.vue
index e847e0e..409c709 100644
--- a/pages/users/login/index.vue
+++ b/pages/users/login/index.vue
@@ -318,11 +318,12 @@
if(abb!=undefined){
channelId=parseInt(abb);
}
+ console.log(channelId,'channelIdchannelId');
loginMobile({
phone: that.account,
captcha: that.captcha,
spread_spid: that.$Cache.get("spread"),
- channelId:channelId,
+ channel_id:channelId,
})
diff --git a/pages/users/order_improve/index.vue b/pages/users/order_improve/index.vue
new file mode 100644
index 0000000..2af89fd
--- /dev/null
+++ b/pages/users/order_improve/index.vue
@@ -0,0 +1,1491 @@
+
+
+
+
+
+
+
+
+
+
+
+ 拍摄身份证要求:
+
+
+ 大陆公民持有的本人有效二代身份证;
+ 拍摄时确保身份证 边框完整,字迹清晰,亮度均匀
+
+
+
+
+ 标准
+
+
+
+ 边框缺失
+
+
+
+ 照片模糊
+
+
+
+ 闪光强烈
+
+
+
+
+
+ 请拍摄身份证正面与反面照片
+
+
+
+
+
+
+ 上传身份证人像面
+
+
+
+
+
+
+ 上传身份证国徽面
+
+
+
+
+
+
+ 请确认你的身份信息
+
+
+
+
+ 姓名
+
+
+ 待自动录入
+
+
+ {{realName}}
+
+
+
+
+ 身份证号
+
+
+ 待自动录入
+
+
+ {{idcard}}
+
+
+
+
+ 有效期至
+
+
+ 待自动录入
+
+
+ {{timelimit}}
+
+
+
+
+
+
+ 下一步
+
+
+
+
+
+
+ 拍摄或上传身份证原件照片,请确保照片的真实性!
+
+
+
+
+ 请拍摄手持身份证照片
+
+
+
+
+
+ 拍摄手持身份证要求:
+
+
+
+ 拍摄时,手持本人身份证,将持证的手臂和上半身整个拍进照片,头部和肩部要端正,头发不得遮挡脸部或造成阴影, 要露出五官;
+ 确保身份证上的 所有信息清晰可见、完整(没有被遮挡或者被手指捏住)
+
+
+ 如下方例图所示
+
+
+
+
+
+
+
+
+
+
+ 下一步
+
+
+
+
+
+
+
+ 收货邮箱
+
+
+
+
+
+
+
+ 手机号
+
+
+
+
+
+
+
+ 为保障您的权益,订单与物流信息将发送至您的邮箱
+
+
+
+
+
+
+ 工作单位
+
+
+
+
+
+
+
+ 工资
+
+
+
+
+
+
+
+ 五险一金
+
+
+
+
+
+
+
+
+
+
+ 紧急联系人
+
+
+
+
+
+
+
+ 联系人姓名
+
+
+
+
+
+
+
+ 联系人手机号
+
+
+
+
+
+
+
+
+
+
+ 紧急联系人
+
+
+
+
+
+
+
+ 联系人姓名
+
+
+
+
+
+
+
+ 联系人手机号
+
+
+
+
+
+
+
+
+
+
+
+ 紧急联系人
+
+
+
+
+
+
+
+ 联系人姓名
+
+
+
+
+
+
+
+ 联系人手机号
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+ 为保障账户安全
+
+
+ 需采集你的人脸信息已核实身份
+
+
+
+ 请保持正脸
+
+
+ 根据指示完成人脸认证
+
+
+
+
+
+ 拍摄须知:
+
+
+
+
+
+
+
+ 标准
+
+
+
+
+
+
+
+ 标准
+
+
+
+
+
+
+
+ 标准
+
+
+
+
+
+
+ 标准
+
+
+
+
+
+ 下一步
+
+
+
+
+
+
+ {{item}}
+
+
+
+
+
+ {{item}}
+
+
+
+
+
+ {{item}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/users/order_improves/index.vue b/pages/users/order_improves/index.vue
index a9b6bb7..370f971 100644
--- a/pages/users/order_improves/index.vue
+++ b/pages/users/order_improves/index.vue
@@ -22,16 +22,28 @@
-
+
-
+
-
+
+ 请上传本人手持身份证原件正面照片
+
+
+
+
+
+
+
+
+
+
+
@@ -163,9 +175,10 @@
data() {
return {
positiveImg: '', //自己图片路径
- upLoadPositiveImg: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.zrlmSg7klHyl3uDBB-nG3wAAAA?w=280&h=170&c=7&r=0&o=5&pid=1.7', // 反面身份证
+ upLoadPositiveImg: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.zrlmSg7klHyl3uDBB-nG3wAAAA?w=280&h=170&c=7&r=0&o=5&pid=1.7', // 反面身份证
reverseImg: '', //自己图片路径
upLoadReverseImg: 'https://ha.hainanu.edu.cn/__local/2/05/F5/E22F199DEFB4C9D81BED08639F8_1DB89F92_17BD.jpg',
+ handIdCard:'',
baidu_token: ' ', //百度token
realName: '', //真实姓名,
idcard: '', //身份证号,
@@ -209,8 +222,14 @@
this.tel = this.identification.commonPhoneNumber
// this.upLoadReverseImg = this.identification.idCardBackPhoto.slice(21)
// this.upLoadPositiveImg = this.identification.idCardFrontPhoto.slice(21)
- this.upLoadReverseImg = this.identification.idCardBackPhoto
- this.upLoadPositiveImg = this.identification.idCardFrontPhoto
+ if(this.identification.idCardBackPhoto!=null){
+ this.upLoadReverseImg = this.identification.idCardBackPhoto
+ }
+ if(this.identification.idCardBackPhoto!=null){
+ this.upLoadPositiveImg = this.identification.idCardFrontPhoto
+ }
+ this.handIdCard = this.identification.handIdCard
+ // this.upLoadPositiveImg = this.identification.idCardFrontPhoto
this.emitext = this.identification.email
// this.telthre = this.identification.phoneNumber
this.lxindex = this.identification.userEmergencyContactsList[0].relationship
@@ -434,7 +453,22 @@
let result = /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dX]$/ //身份证正则
let photopatten = /^1[3456789]\d{9}$/ //手机号正则
let aqq = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/ //邮箱正则
- if (this.realName == '') {
+
+
+ console.log(this.handIdCard,'1111')
+ if (this.upLoadPositiveImg ==
+ 'https://tse1-mm.cn.bing.net/th/id/OIP-C.zrlmSg7klHyl3uDBB-nG3wAAAA?w=280&h=170&c=7&r=0&o=5&pid=1.7' ||
+ this.upLoadReverseImg ==
+ 'https://ha.hainanu.edu.cn/__local/2/05/F5/E22F199DEFB4C9D81BED08639F8_1DB89F92_17BD.jpg') {
+ return this.$util.Tips({
+ title: '身份证正反面不能为空'
+ })
+ ;
+ } else if (this.handIdCard ==null) {
+ return this.$util.Tips({
+ title: '手持身份证正面不能为空'
+ })
+ }else if (this.realName == '') {
return this.$util.Tips({
title: '姓名不能为空'
});
@@ -454,13 +488,6 @@
return this.$util.Tips({
title: '请填写正确的手机号'
})
- } else if (this.upLoadPositiveImg ==
- 'https://tse1-mm.cn.bing.net/th/id/OIP-C.zrlmSg7klHyl3uDBB-nG3wAAAA?w=280&h=170&c=7&r=0&o=5&pid=1.7' ||
- this.upLoadReverseImg ==
- 'https://ha.hainanu.edu.cn/__local/2/05/F5/E22F199DEFB4C9D81BED08639F8_1DB89F92_17BD.jpg') {
- return this.$util.Tips({
- title: '身份证正反面不能为空'
- })
} else if (this.lxrmoren == '请选择您与联系人的关系 ') {
return this.$util.Tips({
title: '请选择联系人与您的关系'
@@ -552,6 +579,7 @@
email: this.emitext,
commonPhoneNumber: this.tel,
uid: this.$store.getters.uid,
+ handIdCard:this.handIdCard,
userEmergencyContactsList: [{
relationship: this.lxindex, //与紧急联系人关系
contactName: this.realNameone, //紧急联系人姓名
@@ -564,10 +592,29 @@
}
]
}
+ // getInformation(data).then(res => {
+ // let data = res.data
+ // console.log(res,'resres');
+ // // uni.navigateBack()
+ // })
getInformation(data).then(res => {
- let data = res.data
- uni.navigateBack()
- })
+ let data = res.data;
+ console.log(res, 'rerererere');
+ if (res.code == 500) {
+ console.log('发生了500错误');
+ this.$util.Tips({
+ title: res.message
+ });
+ // 在这里进行处理,例如记录日志、展示错误信息等
+ } else {
+ // 处理其他情况
+ uni.navigateBack()
+ }
+ }).catch(error => {
+ this.$util.Tips({
+ title: error
+ });
+ });
}
}else{
// 请求保存个人信息
@@ -580,6 +627,7 @@
email: this.emitext,
commonPhoneNumber: this.tel,
uid: this.$store.getters.uid,
+ handIdCard:this.handIdCard,
userEmergencyContactsList: [{
relationship: this.lxindex, //与紧急联系人关系
contactName: this.realNameone, //紧急联系人姓名
@@ -593,9 +641,34 @@
]
}
getInformation(data).then(res => {
- let data = res.data
- uni.navigateBack()
- })
+ let data = res.data;
+ console.log(res, 'rerererere');
+ if (res.code == 500) {
+ console.log('发生了500错误');
+ this.$util.Tips({
+ title: '输入的身份证、手机号、姓名不匹配,请重新输入'
+ });
+ // 在这里进行处理,例如记录日志、展示错误信息等
+ } else {
+ // 处理其他情况
+ uni.navigateBack()
+ }
+ }).catch(error => {
+ this.$util.Tips({
+ title: '输入的身份证、手机号、姓名不匹配,请重新输入'
+ });
+ });
+ // getInformation(data)
+ // .then(res => {
+ // let data = res.data
+ // console.log(res,'resres');
+ // })
+ // .catch(res => {
+
+ // this.$util.Tips({
+ // title: res
+ // });
+ // });
}
},
@@ -638,6 +711,17 @@
that.upLoadReverseImg = res.data.url;
});
},
+ uploadpicss: function() {
+ let that = this;
+ that.$util.uploadImageOne({
+ url: 'upload/image',
+ name: 'multipart',
+ model: 'user',
+ pid: 7
+ }, function(res) {
+ that.handIdCard = res.data.url;
+ });
+ },
diff --git a/pages/users/repayment/index.vue b/pages/users/repayment/index.vue
index 3fb97b8..ab8c14e 100644
--- a/pages/users/repayment/index.vue
+++ b/pages/users/repayment/index.vue
@@ -82,9 +82,22 @@
},
onShow() {
-
-
- this.getData()
+ // 轮询查询函数
+ const pollingFunction = () => {
+ this.getData(); // 调用getData()方法
+ };
+
+ // 初始调用一次
+ pollingFunction();
+
+ // 每五秒执行一次轮询查询
+ const intervalId = setInterval(pollingFunction, 5000);
+
+ // 在页面销毁时清除轮询
+ // 如果onShow()方法会在页面销毁时被自动销毁,那么下面的代码可以忽略
+ this.$once('hook:beforeDestroy', () => {
+ clearInterval(intervalId);
+ });
},
methods: {
toreturn(){
diff --git a/uni.scss b/uni.scss
index bda1525..886819a 100644
--- a/uni.scss
+++ b/uni.scss
@@ -16,7 +16,7 @@
/* 颜色变量 */
@import './static/css/theme.scss';
@import './static/css/theme_color.scss';
-
+@import 'uview-ui/theme.scss';
/* 行为相关颜色 */
$uni-color-primary: #007aff;
$uni-color-success: #4cd964;
diff --git a/utils/request.js b/utils/request.js
index 2cf733d..a2ed660 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -49,7 +49,8 @@ function baseRequest(url, method, data, {
// toLogin();
reject(res.data);
}else if (res.data.code == 500){
- reject(res.data.message || '系统异常');
+ reslove(res.data, res);
+ // reject(res.data.message || '系统异常');
}else if (res.data.code == 400){
reject(res.data.message || '参数校验失败');
}else if (res.data.code == 404){
diff --git a/vue.config.js b/vue.config.js
index 4483424..7a14304 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -10,5 +10,6 @@ module.exports = {
config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true
config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs = ['console.log']
}
- }
+ },
+ transpileDependencies: ['uview-ui']
}