|
@@ -1,9 +1,5 @@
|
1
|
|
-/**
|
2
|
|
- * 登陆
|
3
|
|
- */
|
4
|
|
-
|
|
1
|
+import request from './request'
|
5
|
2
|
import store from '../store'
|
6
|
|
-
|
7
|
3
|
import { UserLogin } from './api'
|
8
|
4
|
|
9
|
5
|
const jsApiList = [
|
|
@@ -48,10 +44,10 @@ export function share (opt) {
|
48
|
44
|
const fn = window.wx[apiName]
|
49
|
45
|
if (typeof fn === 'function') {
|
50
|
46
|
fn({
|
51
|
|
- title: opt.title || '开启干洗护理新时代', // 分享标题
|
|
47
|
+ title: opt.title || '施培基地培训系统', // 分享标题
|
52
|
48
|
link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
53
|
49
|
imgUrl, // 分享图标
|
54
|
|
- desc: opt.desc || '即刻尊享'
|
|
50
|
+ desc: opt.desc || '施培基地培训系统'
|
55
|
51
|
})
|
56
|
52
|
}
|
57
|
53
|
})
|
|
@@ -85,6 +81,16 @@ export function Login () {
|
85
|
81
|
}
|
86
|
82
|
|
87
|
83
|
store.commit('SET_USER_INFO', userInfo)
|
|
84
|
+
|
|
85
|
+ try {
|
|
86
|
+ share({
|
|
87
|
+ title: '施培基地培训系统',
|
|
88
|
+ desc: '施培基地培训系统'
|
|
89
|
+ })
|
|
90
|
+ } catch (error) {
|
|
91
|
+ console.error(error)
|
|
92
|
+ }
|
|
93
|
+
|
88
|
94
|
hideLoading()
|
89
|
95
|
|
90
|
96
|
return;
|