|
|
@@ -38,7 +38,7 @@
|
|
|
</view>
|
|
|
|
|
|
<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>
|
|
|
@@ -48,6 +48,7 @@
|
|
|
import OrderItem from "./orderItem";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import { ghsList, purchaseList } from "@/api/purchase/index";
|
|
|
+import { bcGhs } from "@/api/ghs/index";
|
|
|
export default {
|
|
|
components: {
|
|
|
AppWrapperEmpty,
|
|
|
@@ -82,6 +83,18 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
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(){
|
|
|
this.pageTo({
|
|
|
url: '/pagesInvite/inviteShop'
|