Commit aad430d0 by 张立顺

切换分支

1 parent da3a605c
...@@ -50,6 +50,7 @@ App({ ...@@ -50,6 +50,7 @@ App({
// 存储设备信息 // 存储设备信息
setSystem_info() setSystem_info()
// console.log('test')
}, },
onShow(options) { onShow(options) {
......
...@@ -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",
......
@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;
......
...@@ -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 })
......
...@@ -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;
......
...@@ -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>
......
{ {
"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.25.0", "libVersion": "2.27.1",
"condition": { "condition": {
"miniprogram": { "miniprogram": {
"list": [ "list": [
......
...@@ -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)
......
No preview for this file type
...@@ -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 || '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!