Commit ea4296ad authored by srf's avatar srf

srf

parent f008b3a8
......@@ -72,9 +72,14 @@
isshowall:true,
isselect:"2",
sendindex:"",
money_type:""
}
},
onLoad(opdata) {
console.info(opdata)
this.money_type=opdata.money_type;
if(opdata.isselect==1){
this.isselect = 1;
this.sendindex = opdata.sendindex;//插入索引
......@@ -268,7 +273,7 @@
jump_edit(item) {
uni.navigateTo({
//url: '/pages/edit/product/product?id=' + id
url:"/pages/edit/product/addshop?id="+item.goods_id,
url:"/pages/edit/product/addshop?id="+item.goods_id+'&money_type='+this.money_type,
})
},
//tab切换事件
......
......@@ -128,12 +128,17 @@
</view>
<!-- 富文本 -->
<view class="noecellbox" v-show="money_type==3">
<view class="title">佣金金额</view>
<view class="inputbox flex">
<input class="input flex1" type="text" v-model="canform.money" value="" placeholder-class="plclass" placeholder="请填写产品名称" />
</view>
</view>
<!-- 多选列表 勾选的位置 -->
<view class="checkboxs">
<view class="title">标识:</view>
<!-- 表特和类目 -->
<checkbox-group @change="checkboxChange">
<view class="chindlost ali-c flex flex-wrap">
<label class="lableitem flex ali-c" v-for="(item,index) in listchind" :key="index">
......@@ -179,6 +184,7 @@
},
data() {
return {
money_type:"",//佣金
myProps: {
label: 'value',
value: 'cate_id',
......@@ -228,6 +234,7 @@
is_new:"0",//0 1 是否新产品
is_hot:"0",//0 1 是否热卖产品
action:"add",//方式(添加:add,修改:edit)
money:''
},
goodsCate:[],
......@@ -259,6 +266,9 @@
}
},
onLoad(opdata) {
console.info(opdata)
this.money_type=opdata.money_type
if(opdata.id!="" && opdata.id!=undefined){
this.canform.goods_id = opdata.id;//修改的商品id
this.canform.action = "edit";
......@@ -306,7 +316,7 @@
this.canform.details = res.data.details;///商品详情(编辑器插件)
this.canform.num = res.data.num;//库存 num
this.canform.cate_id = res.data.cate_id;//产品分类
this.canform.money = res.data.money;//佣金
//处理分类初始值
for(let i=0;i<this.goodsCate.length;i++){
......
This diff is collapsed.
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