Commit 8b8adcb5 by 张立顺

bug修复

1 parent a937fe30
...@@ -68,7 +68,8 @@ ...@@ -68,7 +68,8 @@
.active.scene-item { .active.scene-item {
background-image: linear-gradient(145deg, #F0F7FF 0%, #FFFFFF 73%); background-image: linear-gradient(145deg, #F0F7FF 0%, #FFFFFF 73%);
border: 2rpx solid #3666FE; border: 2rpx solid #3666FE;
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40); /* box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40); */
filter: drop-shadow(0 12rpx 12rpx rgba(180, 186, 204, 0.40));
} }
.active::after { .active::after {
......
...@@ -26,7 +26,16 @@ ...@@ -26,7 +26,16 @@
<text class="name">{{merchantName}}</text> <text class="name">{{merchantName}}</text>
<text>门店场景已开通,待开展业务,信息如下:</text> <text>门店场景已开通,待开展业务,信息如下:</text>
</view> --> </view> -->
<slot/> <slot />
<view class="time">{{time}}</view> <view class="time">{{filter.timeformat(time)}}</view>
</view> </view>
<wxs module="filter">
module.exports = {
timeformat: function (time) {
time = time.slice(0,-3)
return time
}
}
</wxs>
\ No newline at end of file \ No newline at end of file
...@@ -156,11 +156,12 @@ Component({ ...@@ -156,11 +156,12 @@ Component({
mineApi mineApi
.saveMerchantCustomInfo(objList) .saveMerchantCustomInfo(objList)
.then(result => { .then(result => {
console.log(result) wx.$api.showToast('更新成功')
this.setData({ // console.log(result)
pageNum: 1 // this.setData({
}) // pageNum: 1
this.getMerchantCustomInfoList() // })
// this.getMerchantCustomInfoList()
}) })
.catch(err => {}) .catch(err => {})
}, },
......
...@@ -173,7 +173,7 @@ Component({ ...@@ -173,7 +173,7 @@ Component({
}) })
}, },
refreshList(e) { refreshList(e) {
// console.log(e) console.log(e)
let { type } = this.data let { type } = this.data
let { typename } = e.currentTarget.dataset let { typename } = e.currentTarget.dataset
type[typename].pageNum = 1 type[typename].pageNum = 1
......
...@@ -8,32 +8,11 @@ ...@@ -8,32 +8,11 @@
<view>消息盒子</view> <view>消息盒子</view>
</navigation-bar> </navigation-bar>
<view class="layout " style="padding-top:{{tabBarStyle}}px; height:calc(100vh - {{tabBarStyle}}px)"> <view class="layout " style="padding-top:{{tabBarStyle}}px; height:calc(100vh - {{tabBarStyle}}px)">
<tab <tab tab="{{tabList}}" itemWidth="{{'50%'}}" index="{{tabIndx}}" bindclick="changeTabIndx" class="tabContainer" />
tab="{{tabList}}"
itemWidth="{{'50%'}}"
index="{{tabIndx}}"
bindclick="changeTabIndx"
class="tabContainer" />
<view hidden="{{tabIndx==1}}" class="scrollCon">
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="104"
style="height:100%;"
scroll-top="{{scrollTop}}"
class=" list"
data-typeName="warReport"
refresher-triggered="{{triggered}}">
<!-- --> <!-- -->
<msg-box <view class="scrollCon" hidden="{{tabIndx==1}}">
wx:for="{{warReportList}}" <scroll-view wx:if="{{tabBarStyle}}" scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshList" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" style="height:100%;" scroll-top="{{scrollTop}}" class="list" data-typeName="warReport" refresher-triggered="{{triggered}}">
wx:key='index' <msg-box wx:for="{{warReportList}}" wx:key='index' merchantName="{{item.merchantName}}" messageType="{{item.messageType}}" time="{{item.updatedTime}}">
merchantName="{{item.merchantName}}"
messageType="{{item.messageType}}"
time="{{item.updatedTime}}">
<view class="warReportBox" wx:if="{{item.messageType == 2}}"> <view class="warReportBox" wx:if="{{item.messageType == 2}}">
<view class="item"> <view class="item">
<view class="label">当前产值</view> <view class="label">当前产值</view>
...@@ -52,38 +31,18 @@ ...@@ -52,38 +31,18 @@
</view> </view>
<view class="warReportLink"> <view class="warReportLink">
<view class="label">点击了解详情:</view> <view class="label">点击了解详情:</view>
<view <view class="link" wx:if="{{item.valueUrl}}" data-valueurl="{{item.valueUrl}}" data-item="{{item}}" bind:tap="downLoad">
class="link"
wx:if="{{item.valueUrl}}"
data-valueurl="{{item.valueUrl}}"
data-item="{{item}}"
bind:tap="downLoad">
战报详情 战报详情
</view> </view>
</view> </view>
</msg-box> </msg-box>
</scroll-view> </scroll-view>
</view> </view>
<view hidden="{{tabIndx==0}}" class="scrollCon"> <view hidden="{{tabIndx==0}}" class="scrollCon">
<scroll-view <scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshList" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" style="height:100%;" scroll-top="{{scrollTop}}" class="list" data-typeName="message" refresher-triggered="{{triggered}}">
scroll-y
enable-back-to-top <msg-box wx:for="{{messageList}}" wx:key='index' merchantName="{{item.merchantName}}" messageType="{{item.messageType}}" time="{{item.updatedTime}}">
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="104"
style="height:100%;"
scroll-top="{{scrollTop}}"
class=" list"
data-typeName="message"
refresher-triggered="{{triggered}}">
<!-- -->
<msg-box
wx:for="{{messageList}}"
wx:key='index'
merchantName="{{item.merchantName}}"
messageType="{{item.messageType}}"
time="{{item.updatedTime}}">
<view wx:if="{{item.messageType == 1}}"> <view wx:if="{{item.messageType == 1}}">
<view class="cell"> <view class="cell">
<view class="label">活动名称:</view> <view class="label">活动名称:</view>
...@@ -116,8 +75,8 @@ ...@@ -116,8 +75,8 @@
</view> </view>
</msg-box> </msg-box>
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
<crowdfund-poster findKey="crowdFundActivityId" id="poster" item="{{posterItem}}" /> <crowdfund-poster findKey="crowdFundActivityId" id="poster" item="{{posterItem}}" />
<canvas class="erweimaCanvas" style="width: 600rpx; height: 600rpx;" canvas-id="myQrcode" /> <canvas class="erweimaCanvas" style="width: 600rpx; height: 600rpx;" canvas-id="myQrcode" />
\ No newline at end of file \ No newline at end of file
<!-- pages/tab/output/components/sceneBox/sceneBox.wxml --> <!-- pages/tab/output/components/sceneBox/sceneBox.wxml -->
<wxs src="../../index.wxs" module="filter" />
<view class="flex scene"> <view class="flex scene">
<view <view
class="scene-item {{ formData['scene' + (index + 1)] ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" class="scene-item {{ formData['scene' + (index + 1)] ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}"
...@@ -14,7 +15,7 @@ ...@@ -14,7 +15,7 @@
<view class="scene-title {{formData['showList'][index]?'':'notOpened'}}">{{item.title}}</view> <view class="scene-title {{formData['showList'][index]?'':'notOpened'}}">{{item.title}}</view>
<view class="scene-label">{{item.subTitle}}</view> <view class="scene-label">{{item.subTitle}}</view>
<!-- wx:if="{{scenePriceList.length}}" --> <!-- wx:if="{{scenePriceList.length}}" -->
<view class="total-price">¥ {{formData['showList'][index].totalMoney||0}}</view> <view class="total-price">¥ {{filter.money_three_for_two_thousands(formData['showList'][index].totalMoney||0)}}</view>
</view> </view>
</view> </view>
...@@ -58,7 +58,8 @@ ...@@ -58,7 +58,8 @@
.active.scene-item { .active.scene-item {
background-image: linear-gradient(145deg, #F0F7FF 0%, #FFFFFF 73%); background-image: linear-gradient(145deg, #F0F7FF 0%, #FFFFFF 73%);
border: 2rpx solid #3666FE; border: 2rpx solid #3666FE;
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40); /* box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40); */
filter: drop-shadow(0 12rpx 12rpx rgba(180, 186, 204, 0.40));
/* background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/carselect.png') no-repeat; /* background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/carselect.png') no-repeat;
background-size: 100% 100%; */ background-size: 100% 100%; */
} }
......
...@@ -153,8 +153,8 @@ ...@@ -153,8 +153,8 @@
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
font-family: Helvetica-Bold; // font-family: Helvetica-Bold;
font-weight: Bold; // font-weight: Bold;
font-size: 28rpx; font-size: 28rpx;
color: #3666FE; color: #3666FE;
// width: 100%; // width: 100%;
......
<!-- pages/tab/output/components/merchant/mrechant.wxml --> <!-- pages/tab/output/components/merchant/mrechant.wxml -->
<!-- hidden="{{true}}" --> <!-- hidden="{{true}}" -->
<wxs src="../../index.wxs" module="filter" /> <wxs src="../../index.wxs" module="filter" />
<scroll-view <scroll-view scroll-y="true" class="list-wrap" enable-back-to-top style="height:100%" refresher-enabled="{{true}}" bindrefresherrefresh="refreshList" refresher-threshold="104" refresher-triggered="{{triggered}}">
scroll-y="true"
class="list-wrap"
enable-back-to-top
style="height:100%"
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
<view class="con" wx:if="{{list.length }}"> <view class="con" wx:if="{{list.length }}">
<view class="statistics"> <view class="statistics">
<view class="totalOutputValue statisticsbox"> <view class="totalOutputValue statisticsbox">
...@@ -26,41 +18,21 @@ ...@@ -26,41 +18,21 @@
<!-- <merchantDataStatistics bind:swiperChange="swiperChange" /> --> <!-- <merchantDataStatistics bind:swiperChange="swiperChange" /> -->
<!-- sceneIndx==3? 'short': --> <!-- sceneIndx==3? 'short': -->
<!-- {{startInd ==4?'short':'full'}} --> <!-- {{startInd ==4?'short':'full'}} -->
<swiper <swiper indicator-dots="{{list.length>1? indicatorDots:false}}" class="swiper " style="height:{{swiperHeight*2}}rpx" autoplay="{{autoplay}}" bindchange="swiperChange" interval="{{interval}}" duration="{{duration}}">
indicator-dots="{{list.length>1? indicatorDots:false}}"
class="swiper "
style="height:{{swiperHeight*2}}rpx"
autoplay="{{autoplay}}"
bindchange="swiperChange"
interval="{{interval}}"
duration="{{duration}}">
<block wx:for="{{list}}" wx:key="*this"> <block wx:for="{{list}}" wx:key="*this">
<swiper-item> <swiper-item>
<view class="merchantDataStatistics-con"> <view class="merchantDataStatistics-con">
<view class="contitle"> <view class="contitle">
<view class="name">{{item.merchantName}}</view> <view class="name">{{item.merchantName}}</view>
<view <view class="select" data-index="{{index}}" data-item="{{item}}" bind:tap="pickSheet">
class="select"
data-index="{{index}}"
data-item="{{item}}"
bind:tap="pickSheet">
<view>{{item.selectName||'累计'}}</view> <view>{{item.selectName||'累计'}}</view>
<image <image class="arrow {{isAct?'isAct':''}}" webp src="{{IMAGES.arrow}}" alt="" />
class="arrow {{isAct?'isAct':''}}"
webp
src="{{IMAGES.arrow}}"
alt="" />
</view> </view>
</view> </view>
<!-- <scene-select/> --> <!-- <scene-select/> -->
<view class="scene-box"> <view class="scene-box">
<!-- {{item.startInd + 1}} --> <!-- {{item.startInd + 1}} -->
<scene-box <scene-box formData="{{item}}" data-index="{{index}}" data-item="{{item}}" bind:handleSceneChange="handleSceneChange" sceneActive="{{(item.startInd + 1)}}" />
formData="{{item}}"
data-index="{{index}}"
data-item="{{item}}"
bind:handleSceneChange="handleSceneChange"
sceneActive="{{(item.startInd + 1)}}" />
</view> </view>
<view class="outputValueCon " wx:if="{{!item.showNothingSceneCon && item.showList[item.startInd] }}"> <view class="outputValueCon " wx:if="{{!item.showNothingSceneCon && item.showList[item.startInd] }}">
<view class="title">产值图</view> <view class="title">产值图</view>
...@@ -68,14 +40,10 @@ ...@@ -68,14 +40,10 @@
<view class="swiper-item "> <view class="swiper-item ">
<view class="fluuelCon {{item.startInd!=3?'longHeight':'shortHeight'}}"> <view class="fluuelCon {{item.startInd!=3?'longHeight':'shortHeight'}}">
<image class="bg-image " src="{{item.startInd!=3?IMAGES.funnelNew :IMAGES.funnelNewSm}}" /> <image class="bg-image " src="{{item.startInd!=3?IMAGES.funnelNew :IMAGES.funnelNewSm}}" />
<block <block wx:for="{{item.startInd!=3? funnelList['start']: funnelList['end']}}" wx:key="*this" wx:for-index="ind" wx:for-item="funneItem">
wx:for="{{item.startInd!=3? funnelList['start']: funnelList['end']}}"
wx:key="*this"
wx:for-index="ind"
wx:for-item="funneItem">
<view class="funneItem"> <view class="funneItem">
<view class="label">{{funneItem['label']}}</view> <view class="label">{{funneItem['label']}}</view>
<view class="num"> <view class="num font-number">
{{item.showList[item.startInd][funneItem['key']]||0}} {{item.showList[item.startInd][funneItem['key']]||0}}
</view> </view>
</view> </view>
...@@ -103,17 +71,8 @@ ...@@ -103,17 +71,8 @@
<!-- 指标诊断 --> <!-- 指标诊断 -->
<view class="diagnosisCon" wx:if="{{item.showList[item.startInd]['diagnoseList'].length}}"> <view class="diagnosisCon" wx:if="{{item.showList[item.startInd]['diagnoseList'].length}}">
<view class="tipsIcon">指标诊断</view> <view class="tipsIcon">指标诊断</view>
<swiper <swiper class="tips" autoplay="{{true}}" interval="{{5000}}" circular="{{true}}" duration="{{duration}}">
class="tips" <block wx:for="{{item.showList[item.startInd]['diagnoseList']}}" wx:key="*this" wx:for-index="dgInd" wx:for-item="dgItem">
autoplay="{{true}}"
interval="{{5000}}"
circular="{{true}}"
duration="{{duration}}">
<block
wx:for="{{item.showList[item.startInd]['diagnoseList']}}"
wx:key="*this"
wx:for-index="dgInd"
wx:for-item="dgItem">
<swiper-item>{{dgItem}}</swiper-item> <swiper-item>{{dgItem}}</swiper-item>
</block> </block>
</swiper> </swiper>
...@@ -122,12 +81,7 @@ ...@@ -122,12 +81,7 @@
</view> </view>
</view> </view>
<!-- wx:if="{{swiperHeight>590}}" --> <!-- wx:if="{{swiperHeight>590}}" -->
<navigator <navigator class="navOhterApp" target="miniProgram" open-type="navigate" app-id="wx570d9331f9ace0bd" version="release">
class="navOhterApp"
target="miniProgram"
open-type="navigate"
app-id="wx570d9331f9ace0bd"
version="release">
<image src="{{IMAGES.link}}" webp class="linkImg" /> <image src="{{IMAGES.link}}" webp class="linkImg" />
查看订单详情 查看订单详情
</navigator> </navigator>
...@@ -159,3 +113,37 @@ ...@@ -159,3 +113,37 @@
</scroll-view> </scroll-view>
<nothingTipsCon wx:if="{{!list.length }}" /> <nothingTipsCon wx:if="{{!list.length }}" />
<!-- <wxs module="filter">
module.exports = {
money_three_for_two_thousands: function (num) {
//num = parseInt(num);
// return num
var num = num + ''
var d = ''
if (num.slice(0, 1) == '-') {
d = num.slice(0, 1)
num = num.slice(1)
}
var len = num.length
var index = num.indexOf('.')
if (index == -1) {
num = num + '.00'
} else if (index + 2 == len) {
num = num + '0'
}
var index = num.indexOf('.') // 字符出现的位置
var num2 = num.slice(-3)
num = num.slice(0, index)
var result = ''
while (num.length > 3) {
result = ',' + num.slice(-3) + result
num = num.slice(0, num.length - 3)
}
if (num) {
result = num + result
}
// return result
return d + (result + num2)
}
}
</wxs> -->
\ No newline at end of file \ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
content: ''; content: '';
width: 100%; width: 100%;
// height: 486rpx; // height: 486rpx;
height: 295rpx; height: 350rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.png') no-repeat; background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.png') no-repeat;
background-size: 100% 264rpx; background-size: 100% 264rpx;
background-color: #fff; background-color: #fff;
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
}, },
{ {
"name": "消息盒子", "name": "消息盒子",
"pathName": "pages/mineDetail/messageBox/messageBox", "pathName": "packagesList/mineDetail/pages/messageBox",
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
......
...@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync() ...@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false const manual = false
const release = false const release = false
let index = 1 let index = 2
// 判断小程序环境 // 判断小程序环境
// develop:开发版(正常开发工具,测试时) // develop:开发版(正常开发工具,测试时)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!