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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
347 additions
and
278 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";
@font-face {
/*
@font-face {
font-family: "Gotham";
src: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/font/Gotham-Black.woff");
}
}
*/
@font-face {
/*
@font-face {
font-family: "number";
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;
color: #282829;
font-size: 28rpx;
...
...
@@ -27,6 +32,10 @@ image {
vertical-align: top;
}
.font-number {
font-family: 'number';
}
.icon-mine-arrow {
width: 16rpx !important;
height: 28rpx !important;
...
...
components/SceneBox/SceneBox.js
View file @
35cd8e7
...
...
@@ -5,6 +5,9 @@ Component({
* 组件的属性列表
*/
properties
:
{
options
:
{
addGlobalClass
:
true
},
sceneActive
:
{
type
:
Number
,
value
:
-
1
...
...
components/SceneBox/SceneBox.wxml
View file @
35cd8e7
<!-- pages/tab/output/components/sceneBox/sceneBox.wxml -->
<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 wx:if="{{hasOpenIcon && formData['scene' + (index + 1)]}}" class="open-icon">
<image src="{{openedIcon}}" webp></image>
</view>
<image webp wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}"></image>
<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 webp wx:else="" class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}"></image>
</view>
<view class="scene-title {{formData['scene' + (index + 1)] ? '' : 'on-open'}}">
{{item.title}}
</view>
<view>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">
¥ {{scenePriceList[index].total}}
</view>
</view>
</view>
\ No newline at end of file
<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">
<image src="{{openedIcon}}" webp></image>
</view>
<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">
<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 class="scene-title {{formData['scene' + (index + 1)] ? '' : 'on-open'}}">
{{item.title}}
</view>
<view>{{item.subTitle}}</view>
<view class="total-price " wx:if="{{scenePriceList.length}}">
¥ {{scenePriceList[index].total}}
</view>
</view>
</view>
components/SceneBox/SceneBox.wxss
View file @
35cd8e7
...
...
@@ -115,7 +115,8 @@
margin-top: 22rpx;
font-size: 24rpx;
color: #3666FE;
font-weight: 600;
/* font-weight: 600; */
font-family: 'number';
}
/* .notOpened {
...
...
packagesList/mineDetail/pages/customerManagement.js
View file @
35cd8e7
...
...
@@ -130,6 +130,8 @@ Component({
let
{
pages
,
list
,
total
}
=
result
list
=
list
.
map
(
item
=>
{
item
.
merchantName
=
item
.
merchantName
||
item
.
actualMerchantName
item
.
phone
=
item
.
phone
||
item
.
actualPhone
item
.
contactName
=
item
.
contactName
||
item
.
actualContactName
return
item
})
this
.
setData
({
...
...
packagesList/mineDetail/pages/messageBox.js
View file @
35cd8e7
// pages/mineDetail/messageBox/messageBox.js
import
mineApi
from
'~/api/mineApi/index'
// import { handleCopy } from '~/utils/utils_wx'
// let drawQrcode = require('~/utils/lib/weapp-qrcode.js')
import
drawQrcode
from
'~/utils/lib/weapp-qrcode.js'
import
outputApi
from
'~/api/outputApi/index'
//
import drawQrcode from '~/utils/lib/weapp-qrcode.js'
Component
({
/**
* 组件的属性列表
...
...
@@ -38,7 +38,7 @@ Component({
serviceMerchantId
:
''
},
attached
()
{
this
.
ewmChange
()
//
this.ewmChange()
// this.initTime()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
merchantId
=
userInfo
.
subLoginUser
.
merchantId
...
...
@@ -54,20 +54,20 @@ Component({
*/
methods
:
{
// 实例化二维码canvas
ewmChange
(
url
)
{
let
size
=
{}
size
.
w
=
(
wx
.
getSystemInfoSync
().
windowWidth
/
750
)
*
600
size
.
h
=
size
.
w
var
that
=
this
//
ewmChange(url) {
//
let size = {}
//
size.w = (wx.getSystemInfoSync().windowWidth / 750) * 600
//
size.h = size.w
//
var that = this
drawQrcode
({
width
:
size
.
w
,
height
:
size
.
h
,
canvasId
:
'myQrcode'
,
text
:
url
||
that
.
data
.
text
// v1.0.0+版本支持在二维码上绘制图片
})
},
//
drawQrcode({
//
width: size.w,
//
height: size.h,
//
canvasId: 'myQrcode',
//
text: url || that.data.text
//
// v1.0.0+版本支持在二维码上绘制图片
//
})
//
},
preView
(
e
)
{
let
{
valueurl
}
=
e
.
currentTarget
.
dataset
// console.log(e)
...
...
@@ -91,16 +91,46 @@ Component({
}
})
},
copyLink
(
e
)
{
console
.
log
(
e
)
let
that
=
this
let
{
url
}
=
e
.
currentTarget
.
dataset
this
.
ewmChange
(
url
)
setTimeout
(()
=>
{
this
.
share
()
},
100
)
},
// copyLink(e) {
// console.log(e)
// let that = this
// let { url } = e.currentTarget.dataset
// this.ewmChange(url)
// setTimeout(() => {
// this.share()
// }, 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
)
{
// console.log(e)
let
that
=
this
...
...
packagesList/mineDetail/pages/messageBox.wxml
View file @
35cd8e7
...
...
@@ -97,16 +97,10 @@
<view class="label">结算时间:</view>
<view class="value">{{item.activityEndTime||'-'}}</view>
</view>
<
!-- <view class="cell
">
<
view class="cell" wx:if="{{item.crowdFundActivityId}}
">
<view class="label">活动链接:</view>
<view
class="link"
wx:if="{{item.activityUrl}}"
bind:tap="copyLink"
data-url="{{item.activityUrl}}">
下载海报
</view>
</view> -->
<view class="link" bind:tap="copyLink" data-item="{{item}}">下载海报</view>
</view>
</view>
<view class="cell" wx:if="{{item.messageType == 4}}">
<view class="label">产品名称:</view>
...
...
@@ -124,6 +118,6 @@
</scroll-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" />
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
View file @
35cd8e7
...
...
@@ -30,7 +30,8 @@
height
:
40rpx
;
line-height
:
40rpx
;
margin-bottom
:
14rpx
;
font-weight
:
600
;
// font-weight: 600;
// font-family: 'number';
}
&
-label
{
...
...
@@ -256,4 +257,8 @@
.downloadIcon
{
width
:
40rpx
;
height
:
40rpx
;
}
\ No newline at end of file
}
// .totalAmount{
// font-family: 'number';
//
}
\ No newline at end of file
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
View file @
35cd8e7
<!-- packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml -->
<view class="crowdfund-layout">
<view class="box order">
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-txt">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{orderObj[item.name] || 0}}
</view>
<view class="order-label">{{item.label}}</view>
</view>
</view>
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<!-- text-hide -->
<view class=" head-title" bindtap="handleJumpH5" data-item="{{item}}">
{{item.activityName}}
</view>
<view class="head-link" bindtap="download" data-item="{{item}}">
<image src="{{IMAGES.download}}" class="downloadIcon" webp></image>
母链海报
</view>
<view class="down-tips" wx:if="{{index == 0 && isShowTip}}">下载活动海报分享给门店开展活动</view>
</view>
<view class="content">
<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-txt {{subItem.className}}">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{item[subItem.name]}}
</view>
</view>
<!-- 排名 -->
<view class="content-rank" wx:if="{{item.showStaffList.length}}">
<view class="rank-title">员工任务排名</view>
<!-- <view class="rank-head">
<view class="box order">
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-txt font-number">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{orderObj[item.name] || 0}}
</view>
<view class="order-label">{{item.label}}</view>
</view>
</view>
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<!-- text-hide -->
<view class=" head-title" bindtap="handleJumpH5" data-item="{{item}}">
{{item.activityName}}
</view>
<view class="head-link" bindtap="download" data-item="{{item}}">
<image src="{{IMAGES.download}}" class="downloadIcon" webp></image>
母链海报
</view>
<view class="down-tips" wx:if="{{index == 0 && isShowTip}}">下载活动海报分享给门店开展活动</view>
</view>
<view class="content">
<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-txt font-number {{subItem.className}}">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{item[subItem.name]}}
</view>
</view>
<!-- 排名 -->
<view class="content-rank" wx:if="{{item.showStaffList.length}}">
<view class="rank-title">员工任务排名</view>
<!-- <view class="rank-head">
<view>员工任务排名</view>
<view class="activity-status" wx:if="{{item.activityStatus == 1}}">
距离开始{{item.interDays}}天
...
...
@@ -44,7 +49,7 @@
已结束{{item.interDays}}天
</view>
</view> -->
<!-- <view class="rank-table">
<!-- <view class="rank-table">
<view class="tr">
<view class="th" style="width: {{subItem.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
{{subItem.label}}
...
...
@@ -67,50 +72,63 @@
</view>
</view>
</view> -->
<view class="rank-table">
<block wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="rank">
<view class="rank-num">{{idx + 1}}</view>
<glsx-image class="rank-head" src="output/icon-head.webp"></glsx-image>
<view>
<view>
<text>{{subItem.shareName}}</text>
<text>运营部</text>
</view>
<view>
<text>访客</text>
<text>成交</text>
</view>
</view>
<view>¥{{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="rank-table">
<block
wx:for="{{item.showStaffList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="rank">
<view class="rank-num">{{idx + 1}}</view>
<glsx-image class="rank-head" src="output/icon-head.webp" />
<view>
<view>
<text>{{subItem.shareName}}</text>
<text>运营部</text>
</view>
<view>
<text>访客</text>
<text>成交</text>
</view>
</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 wx:if="{{j == 0}}">{{idx + 1}}</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem[i.name]}}
</view> -->
</view>
</block>
<view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">
查看更多
</view>
</view>
</view>
<!-- 诊断 -->
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
<view class="suggest-title"># 活动诊断</view>
<view class="suggest-txt">
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
{{item.suggestTxt}}推荐以下建议:
</view>
<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="step-label">建议{{idx + 1}}</view>
<view class="step-txt">{{subItem}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</block>
<view
wx:if="{{item.staffList.length}}"
class="btn-more"
bindtap="handleMore"
data-idx="{{index}}">
查看更多
</view>
</view>
</view>
<!-- 诊断 -->
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
<view class="suggest-title"># 活动诊断</view>
<view class="suggest-txt">
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
{{item.suggestTxt}}推荐以下建议:
</view>
<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="step-label">建议{{idx + 1}}</view>
<view class="step-txt">{{subItem}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<crowdfund-poster item="{{posterItem}}" id="poster"
bindlongtouch="longtouch" />
<crowdfund-poster item="{{posterItem}}" id="poster" bindlongtouch="longtouch" />
pages/tab/index/index.js
View file @
35cd8e7
const
navStyle
=
'background-color: transparent;'
import
{
IMG_URL
}
from
'~/utils/constantData.js'
import
Util
from
'~/utils/util.js'
import
Util
from
'~/utils/util.js'
import
{
senceData
}
from
'./constant/data'
const
IMAGES
=
Object
.
freeze
({
arrow
:
`
${
IMG_URL
}
/index/point.png`
,
...
...
@@ -29,7 +29,7 @@ Page({
actNum
:
3
,
//car 场景选择
tabIndx
:
1
,
navList
:
[
'看线索'
,
'看产品'
],
// 预估弹框
visible
:
false
,
isReset
:
false
,
...
...
@@ -47,11 +47,11 @@ Page({
senceData
,
isShow
:
false
,
// 视频播放地址
videoSrc
:
''
,
videoTitle
:
''
,
headerHeight
:
0
,
unreadClueCount
:
0
,
img_version
:
0.1
videoSrc
:
''
,
videoTitle
:
''
,
headerHeight
:
0
,
unreadClueCount
:
0
,
img_version
:
0.1
},
//引导图
...
...
@@ -79,7 +79,7 @@ Page({
// console.log(e)
// console.log(this.data.headerHeight)
},
selectCar
(
e
){
selectCar
(
e
)
{
let
actNum
=
e
.
detail
this
.
setData
({
actNum
...
...
@@ -105,19 +105,19 @@ Page({
}
},
//看产品下拉刷新
refresherrefresh
(){
let
{
tabIndx
}
=
this
.
data
if
(
tabIndx
==
1
)
{
refresherrefresh
()
{
let
{
tabIndx
}
=
this
.
data
if
(
tabIndx
==
1
)
{
// 看产品
this
.
getProductByscene
()
// // 看线索
// this.getClueInit()
this
.
getUnreadApi
()
wx
.
pro
.
showToast
({
title
:
"刷新成功"
,
icon
:
"loading"
,
duration
:
1500
,
})
;
title
:
'刷新成功'
,
icon
:
'loading'
,
duration
:
1500
})
}
},
// 跳转咨询页面
...
...
@@ -308,7 +308,6 @@ Page({
// this.getClueInit()
this
.
getUnreadApi
()
// //第一次进来储缓存,以后不再用引导图
let
firstLogin
=
wx
.
$storage
.
get
(
'firstLogin'
)
if
(
!
firstLogin
)
{
...
...
@@ -327,22 +326,20 @@ Page({
})
}
//视频弹窗
wx
.
$eventbus
.
on
(
'getvideo'
,
(
e
)
=>
{
wx
.
$eventbus
.
on
(
'getvideo'
,
e
=>
{
// console.log('getvideo event bus: ', e);
let
url
=
Util
.
getCurrentPageUrl
()
if
(
url
==
'/pages/tab/index/index'
)
{
if
(
url
==
'/pages/tab/index/index'
)
{
let
obj
=
{
videoTitle
:
e
.
title
,
videoSrc
:
e
.
src
videoTitle
:
e
.
title
,
videoSrc
:
e
.
src
}
this
.
getVideoUrl
(
obj
)
wx
.
nextTick
(()
=>
{
this
.
videocomp
.
play
()
;
})
;
this
.
videocomp
.
play
()
})
}
})
},
//接口数据,本地数据对接
...
...
@@ -375,7 +372,7 @@ Page({
})
},
// 看产品接口
getProductByscene
(){
getProductByscene
()
{
productBysceneApi
().
then
(
res
=>
{
let
{
code
,
data
}
=
res
...
...
@@ -394,11 +391,11 @@ Page({
*/
onReady
:
function
()
{
this
.
prompt
=
this
.
selectComponent
(
'#toast'
)
this
.
videocomp
=
this
.
selectComponent
(
"#videocomp"
);
this
.
videocomp
=
this
.
selectComponent
(
'#videocomp'
)
},
// //点击收藏提示框
showToggleToast
(
e
){
showToggleToast
(
e
)
{
let
tipObj
=
e
.
detail
this
.
prompt
.
showToast
({
type
:
tipObj
.
type
,
...
...
@@ -407,8 +404,8 @@ Page({
compelete
:
function
()
{
// console.log("toast框隐藏之后,会调用该函数");
//例如:跳转页面wx.navigateTo({ url: 'xxx' });
}
,
})
;
}
})
},
//未读消息
...
...
@@ -427,27 +424,31 @@ Page({
getSharePost
(
merchantId
)
{
battleMessageApi
({
serviceMerchantId
:
merchantId
})
.
then
(
result
=>
{
// console.log(result)
console
.
log
(
result
)
let
posterId
=
wx
.
$storage
.
get
(
'posterId'
)
console
.
log
(
posterId
)
if
(
posterId
==
result
.
valueUrl
)
return
// 为2是已经展示过了
wx
.
$storage
.
set
(
'posterId'
,
result
.
valueUrl
)
let
time
=
result
.
updatedTime
.
split
(
' '
)
let
moth
=
time
[
0
].
split
(
'-'
)
let
hour
=
time
[
1
].
split
(
':'
)
moth
.
shift
()
hour
=
hour
.
slice
(
0
,
-
1
)
moth
=
moth
.
join
(
'-'
)
hour
=
hour
.
join
(
':'
)
let
updatedTime
=
`
${
moth
}
${
hour
}
`
console
.
log
(
updatedTime
)
this
.
setData
({
posterItem
:
{
activityName
:
result
.
activityName
,
// posterUrl: 'https://wx.glsx.com.cn/upload/biz/587076735934271488.png'
posterUrl
:
result
.
valueUrl
,
updatedTime
}
})
if
(
result
.
status
&&
result
.
status
!=
2
)
{
// debugger
let
time
=
result
.
updatedTime
.
split
(
' '
)
let
moth
=
time
[
0
].
split
(
'-'
)
let
hour
=
time
[
1
].
split
(
':'
)
moth
.
shift
()
hour
=
hour
.
slice
(
0
,
-
1
)
moth
=
moth
.
join
(
'-'
)
hour
=
hour
.
join
(
':'
)
let
updatedTime
=
`
${
moth
}
${
hour
}
`
console
.
log
(
updatedTime
)
this
.
setData
({
posterItem
:
{
activityName
:
result
.
activityName
,
// posterUrl: 'https://wx.glsx.com.cn/upload/biz/587076735934271488.png'
posterUrl
:
result
.
valueUrl
,
updatedTime
}
})
}
})
.
catch
(
err
=>
{})
...
...
@@ -487,12 +488,12 @@ Page({
}
})(),
//设置视频url
getVideoUrl
(
params
){
getVideoUrl
(
params
)
{
this
.
setData
(
params
)
},
//申请活动
gotoApply
(){
wx
.
$router
.
go
(
"/packagesList/apply/pages/apply"
);
gotoApply
()
{
wx
.
$router
.
go
(
'/packagesList/apply/pages/apply'
)
},
/**
* 生命周期函数--监听页面隐藏
...
...
@@ -507,8 +508,7 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
onPullDownRefresh
:
function
()
{},
/**
* 用户点击右上角分享
...
...
pages/tab/mine/mine.wxml
View file @
35cd8e7
...
...
@@ -5,9 +5,9 @@
<glsx-image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>
头像
</glsx-image>
<view class=" test">123456789.0</view>
<
!-- <
view class=" test">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="id">账号:{{userInfo.merchantId}}</view>
<view class="createTime">创建时间:{{userInfo.createdDate}}</view>
...
...
pages/tab/output/components/SceneBox/SceneBox.js
View file @
35cd8e7
// pages/tab/output/components/sceneBox/sceneBox.js
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
options
:
{
addGlobalClass
:
true
},
/**
* 组件的属性列表
*/
...
...
pages/tab/output/components/SceneBox/SceneBox.wxml
View file @
35cd8e7
...
...
@@ -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: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>{{item.subTitle}}</view>
<view
class="scene-label"
>{{item.subTitle}}</view>
<!-- wx:if="{{scenePriceList.length}}" -->
<view class="total-price">¥ {{formData['showList'][index].totalMoney||0}}</view>
</view>
...
...
pages/tab/output/components/SceneBox/SceneBox.wxss
View file @
35cd8e7
...
...
@@ -90,6 +90,10 @@
/* .notOpened {
color: #8A8C90;
} */
.scene-label {
font-size: 16rpx;
}
.total-price {
height: 40rpx;
...
...
@@ -97,7 +101,8 @@
margin-top: 22rpx;
font-size: 24rpx;
color: #3666FE;
font-weight: 600;
/* font-weight: 600; */
font-family: "number";
}
.lock-img {
...
...
pages/tab/output/components/client/client.js
View file @
35cd8e7
...
...
@@ -5,9 +5,10 @@ Component({
/**
* 组件的属性列表
*/
propertie
s
:
{
option
s
:
{
addGlobalClass
:
true
},
properties
:
{},
options
:
{
styleIsolation
:
'shared'
...
...
pages/tab/output/components/client/client.scss
View file @
35cd8e7
...
...
@@ -36,7 +36,8 @@
.price-txt
{
// font-family: 'test';
font-size
:
28rpx
;
font-weight
:
Bold
;
// font-weight: Bold;
// font-family: 'number';
// font-size: 26rpx;
}
}
...
...
pages/tab/output/components/client/client.wxml
View file @
35cd8e7
<!-- pages/tab/output/components/client/client.wxml -->
<scroll-view
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="client-box">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text>
</view>
<view
class="box"
wx:for="{{list}}"
wx:key="index"
bindtap="handleJump"
data-idx="{{index}}">
<view class="head flex-between">
<view class="name ">{{item.merchantName}}</view>
<view class="price-txt ">¥{{item.totalMoney}}</view>
</view>
<!-- 场景内容 -->
<view class="box-content">
<scene-box formData="{{item}}" hasLockIcon="{{false}}" />
<!-- 通知 -->
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view
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 class="time">{{subItem.createTime}}</view>
</view>
<scroll-view 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="client-box">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text>
</view>
<view class="box" wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view class="head flex-between">
<view class="name ">{{item.merchantName}}</view>
<view class="price-txt ">¥{{item.totalMoney}}</view>
</view>
</view>
<view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="tip-row">
<view>
运营建议:您的门店尚未开展活动,暂无产值。建议
<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>
拓展营收范围。
<!-- 场景内容 -->
<view class="box-content">
<scene-box formData="{{item}}" hasLockIcon="{{false}}" />
<!-- 通知 -->
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view 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 class="time">{{subItem.createTime}}</view>
</view>
</view>
</view>
<view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="tip-row">
<view>
运营建议:您的门店尚未开展活动,暂无产值。建议
<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>
拓展营收范围。
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">
到底啦!
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">
到底啦!
</view>
</view>
</view>
</scroll-view>
</scroll-view>
\ No newline at end of file
pages/tab/output/components/merchant/mrechant.js
View file @
35cd8e7
...
...
@@ -15,6 +15,9 @@ const IMAGES = {
totalIcon
:
`
${
IMG_URL
}
/output/totalIcon.webp`
}
Component
({
options
:
{
addGlobalClass
:
true
},
/**
* 组件的属性列表
*/
...
...
pages/tab/output/components/merchant/mrechant.scss
View file @
35cd8e7
...
...
@@ -14,26 +14,23 @@
background-color
:
#fff
;
border-radius
:
8rpx
;
.box
{
.
statistics
box
{
flex
:
1
;
.num
{
color
:
#323436
;
// font-family: MiSans-S0rpxibold;
font-weight
:
600
;
// font-weight: 600;
// font-weight: bold;
font-size
:
30rpx
;
margin-bottom
:
10rpx
;
font-family
:
"number"
;
}
.label
{
font-size
:
24rpx
;
color
:
#8A8C90
;
}
// display: flex;
// flex-direction: column;
}
}
}
...
...
pages/tab/output/components/merchant/mrechant.wxml
View file @
35cd8e7
This diff is collapsed.
Click to expand it.
pages/tab/output/output.scss
View file @
35cd8e7
...
...
@@ -80,16 +80,14 @@
.navigation-title
.move
{
transform
:
rotate
(
-180deg
)
translateY
(
0
);
}
// // 圆点样式
// .wx-swiper-dots .wx-swiper-dot {
// width: 10rpx;
// height: 10rpx;
// margin: 0 5rpx;
// background-color: aqua;
// }
// 圆点样式
.wx-swiper-dots
.wx-swiper-dot
{
width
:
8rpx
;
height
:
8rpx
;
background
:
#CCCED1
;
}
// // 当前选中圆点样式
// .wx-swiper-dots .wx-swiper-dot.wx-swiper-dot-active {
// width: 16rpx;
// border-radius: 10rpx;
//
}
\ No newline at end of file
// 当前选中圆点样式
.wx-swiper-dots
.wx-swiper-dot.wx-swiper-dot-active
{
background
:
#8A8C90
;
}
\ 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"
,
"libVersion"
:
"2.2
7.1
"
,
"libVersion"
:
"2.2
0.2
"
,
"condition"
:
{
"miniprogram"
:
{
"list"
:
[
...
...
utils/constantData.js
View file @
35cd8e7
...
...
@@ -15,9 +15,9 @@ export const STORAGE_OBJECTkEY = {
userPhone
:
'userPhone'
,
firstLogin
:
'firstLogin'
,
authphone
:
'authphone'
,
posterTimer
:
'posterTimer'
,
disLikeRecordFlag
:
'disLikeRecordFlag'
,
fileList
:
'fileList'
fileList
:
'fileList'
,
postId
:
'postId'
}
export
const
IMG_VERSION
=
()
=>
{
...
...
utils/request/environment.js
View file @
35cd8e7
...
...
@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
release
=
false
let
index
=
2
let
index
=
1
// 判断小程序环境
// 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