Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9a68678a
authored
Jun 06, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能开发
1 parent
994fc291
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
231 additions
and
102 deletions
.svn/wc.db
pages/components/authSetting copy/authSetting.js
pages/components/authSetting copy/authSetting.json
pages/components/authSetting copy/authSetting.wxml
pages/components/authSetting copy/authSetting.wxss
pages/components/authSetting copy/images/authSetting.png
pages/components/authSetting copy/images/box.png
pages/components/authSetting copy/images/ok.png
pages/wxLogin/wxLogin.wxml
.svn/wc.db
View file @
9a68678
No preview for this file type
pages/components/authSetting copy/authSetting.js
0 → 100644
View file @
9a68678
// components/authSetting/authSetting.js
// const restapi = require('../../utils/restapi.js')
// var appInstance = getApp()
Component
({
/**
* 组件的属性列表
*/
properties
:
{
// auth: {
// type: Boolean,
// value: true,
// observer: function (newVal, oldVal) {
// this.getHeadImage()
// }
// },
// type: {
// type: Boolean,
// value: true
// },
// special: {
// type: Boolean,
// value: false
// },
// index: {
// type: Boolean,
// value: false
// }
agree
:
Boolean
},
/**
* 组件的初始数据
*/
data
:
{
// auth: true,
// type: true,
// appLogo: '',
// appName: '',
// merchantName: '',
// gender: 1
},
ready
()
{
// this.getHeadImage()
},
/**
* 组件的方法列表
*/
methods
:
{
choose
()
{
this
.
setData
({
agree
:
!
this
.
data
.
agree
})
this
.
triggerEvent
(
'choose'
,
this
.
data
.
agree
)
},
jump
(
e
)
{
console
.
log
(
e
)
let
{
url
}
=
e
.
currentTarget
.
dataset
const
baseUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/'
const
path
=
`
${
baseUrl
}${
url
}
.html`
// private user
wx
.
navigateTo
({
url
:
`/pages/webView/webView?url=
${
encodeURIComponent
(
path
)}
`
})
// var globalData = appInstance.globalData.extConfig
// restapi.getMerchantBussiness(globalData.merchantId, function (res) {
// console.log(res);
// if (res.returnCode == '0') {
// let path = `https://dj.glsx.com.cn/agreement/djUserPolicy.html?merchantName=${globalData.merchantName}&phone=${res.data.phone}`
// wx.navigateTo({
// url: `/pages/webpage/webpage?path=${encodeURIComponent(path)}`
// })
// }
// }, function (res) {
// console.log(res);
// })
},
noScroll
()
{}
}
})
pages/components/authSetting copy/authSetting.json
0 → 100644
View file @
9a68678
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/components/authSetting copy/authSetting.wxml
0 → 100644
View file @
9a68678
<view class='tips'>
<view class='choose-box' bindtap="choose">
<view class='icon'>
<image src="{{agree?'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/login_checked.png':'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/login_check.png'}}" class='check-img' />
</view>
</view>
阅读并同意以下协议
<!-- <text catchtap="jump" data-url="agree">《服务协议》</text> -->
<text catchtap="jump" data-url="privacy">《隐私协议》</text>和
<text catchtap="jump" data-url="agreement">《用户协议》</text>
</view>
pages/components/authSetting copy/authSetting.wxss
0 → 100644
View file @
9a68678
/* components/authSetting/authSetting.wxss */
.tips {
position: fixed;
width: 100%;
left: 0;
bottom: 60rpx;
font-size: 24rpx;
color: #999;
letter-spacing: 2rpx;
padding-left: 28rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
.tips text {
color: #5092FF;
}
.tips .icon {
position: absolute;
top: 50%;
left: 50%;
width: 28rpx;
height: 28rpx;
border-radius: 50%;
box-sizing: border-box;
transform: translate(-50%, -50%);
}
.tips .icon .check-img {
vertical-align: top;
width: 100%;
height: 100%;
}
.tips .choose-box {
width: 80rpx;
height: 80rpx;
position: relative;
z-index: 10;
margin-right: -18rpx;
}
\ No newline at end of file
\ No newline at end of file
pages/components/authSetting copy/images/authSetting.png
0 → 100644
View file @
9a68678
12.5 KB
pages/components/authSetting copy/images/box.png
0 → 100644
View file @
9a68678
193 Bytes
pages/components/authSetting copy/images/ok.png
0 → 100644
View file @
9a68678
569 Bytes
pages/wxLogin/wxLogin.wxml
View file @
9a68678
<view class="layout {{loginType == 1?'phone_login_layout':''}}">
<view class="layout {{ loginType == 1?'phone_login_layout':'' }}">
<navigation-bar navStyle="background-color: rgba(0,0,0,0);box-shadow:none;">生意助手员工版</navigation-bar>
<navigation-bar navStyle="background-color: rgba(0,0,0,0);box-shadow:none;">生意助手员工版</navigation-bar>
<view class="box_content">
<view class="box_content">
<!-- 登录区域 -->
<!-- 登录区域 -->
<view class="box">
<view class="box">
<!-- 微信登录 -->
<!-- 微信登录 -->
<block wx:if="{{loginType == 3}}">
<block wx:if="{{ loginType == 3 }}">
<view class="wx opacity-view">
<view class="wx opacity-view">
<view class="title">
<view class="title">您好</view>
您好
<view class="subtitle">欢迎登录生意助手员工版</view>
</view>
<image class="img" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/login_box.png" />
<view class="subtitle">
</view>
欢迎登录生意助手员工版
<view class="login-btn {{ loginType == 3?'mini':'' }}">
</view>
<button size="default" hidden="{{ loginType != 3 || !agree }}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" />
<image class="img" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/login_box.png" />
<view hidden="{{ loginType !=3 }}" bindtap="checkAgree">微信登录</view>
</view>
</view>
<view class="login-btn {{loginType == 3?'mini':''}}">
<view class="mobile_btn" bindtap="changeLoginType" data-type="1" wx:if="{{ loginType != 1 }}">手机号登录</view>
<button
</block>
size="default"
<!-- 手机号登录 -->
hidden="{{loginType != 3 || !agree}}"
<block wx:if="{{ loginType == 1 }}">
open-type="getPhoneNumber"
<view class="phone_login">
bindgetphonenumber="getPhoneNumber" />
<view class="title">手机号码登录</view>
<view hidden="{{loginType !=3 }}" bindtap="checkAgree">微信登录</view>
<view class="login-form">
</view>
<view class="input">
<view
<input
class="mobile_btn"
placeholder="请输入手机号"
bindtap="changeLoginType"
type="number"
data-type="1"
placeholder-style="color:#999;"
wx:if="{{loginType != 1}}">手机号登录 </view>
style="width:calc(100% - 50rpx);"
</block>
bindinput="input"
<!-- 手机号登录 -->
data-name="mobile"
<block wx:if="{{loginType == 1}}">
value="{{ mobile }}"
<view class="phone_login">
maxlength="11"
<view class="title">手机号码登录</view>
/>
<view class='login-form'>
<view class="clear" hidden="{{ !mobile }}" bindtap="clear" data-name="mobile">
<view class='input'>
<image src="/images/clear.png" />
<input
</view>
placeholder="请输入手机号"
</view>
type="number"
<view class="input">
placeholder-style="color:#999;"
<input
style="width:calc(100% - 50rpx);"
placeholder="请输入验证码"
bindinput="input"
type="number"
data-name='mobile'
placeholder-style="color:#999;"
value="{{mobile}}"
style="width:calc(100% - 100rpx);"
maxlength="11" />
bindinput="input"
<view
data-name="code"
class='clear'
value="{{ code }}"
hidden="{{!mobile}}"
maxlength="4"
bindtap="clear"
/>
data-name='mobile'>
<view class="clear" hidden="{{ !code }}" bindtap="clear" data-name="code">
<image src="/images/clear.png" />
<image src="/images/clear.png" />
</view>
</view>
</view>
<view class="sms {{ countDown?'code-disabled':'' }}" bindtap="getSms">
<view class='input'>
<view wx:if="{{ countDown }}">重新发送({{count}})</view>
<input
<view wx:else>获取验证码</view>
placeholder="请输入验证码"
</view>
type="number"
</view>
placeholder-style="color:#999;"
<view class="login_btn" bindtap="smsLogin">登录</view>
style="width:calc(100% - 100rpx);"
<view class="wx_login">
bindinput="input"
或
data-name='code'
<text bindtap="changeLoginType" data-type="3">微信登录</text>
value='{{code}}'
</view>
maxlength="4" />
</view>
<view
</view>
class='clear'
<autoLogin-btn></autoLogin-btn>
hidden="{{!code}}"
</block>
bindtap="clear"
</view>
data-name='code'>
<!-- 协议 -->
<image src="/images/clear.png" />
<auth-setting bind:choose="authChoose" agree="{{ agree }}" />
</view>
</view>
<view class="sms {{countDown?'code-disabled':''}}" bindtap="getSms">
<!-- -->
<view wx:if="{{countDown}}">重新发送({{count}})</view>
<view wx:else>获取验证码</view>
</view>
</view>
<view class="login_btn" bindtap="smsLogin">登录</view>
<view class="wx_login">或<text bindtap="changeLoginType" data-type="3">微信登录</text></view>
</view>
</view>
</block>
</view>
<!-- 协议 -->
<auth-setting bind:choose="authChoose" agree="{{agree}}"/>
</view>
<!-- -->
</view>
</view>
<!-- 未同意协议弹窗提示 -->
<!-- 未同意协议弹窗提示 -->
<van-dialog
<van-dialog
use-slot
use-slot
title="隐私协议与用户协议"
title="隐私协议与用户协议"
show="{{ showAuthDialog }}"
show="{{ showAuthDialog }}"
class="auth-dialog-class"
class="auth-dialog-class"
width="552rpx"
width="552rpx"
show-cancel-button
show-cancel-button
confirmButtonText="同意"
confirmButtonText="同意"
confirm-button-color="#5092FF"
confirm-button-color="#5092FF"
bind:confirm="agreeEvent"
bind:confirm="agreeEvent"
bind:close="onClose"
bind:close="onClose"
>
>
<view class="message-box">
<view class="message-box">
<view class="message">为保障你的合法权益,请阅读并同意</view>
<view class="message">为保障你的合法权益,请阅读并同意</view>
<text catchtap="jump" data-url="privacy">《隐私协议》</text>和
<text catchtap="jump" data-url="privacy">《隐私协议》</text>
<text catchtap="jump" data-url="agreement">《用户协议》</text>
和
</view
>
<text catchtap="jump" data-url="agreement">《用户协议》</text
>
</van-dialog
>
</view
>
</van-dialog>
\ No newline at end of file
\ No newline at end of file
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