Commit 82850f13 authored by home's avatar home

zxf

parent daed9897
......@@ -286,7 +286,6 @@
uni.scanCode({
success:res => {
uni.request({
url: 'https://www.mxnzp.com/api/barcode/goods/details', //仅为示例,并非真实接口地址。
data: {
barcode: res.result,
......@@ -307,6 +306,15 @@
})
console.log(results)
}
},
fail :(results) => {
console.log(results);
results.isScanCode=false;
results.code=res.result;
uni.navigateTo({
url: '/pages/addEditEleProduct/addEditEleProduct?results='+JSON.stringify(results)
})
}
})
}
......@@ -319,23 +327,23 @@
},
shops(){
if(this.is_luck_draw==1){
// if(this.is_luck_draw==1){
uni.navigateTo({
url:"/pages/details/details?shop_id="+this.shop_id
})
}else{
uni.showModal({
title: '温馨提示',
content: '不符合参与条件!请联系客服开通权限400-807-3023',
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
}
// }else{
// uni.showModal({
// title: '温馨提示',
// content: '不符合参与条件!请联系客服开通权限400-807-3023',
// success: function (res) {
// if (res.confirm) {
// console.log('用户点击确定');
// } else if (res.cancel) {
// console.log('用户点击取消');
// }
// }
// });
// }
},
demoaudio() {
......
......@@ -216,10 +216,9 @@
this.$api.msg("您需要先同意用户协议和隐私策略");
return false;
}
let cID=''
// #ifdef APP-PLUS
let cID = plus.push.getClientInfo();
console.log(cID)
cID = plus.push.getClientInfo();
// #endif
if(this.username==""){
......@@ -233,7 +232,7 @@
let res = await userLogin({
username:this.username,
password:this.password,
cid : cID.clientid
cid : cID.clientid?cID.clientid:''
});
this.$api.msg(res);
......
......@@ -4,14 +4,14 @@ module.exports = {
//是否为开发调试环境 true为本地环境 false 为正式环境
isdebug:false,//正式
//isdebug:true,//测试
// isdebug:false,//正式
isdebug:true,//测试
xqdebug:false,//正式权限
// xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
// xqdebug:false,//正式权限
xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
// #ifdef APP-PLUS
......
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