提交 3f511fb6 编写于 作者: A Anne_LXM

feat: 兼容uni-app-x web端

上级 323b550f
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<text class="list-item-text">账号密码登录</text> <text class="list-item-text">账号密码登录</text>
<uni-id-pages-x-icons type="right-arrow" color="#999" /> <uni-id-pages-x-icons type="right-arrow" color="#999" />
</view> </view>
<!-- #ifdef uniVersion > 3.99 || uniVersion == 3.99 --> <!-- #ifdef APP && (uniVersion > 3.99 || uniVersion == 3.99) -->
<view class="list-item" @click="toLogin('univerify')" v-if="hasUniverify"> <view class="list-item" @click="toLogin('univerify')" v-if="hasUniverify">
<text class="list-item-text">一键登录</text> <text class="list-item-text">一键登录</text>
<uni-id-pages-x-icons type="right-arrow" color="#999" /> <uni-id-pages-x-icons type="right-arrow" color="#999" />
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
}, },
onLoad() { }, onLoad() { },
methods: { methods: {
toLogin(loginType : string) { toLogin(loginType : string) {
uni.navigateTo({ uni.navigateTo({
url: "/uni_modules/uni-id-pages-x/pages/login/login?type=" + loginType url: "/uni_modules/uni-id-pages-x/pages/login/login?type=" + loginType
}) })
......
...@@ -139,8 +139,8 @@ ...@@ -139,8 +139,8 @@
// console.log('res', res); // console.log('res', res);
let tempFiles = res.tempFiles as UTSJSONObject[]; let tempFiles = res.tempFiles as UTSJSONObject[];
let tempFile = tempFiles[0]; let tempFile = tempFiles[0];
let tempFileName = tempFile['name'] as string let tempFileName = tempFile['name'] as string | null
let tempFilePath = tempFile['path'] as string let tempFilePath = tempFile['path'] as string | null
if (tempFileName == null) { if (tempFileName == null) {
tempFileName = "" tempFileName = ""
} }
......
...@@ -125,12 +125,8 @@ ...@@ -125,12 +125,8 @@
} }
} }
}, },
codeChange(i : number, e : InputEvent) {
// console.log(i, e);
},
onFocus(i : number) { onFocus(i : number) {
if (this.smsCodeList[i].length == 0) { if (this.smsCodeList[i].length == 0) {
// console.log('i', i);
this.smsCodeList[i] = '\u200b' this.smsCodeList[i] = '\u200b'
} }
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册