Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-miniapp-eshop
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
李奇
7 years ago
Commit
9fbf8d9861e233b797984bbc26e1f360993ac2db
1 parent
0e5b3426
unionType动态获取
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
11 deletions
app/app.js
app/common/yas.js
app/config.js
app/app.js
View file @
9fbf8d9
...
...
@@ -2,7 +2,6 @@ import wx from './utils/wx';
import
udid
from
'./common/udid'
;
import
event
from
'./common/event'
;
import
{
verify
}
from
'./common/api'
;
import
config
from
'./config'
;
import
Promise
from
'./vendors/es6-promise'
;
import
{
MD5
}
from
'./vendors/crypto'
;
import
{
wechatAuthLogin
,
verifySessionKey
}
from
'./common/login'
;
...
...
@@ -262,7 +261,7 @@ App({
return
wx
.
getExtConfigSync
().
miniappName
;
},
getUnionType
()
{
return
config
.
unionType
;
return
this
.
globalData
.
unionShop
&&
this
.
globalData
.
unionShop
.
unionType
;
},
getShopId
()
{
return
this
.
globalData
.
unionShop
&&
this
.
globalData
.
unionShop
.
shopId
;
...
...
app/common/yas.js
View file @
9fbf8d9
...
...
@@ -15,7 +15,7 @@ export default class yas {
res
:
''
,
// 屏幕大小
osv
:
''
,
// 系统版本
ak
:
'yhshop_mp'
,
ch
:
config
.
unionType
,
ch
:
''
,
udid
:
this
.
app
.
globalData
.
udid
};
...
...
@@ -77,7 +77,9 @@ export default class yas {
if
(
!
userInfo
.
PV_ID
)
{
userInfo
.
PV_ID
=
this
.
pvid
;
}
self
.
deviceInfo
.
ch
=
getApp
().
getUnionType
();
return
new
Promise
(
resolve
=>
{
wx
.
getNetworkType
({
success
(
res
)
{
...
...
app/config.js
View file @
9fbf8d9
...
...
@@ -15,11 +15,5 @@ export default {
"app_version"
:
"6.6.0"
},
"appid"
:
"wxe8bfc9b404772199"
,
"unionType"
:
"100000000011678"
,
"mini_app_type"
:
"6"
,
"resourceContentCode"
:
{
"home"
:
{
"top"
:
"72c65730150543d295532c942b0e5a33"
}
}
"mini_app_type"
:
"6"
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment