Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aad430d0
authored
Nov 08, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
切换分支
1 parent
da3a605c
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
47 additions
and
81 deletions
app.js
app.json
app.wxss
pages/tab/mine/mine.js
pages/tab/mine/mine.scss
pages/tab/mine/mine.wxml
project.private.config.json
router/router.js
style/font/Gotham-Black.otf
utils/share.js
app.js
View file @
aad430d
...
@@ -50,6 +50,7 @@ App({
...
@@ -50,6 +50,7 @@ App({
// 存储设备信息
// 存储设备信息
setSystem_info
()
setSystem_info
()
// console.log('test')
},
},
onShow
(
options
)
{
onShow
(
options
)
{
...
...
app.json
View file @
aad430d
...
@@ -40,48 +40,7 @@
...
@@ -40,48 +40,7 @@
}
}
]
]
},
},
"subpackages"
:
[{
"root"
:
"packagesList/packageOutput"
,
"name"
:
"packageOutput"
,
"pages"
:
[
"pages/openBusiness"
,
"pages/summary"
]
},
{
"root"
:
"packagesList/mineDetail"
,
"name"
:
"mineDetail"
,
"pages"
:
[
"pages/messageBox"
,
"pages/customerManagement"
]
},
{
"root"
:
"packagesList/webView"
,
"name"
:
"webView"
,
"pages"
:
[
"pages/webView"
]
},
{
"root"
:
"packagesList/apply"
,
"name"
:
"apply"
,
"pages"
:
[
"pages/apply"
]
}],
"preloadRule"
:
{
"pages/tab/mine/mine"
:
{
"network"
:
"all"
,
"packages"
:
[
"mineDetail"
]
},
"pages/tab/index/index"
:
{
"network"
:
"all"
,
"packages"
:
[
"apply"
,
"packageOutput"
]
}
},
"usingComponents"
:
{
"usingComponents"
:
{
"tab"
:
"/components/Tab/Tab"
,
"tab"
:
"/components/Tab/Tab"
,
"navigation-bar"
:
"/components/NavigationBar/NavigationBar"
,
"navigation-bar"
:
"/components/NavigationBar/NavigationBar"
,
...
...
app.wxss
View file @
aad430d
@import "/style/common.wxss";
@import "/style/common.wxss";
page {
@font-face {
font-family: "Gotham";
src: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/font/Gotham-Black.woff");
}
@font-face {
font-family: "number";
src: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/font/Alimama_ShuHeiTi_Bold_Number.ttf");
}
page {
background-color: #F7F7F7;
background-color: #F7F7F7;
color: #282829;
color: #282829;
font-size: 28rpx;
font-size: 28rpx;
...
...
pages/tab/mine/mine.js
View file @
aad430d
...
@@ -50,7 +50,6 @@ Page({
...
@@ -50,7 +50,6 @@ Page({
console
.
log
(
e
)
console
.
log
(
e
)
},
},
messageBoxPageIsRead
()
{
messageBoxPageIsRead
()
{
console
.
log
(
111
)
let
{
serviceMerchantId
}
=
this
.
data
let
{
serviceMerchantId
}
=
this
.
data
mineApi
mineApi
.
messageBoxPageIsRead
({
serviceMerchantId
})
.
messageBoxPageIsRead
({
serviceMerchantId
})
...
...
pages/tab/mine/mine.scss
View file @
aad430d
...
@@ -13,6 +13,19 @@ page {
...
@@ -13,6 +13,19 @@ page {
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.testfont
{
font-weight
:
bold
;
font-size
:
30rpx
;
}
.testfont2
{
font-size
:
30rpx
;
}
.test3
{
font-size
:
40rpx
;
}
.layout
{
.layout
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
relative
;
position
:
relative
;
...
...
pages/tab/mine/mine.wxml
View file @
aad430d
...
@@ -5,6 +5,9 @@
...
@@ -5,6 +5,9 @@
<glsx-image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>
<glsx-image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>
头像
头像
</glsx-image>
</glsx-image>
<view class=" test">123456789.0</view>
<view class=" test2">123456789.0</view>
<view class=" test3">123456789.0</view>
<view class="name">{{userInfo.merchantName}}</view>
<view class="name">{{userInfo.merchantName}}</view>
<view class="id">账号:{{userInfo.merchantId}}</view>
<view class="id">账号:{{userInfo.merchantId}}</view>
<view class="createTime">创建时间:{{userInfo.createdDate}}</view>
<view class="createTime">创建时间:{{userInfo.createdDate}}</view>
...
...
project.private.config.json
View file @
aad430d
{
{
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"libVersion"
:
"2.2
5.0
"
,
"libVersion"
:
"2.2
7.1
"
,
"condition"
:
{
"condition"
:
{
"miniprogram"
:
{
"miniprogram"
:
{
"list"
:
[
"list"
:
[
...
...
router/router.js
View file @
aad430d
...
@@ -14,8 +14,8 @@ class Router {
...
@@ -14,8 +14,8 @@ class Router {
wx
.
onAppRoute
&&
wx
.
onAppRoute
&&
wx
.
onAppRoute
(
e
=>
{
wx
.
onAppRoute
(
e
=>
{
let
thisPage
=
this
.
getPageInstance
()
let
thisPage
=
this
.
getPageInstance
()
console
.
log
(
e
)
//
console.log(e)
console
.
log
(
thisPage
)
//
console.log(thisPage)
if
(
thisPage
)
{
if
(
thisPage
)
{
// thisPage.setData({ IMG_URL, img_version: IMG_VERSION() })
// thisPage.setData({ IMG_URL, img_version: IMG_VERSION() })
if
(
Object
.
keys
(
this
[
_query
]).
length
)
if
(
Object
.
keys
(
this
[
_query
]).
length
)
...
...
style/font/Gotham-Black.otf
deleted
100644 → 0
View file @
da3a605
No preview for this file type
utils/share.js
View file @
aad430d
...
@@ -9,14 +9,12 @@
...
@@ -9,14 +9,12 @@
* @param {*} onViewTrack 开启浏览埋点
* @param {*} onViewTrack 开启浏览埋点
* @returns
* @returns
*/
*/
import
{
import
{
reportData
}
from
'~/api/index.js'
reportData
}
from
'~/api/index.js'
import
USERAPI
from
'~/api/usersApi/index'
import
USERAPI
from
'~/api/usersApi/index'
class
Share
{
class
Share
{
constructor
()
{
constructor
()
{
console
.
log
(
'---------------- 分享初始化 ----------------'
)
//
console.log('---------------- 分享初始化 ----------------')
this
.
initPageProxy
()
this
.
initPageProxy
()
}
}
/**全局注册事件 */
/**全局注册事件 */
...
@@ -39,15 +37,7 @@ class Share {
...
@@ -39,15 +37,7 @@ class Share {
if
(
page
.
onShareAppMessage
)
{
if
(
page
.
onShareAppMessage
)
{
const
that
=
this
const
that
=
this
page
.
onShareAppMessage
=
function
()
{
page
.
onShareAppMessage
=
function
()
{
let
{
let
{
shareTitle
,
sharePath
,
shareImage
,
shareQuery
,
noPageAuth
,
shareFun
,
shareTrackData
}
=
this
,
shareTitle
,
sharePath
,
shareImage
,
shareQuery
,
noPageAuth
,
shareFun
,
shareTrackData
}
=
this
,
path
=
`/
${
this
.
route
}
`
path
=
`/
${
this
.
route
}
`
if
(
sharePath
)
path
=
`/
${
sharePath
}
`
if
(
sharePath
)
path
=
`/
${
sharePath
}
`
path
+=
that
.
setCommonShareQuery
()
path
+=
that
.
setCommonShareQuery
()
...
@@ -65,13 +55,7 @@ class Share {
...
@@ -65,13 +55,7 @@ class Share {
}
}
if
(
page
.
onShareTimeline
)
{
if
(
page
.
onShareTimeline
)
{
page
.
onShareTimeline
=
function
()
{
page
.
onShareTimeline
=
function
()
{
let
{
let
{
shareTitle
,
shareImage
,
shareQuery
,
shareFun
,
shareTrackData
}
=
this
shareTitle
,
shareImage
,
shareQuery
,
shareFun
,
shareTrackData
}
=
this
if
(
shareFun
)
shareFun
()
if
(
shareFun
)
shareFun
()
if
(
shareTrackData
)
that
.
reportShareData
(
shareTrackData
)
if
(
shareTrackData
)
that
.
reportShareData
(
shareTrackData
)
shareQuery
=
that
.
setCommonShareQuery
(
shareQuery
)
shareQuery
=
that
.
setCommonShareQuery
(
shareQuery
)
...
@@ -87,18 +71,20 @@ class Share {
...
@@ -87,18 +71,20 @@ class Share {
onLoad
&&
onLoad
.
apply
(
this
,
arguments
)
onLoad
&&
onLoad
.
apply
(
this
,
arguments
)
if
(
this
.
onViewTrack
)
{
if
(
this
.
onViewTrack
)
{
const
WXUSERINFO
=
await
USERAPI
.
getWXUserInfo
(),
const
WXUSERINFO
=
await
USERAPI
.
getWXUserInfo
(),
{
{
USERINFO
}
=
that
.
getCommonData
(),
USERINFO
}
=
that
.
getCommonData
(),
shareInfo
=
this
.
options
shareInfo
=
this
.
options
if
(
shareInfo
.
shareOpenId
)
reportData
({
if
(
shareInfo
.
shareOpenId
)
reportData
(
{
openId
:
WXUSERINFO
.
openId
||
''
,
openId
:
WXUSERINFO
.
openId
||
''
,
unionId
:
WXUSERINFO
.
unionId
||
''
,
unionId
:
WXUSERINFO
.
unionId
||
''
,
nickName
:
WXUSERINFO
.
nickName
||
''
,
nickName
:
WXUSERINFO
.
nickName
||
''
,
avatar
:
WXUSERINFO
.
avatarUrl
||
''
,
avatar
:
WXUSERINFO
.
avatarUrl
||
''
,
phone
:
WXUSERINFO
.
phone
||
USERINFO
.
phone
||
''
,
phone
:
WXUSERINFO
.
phone
||
USERINFO
.
phone
||
''
,
...
shareInfo
...
shareInfo
},
1
)
},
1
)
}
}
}
}
}
}
...
@@ -111,19 +97,13 @@ class Share {
...
@@ -111,19 +97,13 @@ class Share {
}
}
}
}
setCommonShareQuery
(
query
)
{
setCommonShareQuery
(
query
)
{
const
{
const
{
WXUSERINFO
,
USERINFO
}
=
this
.
getCommonData
(),
WXUSERINFO
,
USERINFO
}
=
this
.
getCommonData
(),
thisPage
=
wx
.
$router
.
getPageInstance
().
options
thisPage
=
wx
.
$router
.
getPageInstance
().
options
query
=
`
${
query
?
`?
${
query
}
&`
:
'?'
}
merchantId=
${
thisPage
.
merchantId
||
USERINFO
.
merchantId
||
''
}
&shareOpenId=
${
thisPage
.
shareOpenId
||
WXUSERINFO
.
openId
||
''
}
&sharePhone=
${
thisPage
.
sharePhone
||
USERINFO
.
phone
||
''
}
`
query
=
`
${
query
?
`?
${
query
}
&`
:
'?'
}
merchantId=
${
thisPage
.
merchantId
||
USERINFO
.
merchantId
||
''
}
&shareOpenId=
${
thisPage
.
shareOpenId
||
WXUSERINFO
.
openId
||
''
}
&sharePhone=
${
thisPage
.
sharePhone
||
USERINFO
.
phone
||
''
}
`
return
query
return
query
}
}
reportShareData
(
shareTrackData
)
{
reportShareData
(
shareTrackData
)
{
const
{
const
{
WXUSERINFO
,
USERINFO
}
=
this
.
getCommonData
(),
WXUSERINFO
,
USERINFO
}
=
this
.
getCommonData
(),
thisPage
=
wx
.
$router
.
getPageInstance
().
options
thisPage
=
wx
.
$router
.
getPageInstance
().
options
reportData
({
reportData
({
openId
:
WXUSERINFO
.
openId
||
''
,
openId
:
WXUSERINFO
.
openId
||
''
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment