Commit fccafa9d by zhangxw

Merge branch 'v4.27.0_0831' of http://192.168.3.233:8090/saas_plus/business-assi…

…stant into v4.27.0_0831
2 parents 558f87cf c64799f2
...@@ -39,6 +39,8 @@ import './utils/network' ...@@ -39,6 +39,8 @@ import './utils/network'
import { getDiscoverList } from '~/api/index.js' import { getDiscoverList } from '~/api/index.js'
import {Version} from 'glsx-common-sdk'
App({ App({
onLaunch(options) { onLaunch(options) {
/**挂载到wx对象 */ /**挂载到wx对象 */
...@@ -49,7 +51,12 @@ App({ ...@@ -49,7 +51,12 @@ App({
wx.$router = router wx.$router = router
wx.$storage = $Storage /** 挂载全局缓存方法 */ wx.$storage = $Storage /** 挂载全局缓存方法 */
wx.$eventbus = eventbus wx.$eventbus = eventbus
wx.$versionConfig = new Version({
request: {
baseUrl: 'https://config-center-backend.glsx.com.cn/glsxAdmin/config',
isSign: false
}
})
// 存储设备信息 // 存储设备信息
setSystem_info() setSystem_info()
// console.log('test') // console.log('test')
...@@ -65,7 +72,21 @@ App({ ...@@ -65,7 +72,21 @@ App({
}) })
}) })
}, },
async getVersionInfo(request) {
if (request) this.globalData.versionData = null
const {
versionData
} = this.globalData
if (versionData) return versionData
else {
const res = await wx.$versionConfig.get({
moduleUrl: 'mini-merchant',
env: 'update'
})
this.globalData.versionData = res
return res
}
},
onShow(options) { onShow(options) {
getUpdateManager() getUpdateManager()
}, },
...@@ -73,5 +94,8 @@ App({ ...@@ -73,5 +94,8 @@ App({
onPageNotFound(e) { onPageNotFound(e) {
wx.$router.goHome() wx.$router.goHome()
}, },
onHide() {} onHide() {},
globalData: {
versionData: null
},
}) })
...@@ -100,7 +100,8 @@ ...@@ -100,7 +100,8 @@
"customerManagement/customerList/customerList", "customerManagement/customerList/customerList",
"customerManagement/editCustomer/editCustomer", "customerManagement/editCustomer/editCustomer",
"customerManagement/saleList/saleList", "customerManagement/saleList/saleList",
"customerManagement/technicianList/technicianList" "customerManagement/technicianList/technicianList",
"log/log"
] ]
} }
], ],
......
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.18.tgz", "resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.18.tgz",
"integrity": "sha512-oNJMLkKh/BOFyiGUDlm5r+5dvqBlZx7T9U+UQ2BkqL8R9i713sCHs+1AOsFMA1GOjsgRM2ShgzoXaQef6RQ/ew==" "integrity": "sha512-oNJMLkKh/BOFyiGUDlm5r+5dvqBlZx7T9U+UQ2BkqL8R9i713sCHs+1AOsFMA1GOjsgRM2ShgzoXaQef6RQ/ew=="
}, },
"glsx-common-sdk": {
"version": "0.2.8",
"resolved": "https://registry.npmmirror.com/glsx-common-sdk/-/glsx-common-sdk-0.2.8.tgz",
"integrity": "sha512-qCDUBRvJwE2Gs1PLwB+fHOSFPgB5W5fwYC3GSBSjMQOxs4keeOvd7o5wIb7bNakp0xF6ARPqpC/xm3hZ9TRW6A=="
},
"glsx-map-sdk": { "glsx-map-sdk": {
"version": "0.1.5", "version": "0.1.5",
"resolved": "https://registry.npmjs.org/glsx-map-sdk/-/glsx-map-sdk-0.1.5.tgz", "resolved": "https://registry.npmjs.org/glsx-map-sdk/-/glsx-map-sdk-0.1.5.tgz",
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"dependencies": { "dependencies": {
"@vant/weapp": "^1.10.7", "@vant/weapp": "^1.10.7",
"glsx-applet-component": "^1.1.18", "glsx-applet-component": "^1.1.18",
"glsx-common-sdk": "^0.2.8",
"glsx-map-sdk": "^0.1.5" "glsx-map-sdk": "^0.1.5"
}, },
"devDependencies": {}, "devDependencies": {},
......
// packageStoreAssistant/packageActivity/pages/log/log.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getVersionInfo()
},
async getVersionInfo() {
const logData = await getApp().getVersionInfo()
this.setData({
logData
})
wx.$versionConfig.set(logData.version)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {},
"navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
/* packageStoreAssistant/packageActivity/pages/log/log.wxss */
.layout {
.bg {
position: relative;
z-index: -1;
width: 100%;
height: 400rpx;
}
.log-box {
height: calc(100vh - 400rpx);
background: #FFFFFF;
overflow-y: scroll;
box-sizing: border-box;
padding: 40rpx 32rpx calc(40rpx + var(--constantSafeAreaInsetBottom));
padding: 40rpx 32rpx calc(40rpx + var(--envSafeAreaInsetBottom));
.title {
font-weight: 500;
font-size: 48rpx;
color: #282829;
margin-bottom: 48rpx;
}
.sub-title {
font-weight: 500;
font-size: 40rpx;
color: #333333;
margin-bottom: 4rpx;
}
.date {
font-size: 26rpx;
color: #999999;
margin-bottom: 24rpx;
}
.log-item {
margin-bottom: 40rpx;
.log-title {
width: fit-content;
height: 48rpx;
background-image: linear-gradient(-75deg, #E8E6FF 0%, #EDF1FF 49%, #E0F3FF 100%);
border-radius: 8rpx;
padding: 0 16rpx;
.text {
color: transparent !important;
background: linear-gradient(116deg, #27C0C2 0%, #4837E6 100%) !important;
-webkit-background-clip: text !important;
}
}
.log-content {
margin-top: 16rpx;
font-size: 28rpx;
color: #1B233D;
line-height: 44rpx;
.img{
width: 100%;
border-radius: 12rpx;
}
}
}
}
}
\ No newline at end of file \ No newline at end of file
<view class="layout">
<navigation-bar showBack navStyle="background-color: transparent;">
生意助手更新记录
</navigation-bar>
<view class="bg">
<glsx-image webp src="personal/log-bg.png"></glsx-image>
</view>
<view class="log-box">
<view class="title">{{logData.title}}</view>
<view class="sub-title">
{{logData.subtitle}}
</view>
<view class="date">{{logData.date}}</view>
<block wx:for="{{logData.logList}}" wx:key="index">
<view class="log-item">
<view class="log-title text-center">
<view class="text">{{item.title}}</view>
</view>
<block wx:for="{{item.data}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view class="log-content">
<block wx:if="{{i.type == 'text'}}">
{{i.content}}
</block>
<block wx:else>
<view class="img">
<image webp src="{{i.content}}" mode="widthFix" />
</view>
</block>
</view>
</block>
</view>
</block>
</view>
</view>
\ No newline at end of file \ No newline at end of file
...@@ -13,7 +13,7 @@ Component({ ...@@ -13,7 +13,7 @@ Component({
observers: { observers: {
'chartData.data': function (data) { 'chartData.data': function (data) {
console.log(data, 'pie----------------') console.log(data, 'pie----------------')
data && data.length && this.onInitChart(data) data && this.onInitChart(data)
} }
}, },
/** /**
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
流量情况 流量情况
<view class="title-tip">客户领券后的预约情况</view> <view class="title-tip">客户领券后的预约情况</view>
</view> </view>
<!-- <view class="" id="bar"></view> -->
<view class="ec-canvas"> <view class="ec-canvas">
<ec-canvas class="echart-box" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}" force-use-old-canvas="true"></ec-canvas> <!-- force-use-old-canvas="true" -->
<ec-canvas force-use-old-canvas="true" class="echart-box" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}" ></ec-canvas>
</view> </view>
<view class="invalidFlowContainer"> <view class="invalidFlowContainer">
<view class="header"> <view class="header">
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
</view> </view>
<!-- <view class="" id="bar"></view> --> <!-- <view class="" id="bar"></view> -->
<view class="ec-canvas"> <view class="ec-canvas">
<ec-canvas class="echart-box" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}" force-use-old-canvas="true"></ec-canvas> <!-- force-use-old-canvas="true" -->
<ec-canvas force-use-old-canvas="true" class="echart-box" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}" ></ec-canvas>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */ /* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
.crowdfund-layout { .crowdfund-layout {
// margin: 20rpx 20rpx; // margin: 20rpx 20rpx;
height: 100%;
overflow: scroll;
padding-bottom: 136rpx; padding-bottom: 136rpx;
.box { .box {
......
...@@ -47,10 +47,10 @@ var threeNumForTwo = { ...@@ -47,10 +47,10 @@ var threeNumForTwo = {
} }
var filterItemName = function (item,revenueData) { var filterItemName = function (item,revenueData) {
console.log(item,revenueData); // console.log(item,revenueData);
var unit = item.name == 'upgradeRateData' ? '%' : '' var unit = item.name == 'upgradeRateData' ? '%' : ''
if (revenueData && revenueData[item.name]) { if (revenueData && revenueData[item.name]) {
return revenueData[item.name].value + unit return revenueData[item.name].value || 0 + unit
} else{ } else{
return 0 + unit return 0 + unit
} }
......
// packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.js // packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.js
import outputApi from '~/api/outputApi/index' import outputApi from '~/api/outputApi/index'
import { tsFormatTime } from '~/utils/format' import {
import { getMockData } from '~/api/api' tsFormatTime
import { IMG_URL } from '~/utils/constantData' } from '~/utils/format'
import {
getMockData
} from '~/api/api'
import {
IMG_URL
} from '~/utils/constantData'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -10,13 +16,12 @@ Page({ ...@@ -10,13 +16,12 @@ Page({
data: { data: {
IMGURL: IMG_URL, IMGURL: IMG_URL,
merchantInfo: {}, merchantInfo: {},
tabList: [ tabList: [{
{
label: '精品升级-太阳膜', label: '精品升级-太阳膜',
width: '34%' width: '34%'
}, },
{ {
label: '售后众筹', label: '众筹活动',
width: '25%' width: '25%'
}, },
{ {
...@@ -57,8 +62,13 @@ Page({ ...@@ -57,8 +62,13 @@ Page({
rangeSelect(e) { rangeSelect(e) {
console.log(e) console.log(e)
// let { date } = e.detail // let { date } = e.detail
let { date, type } = e.detail let {
let { dateObj } = this.data date,
type
} = e.detail
let {
dateObj
} = this.data
// 按月份 // 按月份
dateObj = Object.assign(dateObj, date) dateObj = Object.assign(dateObj, date)
// return // return
...@@ -112,7 +122,9 @@ Page({ ...@@ -112,7 +122,9 @@ Page({
}) })
}, },
initData() { initData() {
let { tabIndx } = this.data let {
tabIndx
} = this.data
tabIndx == 1 ? this.crowdfunding() : this.getAnalysisTendency(tabIndx) tabIndx == 1 ? this.crowdfunding() : this.getAnalysisTendency(tabIndx)
console.log(tabIndx, 'tabIndx') console.log(tabIndx, 'tabIndx')
}, },
...@@ -124,7 +136,12 @@ Page({ ...@@ -124,7 +136,12 @@ Page({
}, },
getAnalysisTendency() { getAnalysisTendency() {
// console.log(tabIndx, 'tabIndx') // console.log(tabIndx, 'tabIndx')
let { allType, tabIndx, dateObj, merchantInfo } = this.data let {
allType,
tabIndx,
dateObj,
merchantInfo
} = this.data
let params = { let params = {
shopMerchantIdList: [merchantInfo.merchantId || 44211227], shopMerchantIdList: [merchantInfo.merchantId || 44211227],
isSuper: false, isSuper: false,
...@@ -171,21 +188,44 @@ Page({ ...@@ -171,21 +188,44 @@ Page({
getTrafficInterfaceData(params) { getTrafficInterfaceData(params) {
outputApi.analysisInviteRecord(params).then(res => { outputApi.analysisInviteRecord(params).then(res => {
console.log(res, 'analysisInviteRecord') console.log(res, 'analysisInviteRecord')
let { expireReachCount, hadInvitedCount, notInvitedCount, cancelInvitedCount } = res let {
expireReachCount,
hadInvitedCount,
notInvitedCount,
cancelInvitedCount
} = res
this.setData({ this.setData({
['chartDataPie.data']: [ ['chartDataPie.data']: [{
{ value: hadInvitedCount, name: '已预约' }, value: hadInvitedCount||0,
{ value: cancelInvitedCount, name: '取消预约' }, name: '已预约'
{ value: expireReachCount, name: '超时未到店' }, },
{ value: notInvitedCount, name: '待预约' } {
value: cancelInvitedCount||0,
name: '取消预约'
},
{
value: expireReachCount||0,
name: '超时未到店'
},
{
value: notInvitedCount||0,
name: '待预约'
}
], ],
['chartDataPie.total']: hadInvitedCount + cancelInvitedCount + expireReachCount + notInvitedCount ['chartDataPie.total']: hadInvitedCount + cancelInvitedCount + expireReachCount + notInvitedCount
}) })
}) })
outputApi.analysisNotUpgradePage({ ...params, shopMerchantId: params.shopMerchantIdList.join(''), pageSize: 100, pageNum: 1 }).then(res => { outputApi.analysisNotUpgradePage({
...params,
shopMerchantId: params.shopMerchantIdList.join(''),
pageSize: 100,
pageNum: 1
}).then(res => {
console.log(res, 'analysisNotUpgradePage') console.log(res, 'analysisNotUpgradePage')
let { list } = res let {
list
} = res
list.forEach(item => { list.forEach(item => {
item.orderTime = tsFormatTime(item.orderTime) item.orderTime = tsFormatTime(item.orderTime)
}) })
...@@ -197,7 +237,9 @@ Page({ ...@@ -197,7 +237,9 @@ Page({
}) })
}, },
changeTabIndx(e) { changeTabIndx(e) {
let { detail } = e let {
detail
} = e
this.setData({ this.setData({
tabIndx: detail tabIndx: detail
}) })
...@@ -205,14 +247,18 @@ Page({ ...@@ -205,14 +247,18 @@ Page({
}, },
// 众筹-start // 众筹-start
crowdfunding() { crowdfunding() {
let { userInfo } = wx.$storage.get() let {
userInfo
} = wx.$storage.get()
this.getMockInfo(userInfo) this.getMockInfo(userInfo)
this.judgeAccount() this.judgeAccount()
this.getProList('SC004') this.getProList('SC004')
}, },
async getMockInfo(userInfo) { async getMockInfo(userInfo) {
let res = (await getMockData()) || { serviceMerchatList: [] } let res = (await getMockData()) || {
serviceMerchatList: []
}
this.setData({ this.setData({
mockObj: res, mockObj: res,
isShowService: res.serviceMerchatList.includes(userInfo.merchantId + '') isShowService: res.serviceMerchatList.includes(userInfo.merchantId + '')
...@@ -234,7 +280,9 @@ Page({ ...@@ -234,7 +280,9 @@ Page({
pIdx: -1, pIdx: -1,
idx: -1 idx: -1
} }
let { userInfo } = wx.$storage.get() let {
userInfo
} = wx.$storage.get()
if (this.data.mockObj?.crowdObj) { if (this.data.mockObj?.crowdObj) {
let pList = this.data.mockObj.crowdObj.map(item => item.pMerchantId) let pList = this.data.mockObj.crowdObj.map(item => item.pMerchantId)
for (let i = 0; i < this.data.mockObj.crowdObj.length; i++) { for (let i = 0; i < this.data.mockObj.crowdObj.length; i++) {
...@@ -255,7 +303,9 @@ Page({ ...@@ -255,7 +303,9 @@ Page({
// 处理SC004的mock数据 // 处理SC004的mock数据
mockDealCrowd(data) { mockDealCrowd(data) {
let { userInfo } = wx.$storage.get() let {
userInfo
} = wx.$storage.get()
var obj = this.judgeCrowd(userInfo.subLoginUser.merchantId, data.merchantId) var obj = this.judgeCrowd(userInfo.subLoginUser.merchantId, data.merchantId)
if (!obj.flag) { if (!obj.flag) {
return data return data
...@@ -288,7 +338,9 @@ Page({ ...@@ -288,7 +338,9 @@ Page({
// 获取产品列表 // 获取产品列表
getProList(sceneCode) { getProList(sceneCode) {
let productCodes = this.data.merchantInfo.productCodes || [] let {
productCodes
} = this.data.merchantInfo
console.log(productCodes, 'productCodes') console.log(productCodes, 'productCodes')
var params = { var params = {
sceneCode: sceneCode || '' sceneCode: sceneCode || ''
...@@ -311,7 +363,9 @@ Page({ ...@@ -311,7 +363,9 @@ Page({
// 产品切换 // 产品切换
handleActChange(e) { handleActChange(e) {
var idx = e.currentTarget.dataset.idx var idx = e.currentTarget.dataset.idx
let { scenceList } = this.data let {
scenceList
} = this.data
this.setData({ this.setData({
activityActive: idx, activityActive: idx,
// openFlag:1-开通;0-不开通 // openFlag:1-开通;0-不开通
...@@ -320,7 +374,10 @@ Page({ ...@@ -320,7 +374,10 @@ Page({
}, },
setCurActivity() { setCurActivity() {
let { scenceList, activityActive } = this.data let {
scenceList,
activityActive
} = this.data
this.setData({ this.setData({
activityList: JSON.parse(JSON.stringify(this.data.sceneActivityObj['scene4'])), activityList: JSON.parse(JSON.stringify(this.data.sceneActivityObj['scene4'])),
// openFlag:1-开通;0-不开通 // openFlag:1-开通;0-不开通
...@@ -338,7 +395,9 @@ Page({ ...@@ -338,7 +395,9 @@ Page({
getActivityRevenue(isFirst = false) { getActivityRevenue(isFirst = false) {
wx.showLoading() wx.showLoading()
outputApi outputApi
.getActivityRevenue({ merchantId: this.data.merchantInfo.merchantId }) .getActivityRevenue({
merchantId: this.data.merchantInfo.merchantId
})
.then(res => { .then(res => {
var actList = this.data.scenceList[0].productList var actList = this.data.scenceList[0].productList
var activitingIdx = -1 var activitingIdx = -1
...@@ -456,7 +515,9 @@ Page({ ...@@ -456,7 +515,9 @@ Page({
wx.$api.showToast('下载海报失败') wx.$api.showToast('下载海报失败')
}) })
}, },
back() {
wx.$router.back()
},
// 众筹-end // 众筹-end
onRoute() { onRoute() {
console.log('onRoute') console.log('onRoute')
......
...@@ -44,6 +44,10 @@ ...@@ -44,6 +44,10 @@
vertical-align: middle; vertical-align: middle;
} }
.navigation-title-text {
max-width: 55%;
}
&::after { &::after {
content: ''; content: '';
width: 100%; width: 100%;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="imgBox" bind:tap="back"> <view class="imgBox" bind:tap="back">
<image src="../../images/blackArrow.png" /> <image src="../../images/blackArrow.png" />
</view> </view>
<view class="navigation-title-text">广西弘泽汽车销售服务…</view> <view class="navigation-title-text text-hide">{{merchantInfo.merchantName}}</view>
</view> </view>
<tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" /> <tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" />
<view class="searchBar"> <view class="searchBar">
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</scroll-view> </scroll-view>
</view> </view>
<view class="conCom"> <view class="conCom">
<view wx:if="{{ tabIndx == 1 }}" class="activity-content"> <view wx:if="{{ tabIndx == 1 }}" class="activity-content container">
<output-crowdfund <output-crowdfund
wx:if="{{ isShowData }}" wx:if="{{ isShowData }}"
orderObj="{{ activityList[activityActive].outputData }}" orderObj="{{ activityList[activityActive].outputData }}"
......
...@@ -8,6 +8,7 @@ const IMAGES = Object.freeze({ ...@@ -8,6 +8,7 @@ const IMAGES = Object.freeze({
icon2: `personal/icon3.png`, icon2: `personal/icon3.png`,
icon3: `personal/icon4.png`, icon3: `personal/icon4.png`,
icon4: `personal/icon5.png`, icon4: `personal/icon5.png`,
icon5: `personal/icon6.png`,
userAvatarUrl: `/personal/userAvatarUrl.png` userAvatarUrl: `/personal/userAvatarUrl.png`
}) })
import { unreadApi, readApi } from '~/api/index.js' import { unreadApi, readApi } from '~/api/index.js'
...@@ -43,7 +44,14 @@ Page({ ...@@ -43,7 +44,14 @@ Page({
name: '客户管理', name: '客户管理',
path: 'packageMine.customerList', path: 'packageMine.customerList',
isHide: true isHide: true
}], },
{
name: '更新日志',
path: 'packageMine.log',
isHide: false,
newTips:true
}
],
isShowService: false, isShowService: false,
}, },
navGO(e) { navGO(e) {
...@@ -156,7 +164,12 @@ Page({ ...@@ -156,7 +164,12 @@ Page({
}) })
} }
}, },
async getVersionInfo() {
const versionData = await getApp().getVersionInfo()
this.setData({
versionData
})
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
...@@ -176,6 +189,7 @@ Page({ ...@@ -176,6 +189,7 @@ Page({
// isShowService: serviceMerchatList.includes(userInfo.merchantId + '') // isShowService: serviceMerchatList.includes(userInfo.merchantId + '')
// }) // })
this.judgeIsHide() this.judgeIsHide()
this.getVersionInfo()
console.log(serviceMerchantId) console.log(serviceMerchantId)
}, },
/** /**
...@@ -187,12 +201,24 @@ Page({ ...@@ -187,12 +201,24 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
this.messageBoxPageIsRead() this.messageBoxPageIsRead()
this.getUnreadApi() this.getUnreadApi()
let { userInfo } = wx.$storage.get() let { userInfo } = wx.$storage.get()
this.setData({ this.setData({
userInfo: userInfo.subLoginUser userInfo: userInfo.subLoginUser
}) })
let {
versionData
} = this.data
if (versionData) {
versionData = wx.$versionConfig.compare()
wx.nextTick(() => {
this.setData({
versionData
})
})
}
}, },
/** /**
......
...@@ -130,6 +130,21 @@ page { ...@@ -130,6 +130,21 @@ page {
right: 20rpx; right: 20rpx;
z-index: 1; z-index: 1;
} }
.new {
width: 52rpx;
height: 22rpx;
background: #F36261;
color: #EEEEEE;
border-radius: 12rpx;
position: absolute;
top: 13rpx;
font-size: 20rpx;
text-align: center;
line-height: 22rpx;
right: -5rpx;
z-index: 1;
}
} }
.name { .name {
...@@ -140,6 +155,41 @@ page { ...@@ -140,6 +155,41 @@ page {
} }
} }
.update {
height: 112rpx;
background: #2C3255;
font-weight: 500;
font-size: 15px;
color: #FFFFFF;
display: flex;
align-items: center;
padding: 0 16rpx;
.icon {
width: 64rpx;
height: 64rpx;
margin-right: 4rpx;
}
.new {
margin-left: 16rpx;
width: 52rpx;
height: 28rpx;
font-size: 18rpx;
color: #FFFFFF;
line-height: 28rpx;
text-align: center;
background-image: linear-gradient(270deg, #FF3E7F 0%, #FE624B 100%);
border-radius: 14rpx;
}
.arrow {
margin-left: auto;
width: 32rpx;
height: 32rpx;
}
}
.logoutBtn { .logoutBtn {
position: fixed; position: fixed;
bottom: 106rpx; bottom: 106rpx;
......
...@@ -17,24 +17,24 @@ ...@@ -17,24 +17,24 @@
<view wx:for="{{boxItemList}}" wx:key="index" class="item" data-path="{{item.path}}" data-item="{{item}}" bind:tap="navGO"> <view wx:for="{{boxItemList}}" wx:key="index" class="item" data-path="{{item.path}}" data-item="{{item}}" bind:tap="navGO">
<block wx:if="{{!item.isHide}}"> <block wx:if="{{!item.isHide}}">
<view class="imgcon"> <view class="imgcon">
<view wx:if="{{item.hasRedPot}}" class="redPot" hidden="{{!item.isRead}}" /> <view wx:if="{{item.hasRedPot}}" class="redPot" hidden="{{!item.isRead}}" ></view>
<view wx:if="{{item.newTips}}" class="new" hidden="{{!versionData.isNew}}">new</view>
<glsx-image class="img" src="{{IMAGES['icon' + index]}}" /> <glsx-image class="img" src="{{IMAGES['icon' + index]}}" />
</view> </view>
<view class="name">{{item.name}}</view> <view class="name">{{item.name}}</view>
</block> </block>
</view> </view>
<!-- <view class="item" data-path="packagesList.customerManagement" bind:tap="navGO"> <!-- <view class="update" bindtap="jump">
<view class="imgcon"> <view class="icon">
<glsx-image class="img" src="{{IMAGES.icon0}}" /> <glsx-image class="logo" webp src="store-assistant/menu/log.png"></glsx-image>
</view>
<view class="name">客户管理</view>
</view> </view>
<view class="item" data-path="packagesList.messageBox" bind:tap="navGO"> 更新日志
<view class="imgcon"> <block wx:if="{{versionData.isNew}}">
<view class="redPot" hidden="{{!isRead}}" /> <view class="new">NEW</view>
<glsx-image class="img" src="{{test}}" /> </block>
<view class="arrow">
<glsx-image class="logo" webp src="store-assistant/menu/log-arrow.png"></glsx-image>
</view> </view>
<view class="name">消息盒子</view>
</view> --> </view> -->
</view> </view>
<button class="logoutBtn" size="default" type="default" isabled="{{false}}" loading="{{false}}" bindtap="logout" hover-class="button-hover"> <button class="logoutBtn" size="default" type="default" isabled="{{false}}" loading="{{false}}" bindtap="logout" hover-class="button-hover">
......
<!--pages/tab/outputValue/components/merchant/merchant.wxml--> <!--pages/tab/outputValue/components/merchant/merchant.wxml-->
<!-- <view class="merchantCon"> --> <scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{scrollTop}}">
<!-- 全部 - 服务商总产值 --> <!-- 全部 - 服务商总产值 -->
<service-total wx:if="{{!searchForm.sceneType && merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total> <service-total wx:if="{{merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content"> <view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<!-- 全部 --> <!-- 全部 -->
<merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}" searchForm="{{searchForm}}"></merchant-all> <merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}" searchForm="{{searchForm}}"></merchant-all>
...@@ -13,7 +12,7 @@ ...@@ -13,7 +12,7 @@
<view wx:if="{{!merchantList.length}}" class="end-txt"> <view wx:if="{{!merchantList.length}}" class="end-txt">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" emptyDataStyle="{{emptyDataStyle}}" /> <nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" emptyDataStyle="{{emptyDataStyle}}" />
</view> </view>
<view wx:elif="{{!isEnd}}" class="btn-box"> <view class="btn-box" wx:elif="{{!isEnd}}">
<view class="btn" bindtap="getMore">加载更多</view> <view class="btn" bindtap="getMore">加载更多</view>
</view> </view>
<view wx:else class="end-txt"> <view wx:else class="end-txt">
...@@ -21,4 +20,3 @@ ...@@ -21,4 +20,3 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<!-- </view> -->
\ No newline at end of file \ No newline at end of file
...@@ -45,7 +45,8 @@ Component({ ...@@ -45,7 +45,8 @@ Component({
date: { date: {
year: '', year: '',
month: '' month: ''
} },
currentMonth: new Date().format('yyyy-MM')
}, },
/** /**
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<view class="top-num-box"> <view class="top-num-box">
<view> <view>
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view> <view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<!-- <view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view> --> <view class="total-txt num-grey" wx:if="{{curInfo.curMonthTotalData.total == 0}}">暂无业务收入</view>
</view> </view>
<view> <view>
<view wx:if="{{sceneObj.name != 'membranes' && searchForm.startTime && searchForm.endTime}}" class="label m-b-12 business-total-other">业务产值 <view wx:if="{{sceneObj.name != 'membranes' && searchForm.startTime && searchForm.endTime}}" class="label m-b-12 business-total-other">业务产值
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
</view> </view>
<!-- 内容 - 太阳膜、会员权益/升级 --> <!-- 内容 - 太阳膜、会员权益/升级 -->
<view wx:else class="list-content"> <view wx:else class="list-content">
<view wx:if="{{currentMonth == curInfo.yearMonth}}">
<view class="com-box"> <view class="com-box">
<view class="line"></view> <view class="line"></view>
<view class="com-month">当日</view> <view class="com-month">当日</view>
...@@ -65,6 +66,7 @@ ...@@ -65,6 +66,7 @@
</view> </view>
</view> </view>
</view> </view>
</view>
<view> <view>
<view class="com-box"> <view class="com-box">
<view class="line"></view> <view class="line"></view>
......
...@@ -24,10 +24,10 @@ Component({ ...@@ -24,10 +24,10 @@ Component({
// 4S店商户号 // 4S店商户号
merchantId: '', merchantId: '',
startTime: '', startTime: '',
endTime: '' endTime: '',
}
} }
} }
},
}, },
/** /**
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<view class="layout" style="padding-top:calc({{tabBarStyle}}px + 88rpx);"> <view class="layout" style="padding-top:calc({{tabBarStyle}}px + 88rpx);">
<!-- 我的门店 --> <!-- 我的门店 -->
<view class="comCom" hidden="{{tabIndx != 0}}"> <view class="comCom" hidden="{{tabIndx != 0}}">
<merchant id="merchant" searchForm="{{screenFormData}}" tabBarStyle="{{tabBarStyle}}" /> <merchant id="merchant" searchForm="{{screenFormData}}" tabBarStyle="{{tabBarStyle}}"/>
</view> </view>
<!-- 我的员工 --> <!-- 我的员工 -->
<view class="comCom" hidden="{{tabIndx != 1}}"> <view class="comCom" hidden="{{tabIndx != 1}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!