YZM 1 anno fa
parent
commit
15fc3a5460
3 ha cambiato i file con 24 aggiunte e 6 eliminazioni
  1. 18 0
      pages/changan/index.vue
  2. 1 1
      pages/chengyuan/index.vue
  3. 5 5
      pages/shop/index.vue

+ 18 - 0
pages/changan/index.vue

@@ -98,6 +98,23 @@ export default {
 		this.fenleichange();
 	},
 	methods: {
+		chuFun(){
+			var that=this;
+			myRequest({
+				url: "/api/Goods/cancelDelivery",
+				method:'post',
+				data:{qiu_id:that.qiuid,id:that.chukudata[that.current].id}
+			}).then(res => {
+				console.log(res.data)
+				if (res.data.code == 200) {
+					that.show_1=false;
+					that.$refs.toast.show({model:'success',label:res.data.msg})
+				}else{
+					that.$refs.toast.show({model:'error',label:res.data.msg})
+				}
+			})
+			
+		},
 		baocun(){
 			var that=this;
 			var arr=[],a=0;
@@ -162,6 +179,7 @@ export default {
 					that.chukudata=res.data.data;
 					for(let i=0;i<res.data.data.length;i++){
 						that.list1.push(res.data.data[i].image)
+						that.qiu_id=res.data.data[0].qiu_id;
 					}
 					that.$refs.toast.show({model:'success',label:'出库成功'})
 				}else{

+ 1 - 1
pages/chengyuan/index.vue

@@ -139,7 +139,7 @@ export default {
 		obTstr2(o){
 			console.log(o)
 			if(Array.isArray(o)){
-				if(o.length===0) return "";
+				if(o.length==0 || ! o[0]) return "";
 				if(o[0].data){
 					var name=o[0].data.title;
 				}else if(o[0]){

+ 5 - 5
pages/shop/index.vue

@@ -187,11 +187,11 @@
 								console.log(district);
 							},
 							fail: function(res) {
-								uni.showToast({
-									title: '定位失败',
-									duration: 2000,
-									icon: "none"
-								})
+								// uni.showToast({
+								// 	title: '定位失败',
+								// 	duration: 2000,
+								// 	icon: "none"
+								// })
 								console.log(res);
 							},
 							complete: function(res) {