|
@@ -6,48 +6,48 @@ Page({
|
|
|
isTrue: true,
|
|
|
},
|
|
|
goShenFen() {
|
|
|
- //.....................................................
|
|
|
- // if (!this.data.isTrue) {
|
|
|
- // wx.request({
|
|
|
- // url: app.globalData.publicUrl + '/applet/suppleUserInfo',
|
|
|
- // method: "POST",
|
|
|
- // header: {
|
|
|
- // appletsId: wx.getStorageSync('openId')
|
|
|
- // },
|
|
|
- // data: {
|
|
|
- // headPicPath: this.data.imgPath
|
|
|
- // },
|
|
|
- // success: (res) => {
|
|
|
- // console.log(res, "000");
|
|
|
- // }
|
|
|
- // })
|
|
|
- // wx.redirectTo({
|
|
|
- // url: '/pages/idCardDetail/idCardDetail',
|
|
|
- // })
|
|
|
- // } else {
|
|
|
- // wx.showToast({
|
|
|
- // title: "请上传照片",
|
|
|
- // icon: 'none',
|
|
|
- // duration: 2000,
|
|
|
- // })
|
|
|
- // }
|
|
|
- //..................................................... 下边删除
|
|
|
- wx.request({
|
|
|
- url: app.globalData.publicUrl + '/applet/suppleUserInfo',
|
|
|
- method: "POST",
|
|
|
- header: {
|
|
|
- appletsId: wx.getStorageSync('openId')
|
|
|
- },
|
|
|
- data: {
|
|
|
- headPicPath: this.data.imgPath
|
|
|
- },
|
|
|
- success: (res) => {
|
|
|
- console.log(res, "000");
|
|
|
- }
|
|
|
- })
|
|
|
- wx.redirectTo({
|
|
|
- url: '/pages/idCardDetail/idCardDetail',
|
|
|
- })
|
|
|
+
|
|
|
+ if (!this.data.isTrue) {
|
|
|
+ wx.request({
|
|
|
+ url: app.globalData.publicUrl + '/applet/suppleUserInfo',
|
|
|
+ method: "POST",
|
|
|
+ header: {
|
|
|
+ appletsId: wx.getStorageSync('openId')
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ headPicPath: this.data.imgPath
|
|
|
+ },
|
|
|
+ success: (res) => {
|
|
|
+ console.log(res, "000");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ wx.redirectTo({
|
|
|
+ url: '/pages/idCardDetail/idCardDetail',
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ wx.showToast({
|
|
|
+ title: "请上传照片",
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ // wx.request({
|
|
|
+ // url: app.globalData.publicUrl + '/applet/suppleUserInfo',
|
|
|
+ // method: "POST",
|
|
|
+ // header: {
|
|
|
+ // appletsId: wx.getStorageSync('openId')
|
|
|
+ // },
|
|
|
+ // data: {
|
|
|
+ // headPicPath: this.data.imgPath
|
|
|
+ // },
|
|
|
+ // success: (res) => {
|
|
|
+ // console.log(res, "000");
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // wx.redirectTo({
|
|
|
+ // url: '/pages/idCardDetail/idCardDetail',
|
|
|
+ // })
|
|
|
},
|
|
|
goPhoto() {
|
|
|
var that = this;
|