Bladeren bron

Merge branch 'notice-260707' of http://git.huaml.com/zhh/front-end into notice-260707

ouyang 3 weken geleden
bovenliggende
commit
895b368565
4 gewijzigde bestanden met toevoegingen van 17 en 10 verwijderingen
  1. 2 1
      .gitignore
  2. 4 0
      mallApp/src/api/order/index.js
  3. 3 1
      mallApp/src/pages/billing/affirmGhs.vue
  4. 8 8
      mallApp/src/pages/order/buy.vue

+ 2 - 1
.gitignore

@@ -3,4 +3,5 @@
 hdApp/dist/*
 package-lock.json
 .prettierrc
-AGENTS.md
+AGENTS.md
+.cursor

+ 4 - 0
mallApp/src/api/order/index.js

@@ -144,3 +144,7 @@ export const getDebtList = data => {
 export const getLimitBuyInfo = data => {
 	return https.post("/order/limit-buy-info", data);
 };
+
+export const inform = data => {
+	return https.get("/order/inform", data);
+};

+ 3 - 1
mallApp/src/pages/billing/affirmGhs.vue

@@ -293,7 +293,7 @@
 <script>
 import TuiListCell from "@/components/plugin/list-cell";
 import productMins from "@/mixins/cgProduct";
-import { buyItem,newFreight } from "@/api/order"
+import { buyItem,inform } from "@/api/order"
 import { allDeliveryQuotes } from "@/api/express/delivery"
 import { currentInfo } from "@/api/user"
 import { getAvailableHb } from "@/api/hb"
@@ -783,7 +783,9 @@ export default {
 		confirmForm(){
 			let hdId = this.option.hdId ? this.option.hdId : 0
 			let account = this.option.account ? this.option.account : 0
+
 			if(Number(hdId)<=0 || Number(account)<=0){
+				inform({hdId:hdId,account:account,page:'affirmGhs'})
 				this.$util.confirmModal({content:'网络异常,请重新提交'},() => {
 					uni.reLaunch({url:'/pages/home/recent'})
 				})

+ 8 - 8
mallApp/src/pages/order/buy.vue

@@ -70,9 +70,8 @@ import TuiListCell from "@/components/plugin/list-cell";
 import AppDeliveryModule from "./components/app-delivery";
 import AppListModule from "./components/app-order-list2";
 import HbSelect from "@/components/hb/hb-select";
-//import { getShopUser } from "@/utils/auth";
 import { getOrderShop } from "@/utils/config";
-import { createOrder,newFreight } from "@/api/order";
+import { createOrder,inform } from "@/api/order";
 import { getHasMap } from "@/api/express";
 import { getAvailableHb } from "@/api/hb"
 export default {
@@ -263,12 +262,13 @@ export default {
       let hdId = this.option.hdId?this.option.hdId:0
       let account = this.option.account?this.option.account:0
 
-		if(Number(hdId)<=0 || Number(account)<=0){
-			this.$util.confirmModal({content:'网络异常,请重新提交'},() => {
-				uni.reLaunch({url:'/pages/home/recent'})
-			})
-			return false
-		}
+      if(Number(hdId)<=0 || Number(account)<=0){
+        inform({hdId:hdId,account:account,page:'buy'})
+        this.$util.confirmModal({content:'网络异常,请重新提交'},() => {
+          uni.reLaunch({url:'/pages/home/recent'})
+        })
+        return false
+      }
 
       let form = {}
       if (this.form.sendType == 2) {