shish 2 vuotta sitten
vanhempi
commit
ab22b7369a
3 muutettua tiedostoa jossa 35 lisäystä ja 11 poistoa
  1. 14 0
      hdApp/src/admin/home/me.vue
  2. 14 1
      hdApp/src/admin/home/workbench.vue
  3. 7 10
      hdApp/src/api/apply/index.js

+ 14 - 0
hdApp/src/admin/home/me.vue

@@ -101,6 +101,10 @@
               <view class="tui-title">教学视频</view>
             </tui-list-cell>
 
+            <tui-list-cell @click="openPfShop()" class="line-cell" :hover="false" :arrow="true" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentShopId > 0 && getLoginInfo.pfShopId == 0">
+              <view class="tui-title">我要做批发</view>
+            </tui-list-cell>
+
             <!-- #ifdef APP-PLUS -->
             <tui-list-cell @click="getHzg()" class="line-cell" :hover="false" :arrow="true">
               <view class="tui-title">下载最新版</view>
@@ -134,6 +138,7 @@
 import AppAvatarModule from "@/components/module/app-avatar";
 import TuiListCell from "@/components/plugin/list-cell";
 import { mainMy, applyCash } from "@/api/home";
+import { openPfFn } from "@/api/apply";
 import DorpdownSelect from "@/components/module/dorpdownSelect";
 import { selectShop } from "@/mixins";
 import { list } from "@/mixins";
@@ -173,6 +178,15 @@ export default {
     // #endif
   },
   methods: {
+    openPfShop(){
+			this.$util.confirmModal({content:'确认提交?工作人员将会联系您'},() => {
+        openPfFn().then(res=>{
+          if(res.code == 1){
+            this.$msg(res.msg)
+          }
+        })				
+			})
+    },
     goAdmin(){
       this.$util.pageTo({ url: '/admin/staff/admin'})
     },

+ 14 - 1
hdApp/src/admin/home/workbench.vue

@@ -210,6 +210,7 @@ import emptyComponent from "@/components/empty";
 import { ghsList } from "@/api/purchase";
 import { changeDelStatus } from "@/api/ghs";
 import {currentShop} from "@/api/shop";
+import { openPfFn } from "@/api/apply";
 export default {
   name: "workbench",
   components: { NotLogin,emptyComponent },
@@ -325,7 +326,7 @@ export default {
     goMore(){
       let that = this
       uni.showActionSheet({
-        itemList: ['已屏蔽列表', '改进建议','开关商城'],
+        itemList: ['已屏蔽列表', '改进建议','开关商城','我要做批发'],
         success: function (res) {
           if(res.tapIndex == 0){
             that.$util.pageTo({url: '/pagesPurchase/pb'})
@@ -336,9 +337,21 @@ export default {
           if(res.tapIndex == 2){
             that.$util.pageTo({url:'/pagesPurchase/open'})
           }
+          if(res.tapIndex == 3){
+            that.openPfShop()
+          }
         }
       });
     },
+    openPfShop(){
+			this.$util.confirmModal({content:'确认提交?工作人员将会联系您'},() => {
+        openPfFn().then(res=>{
+          if(res.code == 1){
+            this.$msg(res.msg)
+          }
+        })				
+			})
+    },
     suggest(){
       let that = this
       that.$util.confirmModal({content:'请添加技术人员微信反馈',okText:'复制微信'},() => {

+ 7 - 10
hdApp/src/api/apply/index.js

@@ -1,21 +1,18 @@
 import https from "@/plugins/luch-request_0.0.7/request";
 
-/**
- * 邀请供货商(零售、供货商相同)
- * @param {*} name
- */
 export const applyInviteGhsPoster = name => {
 	return https.get("/apply/invite-ghs-poster", { name });
 };
-/**
- * 邀请花店(零售、供货商相同)  wangning  2021-6-13
- * @param {*} name
- */
- export const applyInviteHdPoster = name => {
+
+export const applyInviteHdPoster = name => {
 	return https.get("/apply/invite-hd-poster", { name });
 };
 
 //获取验证码
 export const getAuthCode = data => {
 	return https.get("/apply/get-auth-code", data);
-};
+};
+
+export const openPfFn = data => {
+	return https.get('/apply/open-pf', data)
+}