| xqd
@@ -46,19 +46,16 @@
|
|
|
<!-- 按钮 -->
|
|
|
<view style="height: 30vh;padding: 0 80rpx;">
|
|
|
<!-- 登录 -->
|
|
|
- <u-button @click="startReg()" type="primary" shape="circle" :loading="isRotate">登录</u-button>
|
|
|
-
|
|
|
+ <u-button @click="startReg()" type="primary" shape="circle" :loading="isRotate" :custom-style="customStyle">登录</u-button>
|
|
|
+
|
|
|
<view class="flex align-center justify-between" style="margin: 70rpx 0 100rpx 0;">
|
|
|
- <button style="margin-top: 20rpx;" :class="['buttonBorder',!istrue?'dlbutton':'dlbutton_loading']" open-type="getUserInfo"
|
|
|
- @getuserinfo="getinfo">
|
|
|
- <view :class="istrue?'rotate_loop':''">
|
|
|
- <text v-if="istrue" class="cuIcon cuIcon-loading1 "></text>
|
|
|
- <view v-if="!istrue">
|
|
|
- <slot name="text">微信授权一键登录</slot>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </button>
|
|
|
- <u-button @click="toindex()" shape="circle" style="width: 45%;font-size: 30rpx;" hair-line="false">暂不登录</u-button>
|
|
|
+ <button :class="" open-type="getUserInfo" style="box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.08);border-radius: 60rpx;border: 0.3rpx solid #dedede;"
|
|
|
+ @getuserinfo="getinfo">
|
|
|
+ <view :class="rotate_loop" style="font-size: 30rpx;color: #84BB43;">
|
|
|
+ <slot name="text">微信授权一键登录</slot>
|
|
|
+ </view>
|
|
|
+ </button>
|
|
|
+ <button @click="toindex()" style="width: 45%;font-size: 30rpx;border-radius: 60rpx;box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.08);border: 0.3rpx solid #dedede;color: #7a7a7a;" :custom-style="customStyle" :class="buttonBorder">暂不登录</button>
|
|
|
</view>
|
|
|
<!-- <view class="flex align-center justify-between" style="margin: 70rpx 0 100rpx 0;">
|
|
|
<u-button open-type="getUserInfo" @getuserInfo="getinfo" shape="circle" style="width: 50%;font-size: 30rpx;color:#84BB43;" :custom-style="customStyle"
|
| xqd
@@ -105,9 +102,7 @@
|
|
|
return {
|
|
|
//一键登录按钮样式
|
|
|
customStyle: {
|
|
|
- color: '#84BB43',
|
|
|
boxShadow: '0px 0px 16px 0px rgba(0, 0, 0, 0.08)',
|
|
|
- border: 'none'
|
|
|
},
|
|
|
//logo图片 base64
|
|
|
phoneData: '', // 用户/电话
|
| xqd
@@ -343,7 +338,7 @@
|
|
|
getinfo: async function(e) {
|
|
|
let that = this;
|
|
|
uni.login({
|
|
|
- success:(res) =>{
|
|
|
+ success: (res) => {
|
|
|
console.log(res.code)
|
|
|
}
|
|
|
});
|