|
|
@@ -5,7 +5,7 @@
|
|
|
<div class="user-top">
|
|
|
<div class="app-size-28">今日概况</div>
|
|
|
<view class="open-bt_bx">
|
|
|
- <button id="shareStore" open-type="share" class="admin-button-com">
|
|
|
+ <button @tap="getMyMall" class="admin-button-com">
|
|
|
<i class="iconfont iconfenxiang"></i>
|
|
|
我的商城
|
|
|
</button>
|
|
|
@@ -131,10 +131,10 @@ import FabModule from "@/components/plugin/fab";
|
|
|
import AppAvatarModule from "@/components/module/app-avatar";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
import { getDataTimestamp } from "@/utils/common";
|
|
|
-// api
|
|
|
+import { getWeixinId } from "@/api/invite/index";
|
|
|
import { getUser } from "@/utils/auth";
|
|
|
import { consoleIndex } from "@/api/workbench";
|
|
|
-// import { share } from "@/mixins";
|
|
|
+
|
|
|
export default {
|
|
|
name: "admin-workbench",
|
|
|
components: {
|
|
|
@@ -350,7 +350,24 @@ export default {
|
|
|
},
|
|
|
type: 2
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ getMyMall(){
|
|
|
+ getWeixinId().then(res => {
|
|
|
+ uni.navigateToMiniProgram({
|
|
|
+ appId: res.data.hd.miniAppId,
|
|
|
+ path: 'admin/ghs/shop',
|
|
|
+ //develop 开发板 trial 体验版 release 正式版
|
|
|
+ envVersion: 'develop',
|
|
|
+ extraData: {
|
|
|
+ 'shopAdminId': this.loginInfo.shopAdminId
|
|
|
+ },
|
|
|
+ success(res) {
|
|
|
+ // 打开成功
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|