Commit 32bf6c5d by zhangquan

细节修改

1 parent 76d61592
...@@ -101,6 +101,16 @@ ...@@ -101,6 +101,16 @@
align-items: center; align-items: center;
} }
.store-btn-disabled{
background-image:none;
background: #CCCED1 !important;
color: #fff !important;
}
.store-btn-disabled::after{
border: none;
}
.flex_cc { .flex_cc {
display: flex; display: flex;
align-items: center; align-items: center;
......
<block wx:if="{{openScroll}}"> <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"> <block wx:for="{{tab}}" wx:key="index">
<view class="tab {{index==count?'active':''}}" bindtap="click" data-count="{{index}}" id="to-{{index}}" > <view class="tab {{index==count?'active':''}}" bindtap="click" data-count="{{index}}" id="to-{{index}}" >
<view class="text" >{{item}}</view> <view class="text" >{{item}}</view>
......
...@@ -8,12 +8,16 @@ page { ...@@ -8,12 +8,16 @@ page {
.pos_wrap { .pos_wrap {
position: absolute; position: absolute;
left: 24rpx;
top: 336rpx; top: 336rpx;
// left: 50%;
// transform: translateX(-50%);
width: 100%;
padding: 0 24rpx;
box-sizing: border-box;
} }
.wrapper { .wrapper {
width: calc(100% - 48rpx); width:100%;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0 12rpx 24rpx 0 rgba(106, 126, 204, 0.12); box-shadow: 0 12rpx 24rpx 0 rgba(106, 126, 204, 0.12);
border-radius: 24rpx; border-radius: 24rpx;
......
<view class="container"> <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="pos_wrap">
<view class="wrapper"> <view class="wrapper">
<view class="title"> <view class="title">
......
<!--pages/authentication/customerService/customerService.wxml--> <!--pages/authentication/customerService/customerService.wxml-->
<view class="container"> <view class="container">
<view class="service-wrap"> <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="tip">扫码添加客服企微</view>
<view class="hotline"> <view class="hotline">
<view class="title">客服热线</view> <view class="title">客服热线</view>
<view> <view>
<text class="phone">400 xxx xxxx</text> <text class="phone">189 0245 4229</text>
<image></image> <image></image>
</view> </view>
</view> </view>
......
...@@ -20,7 +20,8 @@ Page({ ...@@ -20,7 +20,8 @@ Page({
code:'' code:''
}, },
authorized: false, authorized: false,
phoneReady: false phoneReady: false,
disabled: true
}, },
navbarReady(e) { navbarReady(e) {
let { let {
...@@ -49,9 +50,6 @@ Page({ ...@@ -49,9 +50,6 @@ Page({
message message
} = await USERAPI.wxCodeLogin() } = await USERAPI.wxCodeLogin()
if (code == '0') { if (code == '0') {
this.setData({
disabled: false
})
this.loginToken = data this.loginToken = data
} else this.reLogin(message) } else this.reLogin(message)
wx.hideLoading() wx.hideLoading()
...@@ -154,15 +152,16 @@ Page({ ...@@ -154,15 +152,16 @@ Page({
const {value} = e.detail const {value} = e.detail
const {name} = e.target.dataset const {name} = e.target.dataset
console.log(e,this.data.formData,'88') console.log(e,this.data.formData,'88')
this.setData({ this.setData({
[`formData.${name}`] : value [`formData.${name}`] : value
}) })
if(this.validate.methods.tel(this.data.formData.phone)){ this.checkInfo()
},
checkInfo(){
this.setData({ this.setData({
phoneReady: true 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() { getSmsCode() {
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
bindinput="input" value="{{formData.code}}" data-name="code"/> bindinput="input" value="{{formData.code}}" data-name="code"/>
<button disabled="{{!phoneReady}}" class="code-btn" bindtap="getSmsCode">{{count? count + 's':'获取验证码'}}</button> <button disabled="{{!phoneReady}}" class="code-btn" bindtap="getSmsCode">{{count? count + 's':'获取验证码'}}</button>
</view> </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 class="other">或 <text bindtap="switchLoginMethod" data-type="0">微信登录</text></view>
</view> </view>
</block> </block>
......
...@@ -12,7 +12,7 @@ Page({ ...@@ -12,7 +12,7 @@ Page({
staffName: 'zqqq', staffName: 'zqqq',
merchantId: '44211227', 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' }, 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) { navbarReady(e) {
...@@ -73,7 +73,7 @@ Page({ ...@@ -73,7 +73,7 @@ Page({
wx.$router.go('/pages/authentication/registerSuccess/registerSuccess',{type:0}) wx.$router.go('/pages/authentication/registerSuccess/registerSuccess',{type:0})
}else if(errId=='30990103'){ }else if(errId=='30990103'){
let params = {...this.data.linkParams} 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) wx.$router.go('/pages/authentication/registerInfo/registerInfo',params)
}else{ }else{
let {merchantFileRequest,merchantId} = this.data.linkParams let {merchantFileRequest,merchantId} = this.data.linkParams
...@@ -85,7 +85,7 @@ Page({ ...@@ -85,7 +85,7 @@ Page({
merchantFileRequest: JSON.stringify(merchantFileRequest), merchantFileRequest: JSON.stringify(merchantFileRequest),
staffName: merchantFileRequest.fileName staffName: merchantFileRequest.fileName
} }
this.handleRegister(regParmas) this.register(regParmas)
} }
}else{ }else{
wx.$api.showToast(message || '系统异常') wx.$api.showToast(message || '系统异常')
......
...@@ -22,7 +22,8 @@ Page({ ...@@ -22,7 +22,8 @@ Page({
id: 4, id: 4,
name: '续保部', name: '续保部',
}], }],
showModal: false showModal: false,
disabled: true
}, },
onRoute(options){ onRoute(options){
...@@ -47,9 +48,6 @@ Page({ ...@@ -47,9 +48,6 @@ Page({
message message
} = await USERAPI.wxCodeLogin() } = await USERAPI.wxCodeLogin()
if (code == '0') { if (code == '0') {
this.setData({
disabled: false
})
this.loginToken = data this.loginToken = data
} else this.reLogin(message) } else this.reLogin(message)
wx.hideLoading() wx.hideLoading()
...@@ -88,8 +86,14 @@ Page({ ...@@ -88,8 +86,14 @@ Page({
this.setData({ this.setData({
department: value department: value
}) })
this.checkInfo()
this.onClose() this.onClose()
}, },
checkInfo(){
this.setData({
disabled: !this.data.department.id || !this.data.staffName
})
},
handleRegister({detail}){ handleRegister({detail}){
console.log(detail,'detaildetaildetail') console.log(detail,'detaildetaildetail')
const { merchantId, merchantFileRequest } = this.data.dataFromOptions const { merchantId, merchantFileRequest } = this.data.dataFromOptions
...@@ -119,6 +123,7 @@ Page({ ...@@ -119,6 +123,7 @@ Page({
this.setData({ this.setData({
staffName: value staffName: value
}) })
this.checkInfo()
}, },
/** /**
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="info"> <view class="info">
<view class="info-item"> <view class="info-item">
<text>姓名</text> <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>
<view class="info-item" bindtap="selectDepartment"> <view class="info-item" bindtap="selectDepartment">
<text class="label">部门</text> <text class="label">部门</text>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</view> </view>
</view> </view>
<view class="register"> <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>
</view> </view>
<van-popup show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 50%" > <van-popup show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 50%" >
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</view> </view>
<view class="prod-wrap"> <view class="prod-wrap">
<text class="big-title">特色产品</text> <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"> <block wx:for="{{senceData[actNum].productList}}" wx:key="index">
<text class='nav {{activeNavIdx==index ? "active-nav": ""}}' bindtap="changeNav" data-index="{{index}}">{{item.proName}}</text> <text class='nav {{activeNavIdx==index ? "active-nav": ""}}' bindtap="changeNav" data-index="{{index}}">{{item.proName}}</text>
</block> </block>
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
<view class="prod-info"> <view class="prod-info">
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text> <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 ? '三年售后存量数':'新车销量'}}&nbsp;<text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].changeSale || senceData[actNum]['productList'][activeNavIdx].sale}}</text>
</text> </text>
<text class="earnings">预估收益 <text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text> <text class="earnings" decode="{{true}}">预估收益&nbsp;<text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text> </text>
</view> </view>
......
...@@ -15,6 +15,7 @@ var senceData = [ ...@@ -15,6 +15,7 @@ var senceData = [
productType: 'benefitCard', productType: 'benefitCard',
path: 'equity', path: 'equity',
sale:100 ,//销量 sale:100 ,//销量
varType: 0
} }
], ],
videoList: [ videoList: [
...@@ -54,7 +55,8 @@ var senceData = [ ...@@ -54,7 +55,8 @@ var senceData = [
type: 'membrane', type: 'membrane',
productType: 'sunMembrane', productType: 'sunMembrane',
path: 'solarFilm', path: 'solarFilm',
sale:100 //销量 sale:100, //销量
varType: 0
} }
], ],
videoList:[ videoList:[
...@@ -79,7 +81,8 @@ var senceData = [ ...@@ -79,7 +81,8 @@ var senceData = [
type: 'membrane', type: 'membrane',
productType: 'protectMembrane', productType: 'protectMembrane',
path: 'paintProtect', path: 'paintProtect',
sale:100 //销量 sale:100, //销量
varType: 1
}, },
{ {
img: 'product-img4', img: 'product-img4',
...@@ -89,7 +92,8 @@ var senceData = [ ...@@ -89,7 +92,8 @@ var senceData = [
type: 'membrane', type: 'membrane',
productType: 'colorMembrane', productType: 'colorMembrane',
path: 'changingFilm', path: 'changingFilm',
sale:100 //销量 sale:100, //销量
varType: 1
} }
] ]
}, },
...@@ -107,7 +111,8 @@ var senceData = [ ...@@ -107,7 +111,8 @@ var senceData = [
type: 'beauty', type: 'beauty',
productType: 'digitBeauty', productType: 'digitBeauty',
path: 'carBeauty', path: 'carBeauty',
sale:100 //销量 sale:100, //销量
varType: 0
}, },
{ {
img: 'product-img6', img: 'product-img6',
...@@ -117,7 +122,8 @@ var senceData = [ ...@@ -117,7 +122,8 @@ var senceData = [
type: 'light', type: 'light',
productType: 'chair', productType: 'chair',
path: 'seatVentilate', path: 'seatVentilate',
sale:10000 //销量 sale:10000, //销量
varType: 1
}, },
{ {
img: 'product-img7', img: 'product-img7',
...@@ -127,7 +133,8 @@ var senceData = [ ...@@ -127,7 +133,8 @@ var senceData = [
type: 'light', type: 'light',
productType: 'ar', productType: 'ar',
path: 'arNavigation', path: 'arNavigation',
sale:10000 //销量 sale:10000, //销量
varType: 1
}, },
{ {
img: 'product-img8', img: 'product-img8',
...@@ -137,7 +144,8 @@ var senceData = [ ...@@ -137,7 +144,8 @@ var senceData = [
type: 'light', type: 'light',
productType: 'lamp', productType: 'lamp',
path: 'ambientLighting', path: 'ambientLighting',
sale:10000 //销量 sale:10000, //销量
varType: 1
}, },
{ {
img: 'product-img9', img: 'product-img9',
...@@ -147,7 +155,8 @@ var senceData = [ ...@@ -147,7 +155,8 @@ var senceData = [
type: 'service', type: 'service',
productType: 'navigation', productType: 'navigation',
path: 'navigationArround', path: 'navigationArround',
sale:10000 //销量 sale:10000, //销量
varType: 1
} }
], ],
videoList: [ videoList: [
......
...@@ -61,5 +61,5 @@ ...@@ -61,5 +61,5 @@
], ],
"include": [] "include": []
}, },
"appid": "wxe10067a63c1856ac" "appid": "wxc50d04ae5aa9984a"
} }
\ No newline at end of file \ No newline at end of file
...@@ -146,6 +146,13 @@ ...@@ -146,6 +146,13 @@
"query": "url=%2Fpages%2Ftab%2Fdiscovery%2Fdiscovery", "query": "url=%2Fpages%2Ftab%2Fdiscovery%2Fdiscovery",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "申请活动",
"pathName": "packageActivity/pages/applyActivity/applyActivity",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!