shish пре 3 година
родитељ
комит
91bbe96eab

+ 9 - 3
hdApp/src/admin/home/workbench.vue

@@ -99,9 +99,13 @@
     <button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/pagesPurchase/open'})">开启零售功能</button>
     <button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/pagesPurchase/open'})">开启零售功能</button>
   </view>
   </view>
 
 
-  <view style="text-align:center;" @click.stop="pageTo({url:'/admin/ljh/info'})">
-    <image :src="`${constant.imgUrl}/ljh/banner2.jpg`" mode="widthFix" style="width:97%;margin:0 auto;"></image>
-  </view>
+  <template v-if="!$util.isEmpty(ad)">
+    <block v-for="(adInfo, adIndex) in ad" :key="adIndex">
+      <view style="text-align:center;" @click.stop="pageTo({url:adInfo.url})">
+        <image :src="adInfo.banner" mode="widthFix" style="width:97%;margin:0 auto;"></image>
+      </view>
+    </block>
+  </template>
 
 
   <template v-if="!$util.isEmpty(supplierList)">
   <template v-if="!$util.isEmpty(supplierList)">
 
 
@@ -169,6 +173,7 @@ export default {
   data () {
   data () {
     return {
     return {
       overview:[],
       overview:[],
+      ad:[],
       constant: this.$constant,
       constant: this.$constant,
       getappIdList: {},
       getappIdList: {},
       data: {
       data: {
@@ -299,6 +304,7 @@ export default {
     getGHSList () {
     getGHSList () {
       return ghsList().then(res => {
       return ghsList().then(res => {
         this.supplierList = res.data.list
         this.supplierList = res.data.list
+        this.ad = res.data.ad ? res.data.ad : []
       })
       })
     },
     },
     goGd(){
     goGd(){

+ 1 - 1
hdApp/src/admin/ljh/info.vue

@@ -85,7 +85,7 @@ export default {
 		}
 		}
 	},
 	},
   onLoad(){
   onLoad(){
-    this.imgList = [{img:IMGHOST+'/ljh/1.jpg'},{img:IMGHOST+'/ljh/2.jpg'},{img:IMGHOST+'/ljh/3.jpg'},{img:IMGHOST+'/ljh/4.jpg'}]
+    this.imgList = [{img:IMGHOST+'/ljh/1.jpg'},{img:IMGHOST+'/ljh/2.jpg'},{img:IMGHOST+'/ljh/3.jpg'}]
     let shareParams = { title: '零交会来了,点我领券报名!', desc: '', imgUrl:IMGHOST+'/ljh/shareLogo.jpg', pagePath: 'admin/ljh/info' }
     let shareParams = { title: '零交会来了,点我领券报名!', desc: '', imgUrl:IMGHOST+'/ljh/shareLogo.jpg', pagePath: 'admin/ljh/info' }
     this.jweixinFn(shareParams)
     this.jweixinFn(shareParams)
   },
   },

+ 3 - 1
hdApp/src/admin/ljh/payResult.vue

@@ -1,7 +1,9 @@
 <template>
 <template>
 	<appResult title="报名成功">
 	<appResult title="报名成功">
     <view class="dec"></view>
     <view class="dec"></view>
-    <view></view>
+    <view style="font-size:36upx;"  @click="pageTo({url:'/admin/home/workbench',type:2})">
+      用<text style="color:#3385FF;margin:0 10upx 0 10upx;">花掌柜®</text>,开连锁花店
+    </view>
 	</appResult>
 	</appResult>
 </template>
 </template>
 <script>
 <script>

+ 11 - 4
hdApp/src/pagesPurchase/order.vue

@@ -7,9 +7,14 @@
       <button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/pagesPurchase/pb'})">已屏蔽列表</button>
       <button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/pagesPurchase/pb'})">已屏蔽列表</button>
       <button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/pagesPurchase/open'})">开启零售功能</button>
       <button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/pagesPurchase/open'})">开启零售功能</button>
     </view>
     </view>
-    <view style="text-align:center;" @click.stop="pageTo({url:'/admin/ljh/info'})">
-      <image :src="`${constant.imgUrl}/ljh/banner2.jpg`" mode="widthFix" style="width:97%;margin:0 auto;"></image>
-    </view>
+
+  <template v-if="!$util.isEmpty(ad)">
+    <block v-for="(adInfo, adIndex) in ad" :key="adIndex">
+      <view style="text-align:center;" @click.stop="pageTo({url:adInfo.url})">
+        <image :src="adInfo.banner" mode="widthFix" style="width:97%;margin:0 auto;"></image>
+      </view>
+    </block>
+  </template>
 
 
 <template v-if="!$util.isEmpty(supplierList)">
 <template v-if="!$util.isEmpty(supplierList)">
 
 
@@ -65,7 +70,8 @@ export default {
   },
   },
   data () {
   data () {
     return {
     return {
-      supplierList: []
+      supplierList: [],
+      ad:[]
     }
     }
   },
   },
   onPullDownRefresh() {
   onPullDownRefresh() {
@@ -120,6 +126,7 @@ export default {
     getGHSList () {
     getGHSList () {
       return ghsList().then(res => {
       return ghsList().then(res => {
         this.supplierList = res.data.list
         this.supplierList = res.data.list
+        this.ad = res.data.ad ? res.data.ad : []
       })
       })
     },
     },
     settleAccounts (item) {
     settleAccounts (item) {