Commit ac1514c7 authored by haitao's avatar haitao

fd

parent 7515186f
......@@ -3,8 +3,8 @@
//"appid" : "__UNI__FC9419E",
"appid" : "__UNI__1EA80F1", //这个是 web
"description" : "商家",
"versionName" : "1.0.85",
"versionCode" : 185,
"versionName" : "1.0.86",
"versionCode" : 186,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
......@@ -147,7 +147,8 @@
"landscape7" : "C:/Users/Administrator/Desktop/证书/d0abce82961b508e6a0b9924d15fe86.png",
"portrait-1194h@2x" : "C:/Users/Administrator/Desktop/证书/d0abce82961b508e6a0b9924d15fe86.png"
}
}
},
"iosStyle" : "common"
}
},
"compilerVersion" : 2
......
<template>
<!-- 添加外卖商品 -->
<view class="productpages">
<view class="flexv ali-c" style="padding: 30upx 0 0 0;">
<!-- <view class="flexv ali-c" style="padding: 30upx 0 0 0;">
<image class="mb-20 img" @tap="saoma" src="/static/icon/saoma.png"></image>
<view>扫码入库</view>
</view>
</view> -->
<view class="noecellbox">
<view class="title">产品名称</view>
......@@ -39,12 +39,12 @@
</view>
</view>
<view class="noecellbox">
<!-- <view class="noecellbox">
<view class="title">条形编码</view>
<view class="inputbox flex">
<input class="input flex1" type="text" :disabled='codeDisabled' @tap="onCodeFocus" :value="form.code" placeholder-class="plclass" placeholder="请填写产品价格" />
</view>
</view>
</view> -->
<view class="noecellbox">
<view class="title">返佣比例</view>
......
......@@ -284,33 +284,34 @@
},
methods: {
saoma(e){
uni.scanCode({
success:res => {
uni.request({
url: 'https://www.mxnzp.com/api/barcode/goods/details', //仅为示例,并非真实接口地址。
data: {
barcode: res.result,
needImg: true,
app_id:'qkkbptetyohxoiod',
app_secret:'Wkp2a3NiNjAzTFJLRmwrZXN3QW1jZz09'
},
method:'GET',
success: (results) => {
console.log(results);
if(results.data.code==0){
this.$api.msg(results.data.msg);
}else if(results.data.code==1){
results.isScanCode=false;
results.code=res.result;
uni.navigateTo({
url: '/pages/addEditEleProduct/addEditEleProduct?results='+JSON.stringify(results)
})
console.log(results)
}
}
})
}
});
this.$api.msg('即将开放')
// uni.scanCode({
// success:res => {
// uni.request({
// url: 'https://www.mxnzp.com/api/barcode/goods/details', //仅为示例,并非真实接口地址。
// data: {
// barcode: res.result,
// needImg: true,
// app_id:'qkkbptetyohxoiod',
// app_secret:'Wkp2a3NiNjAzTFJLRmwrZXN3QW1jZz09'
// },
// method:'GET',
// success: (results) => {
// console.log(results);
// if(results.data.code==0){
// this.$api.msg(results.data.msg);
// }else if(results.data.code==1){
// results.isScanCode=false;
// results.code=res.result;
// uni.navigateTo({
// url: '/pages/addEditEleProduct/addEditEleProduct?results='+JSON.stringify(results)
// })
// console.log(results)
// }
// }
// })
// }
// });
},
jump(){
uni.navigateTo({
......
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