Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-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 32bf6c5d
authored
Oct 18, 2022
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
细节修改
1 parent
76d61592
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
72 additions
and
38 deletions
common.wxss
components/Tab/Tab.wxml
packageActivity/pages/applyActivity/applyActivity.scss
packageActivity/pages/applyActivity/applyActivity.wxml
pages/authentication/customerService/customerService.wxml
pages/authentication/login/login.js
pages/authentication/login/login.wxml
pages/authentication/register/register.js
pages/authentication/registerInfo/registerInfo.js
pages/authentication/registerInfo/registerInfo.wxml
pages/tab/discovery/components/product/product.wxml
pages/tab/discovery/constant/data.js
project.config.json
project.private.config.json
common.wxss
View file @
32bf6c5
...
...
@@ -101,6 +101,16 @@
align-items: center;
}
.store-btn-disabled{
background-image:none;
background: #CCCED1 !important;
color: #fff !important;
}
.store-btn-disabled::after{
border: none;
}
.flex_cc {
display: flex;
align-items: center;
...
...
components/Tab/Tab.wxml
View file @
32bf6c5
<block wx:if="{{openScroll}}">
<scroll-view class="tab-box {{align}}" scroll-x enable-flex scroll-with-animation scroll-into-view="{{to}}">
<scroll-view
enhanced="{{true}}" show-scrollbar="{{false}}"
class="tab-box {{align}}" scroll-x enable-flex scroll-with-animation scroll-into-view="{{to}}">
<block wx:for="{{tab}}" wx:key="index">
<view class="tab {{index==count?'active':''}}" bindtap="click" data-count="{{index}}" id="to-{{index}}" >
<view class="text" >{{item}}</view>
...
...
packageActivity/pages/applyActivity/applyActivity.scss
View file @
32bf6c5
...
...
@@ -8,12 +8,16 @@ page {
.pos_wrap
{
position
:
absolute
;
left
:
24rpx
;
top
:
336rpx
;
// left: 50%;
// transform: translateX(-50%);
width
:
100%
;
padding
:
0
24rpx
;
box-sizing
:
border-box
;
}
.wrapper
{
width
:
calc
(
100%
-
48rpx
)
;
width
:
100%
;
background
:
#FFFFFF
;
box-shadow
:
0
12rpx
24rpx
0
rgba
(
106
,
126
,
204
,
0
.12
);
border-radius
:
24rpx
;
...
...
packageActivity/pages/applyActivity/applyActivity.wxml
View file @
32bf6c5
<view class="container">
<image mode="widthFix"
class="topBg
" src="{{IMGURL + 'apply_activity_bg_' + currentIndex + '.png'}}" />
<image mode="widthFix"
style="height: 480rpx;
" src="{{IMGURL + 'apply_activity_bg_' + currentIndex + '.png'}}" />
<view class="pos_wrap">
<view class="wrapper">
<view class="title">
...
...
pages/authentication/customerService/customerService.wxml
View file @
32bf6c5
<!--pages/authentication/customerService/customerService.wxml-->
<view class="container">
<view class="service-wrap">
<image class="qrcode" src="{{IMGURL}}
register
.png"></image>
<image class="qrcode" src="{{IMGURL}}
service
.png"></image>
<view class="tip">扫码添加客服企微</view>
<view class="hotline">
<view class="title">客服热线</view>
<view>
<text class="phone">
400 xxx xxxx
</text>
<text class="phone">
189 0245 4229
</text>
<image></image>
</view>
</view>
...
...
pages/authentication/login/login.js
View file @
32bf6c5
...
...
@@ -20,7 +20,8 @@ Page({
code
:
''
},
authorized
:
false
,
phoneReady
:
false
phoneReady
:
false
,
disabled
:
true
},
navbarReady
(
e
)
{
let
{
...
...
@@ -49,9 +50,6 @@ Page({
message
}
=
await
USERAPI
.
wxCodeLogin
()
if
(
code
==
'0'
)
{
this
.
setData
({
disabled
:
false
})
this
.
loginToken
=
data
}
else
this
.
reLogin
(
message
)
wx
.
hideLoading
()
...
...
@@ -154,15 +152,16 @@ Page({
const
{
value
}
=
e
.
detail
const
{
name
}
=
e
.
target
.
dataset
console
.
log
(
e
,
this
.
data
.
formData
,
'88'
)
this
.
setData
({
[
`formData.
${
name
}
`
]
:
value
})
if
(
this
.
validate
.
methods
.
tel
(
this
.
data
.
formData
.
phone
)){
this
.
setData
({
phoneReady
:
true
})
}
this
.
checkInfo
()
},
checkInfo
(){
this
.
setData
({
phoneReady
:
this
.
validate
.
methods
.
tel
(
this
.
data
.
formData
.
phone
),
disabled
:
!
this
.
validate
.
methods
.
tel
(
this
.
data
.
formData
.
phone
)
||
this
.
data
.
formData
?.
code
?.
length
!=
4
})
},
/**获取验证码 */
getSmsCode
()
{
...
...
pages/authentication/login/login.wxml
View file @
32bf6c5
...
...
@@ -28,7 +28,7 @@
bindinput="input" value="{{formData.code}}" data-name="code"/>
<button disabled="{{!phoneReady}}" class="code-btn" bindtap="getSmsCode">{{count? count + 's':'获取验证码'}}</button>
</view>
<
view class="login-btn wx-btn" bindtap="handleLogin">登录</view
>
<
button class="login-btn wx-btn {{disabled ? 'store-btn-disabled':''}}" bindtap="handleLogin">登录</button
>
<view class="other">或 <text bindtap="switchLoginMethod" data-type="0">微信登录</text></view>
</view>
</block>
...
...
pages/authentication/register/register.js
View file @
32bf6c5
...
...
@@ -12,7 +12,7 @@ Page({
staffName
:
'zqqq'
,
merchantId
:
'44211227'
,
merchantFileRequest
:
{
fileName
:
"bsg"
,
fileUrl
:
'https://img1.baidu.com/it/u=1755961019,1690032781&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1665766800&t=0b9617eab6fe013e35dc2e491e2e2100'
},
type
:
1
type
:
0
}
},
navbarReady
(
e
)
{
...
...
@@ -73,7 +73,7 @@ Page({
wx
.
$router
.
go
(
'/pages/authentication/registerSuccess/registerSuccess'
,{
type
:
0
})
}
else
if
(
errId
==
'30990103'
){
let
params
=
{...
this
.
data
.
linkParams
}
if
(
this
.
data
.
linkParams
.
type
=
1
){
if
(
this
.
data
.
linkParams
.
type
=
=
1
){
wx
.
$router
.
go
(
'/pages/authentication/registerInfo/registerInfo'
,
params
)
}
else
{
let
{
merchantFileRequest
,
merchantId
}
=
this
.
data
.
linkParams
...
...
@@ -85,7 +85,7 @@ Page({
merchantFileRequest
:
JSON
.
stringify
(
merchantFileRequest
),
staffName
:
merchantFileRequest
.
fileName
}
this
.
handleR
egister
(
regParmas
)
this
.
r
egister
(
regParmas
)
}
}
else
{
wx
.
$api
.
showToast
(
message
||
'系统异常'
)
...
...
pages/authentication/registerInfo/registerInfo.js
View file @
32bf6c5
...
...
@@ -22,7 +22,8 @@ Page({
id
:
4
,
name
:
'续保部'
,
}],
showModal
:
false
showModal
:
false
,
disabled
:
true
},
onRoute
(
options
){
...
...
@@ -47,9 +48,6 @@ Page({
message
}
=
await
USERAPI
.
wxCodeLogin
()
if
(
code
==
'0'
)
{
this
.
setData
({
disabled
:
false
})
this
.
loginToken
=
data
}
else
this
.
reLogin
(
message
)
wx
.
hideLoading
()
...
...
@@ -88,8 +86,14 @@ Page({
this
.
setData
({
department
:
value
})
this
.
checkInfo
()
this
.
onClose
()
},
checkInfo
(){
this
.
setData
({
disabled
:
!
this
.
data
.
department
.
id
||
!
this
.
data
.
staffName
})
},
handleRegister
({
detail
}){
console
.
log
(
detail
,
'detaildetaildetail'
)
const
{
merchantId
,
merchantFileRequest
}
=
this
.
data
.
dataFromOptions
...
...
@@ -119,6 +123,7 @@ Page({
this
.
setData
({
staffName
:
value
})
this
.
checkInfo
()
},
/**
...
...
pages/authentication/registerInfo/registerInfo.wxml
View file @
32bf6c5
...
...
@@ -4,7 +4,7 @@
<view class="info">
<view class="info-item">
<text>姓名</text>
<input type="text" placeholder-class="placeholder" placeholder="请输入您的姓名" bindinput="inputStaffNamme" value="{{staffName}}"/>
<input type="text" placeholder-class="placeholder"
maxlength="50"
placeholder="请输入您的姓名" bindinput="inputStaffNamme" value="{{staffName}}"/>
</view>
<view class="info-item" bindtap="selectDepartment">
<text class="label">部门</text>
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<view class="register">
<button class="btn" open-type="getPhoneNumber" bindgetphonenumber="handleRegister">立即注册</button>
<button class="btn
{{disabled ? 'store-btn-disabled':''}}" disabled="{{disabled}}
" open-type="getPhoneNumber" bindgetphonenumber="handleRegister">立即注册</button>
</view>
</view>
<van-popup show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 50%" >
...
...
pages/tab/discovery/components/product/product.wxml
View file @
32bf6c5
...
...
@@ -9,7 +9,7 @@
</view>
<view class="prod-wrap">
<text class="big-title">特色产品</text>
<scroll-view class="nav-wrap" scroll-x="{{true}}">
<scroll-view
enhanced="{{true}}" show-scrollbar="{{false}}"
class="nav-wrap" scroll-x="{{true}}">
<block wx:for="{{senceData[actNum].productList}}" wx:key="index">
<text class='nav {{activeNavIdx==index ? "active-nav": ""}}' bindtap="changeNav" data-index="{{index}}">{{item.proName}}</text>
</block>
...
...
@@ -23,9 +23,9 @@
<view class="prod-info">
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<text class="sale"
>新车销量
<text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].changeSale || senceData[actNum]['productList'][activeNavIdx].sale}}</text>
<text class="sale"
decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}}
<text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].changeSale || senceData[actNum]['productList'][activeNavIdx].sale}}</text>
</text>
<text class="earnings"
>预估收益
<text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
<text class="earnings"
decode="{{true}}">预估收益
<text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text>
</view>
...
...
pages/tab/discovery/constant/data.js
View file @
32bf6c5
...
...
@@ -15,6 +15,7 @@ var senceData = [
productType
:
'benefitCard'
,
path
:
'equity'
,
sale
:
100
,
//销量
varType
:
0
}
],
videoList
:
[
...
...
@@ -54,7 +55,8 @@ var senceData = [
type
:
'membrane'
,
productType
:
'sunMembrane'
,
path
:
'solarFilm'
,
sale
:
100
//销量
sale
:
100
,
//销量
varType
:
0
}
],
videoList
:[
...
...
@@ -79,7 +81,8 @@ var senceData = [
type
:
'membrane'
,
productType
:
'protectMembrane'
,
path
:
'paintProtect'
,
sale
:
100
//销量
sale
:
100
,
//销量
varType
:
1
},
{
img
:
'product-img4'
,
...
...
@@ -89,7 +92,8 @@ var senceData = [
type
:
'membrane'
,
productType
:
'colorMembrane'
,
path
:
'changingFilm'
,
sale
:
100
//销量
sale
:
100
,
//销量
varType
:
1
}
]
},
...
...
@@ -107,7 +111,8 @@ var senceData = [
type
:
'beauty'
,
productType
:
'digitBeauty'
,
path
:
'carBeauty'
,
sale
:
100
//销量
sale
:
100
,
//销量
varType
:
0
},
{
img
:
'product-img6'
,
...
...
@@ -117,7 +122,8 @@ var senceData = [
type
:
'light'
,
productType
:
'chair'
,
path
:
'seatVentilate'
,
sale
:
10000
//销量
sale
:
10000
,
//销量
varType
:
1
},
{
img
:
'product-img7'
,
...
...
@@ -127,7 +133,8 @@ var senceData = [
type
:
'light'
,
productType
:
'ar'
,
path
:
'arNavigation'
,
sale
:
10000
//销量
sale
:
10000
,
//销量
varType
:
1
},
{
img
:
'product-img8'
,
...
...
@@ -137,7 +144,8 @@ var senceData = [
type
:
'light'
,
productType
:
'lamp'
,
path
:
'ambientLighting'
,
sale
:
10000
//销量
sale
:
10000
,
//销量
varType
:
1
},
{
img
:
'product-img9'
,
...
...
@@ -147,7 +155,8 @@ var senceData = [
type
:
'service'
,
productType
:
'navigation'
,
path
:
'navigationArround'
,
sale
:
10000
//销量
sale
:
10000
,
//销量
varType
:
1
}
],
videoList
:
[
...
...
project.config.json
View file @
32bf6c5
...
...
@@ -61,5 +61,5 @@
],
"include"
:
[]
},
"appid"
:
"wx
e10067a63c1856ac
"
"appid"
:
"wx
c50d04ae5aa9984a
"
}
\ No newline at end of file
project.private.config.json
View file @
32bf6c5
...
...
@@ -146,6 +146,13 @@
"query"
:
"url=%2Fpages%2Ftab%2Fdiscovery%2Fdiscovery"
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"申请活动"
,
"pathName"
:
"packageActivity/pages/applyActivity/applyActivity"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
]
}
...
...
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