提交 eaf5e117 编写于 作者: 芊里

清理console

上级 68317205
......@@ -205,9 +205,11 @@
url: '/uni_modules/uni-login-page/pages/index/index'
});
}
},
},
/**
* 每一项的点击事件
*/
itemClick(item) {
console.log(item);
if (item.event) {
this[item.event](item);
}
......
......@@ -168,13 +168,8 @@
})
db.collection(dbCollectionName).where('user_id == $env.uid').field('score,balance').get().then((res) => {
const data = res.result.data[0];
console.log(data);
let msg = '';
if(data){
msg = '当前积分为' + data.balance
} else{
msg = '当前无积分';
}
msg = data ? ('当前积分为' + data.balance) : '当前无积分';
uni.showToast({
title: msg,
icon: 'none'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册