shish 7 meses atrás
pai
commit
42269e7ba3
1 arquivos alterados com 9 adições e 2 exclusões
  1. 9 2
      ghsApp/src/admin/billing/result.vue

+ 9 - 2
ghsApp/src/admin/billing/result.vue

@@ -18,7 +18,8 @@
 
 
   <!-- #ifdef MP-WEIXIN -->
   <!-- #ifdef MP-WEIXIN -->
   <view style="width:688upx;height:20upx;background-color: #ece5e5;"></view>
   <view style="width:688upx;height:20upx;background-color: #ece5e5;"></view>
-  <ad-custom unit-id="adunit-42a99bd9e25e3626" style="width:688upx;"></ad-custom>
+    <ad-custom unit-id="adunit-42a99bd9e25e3626" v-if="currentEnv=='production'" style="width:688upx;"></ad-custom>
+    <ad-custom unit-id="adunit-9523c840341ccb1f" v-else style="width:688upx;"></ad-custom>
   <view style="width:688upx;height:20upx;background-color: #ece5e5;"></view>
   <view style="width:688upx;height:20upx;background-color: #ece5e5;"></view>
   <!-- #endif -->
   <!-- #endif -->
 
 
@@ -47,6 +48,7 @@ import { partItem } from "@/api/part"
 import { changeHalf } from "@/api/item"
 import { changeHalf } from "@/api/item"
 import { giveItem } from "@/api/order-item"
 import { giveItem } from "@/api/order-item"
 import ModalModule from "@/components/plugin/modal"
 import ModalModule from "@/components/plugin/modal"
+import { CURRENT_ENV } from "@/config"
 export default {
 export default {
   name: "result",
   name: "result",
   components: {
   components: {
@@ -62,8 +64,13 @@ export default {
 			title:'新订单',
 			title:'新订单',
 			giveTargetId:0,
 			giveTargetId:0,
 			givePopShow:false,
 			givePopShow:false,
-			giveNum:1
+			giveNum:1,
+      currentEnv:'production'
     };
     };
+  },
+  onLoad() {
+    //当前环境
+    this.currentEnv = CURRENT_ENV
   },
   },
 	computed: {
 	computed: {
 		...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo" }),
 		...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo" }),