zhangdan il y a 4 ans
Parent
commit
18b52bc809
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      App.vue
  2. 3 3
      pages/index/yuyue.vue

+ 1 - 1
App.vue

@@ -4,7 +4,7 @@
 	const pro_domain = 'https://gather.zyucgj.cn' // 生产
 	const uat_URL = uat_domain+'/gc-cust/' // 预发布
 	const pro_URL = pro_domain+'/gc-cust/'  // 生产
-	const buildType = 1 // 打包环境对应类型,1 生产 0 预发布
+	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url
 	const envText = ['预发布环境','生产环境']
 	const envTips = process.env.NODE_ENV == 'development' ? envText[0] : envText[buildType]

+ 3 - 3
pages/index/yuyue.vue

@@ -337,7 +337,7 @@
 			},
 			// 拍照或从相册选图片
 			goPhotograph() {
-				wx.chooseImage({
+				uni.chooseImage({
 				    count: 1, //默认9
 				    sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
 				    sourceType: ['album','camera'], //从相册选择
@@ -352,7 +352,7 @@
 							})
 							return
 						}
-						wx.showLoading({
+						uni.showLoading({
 							title:'正在保存图片...',
 							mask: true
 						})
@@ -426,7 +426,7 @@
 							params.reserveWeight=this.checkWeightType
 						} 
 						if(this.photograph){
-							params.imageHeaderList=this.photograph
+							params.imageList=this.photograph
 						}
 						console.log(params,'------------参数')
 						yuyueInfoSave(params).then(res=>{