Compare commits
17 Commits
288051964a
...
2e8d5a198d
Author | SHA1 | Date | |
---|---|---|---|
2e8d5a198d | |||
37b4e3ed78 | |||
72cac91422 | |||
45f40c547f | |||
c14f0f6af9 | |||
c46b4b5560 | |||
f5f8235549 | |||
ba912698dc | |||
d92741f617 | |||
8b0a6b8b8f | |||
5a5dd31c68 | |||
2cad89d5e6 | |||
a62d60c9b3 | |||
1d5c05dbda | |||
8375b86499 | |||
62696009b2 | |||
46a6927de9 |
3
App.vue
3
App.vue
@ -3,7 +3,7 @@ import tabBar from "./util/tabbar";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
uni.setStorageSync("token",'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6MCwiT3BlbklkIjoib01qYXY2eFFjQUttUW1ZUTFXV20zOXlCQUZ4byIsIk5pY2tOYW1lIjoi6K645pe76L22IiwiVGVsTnVtIjoiMTgyMDUwNTI2MjciLCJBdmF0YXIiOiIiLCJJRE51bSI6IjMyMDUwNDE5OTgwOTE2NDAzMyIsImV4cCI6MTY5NjA0MTE4MCwiaXNzIjoibWFsbCJ9.bNsyjyMDacBrBlmP556rznofYq11M9AkoDpeixolE4o')
|
// uni.setStorageSync("token",'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6MCwiT3BlbklkIjoib01qYXY2eFFjQUttUW1ZUTFXV20zOXlCQUZ4byIsIk5pY2tOYW1lIjoiIiwiVGVsTnVtIjoiMTgyMDUwNTI2MjciLCJBdmF0YXIiOiIiLCJJRE51bSI6IiIsImV4cCI6MTY5NTQzNjEwMSwiaXNzIjoibWFsbCJ9.qYzFMtoOOBuawYDTl7iuwlTTz7Fakhr8657PjxWhQ8I')
|
||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
uni.setStorageSync("tabBar", tabBar);
|
uni.setStorageSync("tabBar", tabBar);
|
||||||
},
|
},
|
||||||
@ -36,5 +36,4 @@ export default {
|
|||||||
.u-border-top {
|
.u-border-top {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
export default {
|
export default {
|
||||||
baseUrl: "http://192.168.88.175:9021",
|
baseUrl: "https://warehouse.szjixun.cn",
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import login from "./login";
|
import login from "./login";
|
||||||
import deposit from "./deposit";
|
import deposit from "./deposit";
|
||||||
|
import mine from "./mine";
|
||||||
export default {
|
export default {
|
||||||
login,
|
login,
|
||||||
deposit,
|
deposit,
|
||||||
|
mine,
|
||||||
};
|
};
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
config: {
|
config: {
|
||||||
// baseUrl: "http://192.168.88.175:9021",
|
baseUrl: "https://warehouse.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//'https://warehouse.szjixun.cn'
|
||||||
baseUrl: "http://172.16.100.93:8017",
|
|
||||||
header: {
|
header: {
|
||||||
"Content-Type": "application/json;charset=UTF-8",
|
"Content-Type": "application/json;charset=UTF-8",
|
||||||
// 'Content-Type':'application/x-www-form-urlencoded'
|
// 'Content-Type':'application/x-www-form-urlencoded'
|
||||||
|
@ -24,8 +24,34 @@ export const register = (data) => {
|
|||||||
data,
|
data,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
// 身份验证
|
||||||
|
export const chenckId = (data) => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/wxuser/ocr",
|
||||||
|
method: "POST",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
// 法大大
|
||||||
|
export const fddRealName = (data) => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/wxuser/bind/fdd",
|
||||||
|
method: "POST",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
//法大大是否验证
|
||||||
|
export const checkFdd = () => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/wxuser/fdd/check",
|
||||||
|
method: "POST",
|
||||||
|
});
|
||||||
|
};
|
||||||
export default {
|
export default {
|
||||||
login,
|
login,
|
||||||
getTel,
|
getTel,
|
||||||
register,
|
register,
|
||||||
|
chenckId,
|
||||||
|
fddRealName,
|
||||||
|
checkFdd,
|
||||||
};
|
};
|
||||||
|
34
http/mine.js
Normal file
34
http/mine.js
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
import http from "./interface";
|
||||||
|
|
||||||
|
const infoOrders = () => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/warehouse/static/info",
|
||||||
|
method: "POST",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const info = () => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/wxuser/info",
|
||||||
|
method: "POST",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
// 更新信息
|
||||||
|
const update = (data) => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/wxuser/update",
|
||||||
|
method: "POST",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const logout = () => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/wxuser/remove",
|
||||||
|
method: "POST",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
export default {
|
||||||
|
infoOrders,
|
||||||
|
info,
|
||||||
|
update,
|
||||||
|
logout,
|
||||||
|
};
|
10
pages.json
10
pages.json
@ -35,6 +35,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/realName/FDDRegister",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"app-plus": {
|
||||||
|
"titleNView": false // 禁用原生导航
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/cameraContext/cameraContext",
|
"path": "pages/cameraContext/cameraContext",
|
||||||
"style": {
|
"style": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view :style="{background:'url('+'../../static/bbj1@3x.png'+')'}" class="main">
|
<view class="main">
|
||||||
<title-block style="flex-shrink: 0;width: 100%" title="寄存"></title-block>
|
<title-block style="flex-shrink: 0;width: 100%" title="寄存"></title-block>
|
||||||
<view class="order" @click="goConsignmen">
|
<view class="order" @click="goConsignmen">
|
||||||
<view class="order-item">
|
<view class="order-item">
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<view v-for="(item,index) in addressList" :key="item.ID">
|
<view v-for="(item,index) in addressList" :key="item.ID">
|
||||||
<view class="list-item">
|
<view class="list-item">
|
||||||
<view>{{item.address}}</view>
|
<view>{{item.address}}</view>
|
||||||
<view>剩余{{item.deletedAt}}位置</view>
|
<view>剩余{{item.leftNum}}位置</view>
|
||||||
</view>
|
</view>
|
||||||
<u-divider :dashed="true" lineColor="#4E964D" v-if="index !== addressList.length-1"></u-divider>
|
<u-divider :dashed="true" lineColor="#4E964D" v-if="index !== addressList.length-1"></u-divider>
|
||||||
</view>
|
</view>
|
||||||
@ -51,9 +51,7 @@ export default {
|
|||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
onlyFromCamera: false,
|
onlyFromCamera: false,
|
||||||
success: res => {
|
success: res => {
|
||||||
console.log(res.result,' res.result')
|
|
||||||
console.log("条码类型:" + res.scanType);
|
console.log("条码类型:" + res.scanType);
|
||||||
console.log(res.scanType,'scanType')
|
|
||||||
console.log("条码内容:" + res.result);
|
console.log("条码内容:" + res.result);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/consignment-painting/index?url=" + res.result
|
url: "/pages/consignment-painting/index?url=" + res.result
|
||||||
@ -85,7 +83,8 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 10rpx 30rpx 30rpx 30rpx;
|
padding: 0 30rpx;
|
||||||
|
background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png");
|
||||||
|
|
||||||
.order {
|
.order {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -7,7 +7,8 @@
|
|||||||
open-type="getPhoneNumber"
|
open-type="getPhoneNumber"
|
||||||
@getphonenumber="getPhoneNumber"
|
@getphonenumber="getPhoneNumber"
|
||||||
color="transparent"
|
color="transparent"
|
||||||
>点击登录</u-button>
|
text="点击登录"
|
||||||
|
></u-button>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="btn">
|
<!-- <view class="btn">
|
||||||
<u-button v-if="isLogoutShow" @click="login" color="transparent">点击登录</u-button>
|
<u-button v-if="isLogoutShow" @click="login" color="transparent">点击登录</u-button>
|
||||||
@ -21,51 +22,36 @@ export default {
|
|||||||
return {
|
return {
|
||||||
code: "",
|
code: "",
|
||||||
openId: "",
|
openId: "",
|
||||||
isShow: true,
|
isShow: false,
|
||||||
isLogoutShow: true
|
isNew: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getPhoneNumber(e) {
|
async getPhoneNumber(e) {
|
||||||
console.log(e);
|
|
||||||
if (e.detail.errMsg == "getPhoneNumber:ok") {
|
if (e.detail.errMsg == "getPhoneNumber:ok") {
|
||||||
// 用户允许或去手机号
|
// 用户允许或去手机号
|
||||||
let res = await this.$api.login.getTel({ code: e.detail.code });
|
let res = await this.$api.login.getTel({ code: e.detail.code });
|
||||||
if (res.status == 0) {
|
if (res.status == 0) {
|
||||||
uni.setStorageSync("telNum", res.data.telNum);
|
uni.setStorageSync("telNum", res.data.telNum);
|
||||||
uni.redirectTo({
|
console.log(1231111111, this.isNew);
|
||||||
|
if (this.isNew) {
|
||||||
|
uni.reLaunch({
|
||||||
url: "/pages/realName/realName"
|
url: "/pages/realName/realName"
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/home/index"
|
||||||
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast(res.msg);
|
this.$common.msgToast(res.msg);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast("请不要拒绝哟~重新点击登录");
|
this.$common.msgToast("请不要拒绝哟~重新点击登录");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// async login() {
|
|
||||||
// // 获取code
|
|
||||||
// uni.login({
|
|
||||||
// provider: "weixin",
|
|
||||||
// success: async res => {
|
|
||||||
// console.log(res);
|
|
||||||
// this.code = res.code;
|
|
||||||
// let res1 = await this.$api.login.login({ code: res.code });
|
|
||||||
// if (res1.status == 0) {
|
|
||||||
// this.isShow = true;
|
|
||||||
// this.openId = res1.data.accountInfo.openId;
|
|
||||||
// uni.setStorageSync("token", res1.data.token);
|
|
||||||
// uni.redirectTo({
|
|
||||||
// url: "/pages/register/register"
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// this.$common.msgToast(res1.msg);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
onLoad() {
|
//获取openId
|
||||||
|
async getOpenId() {
|
||||||
uni.login({
|
uni.login({
|
||||||
provider: "weixin",
|
provider: "weixin",
|
||||||
success: async res => {
|
success: async res => {
|
||||||
@ -73,21 +59,51 @@ export default {
|
|||||||
this.code = res.code;
|
this.code = res.code;
|
||||||
let res1 = await this.$api.login.login({ code: res.code });
|
let res1 = await this.$api.login.login({ code: res.code });
|
||||||
if (res1.status == 0) {
|
if (res1.status == 0) {
|
||||||
if (res1.data.accountInfo.isNew) {
|
|
||||||
this.isShow = true;
|
this.isShow = true;
|
||||||
this.openId = res1.data.accountInfo.openId;
|
this.isNew = res1.data.accountInfo.isNew;
|
||||||
uni.setStorageSync("token", res1.data.token);
|
uni.setStorageSync("token", res1.data.token);
|
||||||
} else {
|
// if (res1.data.accountInfo.isNew) {
|
||||||
uni.setStorageSync("token", res1.data.token);
|
// this.openId = res1.data.accountInfo.openId;
|
||||||
uni.redirectTo({
|
// uni.setStorageSync("token", res1.data.token);
|
||||||
url: "/pages/home/index"
|
// uni.reLaunch({
|
||||||
});
|
// url: "/pages/realName/realName"
|
||||||
}
|
// });
|
||||||
|
// } else {
|
||||||
|
// uni.setStorageSync("token", res1.data.token);
|
||||||
|
// uni.reLaunch({
|
||||||
|
// url: "/pages/home/index"
|
||||||
|
// });
|
||||||
|
// }
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast(res1.msg);
|
this.$common.msgToast(res1.msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
// info判断用户是401就让他获取openId
|
||||||
|
async info() {
|
||||||
|
const res = await this.$api.mine.info();
|
||||||
|
if (res.status === 0) {
|
||||||
|
if (res.data.isNew) {
|
||||||
|
//登录未注册
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/realName/realName"
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
//登录已注册
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/home/index"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else if (res.status === 401) {
|
||||||
|
this.getOpenId();
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.info();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,30 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mine" :style="{background:'url('+'../../static/bbj1@3x.png'+')'}">
|
<div class="mine" >
|
||||||
<div class="content1">
|
<div class="content1">
|
||||||
<div class="wrap1">
|
<div class="wrap1">
|
||||||
<div class="wrap1_1">203</div>
|
<div class="wrap1_1">{{orderTotal}}</div>
|
||||||
<div class="wrap1_2">当前订单总量</div>
|
<div class="wrap1_2">当前订单总量</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap2"></div>
|
<div class="wrap2"></div>
|
||||||
<div class="wrap3">
|
<div class="wrap3">
|
||||||
<div class="wrap3_1">19</div>
|
<div class="wrap3_1">{{validContractDays}}</div>
|
||||||
<div class="wrap3_2">当前有效合同数</div>
|
<div class="wrap3_2">当前有效合同数</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content2">
|
<div class="content2">
|
||||||
<div class="wrap1">
|
<div class="wrap1">
|
||||||
<div class="wrap1_1">
|
<div class="wrap1_1">
|
||||||
<image src="../../static/06@3x.png"></image>
|
<image :src="avatar"></image>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap1_2">
|
<div class="wrap1_2">
|
||||||
<div class="wrap1_2_1">
|
<div class="wrap1_2_1">
|
||||||
<div class="wrap1_2_1_1">某某某</div>
|
<div class="wrap1_2_1_1">{{nickName}}</div>
|
||||||
<div class="wrap1_2_1_2">已实名</div>
|
<div class="wrap1_2_1_2">已实名</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap1_2_2">178273938123</div>
|
<div class="wrap1_2_2">{{telNum}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap2">
|
<div class="wrap2" @click="goSet" >
|
||||||
<div class="wrap2_1">
|
<div class="wrap2_1">
|
||||||
<image src="../../static/zu609@3x.png"></image>
|
<image src="../../static/zu609@3x.png"></image>
|
||||||
</div>
|
</div>
|
||||||
@ -42,7 +42,46 @@ export default {
|
|||||||
onLoad() {
|
onLoad() {
|
||||||
uni.hideTabBar()
|
uni.hideTabBar()
|
||||||
},
|
},
|
||||||
components: {tabbar}
|
components: {tabbar},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
orderTotal:0,
|
||||||
|
validContractDays:0,
|
||||||
|
nickName:'',
|
||||||
|
telNum:'',
|
||||||
|
avatar:''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(){
|
||||||
|
this.infoOrders()
|
||||||
|
this.info()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async infoOrders(){
|
||||||
|
const res = await this.$api.mine.infoOrders()
|
||||||
|
if(res.status === 0){
|
||||||
|
this.orderTotal = res.data.totalCount
|
||||||
|
this.validContractDays = res.data.nowCount
|
||||||
|
}else{
|
||||||
|
this.$common.msgToast(res.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async info(){
|
||||||
|
const res = await this.$api.mine.info()
|
||||||
|
if(res.status === 0){
|
||||||
|
this.nickName = res.data.user.nickName
|
||||||
|
this.telNum = res.data.user.telNum
|
||||||
|
this.avatar = res.data.user.avatar
|
||||||
|
}else{
|
||||||
|
this.$common.msgToast(res.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
goSet(){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/mine/set-up'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@ -54,6 +93,8 @@ export default {
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png");
|
||||||
|
|
||||||
.content2{
|
.content2{
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -2,71 +2,136 @@
|
|||||||
<div class="set-up">
|
<div class="set-up">
|
||||||
<title-block title="设置">
|
<title-block title="设置">
|
||||||
<template #left>
|
<template #left>
|
||||||
<div> <image style="width: 112rpx;height: 52rpx" src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/785cf885-c4c9-44b3-8155-4b39988c7ef8.png"></image></div>
|
<div>
|
||||||
|
<image style="width: 112rpx;height: 52rpx"
|
||||||
|
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/785cf885-c4c9-44b3-8155-4b39988c7ef8.png" @click="back">
|
||||||
|
</image>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</title-block>
|
</title-block>
|
||||||
<div class="content2">
|
<div class="content2">
|
||||||
<div class="wrap1">
|
<div class="wrap1">
|
||||||
<image src="../../static/06@3x.png"></image>
|
<image :src="user.avatar ? user.avatar:'https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png'" mode="scaleToFill"></image>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap2">
|
<div class="wrap2">
|
||||||
<div class="wrap2_1">恢复默认头像</div>
|
<div class="wrap2_1" @click="backDafult">恢复默认头像</div>
|
||||||
<div class="wrap2_2">更换头像</div>
|
<u-upload :fileList="fileList" name="1" multiple :maxCount="1" @afterRead="changeAvatar">
|
||||||
|
<view style="width:348rpx;height:56rpx;margin-top:20rpx">
|
||||||
|
<u-button text="更换头像" shape="circle" class="size" color="#76C458"></u-button>
|
||||||
|
</view>
|
||||||
|
</u-upload>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content3">
|
<div class="content3">
|
||||||
<div class="wrap1">
|
<div class="wrap1">
|
||||||
<div class="wrap1_1">
|
<div class="wrap1_1">
|
||||||
<div class="wrap1_1_1">画作编号</div>
|
<div class="wrap1_1_1">姓名</div>
|
||||||
<div class="wrap1_1_2"></div>
|
<div class="wrap1_1_2">{{ user.nickName }}</div>
|
||||||
<div class="wrap1_1_3">
|
<div class="wrap1_1_3">
|
||||||
<input placeholder-style="color: #939393;font-size: 24rpx;" placeholder="画作编号" />
|
<view></view>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap1_1_4"></div>
|
<div class="wrap1_1_4"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap1_1">
|
<div class="wrap1_1">
|
||||||
<div class="wrap1_1_1">画作名称</div>
|
<div class="wrap1_1_1">身份证号码</div>
|
||||||
<div class="wrap1_1_2"></div>
|
<div class="wrap1_1_2">{{ user.iDNum }}</div>
|
||||||
<div class="wrap1_1_3">
|
<div class="wrap1_1_3">
|
||||||
<input placeholder-style="color: #939393;font-size: 24rpx;" placeholder="画作名称" />
|
<view></view>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap1_1_4"></div>
|
<div class="wrap1_1_4"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap1_1">
|
<div class="wrap1_1">
|
||||||
<div class="wrap1_1_1">画家名称</div>
|
<div class="wrap1_1_1">手机号</div>
|
||||||
<div class="wrap1_1_2"></div>
|
<div class="wrap1_1_2">{{ user.telNum }}</div>
|
||||||
<div class="wrap1_1_3">
|
<div class="wrap1_1_3">
|
||||||
<input placeholder-style="color: #939393;font-size: 24rpx;" placeholder="画家名称" />
|
<view></view>
|
||||||
</div>
|
|
||||||
<div class="wrap1_1_4">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1">
|
|
||||||
<div class="wrap1_1_1">画作平尺数</div>
|
|
||||||
<div class="wrap1_1_2"></div>
|
|
||||||
<div class="wrap1_1_3">
|
|
||||||
<input placeholder-style="color: #939393;font-size: 24rpx;" placeholder="画作平尺数" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap2"></div>
|
<div class="wrap2"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content4">
|
<div class="content4">
|
||||||
<div class="wrap1">注销账号</div>
|
<div class="wrap1" @click="logout">注销账号</div>
|
||||||
<div class="wrap2">退出登录</div>
|
<div class="wrap2" @click="quit">退出登录</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import http from "@/http/api";
|
||||||
export default {
|
export default {
|
||||||
name: "set-up",
|
name: "set-up",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
statusBarHeight:uni.getSystemInfoSync().statusBarHeight+10
|
user: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
onLoad() {
|
||||||
|
this.info()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async info() {
|
||||||
|
const res = await this.$api.mine.info()
|
||||||
|
if (res.status === 0) {
|
||||||
|
this.user = res.data.user
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
changeAvatar(file) {
|
||||||
|
console.log(file)
|
||||||
|
this.uploadFilePromise(file.file[0].url);
|
||||||
|
},
|
||||||
|
uploadFilePromise(url) {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
uni.uploadFile({
|
||||||
|
url: http.baseUrl + "/api/wxuser/uploadpic",
|
||||||
|
filePath: url,
|
||||||
|
name: "file",
|
||||||
|
success: (res) => {
|
||||||
|
res.data = JSON.parse(res.data);
|
||||||
|
resolve(res.data.data.path);
|
||||||
|
this.updateInfo({
|
||||||
|
avatar: res.data.data.path,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
async updateInfo(data){
|
||||||
|
let res = await this.$api.mine.update(data);
|
||||||
|
if (res.status === 0) {
|
||||||
|
this.$common.msgToast('修改成功');
|
||||||
|
this.info();
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
backDafult() {
|
||||||
|
this.updateInfo({
|
||||||
|
avatar: "https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
quit(){
|
||||||
|
uni.clearStorageSync();
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async logout(){
|
||||||
|
let res = await this.$api.mine.logout();
|
||||||
|
if (res.status === 0) {
|
||||||
|
this.$common.msgToast('注销成功');
|
||||||
|
this.quit();
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
back(){
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 2
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@ -80,12 +145,14 @@ export default {
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|
||||||
.content4 {
|
.content4 {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
bottom: 104rpx;
|
bottom: 104rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.wrap2 {
|
.wrap2 {
|
||||||
margin-left: 38rpx;
|
margin-left: 38rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -98,6 +165,7 @@ left: 50%;
|
|||||||
height: 56rpx;
|
height: 56rpx;
|
||||||
background: #3E3E3E;
|
background: #3E3E3E;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap1 {
|
.wrap1 {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -110,17 +178,20 @@ left: 50%;
|
|||||||
background: #ED6666;
|
background: #ED6666;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content2 {
|
.content2 {
|
||||||
margin-top: 60rpx;
|
margin-top: 60rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.wrap1 {
|
.wrap1 {
|
||||||
image {
|
image {
|
||||||
height: 154rpx;
|
height: 154rpx;
|
||||||
width: 154rpx;
|
width: 154rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap2 {
|
.wrap2 {
|
||||||
margin-left: 42rpx;
|
margin-left: 42rpx;
|
||||||
|
|
||||||
@ -136,6 +207,7 @@ left: 50%;
|
|||||||
background: #76C458;
|
background: #76C458;
|
||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap2_1 {
|
.wrap2_1 {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -152,14 +224,17 @@ left: 50%;
|
|||||||
|
|
||||||
.content3 {
|
.content3 {
|
||||||
margin-top: 60rpx;
|
margin-top: 60rpx;
|
||||||
|
|
||||||
.wrap1 {
|
.wrap1 {
|
||||||
border: 1rpx dashed #DFE9F0;
|
border: 1rpx dashed #DFE9F0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
||||||
.wrap1_1 {
|
.wrap1_1 {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 114rpx;
|
height: 114rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.wrap1_1_4 {
|
.wrap1_1_4 {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
@ -169,13 +244,17 @@ left: 50%;
|
|||||||
width: 636rpx;
|
width: 636rpx;
|
||||||
border-bottom: 0.5px solid #626262;
|
border-bottom: 0.5px solid #626262;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap1_1_2 {
|
.wrap1_1_2 {
|
||||||
margin-right: 36rpx;
|
margin-right: 36rpx;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 66rpx;
|
height: 66rpx;
|
||||||
border-left: 0.5px solid #626262;
|
border-left: 0.5px solid #626262;
|
||||||
|
line-height: 66rpx;
|
||||||
|
width: 100%;
|
||||||
|
padding-left: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap1_1_1 {
|
.wrap1_1_1 {
|
||||||
width: 210rpx;
|
width: 210rpx;
|
||||||
padding-left: 32rpx;
|
padding-left: 32rpx;
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
<div class="wrap1_3_1" v-if="item.artworkStatus===4">
|
<div class="wrap1_3_1" v-if="item.artworkStatus===4">
|
||||||
<div class="wrap1_3_1_1">{{ item.endAt }}</div>
|
<div class="wrap1_3_1_1">{{ item.endAt }}</div>
|
||||||
<div class="wrap1_3_1_2">已延期</div>
|
<div class="wrap1_3_1_2">已延期</div>
|
||||||
<div class="wrap1_3_1_3" @click.stop="openShow2(item)">点击补款</div>
|
<div class="wrap1_3_1_3" v-if="item.isSupplementary" @click.stop="openShow2(item)">点击补款</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap1_3_3" v-if="item.artworkStatus!==4">
|
<div class="wrap1_3_3" v-if="item.artworkStatus!==4">
|
||||||
<div class="wrap1_3_3_1">{{ statusValue.find(x => x.value === item.artworkStatus).label }}</div>
|
<div class="wrap1_3_3_1">{{ statusValue.find(x => x.value === item.artworkStatus).label }}</div>
|
||||||
@ -240,9 +240,8 @@ export default {
|
|||||||
|
|
||||||
.order-goods {
|
.order-goods {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png");
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png");
|
||||||
padding-left: 30rpx;
|
padding-left: 30rpx;
|
||||||
padding-right: 30rpx;
|
padding-right: 30rpx;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
@ -77,6 +77,9 @@ export default {
|
|||||||
ID: Number(this.$mp.query.ID)
|
ID: Number(this.$mp.query.ID)
|
||||||
}
|
}
|
||||||
const res1 = await postDataByParams('/api/warehouse/detail', data1)
|
const res1 = await postDataByParams('/api/warehouse/detail', data1)
|
||||||
|
if (res1.code === 200) {
|
||||||
|
this.info = res1.data
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -92,18 +95,22 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 32rpx;
|
padding: 32rpx;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.info-right-item {
|
.info-right-item {
|
||||||
color: #626262;
|
color: #626262;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
padding-right: 56rpx;
|
padding-right: 56rpx;
|
||||||
border-right: 1rpx solid #e4eaf1;
|
border-right: 1rpx solid #e4eaf1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
padding-left: 34rpx;
|
padding-left: 34rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -113,6 +120,7 @@ export default {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
margin-top: 182rpx;
|
margin-top: 182rpx;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
|
|
||||||
.info-right {
|
.info-right {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-left: 34rpx;
|
margin-left: 34rpx;
|
||||||
@ -122,6 +130,7 @@ export default {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-info {
|
.order-info {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
@ -134,10 +143,12 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tips {
|
.tips {
|
||||||
color: #76c458;
|
color: #76c458;
|
||||||
margin-top: 170rpx;
|
margin-top: 170rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btns {
|
.btns {
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
33
pages/realName/FDDRegister.vue
Normal file
33
pages/realName/FDDRegister.vue
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<web-view :src="fddUrl" bindmessage="handleMessage"></web-view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
fddUrl: ""
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
uni.getStorage({
|
||||||
|
key: "fddUrl",
|
||||||
|
success: res => {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.fddUrl = res.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleMessage(e) {
|
||||||
|
console.log(e, "fffffffffffffffffffffffffffff");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
@ -7,7 +7,7 @@
|
|||||||
<view class="head">
|
<view class="head">
|
||||||
<view style="display:flex; align-items: center;">
|
<view style="display:flex; align-items: center;">
|
||||||
<view class="title">注册手机号</view>
|
<view class="title">注册手机号</view>
|
||||||
<view :style="{ fontSize: '18rpx' }">*实名认证失败</view>
|
<!-- <view :style="{ fontSize: '18rpx' }">*实名认证失败</view> -->
|
||||||
<!-- <view>*实名认证成功</view> -->
|
<!-- <view>*实名认证成功</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view style="color:#7FA770;font-size:24rpx;margin-left:36rpx">此实名仅用于注册该小程序</view>
|
<view style="color:#7FA770;font-size:24rpx;margin-left:36rpx">此实名仅用于注册该小程序</view>
|
||||||
@ -50,7 +50,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="face">
|
<view class="face">
|
||||||
<view class="faceTitle">人脸识别</view>
|
<view class="faceTitle">人脸识别</view>
|
||||||
<view class="recognition" @click="camera" v-if="!isfinish">
|
<view class="recognition" @click="camera" v-if="!video">
|
||||||
<view style="color: #fff;margin-right:10rpx">前往认证</view>
|
<view style="color: #fff;margin-right:10rpx">前往认证</view>
|
||||||
<u-icon name="arrow-right-double" color="#fff"></u-icon>
|
<u-icon name="arrow-right-double" color="#fff"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
@ -59,6 +59,17 @@
|
|||||||
<u-icon name="checkmark-circle" color="#fff"></u-icon>
|
<u-icon name="checkmark-circle" color="#fff"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="face">
|
||||||
|
<view class="faceTitle">法大大认证</view>
|
||||||
|
<view class="recognition" @click="fddRealName" v-if="!isFdd">
|
||||||
|
<view style="color: #fff;margin-right:10rpx">前往认证</view>
|
||||||
|
<u-icon name="arrow-right-double" color="#fff"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view class="recognition" @click="fddRealName" v-else>
|
||||||
|
<view style="color: #fff;margin-right:10rpx">认证成功</view>
|
||||||
|
<u-icon name="checkmark-circle" color="#fff"></u-icon>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="agreement">
|
<view class="agreement">
|
||||||
<u-checkbox-group v-model="checked" iconPlacement="left" placement="row" inactiveColor="#76C458">
|
<u-checkbox-group v-model="checked" iconPlacement="left" placement="row" inactiveColor="#76C458">
|
||||||
<u-checkbox name="yes" shape="circle" activeColor="#76C458"></u-checkbox>
|
<u-checkbox name="yes" shape="circle" activeColor="#76C458"></u-checkbox>
|
||||||
@ -86,16 +97,30 @@ export default {
|
|||||||
fileList: [],
|
fileList: [],
|
||||||
fileList2: [],
|
fileList2: [],
|
||||||
video: '',
|
video: '',
|
||||||
isfinish: false
|
isfinish: false,
|
||||||
|
isChecked: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
async onLoad(options) {
|
||||||
this.video = options.tempVideoPath;
|
if (options.tempVideoPath) {
|
||||||
this.isfinish = JSON.parse(options.isfinish) || false
|
this.isfinish = JSON.parse(options.isfinish) || false
|
||||||
this.name = uni.getStorageSync("info").name
|
this.video = await this.uploadFilePromise(options.tempVideoPath)
|
||||||
this.num = uni.getStorageSync("info").num
|
console.log('this.video',this.video)
|
||||||
this.fileList = uni.getStorageSync("info").fileList
|
const data = {
|
||||||
this.fileList2 = uni.getStorageSync("info").fileList2
|
num: uni.getStorageSync("info").name || '',
|
||||||
|
name: uni.getStorageSync("info").num || '',
|
||||||
|
fileList: uni.getStorageSync("info").fileList || [],
|
||||||
|
fileList2: uni.getStorageSync("info").fileList2,
|
||||||
|
video: this.video
|
||||||
|
}
|
||||||
|
uni.setStorageSync("info", data)
|
||||||
|
}
|
||||||
|
this.name = uni.getStorageSync("info").name || ''
|
||||||
|
this.num = uni.getStorageSync("info").num || ''
|
||||||
|
this.fileList = uni.getStorageSync("info").fileList || []
|
||||||
|
this.fileList2 = uni.getStorageSync("info").fileList2 || []
|
||||||
|
this.video = uni.getStorageSync("info").video || ''
|
||||||
|
// this.isFdd = uni.getStorageSync("isFdd") || false
|
||||||
uni.removeStorageSync("info")
|
uni.removeStorageSync("info")
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -118,13 +143,6 @@ export default {
|
|||||||
uni.setStorageSync("info", data)
|
uni.setStorageSync("info", data)
|
||||||
},
|
},
|
||||||
async completeRegistration() {
|
async completeRegistration() {
|
||||||
if (!this.checked.length) return this.$common.msgToast("请阅读并勾选协议");
|
|
||||||
if (!this.checked.length) return this.$common.msgToast("请阅读并勾选协议");
|
|
||||||
if (!this.name) return this.$common.msgToast("请输入姓名");
|
|
||||||
if (!this.num) return this.$common.msgToast("请输入身份证号");
|
|
||||||
if (!this.fileList.length) return this.$common.msgToast("请上传身份证人面像");
|
|
||||||
if (!this.fileList2.length) return this.$common.msgToast("请上传身份国徽面");
|
|
||||||
if (!this.video) return this.$common.msgToast("请上传人脸识别视频");
|
|
||||||
console.log({
|
console.log({
|
||||||
telNum: uni.getStorageSync("telNum"),
|
telNum: uni.getStorageSync("telNum"),
|
||||||
realNameIDName: this.num,
|
realNameIDName: this.num,
|
||||||
@ -133,16 +151,29 @@ export default {
|
|||||||
realIDImgA: this.fileList[0]?.url,
|
realIDImgA: this.fileList[0]?.url,
|
||||||
realIDImgB: this.fileList2[0].url
|
realIDImgB: this.fileList2[0].url
|
||||||
})
|
})
|
||||||
const res = await this.$api.login.register({user:{
|
this.checkFdd().then((res) => {
|
||||||
|
if (!res) return this.$common.msgToast("法大大验证未通过")
|
||||||
|
})
|
||||||
|
if (!this.checked.length) return this.$common.msgToast("请阅读并勾选协议");
|
||||||
|
if (!this.checked.length) return this.$common.msgToast("请阅读并勾选协议");
|
||||||
|
if (!this.name) return this.$common.msgToast("请输入姓名");
|
||||||
|
if (!this.num) return this.$common.msgToast("请输入身份证号");
|
||||||
|
if (!this.fileList.length) return this.$common.msgToast("请上传身份证人面像");
|
||||||
|
if (!this.fileList2.length) return this.$common.msgToast("请上传身份国徽面");
|
||||||
|
if (!this.video) return this.$common.msgToast("请上传人脸识别视频");
|
||||||
|
|
||||||
|
const res = await this.$api.login.register({
|
||||||
|
user: {
|
||||||
telNum: uni.getStorageSync("telNum"),
|
telNum: uni.getStorageSync("telNum"),
|
||||||
realNameIDName: this.num,
|
realNameIDName: this.num,
|
||||||
realName: this.name,
|
realName: this.name,
|
||||||
video: this.video,
|
video: this.video,
|
||||||
realIDImgA: this.fileList[0]?.url,
|
realIDImgA: this.fileList[0]?.url,
|
||||||
realIDImgB: this.fileList2[0]?.url
|
realIDImgB: this.fileList2[0]?.url
|
||||||
}})
|
}
|
||||||
|
})
|
||||||
if (res.status === 0) {
|
if (res.status === 0) {
|
||||||
uni.navigateTo({
|
uni.switchTab({
|
||||||
url: '/pages/home/index'
|
url: '/pages/home/index'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -171,7 +202,8 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
for (let i = 0; i < lists.length; i++) {
|
for (let i = 0; i < lists.length; i++) {
|
||||||
const result = await this.uploadFilePromise(lists[i].url)
|
const result = await this.uploadFilePromise(lists[i].url, 'check')
|
||||||
|
console.log(result)
|
||||||
let item = this[`fileList`][fileListLen]
|
let item = this[`fileList`][fileListLen]
|
||||||
this[`fileList`].splice(fileListLen, 1, Object.assign(item, {
|
this[`fileList`].splice(fileListLen, 1, Object.assign(item, {
|
||||||
status: 'success',
|
status: 'success',
|
||||||
@ -203,19 +235,71 @@ export default {
|
|||||||
fileListLen++
|
fileListLen++
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uploadFilePromise(url) {
|
uploadFilePromise(url, type = null) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: http.baseUrl + "/api/wxuser/uploadpic",
|
url: http.baseUrl + "/api/wxuser/uploadpic",
|
||||||
filePath: url,
|
filePath: url,
|
||||||
name: "file",
|
name: "file",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
res.data = JSON.parse(res.data);
|
const { path } = JSON.parse(res.data).data;
|
||||||
resolve(res.data.data.path);
|
console.log('@@@@', path)
|
||||||
|
resolve(path);
|
||||||
|
if (type === 'check') {
|
||||||
|
this.chenckId(path)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async chenckId(realIDImgA) {
|
||||||
|
const res = await this.$api.login.chenckId({ realIDImgA })
|
||||||
|
if (res.status === 0) {
|
||||||
|
this.num = res.data.iDNum
|
||||||
|
this.name = res.data.realName
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async fddRealName() {
|
||||||
|
const data = {
|
||||||
|
num: this.num,
|
||||||
|
name: this.name,
|
||||||
|
fileList: this.fileList,
|
||||||
|
fileList2: this.fileList2,
|
||||||
|
video: this.video
|
||||||
|
}
|
||||||
|
console.log(data, 'data')
|
||||||
|
uni.setStorageSync("info", data)
|
||||||
|
const mobile = uni.getStorageSync("telNum")
|
||||||
|
const res = await this.$api.login.fddRealName({
|
||||||
|
customerName: this.name,
|
||||||
|
customerIdentNo: this.num,
|
||||||
|
mobile
|
||||||
|
})
|
||||||
|
if (res.status === 0) {
|
||||||
|
uni.setStorage({
|
||||||
|
key: "fddUrl",
|
||||||
|
data: res.data?.url,
|
||||||
|
success: function () {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/realName/FDDRegister",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
checkFdd() {
|
||||||
|
return this.$api.login.checkFdd().then((res) => {
|
||||||
|
if (res.status === 0) {
|
||||||
|
return res.data.isVerify
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user