shish 4 yıl önce
ebeveyn
işleme
e9e81b5a4e

+ 6 - 7
ghsApp/src/pagesPurchase/details.vue

@@ -306,8 +306,13 @@ export default {
 			this.form.province = e.provinceName;
 			this.form.city = e.cityName;
 		},
+		formSubmitFun(){
+			let that = this;
+			that.$util.confirmModal({content:'确认提交?'},() => {
+				that.confirmFn();
+			})
+		},
 		async confirmFn() {
-
 			const { orderSn } = this.option;
 			let formData = this.form;
 			if (orderSn) {
@@ -335,12 +340,6 @@ export default {
 			uni.reLaunch({url:'/pagesPurchase/components/pageSuccess?orderSn='+res.data.orderSn})
 
 		},
-		formSubmitFun(){
-			let that = this;
-			that.$util.confirmModal({content:''},() => {
-				that.confirmFn();
-			})
-		},
 		// 表单验证
 		formSubmit(e) {
 			// 表单规则

+ 3 - 10
ghsApp/src/store/modules/product.js

@@ -8,25 +8,18 @@ export default {
 		}
 	},
 	actions: {
-		/**
-		 * 设置不同类别选中商品列表信息
-		 */
+		//设置不同类别选中商品列表信息
 		setSelectInfoByType({ commit }, { type, info }) {
 			commit("SET_SELECTINFO_BY_TYPE", { type, info });
 		},
-		/**
-		 * 清空不同类别选中商品列表信息
-		 */
+		//清空不同类别选中商品列表信息
 		resetSelectInfoByType({ commit }, type) {
 			commit("SET_SELECTINFO_BY_TYPE", { type, info: [] });
 		}
 	},
 	mutations: {
 		["SET_SELECTINFO_BY_TYPE"](state, { type, info }) {
-			state.selectInfo = {
-				...state.selectInfo,
-				[type]: info
-			};
+			state.selectInfo = { ...state.selectInfo, [type]: info }
 		}
 	}
 };