Kaynağa Gözat

更多载入供货商

shish 4 yıl önce
ebeveyn
işleme
d9f3b31af0

+ 5 - 0
hdApp/src/api/ghs/index.js

@@ -22,4 +22,9 @@ export const getCustomLevel = data => {
 //访问商城
 //访问商城
 export const visitMall = data => {
 export const visitMall = data => {
 	return https.get('/ghs/visit-mall', data)
 	return https.get('/ghs/visit-mall', data)
+}
+
+//补充未加入的供货商
+export const bcGhs = data => {
+	return https.get('/ghs/bc-ghs', data)
 }
 }

+ 14 - 1
hdApp/src/pagesPurchase/order.vue

@@ -38,7 +38,7 @@
     </view>
     </view>
     
     
     <view class="app-footer open_btn">
     <view class="app-footer open_btn">
-			<text style="color:#3385FF;margin-right:30rpx;">更多</text> <view @click="inviteGhs" class="admin-button-com middle blue">邀请供应商得300元</view>
+			<text style="color:#3385FF;margin-right:30rpx;" @click="bcGhs()">更多</text> <view @click="inviteGhs" class="admin-button-com middle blue">邀请供应商得300元</view>
 		</view>
 		</view>
 
 
   </view>
   </view>
@@ -48,6 +48,7 @@
 import OrderItem from "./orderItem";
 import OrderItem from "./orderItem";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import { ghsList, purchaseList } from "@/api/purchase/index";
 import { ghsList, purchaseList } from "@/api/purchase/index";
+import { bcGhs } from "@/api/ghs/index";
 export default {
 export default {
   components: {
   components: {
     AppWrapperEmpty,
     AppWrapperEmpty,
@@ -82,6 +83,18 @@ export default {
     })
     })
   },
   },
   methods: {
   methods: {
+    bcGhs(){
+      let that =this
+      uni.showLoading()
+      bcGhs().then(res=>{
+        uni.hideLoading()
+        if(res.code == 1){
+          setTimeout(function(){
+            that.pageTo({url: '/pagesPurchase/order',type:3})
+          },1000)
+        }
+      })
+    },
 		inviteGhs(){
 		inviteGhs(){
       this.pageTo({
       this.pageTo({
         url: '/pagesInvite/inviteShop'
         url: '/pagesInvite/inviteShop'