shish 1 год назад
Родитель
Сommit
2f7a62aec5
2 измененных файлов с 13 добавлено и 0 удалено
  1. 7 0
      hdApp/src/admin/home/workbench.vue
  2. 6 0
      hdApp/src/pagesPurchase/order.vue

+ 7 - 0
hdApp/src/admin/home/workbench.vue

@@ -244,6 +244,11 @@
   <block v-else>
     <emptyComponent title="暂无供货商" :is-empty="$util.isEmpty(supplierList)" />
   </block>
+
+  <!-- #ifdef MP-WEIXIN -->
+  <ad-custom unit-id="adunit-22b6fe92acad433e" v-if="showAd == 1"></ad-custom>
+  <!-- #endif -->
+
   <view style="text-align:center;margin-top:50upx;margin-bottom:182upx;color:#827171;font-size:28upx;">
     <text style="margin-right:20upx;">中花汇提供技术</text>
     <text style="margin-right:20upx;">|</text>
@@ -290,6 +295,7 @@ export default {
     return {
       overview:[],
       ad:[],
+      showAd:1,
       constant: this.$constant,
       getappIdList: {},
       data: {
@@ -561,6 +567,7 @@ export default {
       return ghsList().then(res => {
         this.supplierList = res.data.list
         this.ad = res.data.ad ? res.data.ad : []
+        this.showAd = res.data.showAd ? res.data.showAd : 0
       })
     },
     goGd(){

+ 6 - 0
hdApp/src/pagesPurchase/order.vue

@@ -104,6 +104,10 @@
             </view>
         </view>
 
+        <!-- #ifdef MP-WEIXIN -->
+        <ad-custom unit-id="adunit-22b6fe92acad433e" v-if="showAd == 1"></ad-custom>
+        <!-- #endif -->
+
         <view style="text-align:center;margin-top:50upx;margin-bottom:182upx;color:#827171;font-size:28upx;">
           <text style="margin-right:20upx;">中花汇提供技术</text>
           <text style="margin-right:20upx;">|</text>
@@ -139,6 +143,7 @@ export default {
     return {
       supplierList: [],
       ad:[],
+      showAd:1,
       currentGhs:{}
     }
   },
@@ -250,6 +255,7 @@ export default {
       return ghsList().then(res => {
         this.supplierList = res.data.list
         this.ad = res.data.ad ? res.data.ad : []
+        this.showAd = res.data.showAd ? res.data.showAd : 0
       })
     },
     settleAccounts (item) {