fix: 微信登录补充保存username和role
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Agent
2026-04-04 07:35:21 +00:00
parent 756444ef2b
commit d12eea7693
10597 changed files with 817047 additions and 3 deletions

View File

@@ -0,0 +1,95 @@
module.exports = {
sS: function (newValue, oldValue, _ownerInstance, instance) {
if (newValue) {
instance.setStyle(newValue)
}
},
sA: function (newValue, oldValue, _ownerInstance, instance) {
if (newValue) {
handleStartAnimation(newValue, _ownerInstance, instance)
}
},
}
function handleStartAnimation(newValue, _ownerInstance, instance) {
var info = {}
info = JSON.parse(newValue)
var element = _ownerInstance.selectComponent('#' + info.id)
// playState leftTimes
var state = element.getState()
state.playState = info.playState
var startTime = null
state.leftTimes = info.options.iterations || 1
var currentStep = 0
var duration =
info.options.direction === 'alternate'
? info.options.duration * 2
: info.options.duration
function interpolateKeyframe(keyframes, usedTime) {
var index = 0
for (var i = 0; i < keyframes.length; i++) {
if (keyframes[i]._startTime + keyframes[i]._duration >= usedTime) {
index = i
break
}
}
var currentFrame = keyframes[index]
return {
style: currentFrame,
index: index,
}
}
function step() {
var isCancelled = state.playState === 'cancel'
var currentTime = Date.now()
if (startTime === null) {
startTime = currentTime
}
var elapsedTime = currentTime - startTime
if (isCancelled) {
var lastFrame = info.keyframes[info.keyframes.length - 1]
lastFrame.transition = 'none'
element.setStyle(lastFrame)
element.removeClass('__ct' + currentStep)
return
}
var res = interpolateKeyframe(info.keyframes, elapsedTime)
// currentStep removeClass
if (!element.hasClass('__ct' + res.index) && elapsedTime < duration) {
element.setStyle(res.style).addClass('__ct' + res.index)
}
if (currentStep !== res.index) {
element.removeClass('__ct' + currentStep)
currentStep = res.index
}
if (elapsedTime <= duration) {
instance.requestAnimationFrame(step)
} else {
// done
// element.callMethod('animationEnd')
if (state.leftTimes > 1) {
state.leftTimes--
startTime = null
instance.requestAnimationFrame(step)
return
} else if (state.leftTimes === -1) {
// handle infinite
startTime = null
instance.requestAnimationFrame(step)
}
}
}
instance.requestAnimationFrame(step)
}

209
node_modules/@dcloudio/uni-mp-vite/lib/uvue.css generated vendored Normal file
View File

@@ -0,0 +1,209 @@
page {
height: 100%;
display: flex;
flex-direction: column;
}
ad-draw,
ad-fullscreen-video,
ad-interactive,
ad-interstitial,
ad-rewarded-video,
ad,
animation-view,
audio,
block,
button,
camera,
canvas,
checkbox-group,
checkbox,
cover-image,
cover-view,
custom-tab-bar,
editor,
form,
icon,
image,
input,
label,
list-item,
list-view,
live-player,
live-pusher,
map,
match-media,
movable-area,
movable-view,
navigation-bar,
navigator,
open-data,
page-meta,
picker-view,
picker,
progress,
radio-group,
radio,
rich-text,
scroll-view,
slider,
sticky-header,
sticky-section,
swiper-item,
swiper,
switch,
template,
text,
textarea,
unicloud-db,
video,
view,
web-view {
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: stretch;
justify-content: flex-start;
min-height: 0px;
min-width: 0px;
border-width: medium;
}
ad-draw[hidden],
ad-fullscreen-video[hidden],
ad-interactive[hidden],
ad-interstitial[hidden],
ad-rewarded-video[hidden],
ad[hidden],
animation-view[hidden],
audio[hidden],
block[hidden],
button[hidden],
camera[hidden],
canvas[hidden],
checkbox-group[hidden],
checkbox[hidden],
cover-image[hidden],
cover-view[hidden],
custom-tab-bar[hidden],
editor[hidden],
form[hidden],
icon[hidden],
image[hidden],
input[hidden],
label[hidden],
list-item[hidden],
list-view[hidden],
live-player[hidden],
live-pusher[hidden],
map[hidden],
match-media[hidden],
movable-area[hidden],
movable-view[hidden],
navigation-bar[hidden],
navigator[hidden],
open-data[hidden],
page-meta[hidden],
picker-view[hidden],
picker[hidden],
progress[hidden],
radio-group[hidden],
radio[hidden],
rich-text[hidden],
scroll-view[hidden],
slider[hidden],
sticky-header[hidden],
sticky-section[hidden],
swiper-item[hidden],
swiper[hidden],
switch[hidden],
template[hidden],
text[hidden],
textarea[hidden],
unicloud-db[hidden],
video[hidden],
view[hidden],
web-view[hidden] {
display: none !important;
}
/* 与开发者元素接触的非滚动容器 */
view,
label,
swiper,
swiper-item,
movable-area,
movable-view,
cover-view,
list-item,
navigator,
radio-group,
checkbox-group {
overflow: hidden;
}
scroll-view {
width: auto;
}
swiper-item {
position: absolute;
}
button {
margin: 0;
}
slider {
margin: 0px;
padding: 5px 0px;
}
text {
display: inline;
}
text[hidden] {
display: none !important;
}
text,
textarea,
label {
line-height: 1.2;
overflow: hidden;
flex-basis: auto;
letter-spacing: 0;
}
rich-text {
line-height: 1.5;
}
progress {
flex-direction: row;
align-items: center;
}
radio,
checkbox {
flex-direction: row;
align-items: center;
}
/*
* 目前仅适配微信小程序,其他小程序平台需要额外适配
*/
radio .wx-radio-wrapper{
display: flex;
flex-direction: inherit;
align-content: inherit;
justify-content: inherit;
align-items: inherit;
flex: 1;
}