Commit aad430d0 by 张立顺

切换分支

1 parent da3a605c
......@@ -50,6 +50,7 @@ App({
// 存储设备信息
setSystem_info()
// console.log('test')
},
onShow(options) {
......
......@@ -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": {
"tab": "/components/Tab/Tab",
"navigation-bar": "/components/NavigationBar/NavigationBar",
......
@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;
color: #282829;
font-size: 28rpx;
......
......@@ -50,7 +50,6 @@ Page({
console.log(e)
},
messageBoxPageIsRead() {
console.log(111)
let { serviceMerchantId } = this.data
mineApi
.messageBoxPageIsRead({ serviceMerchantId })
......
......@@ -13,6 +13,19 @@ page {
background-color: #fff;
}
.testfont {
font-weight: bold;
font-size: 30rpx;
}
.testfont2 {
font-size: 30rpx;
}
.test3 {
font-size: 40rpx;
}
.layout {
box-sizing: border-box;
position: relative;
......
......@@ -5,6 +5,9 @@
<glsx-image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>
头像
</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="id">账号:{{userInfo.merchantId}}</view>
<view class="createTime">创建时间:{{userInfo.createdDate}}</view>
......
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"libVersion": "2.25.0",
"libVersion": "2.27.1",
"condition": {
"miniprogram": {
"list": [
......
......@@ -14,8 +14,8 @@ class Router {
wx.onAppRoute &&
wx.onAppRoute(e => {
let thisPage = this.getPageInstance()
console.log(e)
console.log(thisPage)
// console.log(e)
// console.log(thisPage)
if (thisPage) {
// thisPage.setData({ IMG_URL, img_version: IMG_VERSION() })
if (Object.keys(this[_query]).length)
......
No preview for this file type
......@@ -9,14 +9,12 @@
* @param {*} onViewTrack 开启浏览埋点
* @returns
*/
import {
reportData
} from '~/api/index.js'
import { reportData } from '~/api/index.js'
import USERAPI from '~/api/usersApi/index'
class Share {
constructor() {
console.log('---------------- 分享初始化 ----------------')
// console.log('---------------- 分享初始化 ----------------')
this.initPageProxy()
}
/**全局注册事件 */
......@@ -39,16 +37,8 @@ class Share {
if (page.onShareAppMessage) {
const that = this
page.onShareAppMessage = function () {
let {
shareTitle,
sharePath,
shareImage,
shareQuery,
noPageAuth,
shareFun,
shareTrackData
} = this,
path = `/${this.route}`
let { shareTitle, sharePath, shareImage, shareQuery, noPageAuth, shareFun, shareTrackData } = this,
path = `/${this.route}`
if (sharePath) path = `/${sharePath}`
path += that.setCommonShareQuery()
if (shareQuery) path += `&${shareQuery}`
......@@ -65,13 +55,7 @@ class Share {
}
if (page.onShareTimeline) {
page.onShareTimeline = function () {
let {
shareTitle,
shareImage,
shareQuery,
shareFun,
shareTrackData
} = this
let { shareTitle, shareImage, shareQuery, shareFun, shareTrackData } = this
if (shareFun) shareFun()
if (shareTrackData) that.reportShareData(shareTrackData)
shareQuery = that.setCommonShareQuery(shareQuery)
......@@ -87,18 +71,20 @@ class Share {
onLoad && onLoad.apply(this, arguments)
if (this.onViewTrack) {
const WXUSERINFO = await USERAPI.getWXUserInfo(),
{
USERINFO
} = that.getCommonData(),
{ USERINFO } = that.getCommonData(),
shareInfo = this.options
if (shareInfo.shareOpenId) reportData({
openId: WXUSERINFO.openId || '',
unionId: WXUSERINFO.unionId || '',
nickName: WXUSERINFO.nickName || '',
avatar: WXUSERINFO.avatarUrl || '',
phone: WXUSERINFO.phone || USERINFO.phone || '',
...shareInfo
}, 1)
if (shareInfo.shareOpenId)
reportData(
{
openId: WXUSERINFO.openId || '',
unionId: WXUSERINFO.unionId || '',
nickName: WXUSERINFO.nickName || '',
avatar: WXUSERINFO.avatarUrl || '',
phone: WXUSERINFO.phone || USERINFO.phone || '',
...shareInfo
},
1
)
}
}
}
......@@ -111,19 +97,13 @@ class Share {
}
}
setCommonShareQuery(query) {
const {
WXUSERINFO,
USERINFO
} = this.getCommonData(),
thisPage = wx.$router.getPageInstance().options
query = `${query? `?${query}&`:'?'}merchantId=${thisPage.merchantId || USERINFO.merchantId || ''}&shareOpenId=${thisPage.shareOpenId || WXUSERINFO.openId || ''}&sharePhone=${thisPage.sharePhone || USERINFO.phone || ''}`
const { WXUSERINFO, USERINFO } = this.getCommonData(),
thisPage = wx.$router.getPageInstance().options
query = `${query ? `?${query}&` : '?'}merchantId=${thisPage.merchantId || USERINFO.merchantId || ''}&shareOpenId=${thisPage.shareOpenId || WXUSERINFO.openId || ''}&sharePhone=${thisPage.sharePhone || USERINFO.phone || ''}`
return query
}
reportShareData(shareTrackData) {
const {
WXUSERINFO,
USERINFO
} = this.getCommonData(),
const { WXUSERINFO, USERINFO } = this.getCommonData(),
thisPage = wx.$router.getPageInstance().options
reportData({
openId: WXUSERINFO.openId || '',
......@@ -138,4 +118,4 @@ class Share {
})
}
}
new Share()
\ No newline at end of file
new Share()
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!