|
@@ -1,5 +1,5 @@
|
|
|
const uploadJS = require('../../mixin/upload.js')
|
|
|
-const { postAddProduct, postModifyProduct, getProductDetail } = require('./api/index')
|
|
|
+const { postAddProduct, postModifyProduct, getProductDetail, mockData } = require('./api/index')
|
|
|
const { getProductCategoryList, getProductBrandList } = require('../../api/common')
|
|
|
const { formatTs, yuan2Fen, fen2Yuan } = require('../../utils/util')
|
|
|
const minDate = new Date().getTime()
|
|
@@ -38,7 +38,8 @@ Page({
|
|
|
'product_all_price': '', // 批发价
|
|
|
'product_price': '', // 零售价
|
|
|
'product_count': '', // 库存
|
|
|
- 'product_sale_at': '预售' // 预售时间(0代表预售)
|
|
|
+ 'product_sale_at': '预售', // 预售时间(0代表预售)
|
|
|
+ ...mockData
|
|
|
},
|
|
|
product_img_url_max: 1,
|
|
|
product_rotation_img_list_max: 5,
|