Commit b619463e authored by home's avatar home

zxf

parent 563d4e49
......@@ -5,7 +5,6 @@
"description" : "商家",
"versionName" : "1.0.98",
"versionCode" : 198,
"transformPx" : false,
"compatible" : {
"ignoreVersion" : true, //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
......
......@@ -221,7 +221,7 @@
<view class="inputs" @tap='pickerone'>
<view class="" style="padding-left: 15upx;">{{cate_name}}</view>
</view>
<lb-picker ref="picker" :list="chindformList" :value='index' range-key="label" :props="myProps" @confirm='confirm'></lb-picker>
<lb-picker ref="picker" :list="chindformList" :value='chindformList.cate_name' range-key="label" @confirm='confirm'></lb-picker>
</view>
</view>
......@@ -611,6 +611,7 @@
}
},
async findEleProduct(results){
console.log('查找商品')
uni.showLoading({title:'请稍后'});
let res=await findEleProduct({code:results.code});
......@@ -662,6 +663,8 @@
this.codeDisabled=true;//条形码输入框是否禁止输入
this.c_pics=[{code:0,data:res.data.photo,msg:"success",time:"1587101904"}];
// console.log(this.chindformList);
for(var i = 0; i < this.chindformList.length; i++) {
if(this.chindformList[i].cate_id==res.data.cate_id){
this.cate_name=this.chindformList[i].cate_name;
......@@ -669,6 +672,9 @@
}
}
}
},
myProps(){
},
saoma(e){
uni.scanCode({
......@@ -725,11 +731,12 @@
},
confirm(e){
console.log(e)
console.log(e);
this.cate_name = e.item.cate_name;
this.form.cate_id =e.item.cate_id;
this.index = e.index;
},
},
pickerone(){
this.$refs.picker.show() // 显示
},
......@@ -741,7 +748,8 @@
},
//分类选中
bindPickerChange(e){
console.info(e.detail.value);
console.info(e.detail.value);
console.log(this.chindformList)
this.cate_name = this.chindformList[e.detail.value].cate_name;
this.form.cate_id = this.chindformList[e.detail.value].cate_id;
this.index = e.detail.value;
......@@ -800,8 +808,11 @@
this.form.commission = res.data.commission, //返佣比例
this.form.sell_type = res.data.sell_type, // 售卖类型
this.form.mandatory = res.data.mandatory
this.video_photos=res.data.video_photos;//轮播
this.detail_photos=res.data.detail_photos;//详情
res.data.video_photos.map(item=>{ //轮播
this.c_pics1.push({
code:0,
......@@ -826,6 +837,8 @@
}
});
if(res.data.commodity_type == 'ordinary') {
this.ordinary.map(item=>{
if(this.linkage_product_id == item.product_id){
......@@ -983,7 +996,8 @@
async typeManagerfun(){
let res = await typeManager({});
if(res.code==0){
this.chindformList = res.data;
this.chindformList = res.data;
if(this.product_id!=undefined && this.product_id!=""){
this.eleProductInfofun();
}
......
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