|
|
@@ -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 => {
|