|
@@ -212,13 +212,14 @@ Page({
|
|
|
success(res) {
|
|
|
const tempFilePaths = res.tempFilePaths
|
|
|
wx.uploadFile({
|
|
|
- url: host + 'fileUpload', // 仅为示例,非真实的接口地址
|
|
|
+ url: host + 'adminFileUpload', // 仅为示例,非真实的接口地址
|
|
|
filePath: tempFilePaths[0],
|
|
|
name: 'file',
|
|
|
formData: {
|
|
|
file: tempFilePaths[0],
|
|
|
userId: app.globalData.user_id,
|
|
|
- imgStatus: 0, // 表示素材
|
|
|
+ customGoodsId:wx.getStorageSync('detail').id,
|
|
|
+ customGoodsImgPlaceId: that.data.dataId[0] == that.data.imgTouch.isActive ? 1 : 2, // that.data.dataId[0] 是正面,1是背面
|
|
|
},
|
|
|
success(res) {
|
|
|
console.log(res, '我上传完了')
|