shish пре 2 година
родитељ
комит
c3b24cbc68
2 измењених фајлова са 20 додато и 0 уклоњено
  1. 15 0
      ghsApp/src/admin/home/workbench.vue
  2. 5 0
      ghsApp/src/api/renew/index.js

+ 15 - 0
ghsApp/src/admin/home/workbench.vue

@@ -144,6 +144,8 @@ import autoUpdateMixins from "@/mixins/autoUpdate";
 import { getWeixinId } from "@/api/invite/index";
 import { getErrorPrice } from "@/api/item"
 import { getStaffInfo } from "@/api/shop-admin"
+import { renewShop } from "@/api/renew"
+import wexinPay from "@/utils/pay/wxPay";
 export default {
 	name: "workbench",
 	components: {  },
@@ -237,6 +239,19 @@ export default {
 		...mapActions(['setUserShopAll']),
 		toPhone(){
 			uni.makePhoneCall({ phoneNumber:'15280215347' })
+		},
+		start(){
+			renewShop().then(res=>{
+				if(res.code == 1){
+					wexinPay(res.data, this.getSuccess, this.getError)
+				}
+			})
+		},
+		getSuccess(){
+
+		},
+		getError(){
+
 		},
 		getShopName(){
 			currentShop().then(res => {

+ 5 - 0
ghsApp/src/api/renew/index.js

@@ -0,0 +1,5 @@
+import https from '@/plugins/luch-request_0.0.7/request'
+
+export const renewShop = data => {
+	return https.get('/renew/create', data)
+}