Commit 7ab23970 by 李嘉林

加log

parent f1b69ef6
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import index from "@/api/index"; import index from "@/api/index";
const app = getApp();
const { log } = app;
export default { export default {
name: "checkHistory", name: "checkHistory",
data() { data() {
...@@ -62,6 +64,7 @@ export default { ...@@ -62,6 +64,7 @@ export default {
checkOrVerified: 2, checkOrVerified: 2,
}; };
index.getHistoryByVerifier(query).then((res) => { index.getHistoryByVerifier(query).then((res) => {
log.info('getHistoryByVerifier',query,res)
this.loaded = true; this.loaded = true;
wx.hideLoading(); wx.hideLoading();
if (res.data.ok == "true") { if (res.data.ok == "true") {
......
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
console.log(options.src, "----------22"); console.log(options.src, "----------22");
const device = wx.getSystemInfoSync(); // 获取设备信息 const device = wx.getSystemInfoSync(); // 获取设备信息
const width = device.windowWidth; // 示例为一个与屏幕等宽的正方形裁剪框 const width = device.windowWidth; // 示例为一个与屏幕等宽的正方形裁剪框
const height = device.windowHeight-120; const height = device.windowHeight-200;
let cropperOptions = { let cropperOptions = {
src: "", src: "",
id: "canvasId", id: "canvasId",
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
zoom: 8, // 缩放系数 zoom: 8, // 缩放系数
cut: { cut: {
x: (width - 260) / 2, // 裁剪框x轴起点 x: (width - 260) / 2, // 裁剪框x轴起点
y: (height - 320) / 2, // 裁剪框y轴期起点 y: (height - 300) / 2, // 裁剪框y轴期起点
width: 260, // 裁剪框宽度 width: 260, // 裁剪框宽度
height: 320, // 裁剪框高度 height: 320, // 裁剪框高度
}, },
......
...@@ -93,6 +93,8 @@ ...@@ -93,6 +93,8 @@
import live from "@/api/live"; import live from "@/api/live";
import index from "@/api/index"; import index from "@/api/index";
import { DFSImg } from '@/utils/common.js' import { DFSImg } from '@/utils/common.js'
const app = getApp();
const { log } = app;
export default { export default {
name: "improveInformation", name: "improveInformation",
data() { data() {
...@@ -137,6 +139,7 @@ export default { ...@@ -137,6 +139,7 @@ export default {
}); });
this.editImg = false; this.editImg = false;
live.getUserInfo().then(res=>{ live.getUserInfo().then(res=>{
log.info('getUserInfo',res)
wx.hideLoading(); wx.hideLoading();
if(res.data.ok=='true'){ if(res.data.ok=='true'){
this.userInfo = res.data.data; this.userInfo = res.data.data;
...@@ -218,6 +221,7 @@ export default { ...@@ -218,6 +221,7 @@ export default {
headPortraitUrl: this.userInfo.headPortraitUrl headPortraitUrl: this.userInfo.headPortraitUrl
} }
index.update_info(query).then(res=>{ index.update_info(query).then(res=>{
log.info('update_info',query,res)
if(res.data.ok == 'true'){} if(res.data.ok == 'true'){}
}) })
}, },
......
...@@ -63,6 +63,8 @@ import live from "@/api/live"; ...@@ -63,6 +63,8 @@ import live from "@/api/live";
import index from "@/api/index"; import index from "@/api/index";
import { DFSImg } from "@/utils/common.js"; import { DFSImg } from "@/utils/common.js";
import QRCode from "@/utils/weapp-qrcode.js"; import QRCode from "@/utils/weapp-qrcode.js";
const app = getApp();
const { log } = app;
export default { export default {
name: "showPassCheck", name: "showPassCheck",
data() { data() {
...@@ -141,6 +143,7 @@ export default { ...@@ -141,6 +143,7 @@ export default {
}, },
getQrCode() { getQrCode() {
index.generatorUniqueCodeByDynamic().then((res) => { index.generatorUniqueCodeByDynamic().then((res) => {
log.info('generatorUniqueCodeByDynamic',res)
if (res.data.ok == "true") { if (res.data.ok == "true") {
this.qrCode = res.data.data.uniqueCode; this.qrCode = res.data.data.uniqueCode;
this.updateTime = res.data.data.createDatetime; this.updateTime = res.data.data.createDatetime;
......
...@@ -90,6 +90,8 @@ ...@@ -90,6 +90,8 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import index from "@/api/index"; import index from "@/api/index";
import { DFSImg } from "@/utils/common.js"; import { DFSImg } from "@/utils/common.js";
const app = getApp();
const { log } = app;
export default { export default {
name: "verification", name: "verification",
data() { data() {
...@@ -154,6 +156,7 @@ export default { ...@@ -154,6 +156,7 @@ export default {
this.showInfo = false; this.showInfo = false;
this.loaded = false; this.loaded = false;
index.getInfoByUniqueCode(this.checkText).then((res) => { index.getInfoByUniqueCode(this.checkText).then((res) => {
log.info('getInfoByUniqueCode',this.checkText,res)
wx.hideLoading(); wx.hideLoading();
this.loaded = true; this.loaded = true;
if (res.data.ok == "true" && res.data.data) { if (res.data.ok == "true" && res.data.data) {
......
...@@ -78,6 +78,8 @@ ...@@ -78,6 +78,8 @@
<script> <script>
import login from "@/api/login"; import login from "@/api/login";
const app = getApp();
const { log } = app;
export default { export default {
name: "writeInformation", name: "writeInformation",
data() { data() {
...@@ -200,6 +202,7 @@ export default { ...@@ -200,6 +202,7 @@ export default {
}); });
let query = { customerName: this.name, identityCard: this.idNum }; let query = { customerName: this.name, identityCard: this.idNum };
login.get_certified_info(query).then((res) => { login.get_certified_info(query).then((res) => {
log.info('get_certified_info',query,res)
if (res.data.ok == "true") { if (res.data.ok == "true") {
let infoData = res.data.data; let infoData = res.data.data;
this.mini_certified(infoData); this.mini_certified(infoData);
...@@ -230,6 +233,7 @@ export default { ...@@ -230,6 +233,7 @@ export default {
code: this.code, code: this.code,
}; };
login.mini_certified(query).then((res) => { login.mini_certified(query).then((res) => {
log.info('mini_certified',query,res)
if (res.data.ok == "true") { if (res.data.ok == "true") {
wx.login({ wx.login({
success: (res) => { success: (res) => {
...@@ -242,6 +246,7 @@ export default { ...@@ -242,6 +246,7 @@ export default {
spokesmanShopId: "", spokesmanShopId: "",
}) })
.then((res) => { .then((res) => {
log.info('miniLogin',res)
if (res.data.code == 200 && res.data.data.sessionId) { if (res.data.code == 200 && res.data.data.sessionId) {
wx.showToast({ wx.showToast({
title: "认证通过", title: "认证通过",
...@@ -269,6 +274,12 @@ export default { ...@@ -269,6 +274,12 @@ export default {
}, },
fail: (err) => {}, fail: (err) => {},
}); //重新登录 }); //重新登录
} else {
wx.showToast({
title: res.data.msg,
icon: "error",
duration: 1000,
});
} }
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment