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";
@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 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
\ 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 @@
...
@@ -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"
</view>
wx:if="{{item.activityUrl}}"
bind:tap="copyLink"
data-url="{{item.activityUrl}}">
下载海报
</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
{
...
@@ -256,4 +257,8 @@
...
@@ -256,4 +257,8 @@
.downloadIcon
{
.downloadIcon
{
width
:
40rpx
;
width
:
40rpx
;
height
:
40rpx
;
height
:
40rpx
;
}
\ No newline at end of file
\ No newline at end of file
}
// .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
<!-- packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml -->
<!-- packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml -->
<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>
<view class="order-label">{{item.label}}</view>
<view class="order-label">{{item.label}}</view>
</view>
</view>
</view>
</view>
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<view class="head">
<!-- text-hide -->
<!-- text-hide -->
<view class=" head-title" bindtap="handleJumpH5" data-item="{{item}}">
<view class=" head-title" bindtap="handleJumpH5" data-item="{{item}}">
{{item.activityName}}
{{item.activityName}}
</view>
</view>
<view class="head-link" bindtap="download" data-item="{{item}}">
<view class="head-link" bindtap="download" data-item="{{item}}">
<image src="{{IMAGES.download}}" class="downloadIcon" webp></image>
<image src="{{IMAGES.download}}" class="downloadIcon" webp></image>
母链海报
母链海报
</view>
</view>
<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
<view class="content-label">{{subItem.label}}</view>
class="content-row"
<view class="content-txt {{subItem.className}}">
wx:for="{{merchantFormList}}"
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
wx:for-item="subItem"
{{item[subItem.name]}}
wx:for-index="idx"
</view>
wx:key="idx">
</view>
<view class="content-label">{{subItem.label}}</view>
<!-- 排名 -->
<view class="content-txt font-number {{subItem.className}}">
<view class="content-rank" wx:if="{{item.showStaffList.length}}">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
<view class="rank-title">员工任务排名</view>
{{item[subItem.name]}}
<!-- <view class="rank-head">
</view>
</view>
<!-- 排名 -->
<view class="content-rank" wx:if="{{item.showStaffList.length}}">
<view class="rank-title">员工任务排名</view>
<!-- <view class="rank-head">
<view>员工任务排名</view>
<view>员工任务排名</view>
<view class="activity-status" wx:if="{{item.activityStatus == 1}}">
<view class="activity-status" wx:if="{{item.activityStatus == 1}}">
距离开始{{item.interDays}}天
距离开始{{item.interDays}}天
...
@@ -44,7 +49,7 @@
...
@@ -44,7 +49,7 @@
已结束{{item.interDays}}天
已结束{{item.interDays}}天
</view>
</view>
</view> -->
</view> -->
<!-- <view class="rank-table">
<!-- <view class="rank-table">
<view class="tr">
<view class="tr">
<view class="th" style="width: {{subItem.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="th" style="width: {{subItem.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
{{subItem.label}}
{{subItem.label}}
...
@@ -67,50 +72,63 @@
...
@@ -67,50 +72,63 @@
</view>
</view>
</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
<view class="rank">
wx:for="{{item.showStaffList}}"
<view class="rank-num">{{idx + 1}}</view>
wx:for-item="subItem"
<glsx-image class="rank-head" src="output/icon-head.webp"></glsx-image>
wx:for-index="idx"
<view>
wx:key="idx">
<view>
<view class="rank">
<text>{{subItem.shareName}}</text>
<view class="rank-num">{{idx + 1}}</view>
<text>运营部</text>
<glsx-image class="rank-head" src="output/icon-head.webp" />
</view>
<view>
<view>
<view>
<text>访客</text>
<text>{{subItem.shareName}}</text>
<text>成交</text>
<text>运营部</text>
</view>
</view>
</view>
<view>
<view>¥{{subItem.totalAmount}}</view>
<text>访客</text>
<!-- <view class="td text-hide" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<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>
<view wx:if="{{j == 0}}">{{idx + 1}}</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem[i.name]}}
{{subItem[i.name]}}
</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}}"
</view>
class="btn-more"
</view>
bindtap="handleMore"
</view>
data-idx="{{index}}">
<!-- 诊断 -->
查看更多
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
</view>
<view class="suggest-title"># 活动诊断</view>
</view>
<view class="suggest-txt">
</view>
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
<!-- 诊断 -->
{{item.suggestTxt}}推荐以下建议:
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
</view>
<view class="suggest-title"># 活动诊断</view>
<view class="suggest-block">
<view class="suggest-txt">
<view class="suggest-step" wx:for="{{item.suggestList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
<view class="step-label">建议{{idx + 1}}</view>
{{item.suggestTxt}}推荐以下建议:
<view class="step-txt">{{subItem}}</view>
</view>
</view>
<view class="suggest-block">
</view>
<view
</view>
class="suggest-step"
</view>
wx:for="{{item.suggestList}}"
</view>
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>
</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;'
const
navStyle
=
'background-color: transparent;'
import
{
IMG_URL
}
from
'~/utils/constantData.js'
import
{
IMG_URL
}
from
'~/utils/constantData.js'
import
Util
from
'~/utils/util.js'
import
Util
from
'~/utils/util.js'
import
{
senceData
}
from
'./constant/data'
import
{
senceData
}
from
'./constant/data'
const
IMAGES
=
Object
.
freeze
({
const
IMAGES
=
Object
.
freeze
({
arrow
:
`
${
IMG_URL
}
/index/point.png`
,
arrow
:
`
${
IMG_URL
}
/index/point.png`
,
...
@@ -29,7 +29,7 @@ Page({
...
@@ -29,7 +29,7 @@ Page({
actNum
:
3
,
//car 场景选择
actNum
:
3
,
//car 场景选择
tabIndx
:
1
,
tabIndx
:
1
,
navList
:
[
'看线索'
,
'看产品'
],
navList
:
[
'看线索'
,
'看产品'
],
// 预估弹框
// 预估弹框
visible
:
false
,
visible
:
false
,
isReset
:
false
,
isReset
:
false
,
...
@@ -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,27 +424,31 @@ Page({
...
@@ -427,27 +424,31 @@ 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是已经展示过了
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
)
{
if
(
result
.
status
&&
result
.
status
!=
2
)
{
// debugger
// 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
=>
{})
.
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"
<!-- <view class="test">1234567890</view> -->
scroll-y="{{true}}"
<view class="client-box">
refresher-enabled="{{true}}"
<view class="profit-box flex-between">
refresher-triggered="{{triggered}}"
<text>总收益</text>
bindscrolltolower="onReachBottom"
<text class="price-txt">¥{{totalProfit}}</text>
bindrefresherrefresh="onBindRefresh"
</view>
lower-threshold='50'
<view class="box" wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
scroll-top="{{scrollTop}}">
<view class="head flex-between">
<!-- <view class="test">1234567890</view> -->
<view class="name ">{{item.merchantName}}</view>
<view class="client-box">
<view class="price-txt ">¥{{item.totalMoney}}</view>
<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>
</view>
</view>
</view>
<!-- 场景内容 -->
<view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="box-content">
<view class="tip-blue">通知</view>
<scene-box formData="{{item}}" hasLockIcon="{{false}}" />
<view class="bottom-content">
<!-- 通知 -->
<view class="tip-row">
<view class="box-bottom">
<view>
<view wx:if="{{item.msgList.length}}" class="flex">
运营建议:您的门店尚未开展活动,暂无产值。建议
<view class="tip-blue">最新</view>
<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>
<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>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">
</view>
到底啦!
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">
</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
This diff is collapsed.
Click to expand it.
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