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 f9d717ba
authored
Oct 27, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://192.168.3.233:8090/saas_plus/business-assistant
into develop
2 parents
e1b64306
2431f650
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
90 additions
and
82 deletions
components/NavigationBar/NavigationBar.wxml
components/NavigationBar/NavigationBar.wxss
packageOutput/pages/openBusiness/openBusiness.js
pages/checkProduct/checkProduct.js
pages/mineDetail/customerManagement/customerManagement.js
pages/mineDetail/customerManagement/customerManagement.scss
pages/mineDetail/customerManagement/customerManagement.wxml
pages/mineDetail/messageBox/messageBox.js
pages/mineDetail/messageBox/messageBox.scss
pages/tab/index/components/product/product.wxml
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
style/common.wxss
components/NavigationBar/NavigationBar.wxml
View file @
f9d717b
<view class="navigation-bar" id="navigation-bar" style="padding-top:{{statusBarHeight}}px;height:{{navigationBarHeight}}px;{{navStyle}}">
<block wx:if="{{!custom}}">
<view class="navigation-bar-box" wx:if="{{showNavBar}}" style="{{navigationBarStyle}}">
<block wx:if="{{SHOWBACK}}">
<view class="back" bindtap="back">
<image src="./images/icon-back.png"></image>
</view>
</block>
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}">
<slot></slot>
</view>
</view>
</block>
<block wx:else>
<slot></slot>
</block>
</view>
\ No newline at end of file
<block wx:if="{{!custom}}">
<view class="navigation-bar-box" wx:if="{{showNavBar}}" style="{{navigationBarStyle}}">
<block wx:if="{{SHOWBACK}}">
<view class="back " bindtap="back">
<image class="img" src="./images/icon-back.png" />
</view>
</block>
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}">
<slot/>
</view>
</view>
</block>
<block wx:else>
<slot/>
</block>
</view>
components/NavigationBar/NavigationBar.wxss
View file @
f9d717b
/* components/navigationBar/navigationBar.wxss */
.navigation-bar{
.navigation-bar
{
position: fixed;
top: 0;
left: 0;
...
...
@@ -8,16 +8,18 @@
background-color: #fff;
transition: all .15s;
}
.navigation-bar-box{
.navigation-bar-box {
position: relative;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.navigation-bar-titleText{
.navigation-bar-titleText {
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
...
...
@@ -27,18 +29,29 @@
text-align: center;
letter-spacing: 1rpx;
}
.back-box{
.back-box {
width: 76rpx;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
.back{
.back {
position: absolute;
left:
44rpx
;
left:
0
;
top: 50%;
transform: translateY(-50%);
width: 100rpx;
/* height: 34rpx; */
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.back .img {
width: 16rpx;
height: 34rpx;
}
\ No newline at end of file
packageOutput/pages/openBusiness/openBusiness.js
View file @
f9d717b
...
...
@@ -2,7 +2,6 @@
import
outputApi
from
'~/api/outputApi/index'
import
{
IMG_URL
}
from
'~/utils/constantData'
Page
({
/**
* 页面的初始数据
*/
...
...
@@ -60,7 +59,7 @@ Page({
setCurActivity
()
{
this
.
setData
({
activityList
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
.
sceneActivityObj
[
'scene'
+
(
this
.
data
.
sceneActive
)
]))
activityList
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
.
sceneActivityObj
[
'scene'
+
this
.
data
.
sceneActive
]))
})
},
...
...
@@ -86,7 +85,8 @@ Page({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
merchantName
:
this
.
data
.
merchantInfo
.
merchantName
,
sceneCode
:
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
],
productCodes
:
this
.
data
.
activityList
.
filter
(
item
=>
item
.
checked
==
true
).
map
(
item
=>
item
.
productCode
)
productCodes
:
this
.
data
.
activityList
.
filter
(
item
=>
item
.
checked
==
true
).
map
(
item
=>
item
.
productCode
),
clueId
:
this
.
data
.
clueId
}
if
(
!
params
.
productCodes
.
length
)
{
wx
.
$api
.
showToast
(
'请选产品/活动'
)
...
...
@@ -113,7 +113,8 @@ Page({
this
.
setData
({
merchantInfo
:
obj
.
merchantInfo
,
sceneActive
:
obj
.
sceneActive
,
sceneCodeList
:
obj
.
sceneCodeList
||
[
'SC001'
,
'SC002'
,
'SC003'
,
'SC004'
]
sceneCodeList
:
obj
.
sceneCodeList
||
[
'SC001'
,
'SC002'
,
'SC003'
,
'SC004'
],
clueId
:
obj
.
clueId
})
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
])
})
...
...
@@ -122,49 +123,35 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
()
{
},
onReady
()
{},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
},
onShow
()
{},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
onHide
()
{},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
()
{
},
onUnload
()
{},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
()
{
},
onPullDownRefresh
()
{},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
()
{
},
onReachBottom
()
{},
/**
* 用户点击右上角分享
*/
onShareAppMessage
()
{
}
})
\ No newline at end of file
onShareAppMessage
()
{}
})
pages/checkProduct/checkProduct.js
View file @
f9d717b
...
...
@@ -251,7 +251,7 @@ Page({
// 微信转发
wechatFn() {
// this.data.onShareAppMessage()
this.modelcloseFn();
//
this.modelcloseFn();
},
// 下载海报
async download() {
...
...
@@ -348,7 +348,7 @@ Page({
},
});
}
_this.modelcloseFn();
//
_this.modelcloseFn();
wx.hideLoading()
},
});
...
...
pages/mineDetail/customerManagement/customerManagement.js
View file @
f9d717b
...
...
@@ -29,7 +29,8 @@ const listObj = Object.freeze([
placeholder
:
'请输入客户门店联系人手机号'
,
editLabel
:
'手机号'
,
maxLength
:
11
,
reg
:
'/[^d]/g,'
reg
:
'/[^d]/g,'
,
type
:
'number'
},
{
key
:
'mainBrand'
,
...
...
@@ -45,7 +46,8 @@ const listObj = Object.freeze([
placeholder
:
'请输入客户门店新车月平均销售数'
,
editLabel
:
'新车销量'
,
maxLength
:
5
,
reg
:
'/[^d]/g,'
reg
:
'/[^d]/g'
,
type
:
'number'
},
{
key
:
'existUserNumber'
,
...
...
@@ -53,10 +55,14 @@ const listObj = Object.freeze([
placeholder
:
'请输入客户门店存量用户数'
,
editLabel
:
'存量用户数'
,
maxLength
:
8
,
reg
:
'/[^d]/g,'
reg
:
'/[^d]/g'
,
type
:
'number'
}
])
Component
({
options
:
{
addGlobalClass
:
true
},
/**
* 组件的属性列表
*/
...
...
pages/mineDetail/customerManagement/customerManagement.scss
View file @
f9d717b
...
...
@@ -36,6 +36,7 @@ page {
.name
{
font-size
:
28rpx
;
color
:
#323436
;
max-width
:
90%
;
}
.statusBtn
{
...
...
pages/mineDetail/customerManagement/customerManagement.wxml
View file @
f9d717b
...
...
@@ -15,7 +15,7 @@
refresher-triggered="{{triggered}}">
<view class="customerBox" wx:for="{{customerList}}" wx:key="index">
<view class="titleCon">
<view class="name">{{item.actualMerchantName}}</view>
<view class="name
text-hide
">{{item.actualMerchantName}}</view>
<view
class="statusBtn"
data-index="{{index}}"
...
...
@@ -36,6 +36,7 @@
requiredAfter
cellHeight="{{false}}"
labelWidth="200rpx">
<!-- type="number" -->
<input
placeholder="{{item.isEdit? childItem['placeholder']:''}}"
class="input"
...
...
@@ -43,7 +44,7 @@
maxlength="{{childItem.maxLength}}"
value="{{item[childItem['key']] }}"
bindinput="input"
type="
number
"
type="
{{childItem['type']||''}}
"
data-index="{{index}}"
data-name="{{childItem['key']}}"
data-reg="{{childItem['reg']}}"
...
...
pages/mineDetail/messageBox/messageBox.js
View file @
f9d717b
...
...
@@ -171,7 +171,8 @@ Component({
console
.
log
(
listName
)
this
.
setData
({
[
listName
]:
type
[
typeName
].
pageNum
==
1
?
data
:
[...
this
.
data
[
list
],
...
data
],
type
type
,
triggered
:
false
})
})
.
catch
(
err
=>
{})
...
...
pages/mineDetail/messageBox/messageBox.scss
View file @
f9d717b
...
...
@@ -44,9 +44,6 @@
height
:
calc
(
100%
-
100rpx
);
}
.msgBox
{
margin
:
8rpx
0
;
}
.cell
{
display
:
flex
;
...
...
pages/tab/index/components/product/product.wxml
View file @
f9d717b
...
...
@@ -66,7 +66,7 @@
<!-- wx:if="{{isShare && actNum != 2 && index == 4}}" -->
<!-- wx:if="{{ isShare && actNum != 2 && index == 4}}" -->
<button
wx:if="{{ isShare && isAuthphone && !getMoreBtn &&
actNum != 2 &&
index == 4}}"
wx:if="{{ isShare && isAuthphone && !getMoreBtn && index == 4}}"
class="more-btn"
data-index="{{index}}"
bindgetphonenumber="getUserInfo"
...
...
pages/tab/index/index.js
View file @
f9d717b
...
...
@@ -163,6 +163,8 @@ Page({
gotoApply
(
e
)
{
let
{
type
,
item
}
=
e
.
currentTarget
.
dataset
// let { } = e.currentTarget.dataset
// console.log(item)
// return
if
(
type
==
'active'
)
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
pMerchantName
=
userInfo
.
subLoginUser
.
merchantName
...
...
@@ -192,7 +194,8 @@ Page({
merchantId
:
item
.
visitList
[
0
].
merchantId
,
merchantName
:
item
.
visitList
[
0
].
merchantName
},
sceneActive
sceneActive
,
clueId
:
item
.
clueId
// sceneCodeList: ['SC001', 'SC002','SC003','SC004']
}
//申请活动
...
...
pages/tab/index/index.scss
View file @
f9d717b
...
...
@@ -4,6 +4,12 @@ page {
background-color
:
#F2F3F7
!
important
;
}
::-webkit-scrollbar
{
width
:
0
;
height
:
0
;
color
:
transparent
;
}
.reclaim
{
.header-wrap
{
...
...
@@ -92,6 +98,7 @@ page {
padding
:
0px
10px
0
;
background-color
:
#f2f3f7
;
// margin-top: -16rpx;
// overflow: scroll;
.types
{
// margin-bottom: 8px;
...
...
@@ -99,11 +106,11 @@ page {
padding
:
16rpx
0
;
display
:
flex
;
align-items
:
center
;
position
:
sticky
;
top
:
280rpx
;
//
position: sticky;
//
top: 280rpx;
z-index
:
2
;
background-color
:
#f2f3f7
;
margin-top
:
-32rpx
;
//
margin-top: -32rpx;
.type
{
margin-left
:
8px
;
...
...
@@ -131,6 +138,8 @@ page {
}
.list
{
height
:
calc
(
100%
-
80rpx
);
overflow
:
scroll
;
box-sizing
:
border-box
;
// padding-bottom: 8rpx;
...
...
@@ -545,9 +554,4 @@ page {
line-height
:
48rpx
;
margin-top
:
40rpx
;
}
}
// .clue {
// flex: 1;
// overflow: hidden;
//
}
\ No newline at end of file
}
\ No newline at end of file
pages/tab/index/index.wxml
View file @
f9d717b
...
...
@@ -45,7 +45,7 @@
</scroll-view>
</view>
<product
isShow="{{false}}"
isShow="{{false}}"
stickyTop="{{headerHeight}}"
actNum="{{actNum}}"
senceData="{{senceData}}"
...
...
@@ -55,7 +55,7 @@
<!-- 看线索内容 -->
<view
class="clue"
style="height: calc(100vh - {{headerHeight}}px)"
style="height: calc(100vh - {{headerHeight
/2
}}px)"
wx:if="{{tabIndx == 0 }}"
hover-class="none"
hover-stop-propagation="false">
...
...
@@ -141,6 +141,7 @@
hover-stop-propagation="false"
data-type="active"
data-item="{{item}}"
wx:if="{{item.applyStatus == 0}}"
bindtap="gotoApply">
开通活动
</view>
...
...
@@ -285,6 +286,7 @@
bindfocus="focus"
maxlength="8"
name="sales"
cursor-spacing="10"
value="{{formData.sales}}"
type="number" />
<!-- <view class="form-unit">台</view> -->
...
...
@@ -297,6 +299,7 @@
maxlength="8"
name="flow"
type="number"
cursor-spacing="10"
value="{{formData.flow}}" />
<!-- <view class="form-unit">人</view> -->
</view>
...
...
style/common.wxss
View file @
f9d717b
/**app.wxss**/
/*每个页面公共css */
@font-face {
/* 是你封装的名字 */
font-family: "test";
/* 你字体包的位置 */
/* src: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf'); */
src: url('/static/style/font/Gotham-Black.otf');
/* https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf */
/* format('opentype'); */
}
.sticky {
position: sticky;
...
...
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