Kaynağa Gözat

报错提示

shish 3 hafta önce
ebeveyn
işleme
644b51f22b

+ 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,6 +783,8 @@ export default {
 		confirmForm(){
 			let hdId = this.option.hdId ? this.option.hdId : 0
 			let account = this.option.account ? this.option.account : 0
+
+			inform({hdId:hdId,account:account,page:'affirmGhs'})
 			if(Number(hdId)<=0 || Number(account)<=0){
 				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
-		}
+      inform({hdId:hdId,account:account,page:'buy'})
+      if(Number(hdId)<=0 || Number(account)<=0){
+        this.$util.confirmModal({content:'网络异常,请重新提交'},() => {
+          uni.reLaunch({url:'/pages/home/recent'})
+        })
+        return false
+      }
 
       let form = {}
       if (this.form.sendType == 2) {