|
|
|
@ -35,7 +35,6 @@ Page({ |
|
|
|
wx.showLoading({ title: '加载中', mask: true }) |
|
|
|
if (options.id) { |
|
|
|
getPurchaseInfo(options.id).then(result => { |
|
|
|
//成功回调
|
|
|
|
var fileList = [] |
|
|
|
if (result.data.imgList && result.data.imgList.length) { |
|
|
|
result.data.imgList.forEach(element => { |
|
|
|
@ -120,7 +119,6 @@ Page({ |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoadOptions: function (e) { |
|
|
|
// /paperCategoryList 获取纸品列表
|
|
|
|
const { value } = e.detail |
|
|
|
const options = [...this.data.cateList] |
|
|
|
var typeId = parseInt(value[value.length - 1]) |
|
|
|
@ -202,7 +200,6 @@ Page({ |
|
|
|
if (this.data.form.imgList.length >= 1) { |
|
|
|
this.data.form['coverImgUrl'] = this.data.form.imgList[0] |
|
|
|
} |
|
|
|
// /paperCategoryList 获取纸品列表
|
|
|
|
if(!util.isEmpty(this.data.form.unitPrice) && !this.data.kg){ |
|
|
|
this.data.form.unitPrice = math.divide(this.data.form.unitPrice, 1000) |
|
|
|
} |
|
|
|
|