shish 7 месяцев назад
Родитель
Сommit
fd1c8cdfa5
1 измененных файлов с 15 добавлено и 2 удалено
  1. 15 2
      ghsApp/src/pagesPurchase/info.vue

+ 15 - 2
ghsApp/src/pagesPurchase/info.vue

@@ -250,6 +250,14 @@
 				</div>
 			</view>
 
+			<!-- #ifdef MP-WEIXIN -->
+			<view style="width:710upx;height:20upx;background-color: #ece5e5;"></view>
+				<ad-custom unit-id="adunit-3a7cda7bc692514a" v-if="currentEnv=='production'" style="width:710upx;"></ad-custom>
+				<ad-custom unit-id="adunit-9b10b36dbe2f56b3" v-else style="width:710upx;"></ad-custom>
+			<view style="width:710upx;height:20upx;background-color: #ece5e5;"></view>
+			<!-- #endif -->
+
+
 		</view>
 
 		<block v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0">
@@ -304,7 +312,7 @@ import ModalModule from "@/components/plugin/modal"
 import { print } from '@/api/product';
 import { getPrint } from "@/api/shop";
 import { mapGetters } from "vuex";
-import { IMGHOST } from '@/config'
+import { IMGHOST,CURRENT_ENV } from '@/config'
 import MxDatePicker from '@/components/mx-datepicker/mx-datepicker.vue';
 export default {
 	name: "info",
@@ -341,7 +349,8 @@ export default {
 			salt:'',
 			showSeat:1,
 			title:'',
-			imageUrl:''
+			imageUrl:'',
+      		currentEnv:'production'
 		};
 	},
 	onPullDownRefresh() {
@@ -362,6 +371,10 @@ export default {
 			prevPage.$vm.needRefresh = 0
 		}
 		this.imageUrl = IMGHOST+'/custom/cg_share.jpg'
+
+		//当前环境
+		this.currentEnv = CURRENT_ENV
+
 	},
 	onUnload(){
 		clearInterval(this.T)