|
@@ -190,6 +190,15 @@ const priceList = computed(() => {
|
|
|
const userType = uni.getStorageSync('userType') //读取本地存储
|
|
|
|
|
|
const adminList = [
|
|
|
+{
|
|
|
+ name: '实名认证',
|
|
|
+ img: '/static/serverImg/mine/adress.png',
|
|
|
+ key: 'map',
|
|
|
+ text: '前往实名认证',
|
|
|
+ operate: () => {
|
|
|
+ hanldeAuthentication()
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
name: '我的地址',
|
|
|
img: '/static/serverImg/mine/adress.png',
|
|
@@ -246,6 +255,15 @@ const adminList = [
|
|
|
|
|
|
]
|
|
|
const userList = [
|
|
|
+ {
|
|
|
+ name: '实名认证',
|
|
|
+ img: '/static/serverImg/mine/adress.png',
|
|
|
+ key: 'map',
|
|
|
+ text: '前往实名认证',
|
|
|
+ operate: () => {
|
|
|
+ hanldeAuthentication()
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
name: '我的地址',
|
|
|
img: '/static/serverImg/mine/adress.png',
|
|
@@ -273,15 +291,7 @@ const userList = [
|
|
|
show.value = true
|
|
|
},
|
|
|
},
|
|
|
- // {
|
|
|
- // name: '修改个人信息',
|
|
|
- // img: '/static/serverImg/mine/xg.png',
|
|
|
- // key: 'map',
|
|
|
- // text: '去实名认证',
|
|
|
- // operate: () => {
|
|
|
- // handLsetTing();
|
|
|
- // },
|
|
|
- // },
|
|
|
+
|
|
|
{
|
|
|
name: '用户',
|
|
|
img: '/static/serverImg/mine/sf.png',
|
|
@@ -294,6 +304,26 @@ const userList = [
|
|
|
]
|
|
|
|
|
|
|
|
|
+// 实名认证
|
|
|
+const hanldeAuthentication = () => {
|
|
|
+ // wx.startFacialRecognitionVerify({
|
|
|
+ // name: '陈建均',
|
|
|
+ // idCardNumber:'500230200006011928',
|
|
|
+ // checkAliveType:'2',
|
|
|
+ // success: (result) => {
|
|
|
+ // console.log("TCL: hanldeAuthentication -> result", result)
|
|
|
+ // if (result.verifyResult) {
|
|
|
+ // // 认证成功,提交服务端校验
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // fail: (err) => {
|
|
|
+ // console.log("TCL: hanldeAuthentication -> err", err)
|
|
|
+ // },
|
|
|
+ // })
|
|
|
+// uni.navigateTo({
|
|
|
+// url: `/pages_mine/pages/authentication/index`
|
|
|
+// })
|
|
|
+}
|
|
|
const switchUserType = (userType) => {
|
|
|
uni.setStorageSync('userType', userType)
|
|
|
store.dispatch('GetInfo').then((res) => {
|