更新
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
</cu-custom>
|
</cu-custom>
|
||||||
<view id="chooseType" :class="currentBoxId == 'chooseType' ? 'show' : 'hidden'">
|
<view id="chooseType" :class="currentBoxId == 'chooseType' ? 'show' : 'hidden'">
|
||||||
<uni-forms ref="productForm" :modelValue="productDate" :rules="rules" label-width="200rpx">
|
<uni-forms ref="productForm" :modelValue="productDate" :rules="rules" label-width="200rpx">
|
||||||
<uni-forms-item label="商品分类:" name="name">
|
<uni-forms-item label="商品分类:" name="demandRegion">
|
||||||
<mulpicker
|
<mulpicker
|
||||||
v-model="productDate.demandRegion"
|
v-model="productDate.demandRegion"
|
||||||
:list="productList"
|
:list="productList"
|
||||||
@@ -74,20 +74,20 @@
|
|||||||
<view class="uni-px-5" v-for="(item,index) in attributesList">
|
<view class="uni-px-5" v-for="(item,index) in attributesList">
|
||||||
<view style="display: inline-block;">{{item.attributeName}}:</view>
|
<view style="display: inline-block;">{{item.attributeName}}:</view>
|
||||||
<view style="display: inline-block;">
|
<view style="display: inline-block;">
|
||||||
<uni-data-checkbox v-if="index==0" mode="tag" v-model="radioAttributes" :localdata="item.attributesList"></uni-data-checkbox>
|
<uni-data-checkbox v-if="index==0" mode="tag" @change="changeRadio(item,index)" v-model="radioAttributes" :localdata="item.attributesList"></uni-data-checkbox>
|
||||||
<uni-data-checkbox v-else-if="index!=0" mode="tag" multiple v-model="checkboxAttributes" :localdata="hobby"></uni-data-checkbox>
|
<uni-data-checkbox v-else-if="index!=0" mode="tag" @change="changeCheckBox(item,index)" multiple v-model="checkboxAttributes" :localdata="item.attributesList"></uni-data-checkbox>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</uni-section>
|
</uni-section>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view style="padding-bottom: 20rpx;border-bottom: 1rpx solid #f6f6f6;">
|
||||||
<view>批量填充:<text style="color: #999999;margin: 10rpx 0;">批量填充填入信息后,可以批量将内容填写到SKU 信息里</text></view>
|
<view>批量填充:<text style="color: #999999;margin: 10rpx 0;">批量填充填入信息后,可以批量将内容填写到SKU 信息里</text></view>
|
||||||
<view class="tagButton" @tap="changeChecked(item)" v-for="item in bottonList">{{item.label}}</view>
|
<view class="tagButton" v-for="item in bottonList">{{item.label}}</view>
|
||||||
<view class="redButton" @tap="addStockList">确定</view>
|
<view class="redButton" @tap="addStockList">确定</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-for="(items,index) in stockList">
|
<view style="padding: 20rpx 0;;border-bottom: 1rpx solid #f6f6f6;" v-for="(items,index) in stockList">
|
||||||
<view style="margin: 10rpx 0;">
|
<view style="margin: 10rpx 0;">
|
||||||
<text style="color: red;">*</text>
|
<text style="color: red;">*</text>
|
||||||
<text>规格:</text>
|
<text>规格:</text>
|
||||||
@@ -163,6 +163,7 @@
|
|||||||
currentBoxId: 'chooseType', //当前显示的view的id
|
currentBoxId: 'chooseType', //当前显示的view的id
|
||||||
isBoxShow: false,
|
isBoxShow: false,
|
||||||
productDate:{
|
productDate:{
|
||||||
|
productStatus:'1',
|
||||||
images:[]
|
images:[]
|
||||||
},
|
},
|
||||||
productList:[],
|
productList:[],
|
||||||
@@ -175,9 +176,9 @@
|
|||||||
checked: false
|
checked: false
|
||||||
}],
|
}],
|
||||||
rules:{
|
rules:{
|
||||||
name:{rules:[{required: true,errorMessage: '请选择商品分类'}]},
|
demandRegion:{rules:[{required: true,errorMessage: '请选择商品分类'}]},
|
||||||
productName:{rules:[{required: true,errorMessage: '请输入商品名称'}]},
|
productName:{rules:[{required: true,errorMessage: '请输入商品名称'}]},
|
||||||
brandId:{rules:[{required: true,errorMessage: '请输入商品品牌'}]},
|
brandId:{rules:[{required: true,errorMessage: '请选择商品品牌'}]},
|
||||||
price:{rules:[{required: true,errorMessage: '请输入商品售价'}]},
|
price:{rules:[{required: true,errorMessage: '请输入商品售价'}]},
|
||||||
},
|
},
|
||||||
attributesTypeList:[],
|
attributesTypeList:[],
|
||||||
@@ -190,7 +191,8 @@
|
|||||||
],
|
],
|
||||||
radioAttributes:'',
|
radioAttributes:'',
|
||||||
checkboxAttributes:[],
|
checkboxAttributes:[],
|
||||||
stockList:[]
|
stockList:[],
|
||||||
|
checkedList:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -205,6 +207,11 @@
|
|||||||
this.productDate.categoryOneId = val.split(',')[0]
|
this.productDate.categoryOneId = val.split(',')[0]
|
||||||
this.productDate.categoryTwoId = val.split(',')[1]
|
this.productDate.categoryTwoId = val.split(',')[1]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'productDate.attributesTypeId'(val){
|
||||||
|
if(!val){
|
||||||
|
this.stockList = []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -257,6 +264,9 @@
|
|||||||
},
|
},
|
||||||
changeBox(e){
|
changeBox(e){
|
||||||
let currentFlag = e.currentTarget.id;
|
let currentFlag = e.currentTarget.id;
|
||||||
|
if(currentFlag == 'next'){
|
||||||
|
this.$refs.productForm.validate().then(res=>{
|
||||||
|
console.log('表单数据信息:', res);
|
||||||
switch(currentFlag){
|
switch(currentFlag){
|
||||||
case 'next':
|
case 'next':
|
||||||
this.currentBoxId = 'instruction'
|
this.currentBoxId = 'instruction'
|
||||||
@@ -271,6 +281,23 @@
|
|||||||
if(currentFlag == 'next'){
|
if(currentFlag == 'next'){
|
||||||
this.getAttributesType()
|
this.getAttributesType()
|
||||||
}
|
}
|
||||||
|
}).catch(err =>{
|
||||||
|
console.log('表单错误信息:', err);
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
switch(currentFlag){
|
||||||
|
case 'next':
|
||||||
|
this.currentBoxId = 'instruction'
|
||||||
|
break;
|
||||||
|
case 'previous':
|
||||||
|
this.currentBoxId = 'chooseType'
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
this.currentBoxId = 'viewInstruction'
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
getAttributesType(){
|
getAttributesType(){
|
||||||
this.attributesTypeList = []
|
this.attributesTypeList = []
|
||||||
@@ -304,6 +331,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
changeRadio(item,index){
|
||||||
|
if(JSON.stringify(this.checkedList) == '[]'){
|
||||||
|
this.checkedList.push({attributeId:item.id,checked:item.attributeName})
|
||||||
|
}else{
|
||||||
|
this.checkedList[index].checked = item.attributeName
|
||||||
|
}
|
||||||
|
},
|
||||||
|
changeCheckBox(item,index){
|
||||||
|
if(this.checkedList.length<index+1){
|
||||||
|
this.checkedList.push({attributeId:item.id,checked:item.attributeName})
|
||||||
|
}else{
|
||||||
|
let checked = []
|
||||||
|
this.checkboxAttributes.forEach(tab=>{
|
||||||
|
checked.push(tab)
|
||||||
|
})
|
||||||
|
this.checkedList[index].checked = checked.join(',')
|
||||||
|
this.checkedList.checked
|
||||||
|
}
|
||||||
|
},
|
||||||
deleteCheckAll(i){
|
deleteCheckAll(i){
|
||||||
if(this.checkboxAttributes.length>1){
|
if(this.checkboxAttributes.length>1){
|
||||||
this.checkboxAttributes.splice(i,1)
|
this.checkboxAttributes.splice(i,1)
|
||||||
@@ -358,7 +404,6 @@
|
|||||||
sourceType: ['album'], //从相册选择
|
sourceType: ['album'], //从相册选择
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
console.log('进入1')
|
|
||||||
const JSESSIONID = utils.uuid()
|
const JSESSIONID = utils.uuid()
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: 'http://uat.xingoil.com/adminapi/oil-oss/obejct/uploadFile',
|
url: 'http://uat.xingoil.com/adminapi/oil-oss/obejct/uploadFile',
|
||||||
@@ -379,14 +424,11 @@
|
|||||||
'token': utils.md5Salt(JSESSIONID)
|
'token': utils.md5Salt(JSESSIONID)
|
||||||
},
|
},
|
||||||
success(e) {
|
success(e) {
|
||||||
console.log('进入2')
|
|
||||||
console.log(e)
|
|
||||||
let obj = JSON.parse(e.data),
|
let obj = JSON.parse(e.data),
|
||||||
imageUrl = obj.data.publicUrl
|
imageUrl = obj.data.publicUrl
|
||||||
_that.getImage(imageUrl)
|
_that.getImage(imageUrl)
|
||||||
},
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
console.log(err)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},fail() {
|
},fail() {
|
||||||
@@ -440,9 +482,15 @@
|
|||||||
}else{
|
}else{
|
||||||
this.productDate.recommend == '2'
|
this.productDate.recommend == '2'
|
||||||
}
|
}
|
||||||
|
this.productDate.checkedList = this.checkedList
|
||||||
this.productDate.stockList = this.stockList
|
this.productDate.stockList = this.stockList
|
||||||
serve.saveProduct(this.productDate).then(res=>{
|
serve.saveProduct(this.productDate).then(res=>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.closed()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -524,6 +572,10 @@
|
|||||||
line-height: 72rpx;
|
line-height: 72rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.content{
|
||||||
|
padding-bottom: 20rpx;
|
||||||
|
border-bottom: 1rpx solid #F6F6F6;
|
||||||
|
}
|
||||||
.tagButton{
|
.tagButton{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 133rpx;
|
width: 133rpx;
|
||||||
|
|||||||
@@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
<scroll-view v-if="dataList.length" class="list" :scroll-y="true" @scrolltolower="lower">
|
<scroll-view v-if="dataList.length" class="list" :scroll-y="true" @scrolltolower="lower">
|
||||||
<view class="item" v-for="item,index in dataList" :key="index">
|
<view class="item" v-for="item,index in dataList" :key="index">
|
||||||
<view class="header" @click="toDetails(item)">
|
<view class="header">
|
||||||
<view class="identifying"
|
<view class="identifying"
|
||||||
:style="{background:identifying[item.productStatus].background,
|
:style="{background:identifying[item.productStatus].background,
|
||||||
opacity:identifying[item.productStatus].opacity}">{{item.productStatus =='1'?'已上架':'未上架'}}</view>
|
opacity:identifying[item.productStatus].opacity}">{{item.productStatus =='1'?'已上架':'未上架'}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="introduce" @click="toDetails(item)">
|
<view class="introduce">
|
||||||
<image :src="item.url"></image>
|
<image :src="item.url"></image>
|
||||||
<view>{{item.productName}}</view>
|
<view>{{item.productName}}</view>
|
||||||
<view>规格:默认</view>
|
<view>规格:默认</view>
|
||||||
@@ -192,11 +192,11 @@
|
|||||||
}, '')
|
}, '')
|
||||||
return text
|
return text
|
||||||
},
|
},
|
||||||
toDetails(item) {
|
// toDetails(item) {
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url: `../orderDetails/index?orderId=${item.id}`
|
// url: `../orderDetails/index?orderId=${item.id}`
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
getTopInfo(){
|
getTopInfo(){
|
||||||
serve.getTopInfo(this.paramter).then(res => {
|
serve.getTopInfo(this.paramter).then(res => {
|
||||||
if (res.code === 20000) {
|
if (res.code === 20000) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</cu-custom>
|
</cu-custom>
|
||||||
<view id="chooseType" :class="currentBoxId == 'chooseType' ? 'show' : 'hidden'">
|
<view id="chooseType" :class="currentBoxId == 'chooseType' ? 'show' : 'hidden'">
|
||||||
<uni-forms ref="productForm" :modelValue="productDate" :rules="rules" label-width="200rpx">
|
<uni-forms ref="productForm" :modelValue="productDate" :rules="rules" label-width="200rpx">
|
||||||
<uni-forms-item label="商品分类:" name="name">
|
<uni-forms-item label="商品分类:" name="demandRegion">
|
||||||
<mulpicker
|
<mulpicker
|
||||||
v-model="productDate.demandRegion"
|
v-model="productDate.demandRegion"
|
||||||
:list="productList"
|
:list="productList"
|
||||||
@@ -74,20 +74,20 @@
|
|||||||
<view class="uni-px-5" v-for="(item,index) in attributesList">
|
<view class="uni-px-5" v-for="(item,index) in attributesList">
|
||||||
<view style="display: inline-block;">{{item.attributeName}}:</view>
|
<view style="display: inline-block;">{{item.attributeName}}:</view>
|
||||||
<view style="display: inline-block;">
|
<view style="display: inline-block;">
|
||||||
<uni-data-checkbox v-if="index==0" mode="tag" v-model="radioAttributes" :localdata="item.attributesList"></uni-data-checkbox>
|
<uni-data-checkbox v-if="index==0" mode="tag" @change="changeRadio(item,index)" v-model="radioAttributes" :localdata="item.attributesList"></uni-data-checkbox>
|
||||||
<uni-data-checkbox v-else-if="index!=0" mode="tag" multiple v-model="checkboxAttributes" :localdata="hobby"></uni-data-checkbox>
|
<uni-data-checkbox v-else-if="index!=0" mode="tag" @change="changeCheckBox(item,index)" multiple v-model="checkboxAttributes" :localdata="item.attributesList"></uni-data-checkbox>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</uni-section>
|
</uni-section>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view style="padding-bottom: 20rpx;border-bottom: 1rpx solid #f6f6f6;">
|
||||||
<view>批量填充:<text style="color: #999999;margin: 10rpx 0;">批量填充填入信息后,可以批量将内容填写到SKU 信息里</text></view>
|
<view>批量填充:<text style="color: #999999;margin: 10rpx 0;">批量填充填入信息后,可以批量将内容填写到SKU 信息里</text></view>
|
||||||
<view class="tagButton" @tap="changeChecked(item)" v-for="item in bottonList">{{item.label}}</view>
|
<view class="tagButton" @tap="changeChecked(item)" v-for="item in bottonList">{{item.label}}</view>
|
||||||
<view class="redButton" @tap="addStockList">确定</view>
|
<view class="redButton" @tap="addStockList">确定</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-for="(items,index) in stockList">
|
<view style="padding: 20rpx 0;;border-bottom: 1rpx solid #f6f6f6;" v-for="(items,index) in stockList">
|
||||||
<view style="margin: 10rpx 0;">
|
<view style="margin: 10rpx 0;">
|
||||||
<text style="color: red;">*</text>
|
<text style="color: red;">*</text>
|
||||||
<text>规格:</text>
|
<text>规格:</text>
|
||||||
@@ -163,6 +163,7 @@
|
|||||||
currentBoxId: 'chooseType', //当前显示的view的id
|
currentBoxId: 'chooseType', //当前显示的view的id
|
||||||
isBoxShow: false,
|
isBoxShow: false,
|
||||||
productDate:{
|
productDate:{
|
||||||
|
productStatus:'1',
|
||||||
images:[]
|
images:[]
|
||||||
},
|
},
|
||||||
productList:[],
|
productList:[],
|
||||||
@@ -175,9 +176,9 @@
|
|||||||
checked: false
|
checked: false
|
||||||
}],
|
}],
|
||||||
rules:{
|
rules:{
|
||||||
name:{rules:[{required: true,errorMessage: '请选择商品分类'}]},
|
demandRegion:{rules:[{required: true,errorMessage: '请选择商品分类'}]},
|
||||||
productName:{rules:[{required: true,errorMessage: '请输入商品名称'}]},
|
productName:{rules:[{required: true,errorMessage: '请输入商品名称'}]},
|
||||||
brandId:{rules:[{required: true,errorMessage: '请输入商品品牌'}]},
|
brandId:{rules:[{required: true,errorMessage: '请选择商品品牌'}]},
|
||||||
price:{rules:[{required: true,errorMessage: '请输入商品售价'}]},
|
price:{rules:[{required: true,errorMessage: '请输入商品售价'}]},
|
||||||
},
|
},
|
||||||
attributesTypeList:[],
|
attributesTypeList:[],
|
||||||
@@ -190,7 +191,8 @@
|
|||||||
],
|
],
|
||||||
radioAttributes:'',
|
radioAttributes:'',
|
||||||
checkboxAttributes:[],
|
checkboxAttributes:[],
|
||||||
stockList:[]
|
stockList:[],
|
||||||
|
checkedList:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -207,6 +209,11 @@
|
|||||||
this.productDate.categoryOneId = val.split(',')[0]
|
this.productDate.categoryOneId = val.split(',')[0]
|
||||||
this.productDate.categoryTwoId = val.split(',')[1]
|
this.productDate.categoryTwoId = val.split(',')[1]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'productDate.attributesTypeId'(val){
|
||||||
|
if(!val){
|
||||||
|
this.stockList = []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -236,6 +243,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.checkedList = this.productDate.checkedList
|
||||||
if(this.productDate.checkedList.length==1){
|
if(this.productDate.checkedList.length==1){
|
||||||
this.radioAttributes = this.productDate.checkedList[0].checked
|
this.radioAttributes = this.productDate.checkedList[0].checked
|
||||||
}else{
|
}else{
|
||||||
@@ -302,6 +310,9 @@
|
|||||||
},
|
},
|
||||||
changeBox(e){
|
changeBox(e){
|
||||||
let currentFlag = e.currentTarget.id;
|
let currentFlag = e.currentTarget.id;
|
||||||
|
if(currentFlag == 'next'){
|
||||||
|
this.$refs.productForm.validate().then(res=>{
|
||||||
|
console.log('表单数据信息:', res);
|
||||||
switch(currentFlag){
|
switch(currentFlag){
|
||||||
case 'next':
|
case 'next':
|
||||||
this.currentBoxId = 'instruction'
|
this.currentBoxId = 'instruction'
|
||||||
@@ -316,6 +327,23 @@
|
|||||||
if(currentFlag == 'next'){
|
if(currentFlag == 'next'){
|
||||||
this.getAttributesType()
|
this.getAttributesType()
|
||||||
}
|
}
|
||||||
|
}).catch(err =>{
|
||||||
|
console.log('表单错误信息:', err);
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
switch(currentFlag){
|
||||||
|
case 'next':
|
||||||
|
this.currentBoxId = 'instruction'
|
||||||
|
break;
|
||||||
|
case 'previous':
|
||||||
|
this.currentBoxId = 'chooseType'
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
this.currentBoxId = 'viewInstruction'
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
getAttributesType(){
|
getAttributesType(){
|
||||||
this.attributesTypeList = []
|
this.attributesTypeList = []
|
||||||
@@ -348,6 +376,25 @@
|
|||||||
this.attributesList = []
|
this.attributesList = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
changeRadio(item,index){
|
||||||
|
if(JSON.stringify(this.checkedList) == '[]'){
|
||||||
|
this.checkedList.push({attributeId:item.id,checked:item.attributeName})
|
||||||
|
}else{
|
||||||
|
this.checkedList[index].checked = item.attributeName
|
||||||
|
}
|
||||||
|
},
|
||||||
|
changeCheckBox(item,index){
|
||||||
|
if(this.checkedList.length<index+1){
|
||||||
|
this.checkedList.push({attributeId:item.id,checked:item.attributeName})
|
||||||
|
}else{
|
||||||
|
let checked = []
|
||||||
|
this.checkboxAttributes.forEach(tab=>{
|
||||||
|
checked.push(tab)
|
||||||
|
})
|
||||||
|
this.checkedList[index].checked = checked.join(',')
|
||||||
|
this.checkedList.checked
|
||||||
|
}
|
||||||
},
|
},
|
||||||
deleteCheckAll(i){
|
deleteCheckAll(i){
|
||||||
if(this.checkboxAttributes.length>1){
|
if(this.checkboxAttributes.length>1){
|
||||||
@@ -402,8 +449,6 @@
|
|||||||
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
||||||
sourceType: ['album'], //从相册选择
|
sourceType: ['album'], //从相册选择
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(res)
|
|
||||||
console.log('进入1')
|
|
||||||
const JSESSIONID = utils.uuid()
|
const JSESSIONID = utils.uuid()
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: 'http://uat.xingoil.com/adminapi/oil-oss/obejct/uploadFile',
|
url: 'http://uat.xingoil.com/adminapi/oil-oss/obejct/uploadFile',
|
||||||
@@ -424,14 +469,11 @@
|
|||||||
'token': utils.md5Salt(JSESSIONID)
|
'token': utils.md5Salt(JSESSIONID)
|
||||||
},
|
},
|
||||||
success(e) {
|
success(e) {
|
||||||
console.log('进入2')
|
|
||||||
console.log(e)
|
|
||||||
let obj = JSON.parse(e.data),
|
let obj = JSON.parse(e.data),
|
||||||
imageUrl = obj.data.publicUrl
|
imageUrl = obj.data.publicUrl
|
||||||
_that.getImage(imageUrl)
|
_that.getImage(imageUrl)
|
||||||
},
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
console.log(err)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},fail() {
|
},fail() {
|
||||||
@@ -483,7 +525,17 @@
|
|||||||
}else{
|
}else{
|
||||||
this.productDate.recommend == '2'
|
this.productDate.recommend == '2'
|
||||||
}
|
}
|
||||||
|
this.productDate.checkedList = this.checkedList
|
||||||
this.productDate.stockList = this.stockList
|
this.productDate.stockList = this.stockList
|
||||||
|
serve.updateProduct(this.productDate).then(res=>{
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `../productList/index`
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user