baijunde 1 год назад
Родитель
Сommit
9de2061aef
2 измененных файлов с 17 добавлено и 3 удалено
  1. 8 3
      pages/product/creatProduct.vue
  2. 9 0
      pages/product/index.vue

+ 8 - 3
pages/product/creatProduct.vue

@@ -145,7 +145,7 @@
 						使用说明
 					</view>
 					<view class="textarea">
-						<u-input v-model="form.instructions" type="textarea" placeholder="输入库存数量" maxlength="500" />
+						<u-input v-model="form.instructions" type="textarea" placeholder="输入" maxlength="500" />
 					</view>
 					<view class="num">
 						<span v-if="form.instructions">{{form.instructions.length>0?form.instructions.length:'0'}}</span>/500
@@ -207,6 +207,8 @@
 <script>
 	import rangTime from '../../components/dengrq-datetime-picker/dateSelector/index.vue'
 	import refund from '@/components/product/refund.vue'
+	
+	import configService from '../../common/service/config.service'
 	export default {
 		components: {
 			rangTime,
@@ -230,7 +232,8 @@
 				fmImageList: [], //封面图回显
 				xqImage: [], //详情图回显
 				showRule: '', //显示退款规则文字
-				action: 'http://192.168.0.36:8080/jeecg-boot/sys/common/upload', //图片上传地址
+				action: configService.apiUrl+'/sys/common/upload', //图片上传地址
+				// action: 'http://192.168.0.36:8080/jeecg-boot/sys/common/upload', //图片上传地址
 				schedule: 1, //进度
 				fileList: [],
 				selectedTime: null,
@@ -249,7 +252,8 @@
 				showDate: '',
 				showSellDate: '',
 				makeChecked: false,
-				imageHttp: 'http://192.168.0.36:8080/jeecg-boot/', //上传图片前缀+
+				// imageHttp: 'http://192.168.0.36:8080/jeecg-boot/', //上传图片前缀+
+				imageHttp: configService.apiUrl+'/', //上传图片前缀+
 				productId: '',
 				postImage: [], //上传图片详情
 			}
@@ -567,6 +571,7 @@
 		mounted() {
 			this.getLeftTree()
 			this.getForm()
+			console.log(configService.apiUrl)
 		},
 		onLoad(options) {
 			if (options.productId) {

+ 9 - 0
pages/product/index.vue

@@ -265,6 +265,7 @@
 											icon: 'none'
 										});
 										that.getProductList()
+										that.getStatus()
 										that.isManage = false
 										that.isAll = false
 									}
@@ -323,6 +324,7 @@
 											icon: 'none'
 										});
 										that.getProductList()
+										that.getStatus()
 									}
 								})
 						} else if (res.cancel) {
@@ -354,6 +356,7 @@
 											icon: 'none'
 										});
 										that.getProductList()
+										that.getStatus()
 									}
 								})
 						} else if (res.cancel) {
@@ -382,6 +385,12 @@
 					that.merchantId = res.data.merchantId
 				}
 			})
+			uni.removeStorage({
+				key: 'smdate',
+			});
+			uni.removeStorage({
+				key: 'group',
+			});
 		}
 	}
 </script>