Commit 2f89b2df by 陈婉清

Merge branch 'dev_v4.27.1' into 'develop'

Dev v4.27.1上线后,代码合并

See merge request !38
2 parents fb9facad 83a02851
......@@ -127,12 +127,14 @@
"nothing-tips": "/components/Nothing-tips/nothingTips",
"crowdfund-poster": "/components/CrowdfundPoster/CrowdfundPoster",
"glsx-image": "/components/image/index",
"no-product": "/components/NoProduct/index"
"no-product": "/components/NoProduct/index",
"glsx-privacy": "glsx-applet-component/GlsxPrivacy/index"
},
"resolveAlias": {
"~/*": "/*"
},
"sitemapLocation": "sitemap.json",
"__usePrivacyCheck__": true,
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
......
......@@ -14,4 +14,5 @@
</view>
</view>
</view>
</view>
\ No newline at end of file
</view>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
\ No newline at end of file
......@@ -44,3 +44,4 @@
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
</view>
</view>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
......@@ -202,10 +202,12 @@ Component({
},
/**微信登录 */
wxLogin({ detail }) {
if (!detail.code) {
wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
return
}
console.log(detail,'detail');
if (detail.errno == 104 ||!detail.code) return //用户手动拒绝
// if (!detail.code) {
// // wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
// return
// }
this.setBtnLoading()
USERAPI.authUserPhone(detail, this.loginToken)
.then(({ code, data, message }) => {
......@@ -243,7 +245,8 @@ Component({
const thisPage = wx.$router.getPageInstance()
if (code == '0') {
thisPage.setData({
disabled: false
disabled: false,
loginToken:data
})
this.loginToken = data
} else this.reLogin(message)
......
......@@ -97,4 +97,5 @@
</button>
</block>
<auth-setting bind:choose="authChoose" />
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
......@@ -74,14 +74,15 @@ Page({
})
},
checkLoginBtn(disabled = false ) {
const { loginType } = this.data,
const { loginType,loginToken } = this.data,
{
data: { formData },
// loginToken
} = this.selectComponent('#box')
if (loginType == 0) {
console.log(this.loginToken,'this.loginToken');
// disabled = loginToken
disabled = this.loginToken
disabled = loginToken|| true
} else{
disabled = loginType == 1 ? formData.phone && this.validate.methods.tel(formData.phone) && formData.code && formData.code.length == 4 : formData.account && formData.password
}
......
......@@ -2,8 +2,6 @@
<mask show="{{loading}}"></mask>
<navigation-bar navStyle="background-color: rgba(0,0,0,0)">生意助手</navigation-bar>
<box loginType="{{loginType}}" disabled="{{disabled}}" id="box" />
{{test4}}
<agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
{{test}}
<type-list loginType="{{loginType}}" />
</view>
\ No newline at end of file
......@@ -10,9 +10,9 @@
"integrity": "sha512-R2FyCk0mK2xvUX2dMgVZjVG512RKBj7ELMDxjRJjhQWtw4495WBgbl5Yb4v2A6d4vWJe6z9toKgDJTciN0Bo9A=="
},
"glsx-applet-component": {
"version": "1.1.18",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.18.tgz",
"integrity": "sha512-oNJMLkKh/BOFyiGUDlm5r+5dvqBlZx7T9U+UQ2BkqL8R9i713sCHs+1AOsFMA1GOjsgRM2ShgzoXaQef6RQ/ew=="
"version": "1.1.24",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.24.tgz",
"integrity": "sha512-3XTG9J99rgKVJpcC7aKS/+N7CaS+MNYdy5qmWH8siFaRFiSo1PeBRDaprfjCazaud/c31RvpoDFUof/fxNkxjw=="
},
"glsx-common-sdk": {
"version": "0.2.8",
......
......@@ -5,7 +5,7 @@
"main": "app.js",
"dependencies": {
"@vant/weapp": "^1.10.7",
"glsx-applet-component": "^1.1.18",
"glsx-applet-component": "^1.1.24",
"glsx-common-sdk": "^0.2.8",
"glsx-map-sdk": "^0.1.5"
},
......
......@@ -89,4 +89,5 @@
<!-- 车品牌 -->
<popup show="{{popupShow}}" bind:hidePopup="hideBrandPopup" bindconfirm="brandConfirm" height="95%">
<car-brand id="car-brand" popupShow="{{popupShow}}" selectedList="{{selectedBrandList}}"></car-brand>
</popup>
\ No newline at end of file
</popup>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
\ No newline at end of file
......@@ -64,4 +64,5 @@
<view class="link-btn" bindtap="handleShow">确定</view>
</view>
<image wx:if="{{popupVal == 'code'}}" src="{{IMG_URL}}index/close.png" class="close" bindtap="handleShow"></image>
</view>
\ No newline at end of file
</view>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
\ No newline at end of file
......@@ -59,4 +59,5 @@
</view>
<popup show="{{popupShow}}" bind:hidePopup="hideBrandPopup" bindconfirm="brandConfirm" height="95%">
<car-brand id="car-brand" popupShow="{{popupShow}}" selectedList="{{selectedBrandList}}"></car-brand>
</popup>
\ No newline at end of file
</popup>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
\ No newline at end of file
......@@ -75,26 +75,28 @@ Component({
upgradeAveragePriceList.push(tabIndex == 0 ? element.upgradeAveragePrice : element.avgPrice)
upgradeRateList.push(element.upgradeRate || 0)
})
// 使用 Math.max 方法找到数组中的最大值
const max = Math.max(...orderMoneyTotalList)
// console.log(orderMoneyTotalList, 'orderMoneyTotalList')
const colors = ['#3582EE', '#35C376', '#FF9D0A']
var option = {
color: colors,
grid: {
left: '25%',
left: max > 100000 ? '25%' : '15%',
right: '15%'
},
tooltip: {
trigger: 'axis',
formatter: function(params) {
console.log(params,'formatter');
formatter: function (params) {
console.log(params, 'formatter')
// debugger
// + '\n'
var html = params[0].name
html += '\n'
for (var i = 0; i < params.length; i++) {
let unit = i+1 == params.length? '':'\n'
let unit = i + 1 == params.length ? '' : '\n'
let template = params[i].marker + params[i].seriesName + ':' + ' ' + params[i].value
if (option.series[params[i].seriesIndex].valueType == 'percent') {
if (option.series[params[i].seriesIndex].name == '转化率') {
template = template + '%' + unit
} else {
template = template + unit
......@@ -102,7 +104,7 @@ Component({
html += template
}
// html += params[0].name
console.log(html,'html');
console.log(html, 'html')
return html
}
},
......
......@@ -91,6 +91,7 @@
</view>
</view>
<crowdfund-poster item="{{crowdPosterItem}}" id="crowdPoster" scrollImg="{{false}}" bindlongtouch="longtouch" />
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- <poster
posterItem="{{posterItem}}"
id="poster"
......
......@@ -29,11 +29,11 @@
<view class="td">
<view class="label">较去年</view>
<view class="flex">
<view :class="{{ revenueData[item.name].revenueToClassYear }}">{{revenueData[item.name].comparedWithLastYear }}</view>
<view class="{{ revenueData[item.name].revenueToClassYear }}">{{revenueData[item.name].comparedWithLastYear }}</view>
<image
wx:if="{{ revenueData[item.name].revenueToClassYear }}"
class="icon-up-down"
src="../../images/icon-'{{ revenueData[item.name].revenueToClassYear }}.png"
src="../../images/icon-{{ revenueData[item.name].revenueToClassYear }}.png"
/>
</view>
</view>
......
......@@ -15,6 +15,7 @@ Page({
*/
data: {
IMGURL: IMG_URL,
isPc:true,
merchantInfo: {},
tabList: [{
label: '精品升级-太阳膜',
......@@ -525,9 +526,13 @@ Page({
wx.$api.showToast('下载海报失败')
})
},
back() {
wx.$router.back()
// back() {
// wx.$router.back()
// },
onload() {
},
// 众筹-end
onRoute() {
console.log('onRoute')
......@@ -540,6 +545,19 @@ Page({
})
this.initData()
})
let that = this
wx.getSystemInfo({
success: (res) => {
// windows | mac为pc端
// android | ios为手机端
console.log('getSystemInfo,', res);
if (['windows','mac'].includes(res.platform) ) {
that.setData({
isPc:false
})
}
}
});
// this.getListSelectAccount(sessionId)
}
})
\ No newline at end of file
<!--packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml-->
<!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> -->
<wxs src="../../index.wxs" module="filter" />
<navigation-bar showBack navStyle="background-color: transparent;" bindnavbarReady="navbarReady">
<navigation-bar wx:if="{{isPc}}" showBack navStyle="background-color: transparent;" bindnavbarReady="navbarReady">
{{merchantInfo.merchantName}}
</navigation-bar>
<!-- - {{tabBarStyle}}px -->
<view class="layout" style="padding-top:{{tabBarStyle}}px; height:calc(100vh )">
<view class="layout" style="padding-top:{{tabBarStyle}}px; height:100vh">
<!-- <view class="titleBox">
<view class="imgBox" bind:tap="back">
......
......@@ -11,4 +11,5 @@
<block wx:if="{{showAuth}}">
<authorize title="下载前需要获取您的‘添加到相册’权限,是否打开授权设置?" scopeType="writePhotosAlbum" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
</block>
</block>
\ No newline at end of file
</block>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
\ No newline at end of file
......@@ -62,3 +62,4 @@
<block wx:if="{{showAuth}}">
<authorize title="下载前需要获取您的‘添加到相册’权限,是否打开授权设置?" scopeType="writePhotosAlbum" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
</block>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
......@@ -24,4 +24,5 @@
show="{{showAuth}}"
isShowCheck="{{false}}"
id="auth" />
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
......@@ -96,4 +96,5 @@
</view>
<!-- </scroll-view> -->
</view>
\ No newline at end of file
</view>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
\ No newline at end of file
......@@ -24,4 +24,5 @@
show="{{showAuth}}"
isShowCheck="{{false}}"
id="auth" />
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
......@@ -96,4 +96,5 @@
</view>
<!-- </scroll-view> -->
</view>
\ No newline at end of file
</view>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<view class="merchant-scene">
<view class="top">
<view class="scene-label">{{sceneObj.label}}</view>
<view wx:if="{{sceneObj.name == 'membranes' && searchForm.startTime && searchForm.endTime}}" class="business-total label">业务产值
<view wx:if="{{sceneObj.name == 'membranes'}}" class="business-total label">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
<view>
......@@ -15,10 +15,10 @@
<view class="total-txt num-grey" wx:if="{{curInfo.curMonthTotalData.total == 0}}">暂无业务收入</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'}}" class="label m-b-12 business-total-other">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
<view wx:if="{{searchForm.startTime && searchForm.endTime}}">
<view>
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view>
<view class="num-grey">
......
......@@ -26,7 +26,7 @@ const sceneToInfo = [{
// 太阳膜
const membranesTopList = [{
label: '订单量',
name: 'orderTotal',
name: 'upgradeCount',
suffix: '单'
}, {
label: '转化率',
......@@ -65,7 +65,7 @@ const memberTopList = [{
prefix: '¥'
}, {
label: '成交客户量',
name: 'totalCustomer',
name: 'orderTotal',
suffix: '单'
}]
......@@ -75,7 +75,7 @@ const memberFormList = [{
prefix: '¥'
}, {
label: '成交客户量',
name: 'totalCustomer'
name: 'orderTotal'
}, {
label: '权益客单价',
name: 'custUnitPrice',
......
......@@ -9,7 +9,7 @@ Component({
type: Object,
value: () => { },
observer(n) {
if(n) {
if (n) {
this.dealYearMonth()
this.dealCompare()
}
......@@ -26,6 +26,9 @@ Component({
startTime: '',
endTime: '',
}
},
observer(n) {
n && this.judgeIsShow()
}
}
},
......@@ -40,7 +43,8 @@ Component({
date: {
year: '',
month: ''
}
},
totalShow: false
},
/**
......@@ -54,6 +58,17 @@ Component({
['date.month']: new Date(yearMonth || '').getMonth() + 1,
})
},
judgeIsShow() {
let { searchForm } = this.data
let { userInfo } = wx.$storage.get()
let isSuper = true
if(userInfo.isSuper) {
isSuper = searchForm.partnerMerchantIds[0] == userInfo.merchantId
}
this.setData({
totalShow: (searchForm.startTime && searchForm.endTime) || searchForm.shopMerchantIds.length || !isSuper
})
},
dealCompare() {
let { merchantDataList } = this.data.curInfo
let list = []
......
......@@ -13,7 +13,7 @@
<view class="num-blue ft-40"><text class="f-28">¥</text>{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
</view>
<view wx:if="{{searchForm.startTime && searchForm.endTime}}">
<view wx:if="{{totalShow}}">
<view wx:for="{{sceneFormList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view>
<view class="num-grey">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}</view>
......
......@@ -61,4 +61,5 @@
<!-- 申请按钮 不是分享出去的显示按钮 -->
<apply-button wx:if="{{!isShare}}" downShow="{{false}}"></apply-button>
<!-- 授权昵称 -->
<view wx:if="{{authNcknameShow}}" class="user-profile" bindtap="getUserProfile"></view>
\ No newline at end of file
<view wx:if="{{authNcknameShow}}" class="user-profile" bindtap="getUserProfile"></view>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
\ No newline at end of file
......@@ -31,3 +31,4 @@
<!-- 申请按钮 -->
<apply-button wx:if="{{!isShare}}" bindvideodown="downVideo"></apply-button>
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
......@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false
const release = false
let index = 2
let index = 3
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
......@@ -107,8 +107,8 @@ const djSecretKey = {
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
},
preRelease: {
appKey: 'd7ffc3346fc9a45bccaaa35300d59022',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
}
}[target[index]]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!