Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 35cd8e72
authored
Nov 10, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
拉取代码
1 parent
9673f952
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
219 additions
and
189 deletions
app.wxss
components/SceneBox/SceneBox.js
components/SceneBox/SceneBox.wxml
components/SceneBox/SceneBox.wxss
packagesList/mineDetail/pages/customerManagement.js
packagesList/mineDetail/pages/messageBox.js
packagesList/mineDetail/pages/messageBox.wxml
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
pages/tab/index/index.js
pages/tab/mine/mine.wxml
pages/tab/output/components/SceneBox/SceneBox.js
pages/tab/output/components/SceneBox/SceneBox.wxml
pages/tab/output/components/SceneBox/SceneBox.wxss
pages/tab/output/components/client/client.js
pages/tab/output/components/client/client.scss
pages/tab/output/components/client/client.wxml
pages/tab/output/components/merchant/mrechant.js
pages/tab/output/components/merchant/mrechant.scss
pages/tab/output/components/merchant/mrechant.wxml
pages/tab/output/output.scss
project.private.config.json
utils/constantData.js
utils/request/environment.js
app.wxss
View file @
35cd8e7
@import "/style/common.wxss";
@import "/style/common.wxss";
@font-face {
/*
@font-face {
font-family: "Gotham";
font-family: "Gotham";
src: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/font/Gotham-Black.woff");
src: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/font/Gotham-Black.woff");
}
}
*/
@font-face {
/*
@font-face {
font-family: "number";
font-family: "number";
src: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/font/Alimama_ShuHeiTi_Bold_Number.ttf");
src: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/font/Alimama_ShuHeiTi_Bold_Number.ttf");
} */
@font-face {
font-family: "number";
src: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/font/subset-AlimamaShuHeiTi-Bold.woff");
}
}
page {
page {
background-color: #F7F7F7;
background-color: #F7F7F7;
color: #282829;
color: #282829;
font-size: 28rpx;
font-size: 28rpx;
...
@@ -27,6 +32,10 @@ image {
...
@@ -27,6 +32,10 @@ image {
vertical-align: top;
vertical-align: top;
}
}
.font-number {
font-family: 'number';
}
.icon-mine-arrow {
.icon-mine-arrow {
width: 16rpx !important;
width: 16rpx !important;
height: 28rpx !important;
height: 28rpx !important;
...
...
components/SceneBox/SceneBox.js
View file @
35cd8e7
...
@@ -5,6 +5,9 @@ Component({
...
@@ -5,6 +5,9 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
options
:
{
addGlobalClass
:
true
},
sceneActive
:
{
sceneActive
:
{
type
:
Number
,
type
:
Number
,
value
:
-
1
value
:
-
1
...
...
components/SceneBox/SceneBox.wxml
View file @
35cd8e7
<!-- pages/tab/output/components/sceneBox/sceneBox.wxml -->
<!-- pages/tab/output/components/sceneBox/sceneBox.wxml -->
<view class="flex scene">
<view class="flex scene">
<view class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" wx:for="{{custSceneList}}" wx:key="index" bindtap="handleClick" data-idx="{{index + 1}}">
<view
class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}"
wx:for="{{custSceneList}}"
wx:key="index"
bindtap="handleClick"
data-idx="{{index + 1}}">
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)]}}" class="open-icon">
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)]}}" class="open-icon">
<image src="{{openedIcon}}" webp></image>
<image src="{{openedIcon}}" webp></image>
</view>
</view>
<image webp wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}"></image>
<image
webp
wx:if="{{formData['scene' + (index + 1)]}}"
class="scene-img"
src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<view wx:else class="no-open-img">
<view wx:else class="no-open-img">
<image webp wx:if="{{hasLockIcon}}" class="lock-img" src="{{IMGURL}}output/carlock0{{index + 1}}.png?v={{img_version}}"></image>
<image
<image webp wx:else="" class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}"></image>
webp
wx:if="{{hasLockIcon}}"
class="lock-img"
src="{{IMGURL}}output/carlock0{{index + 1}}.png?v={{img_version}}" />
<image
webp
wx:else=""
class="scene-img"
src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
</view>
</view>
<view class="scene-title {{formData['scene' + (index + 1)] ? '' : 'on-open'}}">
<view class="scene-title {{formData['scene' + (index + 1)] ? '' : 'on-open'}}">
{{item.title}}
{{item.title}}
</view>
</view>
<view>{{item.subTitle}}</view>
<view>{{item.subTitle}}</view>
<view class="total-price
" wx:if="{{scenePriceList.length}}">
<view class="total-price
" wx:if="{{scenePriceList.length}}">
¥ {{scenePriceList[index].total}}
¥ {{scenePriceList[index].total}}
</view>
</view>
</view>
</view>
</view>
</view>
components/SceneBox/SceneBox.wxss
View file @
35cd8e7
...
@@ -115,7 +115,8 @@
...
@@ -115,7 +115,8 @@
margin-top: 22rpx;
margin-top: 22rpx;
font-size: 24rpx;
font-size: 24rpx;
color: #3666FE;
color: #3666FE;
font-weight: 600;
/* font-weight: 600; */
font-family: 'number';
}
}
/* .notOpened {
/* .notOpened {
...
...
packagesList/mineDetail/pages/customerManagement.js
View file @
35cd8e7
...
@@ -130,6 +130,8 @@ Component({
...
@@ -130,6 +130,8 @@ Component({
let
{
pages
,
list
,
total
}
=
result
let
{
pages
,
list
,
total
}
=
result
list
=
list
.
map
(
item
=>
{
list
=
list
.
map
(
item
=>
{
item
.
merchantName
=
item
.
merchantName
||
item
.
actualMerchantName
item
.
merchantName
=
item
.
merchantName
||
item
.
actualMerchantName
item
.
phone
=
item
.
phone
||
item
.
actualPhone
item
.
contactName
=
item
.
contactName
||
item
.
actualContactName
return
item
return
item
})
})
this
.
setData
({
this
.
setData
({
...
...
packagesList/mineDetail/pages/messageBox.js
View file @
35cd8e7
// pages/mineDetail/messageBox/messageBox.js
// pages/mineDetail/messageBox/messageBox.js
import
mineApi
from
'~/api/mineApi/index'
import
mineApi
from
'~/api/mineApi/index'
// import { handleCopy } from '~/utils/utils_wx'
// import { handleCopy } from '~/utils/utils_wx'
// let drawQrcode = require('~/utils/lib/weapp-qrcode.js')
import
outputApi
from
'~/api/outputApi/index'
import
drawQrcode
from
'~/utils/lib/weapp-qrcode.js'
//
import drawQrcode from '~/utils/lib/weapp-qrcode.js'
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
...
@@ -38,7 +38,7 @@ Component({
...
@@ -38,7 +38,7 @@ Component({
serviceMerchantId
:
''
serviceMerchantId
:
''
},
},
attached
()
{
attached
()
{
this
.
ewmChange
()
//
this.ewmChange()
// this.initTime()
// this.initTime()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
merchantId
=
userInfo
.
subLoginUser
.
merchantId
let
merchantId
=
userInfo
.
subLoginUser
.
merchantId
...
@@ -54,20 +54,20 @@ Component({
...
@@ -54,20 +54,20 @@ Component({
*/
*/
methods
:
{
methods
:
{
// 实例化二维码canvas
// 实例化二维码canvas
ewmChange
(
url
)
{
//
ewmChange(url) {
let
size
=
{}
//
let size = {}
size
.
w
=
(
wx
.
getSystemInfoSync
().
windowWidth
/
750
)
*
600
//
size.w = (wx.getSystemInfoSync().windowWidth / 750) * 600
size
.
h
=
size
.
w
//
size.h = size.w
var
that
=
this
//
var that = this
drawQrcode
({
//
drawQrcode({
width
:
size
.
w
,
//
width: size.w,
height
:
size
.
h
,
//
height: size.h,
canvasId
:
'myQrcode'
,
//
canvasId: 'myQrcode',
text
:
url
||
that
.
data
.
text
//
text: url || that.data.text
// v1.0.0+版本支持在二维码上绘制图片
//
// v1.0.0+版本支持在二维码上绘制图片
})
//
})
},
//
},
preView
(
e
)
{
preView
(
e
)
{
let
{
valueurl
}
=
e
.
currentTarget
.
dataset
let
{
valueurl
}
=
e
.
currentTarget
.
dataset
// console.log(e)
// console.log(e)
...
@@ -91,16 +91,46 @@ Component({
...
@@ -91,16 +91,46 @@ Component({
}
}
})
})
},
},
copyLink
(
e
)
{
// copyLink(e) {
console
.
log
(
e
)
// console.log(e)
let
that
=
this
// let that = this
let
{
url
}
=
e
.
currentTarget
.
dataset
// let { url } = e.currentTarget.dataset
this
.
ewmChange
(
url
)
// this.ewmChange(url)
setTimeout
(()
=>
{
// setTimeout(() => {
this
.
share
()
// this.share()
},
100
)
// }, 100)
},
// },
async
copyLink
(
e
)
{
const
{
item
}
=
e
.
currentTarget
.
dataset
,
posterObj
=
this
.
selectComponent
(
'#poster'
),
{
options
}
=
wx
.
$router
.
getPageInstance
()
// item.crowdFundActivityId
console
.
log
(
options
)
try
{
let
flag
=
await
posterObj
.
check
(
item
)
posterObj
.
setData
({
poster
:
flag
,
show
:
true
})
}
catch
(
error
)
{
wx
.
$api
.
showLoading
(
'加载中...'
)
outputApi
.
getPosterUrl
({
id
:
item
.
crowdFundActivityId
})
.
then
(
res
=>
{
item
.
posterUrl
=
res
this
.
setData
({
posterItem
:
item
,
isShowTip
:
false
})
})
.
catch
(()
=>
{
wx
.
$api
.
showToast
(
'下载海报失败'
)
})
}
},
share
(
e
)
{
share
(
e
)
{
// console.log(e)
// console.log(e)
let
that
=
this
let
that
=
this
...
...
packagesList/mineDetail/pages/messageBox.wxml
View file @
35cd8e7
...
@@ -97,16 +97,10 @@
...
@@ -97,16 +97,10 @@
<view class="label">结算时间:</view>
<view class="label">结算时间:</view>
<view class="value">{{item.activityEndTime||'-'}}</view>
<view class="value">{{item.activityEndTime||'-'}}</view>
</view>
</view>
<
!-- <view class="cell
">
<
view class="cell" wx:if="{{item.crowdFundActivityId}}
">
<view class="label">活动链接:</view>
<view class="label">活动链接:</view>
<view
<view class="link" bind:tap="copyLink" data-item="{{item}}">下载海报</view>
class="link"
wx:if="{{item.activityUrl}}"
bind:tap="copyLink"
data-url="{{item.activityUrl}}">
下载海报
</view>
</view>
</view> -->
</view>
</view>
<view class="cell" wx:if="{{item.messageType == 4}}">
<view class="cell" wx:if="{{item.messageType == 4}}">
<view class="label">产品名称:</view>
<view class="label">产品名称:</view>
...
@@ -124,6 +118,6 @@
...
@@ -124,6 +118,6 @@
</scroll-view>
</scroll-view>
</view>
</view>
</view>
</view>
<crowdfund-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" />
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
View file @
35cd8e7
...
@@ -30,7 +30,8 @@
...
@@ -30,7 +30,8 @@
height
:
40rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
line-height
:
40rpx
;
margin-bottom
:
14rpx
;
margin-bottom
:
14rpx
;
font-weight
:
600
;
// font-weight: 600;
// font-family: 'number';
}
}
&
-label
{
&
-label
{
...
@@ -257,3 +258,7 @@
...
@@ -257,3 +258,7 @@
width
:
40rpx
;
width
:
40rpx
;
height
:
40rpx
;
height
:
40rpx
;
}
}
// .totalAmount{
// font-family: 'number';
//
}
\ No newline at end of file
\ No newline at end of file
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
View file @
35cd8e7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view class="crowdfund-layout">
<view class="crowdfund-layout">
<view class="box order">
<view class="box order">
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-txt
">
<view class="order-txt font-number
">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{orderObj[item.name] || 0}}
{{orderObj[item.name] || 0}}
</view>
</view>
...
@@ -22,9 +22,14 @@
...
@@ -22,9 +22,14 @@
<view class="down-tips" wx:if="{{index == 0 && isShowTip}}">下载活动海报分享给门店开展活动</view>
<view class="down-tips" wx:if="{{index == 0 && isShowTip}}">下载活动海报分享给门店开展活动</view>
</view>
</view>
<view class="content">
<view class="content">
<view class="content-row" wx:for="{{merchantFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view
class="content-row"
wx:for="{{merchantFormList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="content-label">{{subItem.label}}</view>
<view class="content-label">{{subItem.label}}</view>
<view class="content-txt
{{subItem.className}}">
<view class="content-txt font-number
{{subItem.className}}">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{item[subItem.name]}}
{{item[subItem.name]}}
</view>
</view>
...
@@ -68,10 +73,14 @@
...
@@ -68,10 +73,14 @@
</view>
</view>
</view> -->
</view> -->
<view class="rank-table">
<view class="rank-table">
<block wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<block
wx:for="{{item.showStaffList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="rank">
<view class="rank">
<view class="rank-num">{{idx + 1}}</view>
<view class="rank-num">{{idx + 1}}</view>
<glsx-image class="rank-head" src="output/icon-head.webp"></glsx-image
>
<glsx-image class="rank-head" src="output/icon-head.webp" /
>
<view>
<view>
<view>
<view>
<text>{{subItem.shareName}}</text>
<text>{{subItem.shareName}}</text>
...
@@ -82,7 +91,7 @@
...
@@ -82,7 +91,7 @@
<text>成交</text>
<text>成交</text>
</view>
</view>
</view>
</view>
<view
>¥{{subItem.totalAmount}}</view>
<view class="font-number"
>¥{{subItem.totalAmount}}</view>
<!-- <view class="td text-hide" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<!-- <view class="td text-hide" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<view wx:if="{{j == 0}}">{{idx + 1}}</view>
<view wx:if="{{j == 0}}">{{idx + 1}}</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
...
@@ -90,7 +99,11 @@
...
@@ -90,7 +99,11 @@
</view> -->
</view> -->
</view>
</view>
</block>
</block>
<view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">
<view
wx:if="{{item.staffList.length}}"
class="btn-more"
bindtap="handleMore"
data-idx="{{index}}">
查看更多
查看更多
</view>
</view>
</view>
</view>
...
@@ -103,7 +116,12 @@
...
@@ -103,7 +116,12 @@
{{item.suggestTxt}}推荐以下建议:
{{item.suggestTxt}}推荐以下建议:
</view>
</view>
<view class="suggest-block">
<view class="suggest-block">
<view class="suggest-step" wx:for="{{item.suggestList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view
class="suggest-step"
wx:for="{{item.suggestList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="step-label">建议{{idx + 1}}</view>
<view class="step-label">建议{{idx + 1}}</view>
<view class="step-txt">{{subItem}}</view>
<view class="step-txt">{{subItem}}</view>
</view>
</view>
...
...
pages/tab/index/index.js
View file @
35cd8e7
...
@@ -47,11 +47,11 @@ Page({
...
@@ -47,11 +47,11 @@ Page({
senceData
,
senceData
,
isShow
:
false
,
isShow
:
false
,
// 视频播放地址
// 视频播放地址
videoSrc
:
''
,
videoSrc
:
''
,
videoTitle
:
''
,
videoTitle
:
''
,
headerHeight
:
0
,
headerHeight
:
0
,
unreadClueCount
:
0
,
unreadClueCount
:
0
,
img_version
:
0.1
img_version
:
0.1
},
},
//引导图
//引导图
...
@@ -79,7 +79,7 @@ Page({
...
@@ -79,7 +79,7 @@ Page({
// console.log(e)
// console.log(e)
// console.log(this.data.headerHeight)
// console.log(this.data.headerHeight)
},
},
selectCar
(
e
){
selectCar
(
e
)
{
let
actNum
=
e
.
detail
let
actNum
=
e
.
detail
this
.
setData
({
this
.
setData
({
actNum
actNum
...
@@ -105,19 +105,19 @@ Page({
...
@@ -105,19 +105,19 @@ Page({
}
}
},
},
//看产品下拉刷新
//看产品下拉刷新
refresherrefresh
(){
refresherrefresh
()
{
let
{
tabIndx
}
=
this
.
data
let
{
tabIndx
}
=
this
.
data
if
(
tabIndx
==
1
)
{
if
(
tabIndx
==
1
)
{
// 看产品
// 看产品
this
.
getProductByscene
()
this
.
getProductByscene
()
// // 看线索
// // 看线索
// this.getClueInit()
// this.getClueInit()
this
.
getUnreadApi
()
this
.
getUnreadApi
()
wx
.
pro
.
showToast
({
wx
.
pro
.
showToast
({
title
:
"刷新成功"
,
title
:
'刷新成功'
,
icon
:
"loading"
,
icon
:
'loading'
,
duration
:
1500
,
duration
:
1500
})
;
})
}
}
},
},
// 跳转咨询页面
// 跳转咨询页面
...
@@ -308,7 +308,6 @@ Page({
...
@@ -308,7 +308,6 @@ Page({
// this.getClueInit()
// this.getClueInit()
this
.
getUnreadApi
()
this
.
getUnreadApi
()
// //第一次进来储缓存,以后不再用引导图
// //第一次进来储缓存,以后不再用引导图
let
firstLogin
=
wx
.
$storage
.
get
(
'firstLogin'
)
let
firstLogin
=
wx
.
$storage
.
get
(
'firstLogin'
)
if
(
!
firstLogin
)
{
if
(
!
firstLogin
)
{
...
@@ -327,22 +326,20 @@ Page({
...
@@ -327,22 +326,20 @@ Page({
})
})
}
}
//视频弹窗
//视频弹窗
wx
.
$eventbus
.
on
(
'getvideo'
,
(
e
)
=>
{
wx
.
$eventbus
.
on
(
'getvideo'
,
e
=>
{
// console.log('getvideo event bus: ', e);
// console.log('getvideo event bus: ', e);
let
url
=
Util
.
getCurrentPageUrl
()
let
url
=
Util
.
getCurrentPageUrl
()
if
(
url
==
'/pages/tab/index/index'
)
{
if
(
url
==
'/pages/tab/index/index'
)
{
let
obj
=
{
let
obj
=
{
videoTitle
:
e
.
title
,
videoTitle
:
e
.
title
,
videoSrc
:
e
.
src
videoSrc
:
e
.
src
}
}
this
.
getVideoUrl
(
obj
)
this
.
getVideoUrl
(
obj
)
wx
.
nextTick
(()
=>
{
wx
.
nextTick
(()
=>
{
this
.
videocomp
.
play
()
;
this
.
videocomp
.
play
()
})
;
})
}
}
})
})
},
},
//接口数据,本地数据对接
//接口数据,本地数据对接
...
@@ -375,7 +372,7 @@ Page({
...
@@ -375,7 +372,7 @@ Page({
})
})
},
},
// 看产品接口
// 看产品接口
getProductByscene
(){
getProductByscene
()
{
productBysceneApi
().
then
(
res
=>
{
productBysceneApi
().
then
(
res
=>
{
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
...
@@ -394,11 +391,11 @@ Page({
...
@@ -394,11 +391,11 @@ Page({
*/
*/
onReady
:
function
()
{
onReady
:
function
()
{
this
.
prompt
=
this
.
selectComponent
(
'#toast'
)
this
.
prompt
=
this
.
selectComponent
(
'#toast'
)
this
.
videocomp
=
this
.
selectComponent
(
"#videocomp"
);
this
.
videocomp
=
this
.
selectComponent
(
'#videocomp'
)
},
},
// //点击收藏提示框
// //点击收藏提示框
showToggleToast
(
e
){
showToggleToast
(
e
)
{
let
tipObj
=
e
.
detail
let
tipObj
=
e
.
detail
this
.
prompt
.
showToast
({
this
.
prompt
.
showToast
({
type
:
tipObj
.
type
,
type
:
tipObj
.
type
,
...
@@ -407,8 +404,8 @@ Page({
...
@@ -407,8 +404,8 @@ Page({
compelete
:
function
()
{
compelete
:
function
()
{
// console.log("toast框隐藏之后,会调用该函数");
// console.log("toast框隐藏之后,会调用该函数");
//例如:跳转页面wx.navigateTo({ url: 'xxx' });
//例如:跳转页面wx.navigateTo({ url: 'xxx' });
}
,
}
})
;
})
},
},
//未读消息
//未读消息
...
@@ -427,10 +424,12 @@ Page({
...
@@ -427,10 +424,12 @@ Page({
getSharePost
(
merchantId
)
{
getSharePost
(
merchantId
)
{
battleMessageApi
({
serviceMerchantId
:
merchantId
})
battleMessageApi
({
serviceMerchantId
:
merchantId
})
.
then
(
result
=>
{
.
then
(
result
=>
{
// console.log(result)
console
.
log
(
result
)
let
posterId
=
wx
.
$storage
.
get
(
'posterId'
)
console
.
log
(
posterId
)
if
(
posterId
==
result
.
valueUrl
)
return
// 为2是已经展示过了
// 为2是已经展示过了
if
(
result
.
status
&&
result
.
status
!=
2
)
{
wx
.
$storage
.
set
(
'posterId'
,
result
.
valueUrl
)
// debugger
let
time
=
result
.
updatedTime
.
split
(
' '
)
let
time
=
result
.
updatedTime
.
split
(
' '
)
let
moth
=
time
[
0
].
split
(
'-'
)
let
moth
=
time
[
0
].
split
(
'-'
)
let
hour
=
time
[
1
].
split
(
':'
)
let
hour
=
time
[
1
].
split
(
':'
)
...
@@ -448,6 +447,8 @@ Page({
...
@@ -448,6 +447,8 @@ Page({
updatedTime
updatedTime
}
}
})
})
if
(
result
.
status
&&
result
.
status
!=
2
)
{
// debugger
}
}
})
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{})
...
@@ -487,12 +488,12 @@ Page({
...
@@ -487,12 +488,12 @@ Page({
}
}
})(),
})(),
//设置视频url
//设置视频url
getVideoUrl
(
params
){
getVideoUrl
(
params
)
{
this
.
setData
(
params
)
this
.
setData
(
params
)
},
},
//申请活动
//申请活动
gotoApply
(){
gotoApply
()
{
wx
.
$router
.
go
(
"/packagesList/apply/pages/apply"
);
wx
.
$router
.
go
(
'/packagesList/apply/pages/apply'
)
},
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
...
@@ -507,8 +508,7 @@ Page({
...
@@ -507,8 +508,7 @@ Page({
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh
:
function
()
{
onPullDownRefresh
:
function
()
{},
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
...
...
pages/tab/mine/mine.wxml
View file @
35cd8e7
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +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=" test">123456789.0</view>
<view class=" test2">123456789.0</view>
<view class=" test2">123456789.0</view>
<view class=" test3">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>
...
...
pages/tab/output/components/SceneBox/SceneBox.js
View file @
35cd8e7
// pages/tab/output/components/sceneBox/sceneBox.js
// pages/tab/output/components/sceneBox/sceneBox.js
import
{
IMG_URL
}
from
'~/utils/constantData'
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
Component
({
options
:
{
addGlobalClass
:
true
},
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
...
pages/tab/output/components/SceneBox/SceneBox.wxml
View file @
35cd8e7
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<image wx:if="{{formData['showList'][index]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:if="{{formData['showList'][index]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:else class="lock-img " src="{{IMGURL}}output/carlock0{{index + 1}}.png?v={{img_version}}" />
<image wx:else class="lock-img " src="{{IMGURL}}output/carlock0{{index + 1}}.png?v={{img_version}}" />
<view class="scene-title {{formData['showList'][index]?'':'notOpened'}}">{{item.title}}</view>
<view class="scene-title {{formData['showList'][index]?'':'notOpened'}}">{{item.title}}</view>
<view>{{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">¥ {{formData['showList'][index].totalMoney||0}}</view>
</view>
</view>
...
...
pages/tab/output/components/SceneBox/SceneBox.wxss
View file @
35cd8e7
...
@@ -90,6 +90,10 @@
...
@@ -90,6 +90,10 @@
/* .notOpened {
/* .notOpened {
color: #8A8C90;
color: #8A8C90;
} */
} */
.scene-label {
font-size: 16rpx;
}
.total-price {
.total-price {
height: 40rpx;
height: 40rpx;
...
@@ -97,7 +101,8 @@
...
@@ -97,7 +101,8 @@
margin-top: 22rpx;
margin-top: 22rpx;
font-size: 24rpx;
font-size: 24rpx;
color: #3666FE;
color: #3666FE;
font-weight: 600;
/* font-weight: 600; */
font-family: "number";
}
}
.lock-img {
.lock-img {
...
...
pages/tab/output/components/client/client.js
View file @
35cd8e7
...
@@ -5,9 +5,10 @@ Component({
...
@@ -5,9 +5,10 @@ Component({
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
propertie
s
:
{
option
s
:
{
addGlobalClass
:
true
},
},
properties
:
{},
options
:
{
options
:
{
styleIsolation
:
'shared'
styleIsolation
:
'shared'
...
...
pages/tab/output/components/client/client.scss
View file @
35cd8e7
...
@@ -36,7 +36,8 @@
...
@@ -36,7 +36,8 @@
.price-txt
{
.price-txt
{
// font-family: 'test';
// font-family: 'test';
font-size
:
28rpx
;
font-size
:
28rpx
;
font-weight
:
Bold
;
// font-weight: Bold;
// font-family: 'number';
// font-size: 26rpx;
// font-size: 26rpx;
}
}
}
}
...
...
pages/tab/output/components/client/client.wxml
View file @
35cd8e7
<!-- pages/tab/output/components/client/client.wxml -->
<!-- pages/tab/output/components/client/client.wxml -->
<scroll-view
<scroll-view class="client" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom" bindrefresherrefresh="onBindRefresh" lower-threshold='50' scroll-top="{{scrollTop}}">
class="client"
scroll-y="{{true}}"
refresher-enabled="{{true}}"
refresher-triggered="{{triggered}}"
bindscrolltolower="onReachBottom"
bindrefresherrefresh="onBindRefresh"
lower-threshold='50'
scroll-top="{{scrollTop}}">
<!-- <view class="test">1234567890</view> -->
<!-- <view class="test">1234567890</view> -->
<view class="client-box">
<view class="client-box">
<view class="profit-box flex-between">
<view class="profit-box flex-between">
<text>总收益</text>
<text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text>
<text class="price-txt">¥{{totalProfit}}</text>
</view>
</view>
<view
<view class="box" wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
class="box"
wx:for="{{list}}"
wx:key="index"
bindtap="handleJump"
data-idx="{{index}}">
<view class="head flex-between">
<view class="head flex-between">
<view class="name ">{{item.merchantName}}</view>
<view class="name ">{{item.merchantName}}</view>
<view class="price-txt ">¥{{item.totalMoney}}</view>
<view class="price-txt ">¥{{item.totalMoney}}</view>
...
@@ -32,12 +19,7 @@
...
@@ -32,12 +19,7 @@
<view wx:if="{{item.msgList.length}}" class="flex">
<view wx:if="{{item.msgList.length}}" class="flex">
<view class="tip-blue">最新</view>
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view class="bottom-content">
<view
<view class="flex-between tip-row" wx:for="{{item.msgList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
class="flex-between tip-row"
wx:for="{{item.msgList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view>{{subItem.msg}}</view>
<view>{{subItem.msg}}</view>
<view class="time">{{subItem.createTime}}</view>
<view class="time">{{subItem.createTime}}</view>
</view>
</view>
...
@@ -63,4 +45,3 @@
...
@@ -63,4 +45,3 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
\ No newline at end of file
\ No newline at end of file
pages/tab/output/components/merchant/mrechant.js
View file @
35cd8e7
...
@@ -15,6 +15,9 @@ const IMAGES = {
...
@@ -15,6 +15,9 @@ const IMAGES = {
totalIcon
:
`
${
IMG_URL
}
/output/totalIcon.webp`
totalIcon
:
`
${
IMG_URL
}
/output/totalIcon.webp`
}
}
Component
({
Component
({
options
:
{
addGlobalClass
:
true
},
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
...
pages/tab/output/components/merchant/mrechant.scss
View file @
35cd8e7
...
@@ -14,26 +14,23 @@
...
@@ -14,26 +14,23 @@
background-color
:
#fff
;
background-color
:
#fff
;
border-radius
:
8rpx
;
border-radius
:
8rpx
;
.box
{
.
statistics
box
{
flex
:
1
;
flex
:
1
;
.num
{
.num
{
color
:
#323436
;
color
:
#323436
;
// font-family: MiSans-S0rpxibold;
// font-family: MiSans-S0rpxibold;
font-weight
:
600
;
// font-weight: 600;
// font-weight: bold;
font-size
:
30rpx
;
font-size
:
30rpx
;
margin-bottom
:
10rpx
;
margin-bottom
:
10rpx
;
font-family
:
"number"
;
}
}
.label
{
.label
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#8A8C90
;
color
:
#8A8C90
;
}
}
// display: flex;
// flex-direction: column;
}
}
}
}
}
}
...
...
pages/tab/output/components/merchant/mrechant.wxml
View file @
35cd8e7
...
@@ -11,11 +11,11 @@
...
@@ -11,11 +11,11 @@
refresher-triggered="{{triggered}}"> -->
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
box">
<view class="totalOutputValue statistics
box">
<view class="num">¥{{totalMoney}}</view>
<view class="num">¥{{totalMoney}}</view>
<view class="label">总产值</view>
<view class="label">总产值</view>
</view>
</view>
<view class="totalOrder
box">
<view class="totalOrder statistics
box">
<view class="num">{{totalOrder}}</view>
<view class="num">{{totalOrder}}</view>
<view class="label">订单数/笔</view>
<view class="label">订单数/笔</view>
</view>
</view>
...
@@ -25,41 +25,21 @@
...
@@ -25,41 +25,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>
...
@@ -67,11 +47,7 @@
...
@@ -67,11 +47,7 @@
<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">{{item.showList[item.startInd][funneItem['key']]||0}}</view>
<view class="num">{{item.showList[item.startInd][funneItem['key']]||0}}</view>
...
@@ -100,17 +76,8 @@
...
@@ -100,17 +76,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>
...
@@ -119,12 +86,7 @@
...
@@ -119,12 +86,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>
...
@@ -155,4 +117,3 @@
...
@@ -155,4 +117,3 @@
</view>
</view>
<!-- </scroll-view> -->
<!-- </scroll-view> -->
<nothingTipsCon wx:if="{{!list.length }}" />
<nothingTipsCon wx:if="{{!list.length }}" />
\ No newline at end of file
\ No newline at end of file
pages/tab/output/output.scss
View file @
35cd8e7
...
@@ -80,16 +80,14 @@
...
@@ -80,16 +80,14 @@
.navigation-title
.move
{
.navigation-title
.move
{
transform
:
rotate
(
-180deg
)
translateY
(
0
);
transform
:
rotate
(
-180deg
)
translateY
(
0
);
}
}
// // 圆点样式
// 圆点样式
// .wx-swiper-dots .wx-swiper-dot {
.wx-swiper-dots
.wx-swiper-dot
{
// width: 10rpx;
width
:
8rpx
;
// height: 10rpx;
height
:
8rpx
;
// margin: 0 5rpx;
background
:
#CCCED1
;
// background-color: aqua;
}
// }
// // 当前选中圆点样式
// .wx-swiper-dots .wx-swiper-dot.wx-swiper-dot-active {
// width: 16rpx;
// border-radius: 10rpx;
//
}
\ No newline at end of file
\ No newline at end of file
// 当前选中圆点样式
.wx-swiper-dots
.wx-swiper-dot.wx-swiper-dot-active
{
background
:
#8A8C90
;
}
\ No newline at end of file
\ No newline at end of file
project.private.config.json
View file @
35cd8e7
{
{
"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.2
7.1
"
,
"libVersion"
:
"2.2
0.2
"
,
"condition"
:
{
"condition"
:
{
"miniprogram"
:
{
"miniprogram"
:
{
"list"
:
[
"list"
:
[
...
...
utils/constantData.js
View file @
35cd8e7
...
@@ -15,9 +15,9 @@ export const STORAGE_OBJECTkEY = {
...
@@ -15,9 +15,9 @@ export const STORAGE_OBJECTkEY = {
userPhone
:
'userPhone'
,
userPhone
:
'userPhone'
,
firstLogin
:
'firstLogin'
,
firstLogin
:
'firstLogin'
,
authphone
:
'authphone'
,
authphone
:
'authphone'
,
posterTimer
:
'posterTimer'
,
disLikeRecordFlag
:
'disLikeRecordFlag'
,
disLikeRecordFlag
:
'disLikeRecordFlag'
,
fileList
:
'fileList'
fileList
:
'fileList'
,
postId
:
'postId'
}
}
export
const
IMG_VERSION
=
()
=>
{
export
const
IMG_VERSION
=
()
=>
{
...
...
utils/request/environment.js
View file @
35cd8e7
...
@@ -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
=
2
let
index
=
1
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment