Commit 7ab23970 by 李嘉林

加log

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