diff --git a/api/user.js b/api/user.js
index 6e3c30c..4e050c6 100644
--- a/api/user.js
+++ b/api/user.js
@@ -5,7 +5,8 @@ const api = {
userInfo: 'user/info',
assets: 'user/assets',
bindMobile: 'user/bindMobile',
- personal: 'user/personal'
+ personal: 'user/personal',
+ verifyname:'passport/userAuthentication'//实名登记
}
// 当前登录的用户信息
@@ -32,3 +33,7 @@ export const bindMobile = (data, option) => {
export const personal = (data, option) => {
return request.post(api.personal, data, option)
}
+// 实名登记
+export const verifyname = (data) => {
+ return request.post(api.verifyname,data)
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index c2f8251..a798055 100644
--- a/pages.json
+++ b/pages.json
@@ -168,6 +168,14 @@
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
+ },
+ {
+ "path" : "pages/verfiy/vsuccess",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
+ "enablePullDownRefresh" : false
+ }
}
],
"globalStyle": {
diff --git a/pages/verfiy/choosedev.vue b/pages/verfiy/choosedev.vue
index 7517967..bf5d0e7 100644
--- a/pages/verfiy/choosedev.vue
+++ b/pages/verfiy/choosedev.vue
@@ -61,9 +61,9 @@
methods: {
// 选择设备
choodev(item){
-
const app = this
- app.$navTo("pages/paySuccess/paySuccess?dev="+item)
+ //app.$navTo("pages/paySuccess/paySuccess?dev="+item)
+ app.$navTo("pages/verfiy/vsuccess?dev="+item)
}
}
}
diff --git a/pages/verfiy/index.vue b/pages/verfiy/index.vue
index 62e7022..0bf350a 100644
--- a/pages/verfiy/index.vue
+++ b/pages/verfiy/index.vue
@@ -82,7 +82,7 @@
!app.isLogin ? resolve(null) : UserApi.info({}, { load: app.isFirstload })
.then(result => {
app.userInfo = result.data.userInfo
- if(app.userInfo.real_name!=""){
+ if(app.userInfo.real_name!="" && app.userInfo.id_no!=""){
this.$navTo("pages/home")
}
resolve(app.userInfo)
@@ -101,11 +101,21 @@
chkst() {
const app = this
if (!app.isLoading && app.formValidationName(app.rname) && app.formValidationId(app.rid)) {
- //app.submitLogin()
+ app.submitVerify()
// 跳转到选择设备
this.$navTo("pages/verfiy/choosedev");
}
},
+
+ // 提交认证信息
+ submitVerify(){
+ const data = {"real_name":app.real_name,"id_no":app.id_no}
+ UserApi.verifyname(data).then(res=>{
+ console.log(res)
+ }).catch(err=>{
+ console.log(err)
+ })
+ },
//todo
formValidationName(str){
diff --git a/pages/verfiy/vsuccess.vue b/pages/verfiy/vsuccess.vue
new file mode 100644
index 0000000..355fd46
--- /dev/null
+++ b/pages/verfiy/vsuccess.vue
@@ -0,0 +1,278 @@
+
+
+
+
+
+
+
+
+ 实名等级完成
+ 11月1日至30日免费使用,过期后需正常续费后方能使用
+
+
+
+ 请根据指引下载安装
+ 请根据指引步骤进行国家文化专网网络入网应用安装
+
+
+ 1.应用下载
+
+
+
+ 国家文化专网网络应用入口(请下载)
+
+
+
+
+ 根服务器文件(请复制)
+
+
+
+
+ 网络ID(请复制)
+
+
+
+
+
+ 2.输入设备安装码
+
+
+
+ 3.交易中心账号绑定
+
+
+
+
+
+
+
+
+
+
+
+