xyvcard-wechat-auth 0.0.36 → 0.0.38
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/dist/components/common/auth-btn/double-btn/index.wxss +1 -1
- package/dist/components/common/auth-btn/single-btn/index.wxss +1 -1
- package/dist/components/common/auth-btn/three-btn/index.json +3 -3
- package/dist/components/common/auth-btn/three-btn/index.wxml +5 -5
- package/dist/components/common/auth-btn/three-btn/index.wxss +1 -1
- package/dist/components/common/auth-form/upload-file/index.json +6 -6
- package/dist/components/common/auth-form/upload-file/index.wxml +8 -8
- package/dist/components/common/auth-form/upload-image/index.js +6 -1
- package/dist/components/common/auth-form/upload-image/index.json +3 -3
- package/dist/components/common/auth-form/upload-image/index.wxml +8 -8
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.auth-btn-box{display:flex;align-items:center;justify-content:space-between;width:100%}.auth-btn-box .btn-left{width:33%;margin-right:3%;height:
|
|
1
|
+
.auth-btn-box{display:flex;align-items:center;justify-content:space-between;width:100%}.auth-btn-box .btn-left{width:33%;margin-right:3%;height:80rpx;font-size:30rpx;line-height:80rpx}.auth-btn-box .btn-left::after{border:none}.auth-btn-box .btn-right{height:80rpx;font-size:30rpx;width:64%;line-height:80rpx}.auth-btn-box .btn-right::after{border:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.auth-btn{font-size:32rpx;width:100% !important}
|
|
1
|
+
.auth-btn{font-size:32rpx;width:100% !important}.auth-btn::after{border:none}
|
|
@@ -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="auth-btn-box">
|
|
2
|
-
<button class="btn-left" style="background: {{ leftBgColor }}; color: {{ leftColor }}; border-radius: {{ leftRadius }}; border: {{ leftBorder }};" bind:tap="handleLeft">{{ leftText }}</button>
|
|
3
|
-
<button class="btn-left" style="background: {{ centerBgColor }}; color: {{ centerColor }}; border-radius: {{ centerRadius }}; border: {{ centerBorder }};" bind:tap="handleCenter">{{ centerText }}</button>
|
|
4
|
-
<button class="btn-right" style="background: {{ rightBgColor }}; color: {{ rightColor }}; border-radius: {{ rightRadius }}; border: {{ rightBorder }};" bind:tap="handleRight">{{ rightText }}</button>
|
|
5
|
-
</view>
|
|
1
|
+
<view class="auth-btn-box">
|
|
2
|
+
<button class="btn-left" style="background: {{ leftBgColor }}; color: {{ leftColor }}; border-radius: {{ leftRadius }}; border: {{ leftBorder }};" bind:tap="handleLeft">{{ leftText }}</button>
|
|
3
|
+
<button class="btn-left" style="background: {{ centerBgColor }}; color: {{ centerColor }}; border-radius: {{ centerRadius }}; border: {{ centerBorder }};" bind:tap="handleCenter">{{ centerText }}</button>
|
|
4
|
+
<button class="btn-right" style="background: {{ rightBgColor }}; color: {{ rightColor }}; border-radius: {{ rightRadius }}; border: {{ rightBorder }};" bind:tap="handleRight">{{ rightText }}</button>
|
|
5
|
+
</view>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.auth-btn-box{display:flex;align-items:center;justify-content:space-between;width:100%}.auth-btn-box .btn-left{width:28%;margin-right:3%;height:
|
|
1
|
+
.auth-btn-box{display:flex;align-items:center;justify-content:space-between;width:100%}.auth-btn-box .btn-left{width:28%;margin-right:3%;height:80rpx;font-size:30rpx;line-height:80rpx}.auth-btn-box .btn-left::after{border:none}.auth-btn-box .btn-right{height:80rpx;font-size:30rpx;width:44%;line-height:80rpx}.auth-btn-box .btn-right::after{border:none}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {
|
|
4
|
-
"van-progress": "@vant/weapp/progress/index",
|
|
5
|
-
"auth-popup": "../../auth-popup/index"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {
|
|
4
|
+
"van-progress": "@vant/weapp/progress/index",
|
|
5
|
+
"auth-popup": "../../auth-popup/index"
|
|
6
|
+
}
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<button class="file-btn" bindtap="chooseFileModel" style="{{ fileStyle }}">上传附件</button>
|
|
2
|
-
|
|
3
|
-
<van-progress wx:if="{{ percentage < 100 }}" percentage="{{ percentage }}" />
|
|
4
|
-
|
|
5
|
-
<auth-popup show="{{ closeModel }}" titleShow="{{ false }}">
|
|
6
|
-
<view class="item" bind:tap="handleUploadFile">微信</view>
|
|
7
|
-
<view class="item" bind:tap="handleAlbumImg">相册</view>
|
|
8
|
-
</auth-popup>
|
|
1
|
+
<button class="file-btn" bindtap="chooseFileModel" style="{{ fileStyle }}">上传附件</button>
|
|
2
|
+
|
|
3
|
+
<van-progress wx:if="{{ percentage < 100 }}" percentage="{{ percentage }}" />
|
|
4
|
+
|
|
5
|
+
<auth-popup show="{{ closeModel }}" titleShow="{{ false }}">
|
|
6
|
+
<view class="item" bind:tap="handleUploadFile">微信</view>
|
|
7
|
+
<view class="item" bind:tap="handleAlbumImg">相册</view>
|
|
8
|
+
</auth-popup>
|
|
@@ -13,6 +13,11 @@ Component({
|
|
|
13
13
|
limit: {
|
|
14
14
|
type: Number,
|
|
15
15
|
value: 6
|
|
16
|
+
},
|
|
17
|
+
// 删除按钮图片路径
|
|
18
|
+
delIconUrl: {
|
|
19
|
+
type: String,
|
|
20
|
+
value: "/icon_image/close_circle2x.png"
|
|
16
21
|
}
|
|
17
22
|
},
|
|
18
23
|
/**
|
|
@@ -72,7 +77,7 @@ Component({
|
|
|
72
77
|
name: "file",
|
|
73
78
|
success(response) {
|
|
74
79
|
if (response.statusCode === 200) {
|
|
75
|
-
const src = JSON.parse(response.data)
|
|
80
|
+
const src = JSON.parse(response.data);
|
|
76
81
|
that.data.imageArray.push(src);
|
|
77
82
|
that.setData({
|
|
78
83
|
imageArray: that.data.imageArray
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<view class="upload-box">
|
|
2
|
-
<view class="upload-image" wx:for="{{ imageArray }}" wx:key="index">
|
|
3
|
-
<image src="{{ baseUrl + item }}" class="plus-image"></image>
|
|
4
|
-
<image src="{{ resourceUrl }}
|
|
5
|
-
</view>
|
|
6
|
-
<view class="upload-cover" bind:tap="handleUploadImage">
|
|
7
|
-
<image src="{{ resourceUrl + coverUpload }}" class="plus-image"></image>
|
|
8
|
-
</view>
|
|
1
|
+
<view class="upload-box">
|
|
2
|
+
<view class="upload-image" wx:for="{{ imageArray }}" wx:key="index">
|
|
3
|
+
<image src="{{ baseUrl + item.fileSrc }}" class="plus-image"></image>
|
|
4
|
+
<image src="{{ resourceUrl + delIconUrl }}" class="delete-image" data-index="{{ index }}" bind:tap="handleDel"></image>
|
|
5
|
+
</view>
|
|
6
|
+
<view class="upload-cover" bind:tap="handleUploadImage">
|
|
7
|
+
<image src="{{ resourceUrl + coverUpload }}" class="plus-image"></image>
|
|
8
|
+
</view>
|
|
9
9
|
</view>
|