xyvcard-wechat-auth 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/dist/components/auth-user/jmash-update-user/index.json +3 -3
- package/dist/components/auth-user/jmash-update-user/index.wxml +34 -34
- package/dist/components/auth-user/jmash-user/index.json +3 -3
- package/dist/components/auth-user/jmash-user/index.wxml +18 -18
- package/dist/components/common/auth-avatar/avatar-edit/index.json +3 -3
- package/dist/components/common/auth-avatar/avatar-edit/index.wxml +7 -7
- package/dist/components/common/auth-basic-title/basic-title-view/index.json +3 -3
- package/dist/components/common/auth-basic-title/basic-title-view/index.wxml +4 -4
- package/dist/components/common/auth-btn/double-btn/index.json +3 -3
- package/dist/components/common/auth-btn/double-btn/index.wxml +3 -3
- package/dist/components/common/auth-btn/single-btn/index.json +3 -3
- package/dist/components/common/auth-btn/single-btn/index.wxml +6 -6
- package/dist/components/common/auth-none-data/none-data-image/index.json +3 -3
- package/dist/components/common/auth-none-data/none-data-image/index.wxml +3 -3
- package/dist/components/common/auth-popup/index.json +3 -3
- package/dist/components/common/auth-popup/index.wxml +7 -7
- package/dist/components/common/auth-search/index.json +3 -3
- package/dist/components/common/auth-search/index.wxml +6 -6
- package/dist/components/common/auth-top-navigation/index.json +5 -5
- package/dist/components/common/auth-top-navigation/index.wxml +5 -5
- package/dist/components/jmash-half-login/index.json +7 -7
- package/dist/components/jmash-half-login/index.wxml +45 -45
- package/dist/components/jmash-login/index.js +5 -0
- package/dist/components/jmash-login/index.json +5 -5
- package/dist/components/jmash-login/index.wxml +11 -11
- package/dist/styles/index.scss +26 -26
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# 微信原生小程序模块
|
|
2
|
-
|
|
3
|
-
## 编译使用
|
|
4
|
-
1. pnpm install
|
|
5
|
-
2. 工具->构建npm
|
|
6
|
-
3. 详情->本地设置->将JS编译成ES5
|
|
7
|
-
|
|
8
|
-
## 发布
|
|
9
|
-
1. 修改package中的version
|
|
10
|
-
2. pnpm build
|
|
11
|
-
3. pnpm publish --no-git-checks
|
|
12
|
-
官方
|
|
13
|
-
npm config set registry https://registry.npmjs.org/
|
|
14
|
-
公司镜像
|
|
1
|
+
# 微信原生小程序模块
|
|
2
|
+
|
|
3
|
+
## 编译使用
|
|
4
|
+
1. pnpm install
|
|
5
|
+
2. 工具->构建npm
|
|
6
|
+
3. 详情->本地设置->将JS编译成ES5
|
|
7
|
+
|
|
8
|
+
## 发布
|
|
9
|
+
1. 修改package中的version
|
|
10
|
+
2. pnpm build
|
|
11
|
+
3. pnpm publish --no-git-checks
|
|
12
|
+
官方
|
|
13
|
+
npm config set registry https://registry.npmjs.org/
|
|
14
|
+
公司镜像
|
|
15
15
|
npm config set registry https://npm.crenjoy.com
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
<!-- 我的页面 中个人信息编辑页面 -->
|
|
2
|
-
<view class="my-information">
|
|
3
|
-
<view class="main">
|
|
4
|
-
<view class="main-profile" wx:if="{{ isUserAvatar }}">
|
|
5
|
-
<view class="profile-left">头像</view>
|
|
6
|
-
<view class="profile-right">
|
|
7
|
-
<button class="image-box-bgc" open-type="chooseAvatar" plain="true" bind:chooseavatar="onChooseAvatar">
|
|
8
|
-
<image class="profile-image" src="{{ resourceUrl + '/components/gray_head2x.png' }}" mode="" wx:if="{{ !userInfo.avatar }}" />
|
|
9
|
-
<image class="profile-image" src="{{ imageUrl + userInfo.avatar }}" mode="" wx:else />
|
|
10
|
-
</button>
|
|
11
|
-
</view>
|
|
12
|
-
</view>
|
|
13
|
-
<view class="main-nickname" wx:if="{{ isUserNickName }}">
|
|
14
|
-
<view class="nickname-left">昵称</view>
|
|
15
|
-
<view class="nickname-right">
|
|
16
|
-
<input value="{{ userInfo.nickName }}" type="nickname" bindinput="getNicknameValue" class="nickname-input" />
|
|
17
|
-
</view>
|
|
18
|
-
</view>
|
|
19
|
-
<view class="main-nickname" wx:if="{{ isUserRealName }}">
|
|
20
|
-
<view class="nickname-left">姓名</view>
|
|
21
|
-
<view class="nickname-right">
|
|
22
|
-
<input value="{{ userInfo.realName }}" type="realName" bindinput="setrealNameValue" class="nickname-input" />
|
|
23
|
-
</view>
|
|
24
|
-
</view>
|
|
25
|
-
|
|
26
|
-
<view class="main-phone" wx:if="{{ isUserMobilePhone }}">
|
|
27
|
-
<view class="phone-left">手机号</view>
|
|
28
|
-
<view class="phone-right">
|
|
29
|
-
<view>{{ userInfo.mobilePhone }}</view>
|
|
30
|
-
<button open-type="getPhoneNumber" class="phone-right-btn" bindgetphonenumber="getPhoneNumber" plain="true" wx:if="{{ isChangePhone }}">更换手机号</button>
|
|
31
|
-
</view>
|
|
32
|
-
</view>
|
|
33
|
-
</view>
|
|
34
|
-
|
|
1
|
+
<!-- 我的页面 中个人信息编辑页面 -->
|
|
2
|
+
<view class="my-information">
|
|
3
|
+
<view class="main">
|
|
4
|
+
<view class="main-profile" wx:if="{{ isUserAvatar }}">
|
|
5
|
+
<view class="profile-left">头像</view>
|
|
6
|
+
<view class="profile-right">
|
|
7
|
+
<button class="image-box-bgc" open-type="chooseAvatar" plain="true" bind:chooseavatar="onChooseAvatar">
|
|
8
|
+
<image class="profile-image" src="{{ resourceUrl + '/components/gray_head2x.png' }}" mode="" wx:if="{{ !userInfo.avatar }}" />
|
|
9
|
+
<image class="profile-image" src="{{ imageUrl + userInfo.avatar }}" mode="" wx:else />
|
|
10
|
+
</button>
|
|
11
|
+
</view>
|
|
12
|
+
</view>
|
|
13
|
+
<view class="main-nickname" wx:if="{{ isUserNickName }}">
|
|
14
|
+
<view class="nickname-left">昵称</view>
|
|
15
|
+
<view class="nickname-right">
|
|
16
|
+
<input value="{{ userInfo.nickName }}" type="nickname" bindinput="getNicknameValue" class="nickname-input" />
|
|
17
|
+
</view>
|
|
18
|
+
</view>
|
|
19
|
+
<view class="main-nickname" wx:if="{{ isUserRealName }}">
|
|
20
|
+
<view class="nickname-left">姓名</view>
|
|
21
|
+
<view class="nickname-right">
|
|
22
|
+
<input value="{{ userInfo.realName }}" type="realName" bindinput="setrealNameValue" class="nickname-input" />
|
|
23
|
+
</view>
|
|
24
|
+
</view>
|
|
25
|
+
|
|
26
|
+
<view class="main-phone" wx:if="{{ isUserMobilePhone }}">
|
|
27
|
+
<view class="phone-left">手机号</view>
|
|
28
|
+
<view class="phone-right">
|
|
29
|
+
<view>{{ userInfo.mobilePhone }}</view>
|
|
30
|
+
<button open-type="getPhoneNumber" class="phone-right-btn" bindgetphonenumber="getPhoneNumber" plain="true" wx:if="{{ isChangePhone }}">更换手机号</button>
|
|
31
|
+
</view>
|
|
32
|
+
</view>
|
|
33
|
+
</view>
|
|
34
|
+
|
|
35
35
|
</view>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
<view class="auth-user-box">
|
|
2
|
-
<block wx:if="{{ token }}">
|
|
3
|
-
<view class="auth-user-l">
|
|
4
|
-
<image src="{{ BASE_URL + userInfo.avatar }}" class="avatar-img" wx:if="{{ userInfo.avatar }}"></image>
|
|
5
|
-
<image src="{{ resourceUrl }}/tswk.png" class="avatar-img" wx:else></image>
|
|
6
|
-
<view class="auth-user-r">
|
|
7
|
-
<view class="user-edit">{{ userInfo.realName }}
|
|
8
|
-
<image src="{{ resourceUrl }}/book/icon/user_edit_icon.png" class="edit_icon" bind:tap="handleUpdateUser"></image>
|
|
9
|
-
</view>
|
|
10
|
-
<text class="user-mobile">{{ userInfo.mobilePhoneIns }}</text>
|
|
11
|
-
</view>
|
|
12
|
-
</view>
|
|
13
|
-
</block>
|
|
14
|
-
<view class="auth-user-l" wx:else>
|
|
15
|
-
<image src="{{ resourceUrl }}/tswk.png" class="avatar-img"></image>
|
|
16
|
-
<text bind:tap="handleLogin">登录</text>
|
|
17
|
-
</view>
|
|
18
|
-
|
|
1
|
+
<view class="auth-user-box">
|
|
2
|
+
<block wx:if="{{ token }}">
|
|
3
|
+
<view class="auth-user-l">
|
|
4
|
+
<image src="{{ BASE_URL + userInfo.avatar }}" class="avatar-img" wx:if="{{ userInfo.avatar }}"></image>
|
|
5
|
+
<image src="{{ resourceUrl }}/tswk.png" class="avatar-img" wx:else></image>
|
|
6
|
+
<view class="auth-user-r">
|
|
7
|
+
<view class="user-edit">{{ userInfo.realName }}
|
|
8
|
+
<image src="{{ resourceUrl }}/book/icon/user_edit_icon.png" class="edit_icon" bind:tap="handleUpdateUser"></image>
|
|
9
|
+
</view>
|
|
10
|
+
<text class="user-mobile">{{ userInfo.mobilePhoneIns }}</text>
|
|
11
|
+
</view>
|
|
12
|
+
</view>
|
|
13
|
+
</block>
|
|
14
|
+
<view class="auth-user-l" wx:else>
|
|
15
|
+
<image src="{{ resourceUrl }}/tswk.png" class="avatar-img"></image>
|
|
16
|
+
<text bind:tap="handleLogin">登录</text>
|
|
17
|
+
</view>
|
|
18
|
+
|
|
19
19
|
</view>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<!-- 创建卡片选择头像 样式组件 -->
|
|
2
|
-
<!-- 头像背景盒子 -->
|
|
3
|
-
<button plain class="auth-image-box-bgc" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
|
|
4
|
-
<!-- 显示的头像 -->
|
|
5
|
-
<image class="image-box-show" src="{{ avatar }}" mode="widthFix" />
|
|
6
|
-
<!-- 提示选择头像图片 -->
|
|
7
|
-
<image class="select-image" src="{{ resourceUrl + '/icon_image/camera2x.png' }}" mode="" />
|
|
1
|
+
<!-- 创建卡片选择头像 样式组件 -->
|
|
2
|
+
<!-- 头像背景盒子 -->
|
|
3
|
+
<button plain class="auth-image-box-bgc" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
|
|
4
|
+
<!-- 显示的头像 -->
|
|
5
|
+
<image class="image-box-show" src="{{ avatar }}" mode="widthFix" />
|
|
6
|
+
<!-- 提示选择头像图片 -->
|
|
7
|
+
<image class="select-image" src="{{ resourceUrl + '/icon_image/camera2x.png' }}" mode="" />
|
|
8
8
|
</button>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<view class="basic-view">
|
|
2
|
-
<image class="basic-icon" src="{{ resourceUrl }}/rectangle2x_{{ themeColor }}.png" />
|
|
3
|
-
<text class="basic-title">{{ title }}</text>
|
|
4
|
-
<view class="basic-more" bind:tap="handleMore" wx:if="{{ isMore }}">查看更多</view>
|
|
1
|
+
<view class="basic-view">
|
|
2
|
+
<image class="basic-icon" src="{{ resourceUrl }}/rectangle2x_{{ themeColor }}.png" />
|
|
3
|
+
<text class="basic-title">{{ title }}</text>
|
|
4
|
+
<view class="basic-more" bind:tap="handleMore" wx:if="{{ isMore }}">查看更多</view>
|
|
5
5
|
</view>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<view class="auth-btn-box">
|
|
2
|
-
<button class="btn-left" style="background: {{ leftBgColor }}; color: {{ leftColor }}; border-radius: {{ btnRadius }}; border: {{ leftBorder }};" bind:tap="handleLeft">{{ leftText }}</button>
|
|
3
|
-
<button class="btn-right" style="background: {{ rightBgColor }}; color: {{ rightColor }}; border-radius: {{ btnRadius }}; border: {{ rightBorder }};" bind:tap="handleRight">{{ rightText }}</button>
|
|
1
|
+
<view class="auth-btn-box">
|
|
2
|
+
<button class="btn-left" style="background: {{ leftBgColor }}; color: {{ leftColor }}; border-radius: {{ btnRadius }}; border: {{ leftBorder }};" bind:tap="handleLeft">{{ leftText }}</button>
|
|
3
|
+
<button class="btn-right" style="background: {{ rightBgColor }}; color: {{ rightColor }}; border-radius: {{ btnRadius }}; border: {{ rightBorder }};" bind:tap="handleRight">{{ rightText }}</button>
|
|
4
4
|
</view>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<button
|
|
2
|
-
bind:tap="onClick"
|
|
3
|
-
class="auth-btn"
|
|
4
|
-
style="{{ buttonStyle }}"
|
|
5
|
-
disabled="{{ disabled }}"
|
|
6
|
-
>{{ text }}</button>
|
|
1
|
+
<button
|
|
2
|
+
bind:tap="onClick"
|
|
3
|
+
class="auth-btn"
|
|
4
|
+
style="{{ buttonStyle }}"
|
|
5
|
+
disabled="{{ disabled }}"
|
|
6
|
+
>{{ text }}</button>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<view class="auth-none-data" style="margin-top: {{ marginTop }}rpx; padding-top: {{ paddingTop }}rpx;">
|
|
2
|
-
<image class="holder-image" src="{{ resourceUrl + imgUrl }}" mode="heightFix" style="width: {{ imgWidth }};height: {{ imgHeight }};" />
|
|
3
|
-
<view class="holder-text" style="color: {{ contentColor }};">{{ content }}</view>
|
|
1
|
+
<view class="auth-none-data" style="margin-top: {{ marginTop }}rpx; padding-top: {{ paddingTop }}rpx;">
|
|
2
|
+
<image class="holder-image" src="{{ resourceUrl + imgUrl }}" mode="heightFix" style="width: {{ imgWidth }};height: {{ imgHeight }};" />
|
|
3
|
+
<view class="holder-text" style="color: {{ contentColor }};">{{ content }}</view>
|
|
4
4
|
</view>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<view class="auth-mask-box" wx:if="{{ show }}" bind:tap="closePopup"></view>
|
|
2
|
-
<view class="auth-mask-popup" wx:if="{{ show }}" style="height: {{ height }}; background-color: {{ backColor }};border-top-left-radius: {{ borderRadius }};border-top-right-radius: {{ borderRadius }};width: 100%;">
|
|
3
|
-
<view class="popup-title" wx:if="{{ titleShow }}">
|
|
4
|
-
{{ title }}
|
|
5
|
-
<image mode="aspectFit" src="{{ resourceUrl + '/icon_image/close_circle2x.png' }}" class="close-icon" bind:tap="closePopup"></image>
|
|
6
|
-
</view>
|
|
7
|
-
<slot></slot>
|
|
1
|
+
<view class="auth-mask-box" wx:if="{{ show }}" bind:tap="closePopup"></view>
|
|
2
|
+
<view class="auth-mask-popup" wx:if="{{ show }}" style="height: {{ height }}; background-color: {{ backColor }};border-top-left-radius: {{ borderRadius }};border-top-right-radius: {{ borderRadius }};width: 100%;">
|
|
3
|
+
<view class="popup-title" wx:if="{{ titleShow }}">
|
|
4
|
+
{{ title }}
|
|
5
|
+
<image mode="aspectFit" src="{{ resourceUrl + '/icon_image/close_circle2x.png' }}" class="close-icon" bind:tap="closePopup"></image>
|
|
6
|
+
</view>
|
|
7
|
+
<slot></slot>
|
|
8
8
|
</view>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<view class="auth-search-box" style="{{ searchStyle }}">
|
|
2
|
-
<icon type="search" color="{{ iconColor }}" size="18" class="search-icon"></icon>
|
|
3
|
-
<input class="search-input" placeholder-style="color: {{ color }};" style="color: {{ color }}; background-color: {{ backColor }}; width: {{ isSearchBtn ? '60%' : '100%' }}; {{ isSearchBtn ? '' : 'padding-right: 20px' }}" focus="{{ focus }}" placeholder="{{ placeholder }}" disabled="{{ disabled }}" value="{{ likeName }}" bindinput="handleInput" bind:tap="handleTap" />
|
|
4
|
-
<view class="search-btn" wx:if="{{ isSearchBtn }}">
|
|
5
|
-
<slot></slot>
|
|
6
|
-
</view>
|
|
1
|
+
<view class="auth-search-box" style="{{ searchStyle }}">
|
|
2
|
+
<icon type="search" color="{{ iconColor }}" size="18" class="search-icon"></icon>
|
|
3
|
+
<input class="search-input" placeholder-style="color: {{ color }};" style="color: {{ color }}; background-color: {{ backColor }}; width: {{ isSearchBtn ? '60%' : '100%' }}; {{ isSearchBtn ? '' : 'padding-right: 20px' }}" focus="{{ focus }}" placeholder="{{ placeholder }}" disabled="{{ disabled }}" value="{{ likeName }}" bindinput="handleInput" bind:tap="handleTap" />
|
|
4
|
+
<view class="search-btn" wx:if="{{ isSearchBtn }}">
|
|
5
|
+
<slot></slot>
|
|
6
|
+
</view>
|
|
7
7
|
</view>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {
|
|
4
|
-
"van-icon": "@vant/weapp/icon/index"
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {
|
|
4
|
+
"van-icon": "@vant/weapp/icon/index"
|
|
5
|
+
}
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<view class="auth-top" style="background: {{ style.color }};">
|
|
2
|
-
<view class="auth-top-navigation" style="padding-top: {{ style.paddingTop }}px; height: {{ style.height }}px;color: {{ titleColor }}">
|
|
3
|
-
<van-icon name="arrow-left" size="22px" wx:if="{{ isLeftIcon }}" color="{{ titleColor }}" bind:tap="handleBack" />
|
|
4
|
-
<text class="title">{{ title }}</text>
|
|
5
|
-
</view>
|
|
1
|
+
<view class="auth-top" style="background: {{ style.color }};">
|
|
2
|
+
<view class="auth-top-navigation" style="padding-top: {{ style.paddingTop }}px; height: {{ style.height }}px;color: {{ titleColor }}">
|
|
3
|
+
<van-icon name="arrow-left" size="22px" wx:if="{{ isLeftIcon }}" color="{{ titleColor }}" bind:tap="handleBack" />
|
|
4
|
+
<text class="title">{{ title }}</text>
|
|
5
|
+
</view>
|
|
6
6
|
</view>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {
|
|
4
|
-
"van-popup": "@vant/weapp/popup/index",
|
|
5
|
-
"van-checkbox": "@vant/weapp/checkbox/index",
|
|
6
|
-
"van-checkbox-group": "@vant/weapp/checkbox-group/index"
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {
|
|
4
|
+
"van-popup": "@vant/weapp/popup/index",
|
|
5
|
+
"van-checkbox": "@vant/weapp/checkbox/index",
|
|
6
|
+
"van-checkbox-group": "@vant/weapp/checkbox-group/index"
|
|
7
|
+
}
|
|
8
8
|
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
<!--components/jmash-half-login/index.wxml-->
|
|
2
|
-
<!-- 授权登录 -->
|
|
3
|
-
<van-popup z-index="999999" show="{{ isShow }}" close-on-click-overlay="{{ false }}" round position="bottom" custom-style="height: 830rpx;" bind:close="onClose" custom-class="vcard-login-popup">
|
|
4
|
-
|
|
5
|
-
<view class="custom-title">
|
|
6
|
-
<view class="title-left">
|
|
7
|
-
<view class="left-title">授权登录</view>
|
|
8
|
-
<view class="left-logo">
|
|
9
|
-
<image class="logo-image" src="{{ resourceUrl + '/logo/logo.png' }}" mode="" />
|
|
10
|
-
<view class="logo-text">{{ config.name }}·申请使用</view>
|
|
11
|
-
</view>
|
|
12
|
-
</view>
|
|
13
|
-
<view class="title-right" bind:tap="onClose">
|
|
14
|
-
<image class="title-image" src="{{ resourceUrl + '/icon_image/close_circle2x.png' }}" mode="widthFix" />
|
|
15
|
-
</view>
|
|
16
|
-
</view>
|
|
17
|
-
|
|
18
|
-
<view class="custom-main">
|
|
19
|
-
<view class="main-msg">
|
|
20
|
-
<view class="msg-itme">
|
|
21
|
-
<view class="item-title">头像</view>
|
|
22
|
-
<button plain class="item-btn" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
|
|
23
|
-
<image class="item-image" src="{{ avatar }}" mode="widthFix" />
|
|
24
|
-
</button>
|
|
25
|
-
</view>
|
|
26
|
-
<view class="msg-itme">
|
|
27
|
-
<view class="item-title">姓名</view>
|
|
28
|
-
<input bind:change="bindKeyInput" value="{{ nameValue }}" class="item-input" type="nickname" placeholder="请输入姓名" />
|
|
29
|
-
</view>
|
|
30
|
-
</view>
|
|
31
|
-
|
|
32
|
-
<view class="main-check-agreement">
|
|
33
|
-
<van-checkbox label-class="main-check-agreement-text" value="{{ isCheckBox }}" icon-size="14px" shape="square" bind:change="onChange">
|
|
34
|
-
<!-- 已阅读《用户使用协议》《隐私权政策》 -->
|
|
35
|
-
已阅读
|
|
36
|
-
<text id="0" catch:tap="goInfo">《用户使用协议》</text> <text id="1" catch:tap="goInfo">《隐私权政策》</text>
|
|
37
|
-
</van-checkbox>
|
|
38
|
-
</view>
|
|
39
|
-
|
|
40
|
-
<!-- 未勾选用户协议 -->
|
|
41
|
-
<button wx:if="{{ !isValidate }}" plain class="main-login-btn" bind:tap="onLogin">授权登录</button>
|
|
42
|
-
<!-- 已勾选用户协议 -->
|
|
43
|
-
<button wx:else plain class="main-login-btn" open-type="getPhoneNumber" bind:getphonenumber="wxPhoneLogin">授权登录</button>
|
|
44
|
-
<view class="main-login-cencl" bind:tap="onClose">取消</view>
|
|
45
|
-
</view>
|
|
1
|
+
<!--components/jmash-half-login/index.wxml-->
|
|
2
|
+
<!-- 授权登录 -->
|
|
3
|
+
<van-popup z-index="999999" show="{{ isShow }}" close-on-click-overlay="{{ false }}" round position="bottom" custom-style="height: 830rpx;" bind:close="onClose" custom-class="vcard-login-popup">
|
|
4
|
+
|
|
5
|
+
<view class="custom-title">
|
|
6
|
+
<view class="title-left">
|
|
7
|
+
<view class="left-title">授权登录</view>
|
|
8
|
+
<view class="left-logo">
|
|
9
|
+
<image class="logo-image" src="{{ resourceUrl + '/logo/logo.png' }}" mode="" />
|
|
10
|
+
<view class="logo-text">{{ config.name }}·申请使用</view>
|
|
11
|
+
</view>
|
|
12
|
+
</view>
|
|
13
|
+
<view class="title-right" bind:tap="onClose">
|
|
14
|
+
<image class="title-image" src="{{ resourceUrl + '/icon_image/close_circle2x.png' }}" mode="widthFix" />
|
|
15
|
+
</view>
|
|
16
|
+
</view>
|
|
17
|
+
|
|
18
|
+
<view class="custom-main">
|
|
19
|
+
<view class="main-msg">
|
|
20
|
+
<view class="msg-itme">
|
|
21
|
+
<view class="item-title">头像</view>
|
|
22
|
+
<button plain class="item-btn" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
|
|
23
|
+
<image class="item-image" src="{{ avatar }}" mode="widthFix" />
|
|
24
|
+
</button>
|
|
25
|
+
</view>
|
|
26
|
+
<view class="msg-itme">
|
|
27
|
+
<view class="item-title">姓名</view>
|
|
28
|
+
<input bind:change="bindKeyInput" value="{{ nameValue }}" class="item-input" type="nickname" placeholder="请输入姓名" />
|
|
29
|
+
</view>
|
|
30
|
+
</view>
|
|
31
|
+
|
|
32
|
+
<view class="main-check-agreement">
|
|
33
|
+
<van-checkbox label-class="main-check-agreement-text" value="{{ isCheckBox }}" icon-size="14px" shape="square" bind:change="onChange">
|
|
34
|
+
<!-- 已阅读《用户使用协议》《隐私权政策》 -->
|
|
35
|
+
已阅读
|
|
36
|
+
<text id="0" catch:tap="goInfo">《用户使用协议》</text> <text id="1" catch:tap="goInfo">《隐私权政策》</text>
|
|
37
|
+
</van-checkbox>
|
|
38
|
+
</view>
|
|
39
|
+
|
|
40
|
+
<!-- 未勾选用户协议 -->
|
|
41
|
+
<button wx:if="{{ !isValidate }}" plain class="main-login-btn" bind:tap="onLogin">授权登录</button>
|
|
42
|
+
<!-- 已勾选用户协议 -->
|
|
43
|
+
<button wx:else plain class="main-login-btn" open-type="getPhoneNumber" bind:getphonenumber="wxPhoneLogin">授权登录</button>
|
|
44
|
+
<view class="main-login-cencl" bind:tap="onClose">取消</view>
|
|
45
|
+
</view>
|
|
46
46
|
</van-popup>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {
|
|
4
|
-
"auth-single-btn": "../common/auth-btn/single-btn/index"
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {
|
|
4
|
+
"auth-single-btn": "../common/auth-btn/single-btn/index"
|
|
5
|
+
}
|
|
6
6
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<slot name="before"></slot>
|
|
2
|
-
<view class="login_box">
|
|
3
|
-
<button open-type="getPhoneNumber" style="{{ loginStyle }}" bindgetphonenumber="wxPhoneLogin" wx:if="{{ agreeStatus }}">手机号授权登录</button>
|
|
4
|
-
<button bind:tap="wxPhoneLogin" style="{{ loginStyle }}" wx:else>手机号授权登录</button>
|
|
5
|
-
<radio-group bindchange="agreeChange" class="protocol_agree">
|
|
6
|
-
<label>
|
|
7
|
-
<radio value="{{ agreeStatus }}" checked="{{ agreeStatus }}" color="{{ checkedColor }}" />
|
|
8
|
-
已阅读<text id="0" style="{{ agreementStyle }}" catch:tap="goInfo">《用户使用协议》</text> <text id="1" style="{{ agreementStyle }}" catch:tap="goInfo">《隐私权政策》</text>
|
|
9
|
-
</label>
|
|
10
|
-
</radio-group>
|
|
11
|
-
<slot name="after"></slot>
|
|
1
|
+
<slot name="before"></slot>
|
|
2
|
+
<view class="login_box">
|
|
3
|
+
<button open-type="getPhoneNumber" style="{{ loginStyle }}" bindgetphonenumber="wxPhoneLogin" wx:if="{{ agreeStatus }}">手机号授权登录</button>
|
|
4
|
+
<button bind:tap="wxPhoneLogin" style="{{ loginStyle }}" wx:else>手机号授权登录</button>
|
|
5
|
+
<radio-group bindchange="agreeChange" class="protocol_agree" wx:if="{{ showPrivacyPolicy }}">
|
|
6
|
+
<label>
|
|
7
|
+
<radio value="{{ agreeStatus }}" checked="{{ agreeStatus }}" color="{{ checkedColor }}" />
|
|
8
|
+
已阅读<text id="0" style="{{ agreementStyle }}" catch:tap="goInfo">《用户使用协议》</text> <text id="1" style="{{ agreementStyle }}" catch:tap="goInfo">《隐私权政策》</text>
|
|
9
|
+
</label>
|
|
10
|
+
</radio-group>
|
|
11
|
+
<slot name="after"></slot>
|
|
12
12
|
</view>
|
package/dist/styles/index.scss
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
// 圆角
|
|
2
|
-
$border-radius: 20rpx;
|
|
3
|
-
$border-mini-radius: 10rpx;
|
|
4
|
-
$border-max-radius: 50rpx;
|
|
5
|
-
// 字体大小
|
|
6
|
-
$font-size: 28rpx;
|
|
7
|
-
$font-size-mini: 24rpx;
|
|
8
|
-
// 颜色
|
|
9
|
-
$white-color: #fff;
|
|
10
|
-
$red-color: #EF4444;
|
|
11
|
-
$green-color: #16A34A;
|
|
12
|
-
$blue-color: #2563EB;
|
|
13
|
-
$black-color: #000;
|
|
14
|
-
// 字体颜色
|
|
15
|
-
$font-color: #333;
|
|
16
|
-
$font-color-grey: #666;
|
|
17
|
-
$font-color-grey-opacity: #999;
|
|
18
|
-
// 宽
|
|
19
|
-
$width: 100%;
|
|
20
|
-
// 层级
|
|
21
|
-
$z-index: 99999;
|
|
22
|
-
// 下拉线颜色
|
|
23
|
-
$border-line: #EBEBEB;
|
|
24
|
-
// 背景色
|
|
25
|
-
$background-color: #f6f6f6;
|
|
26
|
-
// 白色背景
|
|
1
|
+
// 圆角
|
|
2
|
+
$border-radius: 20rpx;
|
|
3
|
+
$border-mini-radius: 10rpx;
|
|
4
|
+
$border-max-radius: 50rpx;
|
|
5
|
+
// 字体大小
|
|
6
|
+
$font-size: 28rpx;
|
|
7
|
+
$font-size-mini: 24rpx;
|
|
8
|
+
// 颜色
|
|
9
|
+
$white-color: #fff;
|
|
10
|
+
$red-color: #EF4444;
|
|
11
|
+
$green-color: #16A34A;
|
|
12
|
+
$blue-color: #2563EB;
|
|
13
|
+
$black-color: #000;
|
|
14
|
+
// 字体颜色
|
|
15
|
+
$font-color: #333;
|
|
16
|
+
$font-color-grey: #666;
|
|
17
|
+
$font-color-grey-opacity: #999;
|
|
18
|
+
// 宽
|
|
19
|
+
$width: 100%;
|
|
20
|
+
// 层级
|
|
21
|
+
$z-index: 99999;
|
|
22
|
+
// 下拉线颜色
|
|
23
|
+
$border-line: #EBEBEB;
|
|
24
|
+
// 背景色
|
|
25
|
+
$background-color: #f6f6f6;
|
|
26
|
+
// 白色背景
|
|
27
27
|
$background-white-color: #fff;
|
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xyvcard-wechat-auth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"miniprogram": "dist",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "build"
|
|
10
|
-
},
|
|
11
8
|
"keywords": [],
|
|
12
9
|
"author": "",
|
|
13
10
|
"license": "",
|
|
@@ -18,5 +15,8 @@
|
|
|
18
15
|
"devDependencies": {
|
|
19
16
|
"xyvcard-wechat-build": "^0.0.2",
|
|
20
17
|
"typescript": "^5.8.3"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "build"
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|