@cloudbase/lowcode-builder 1.10.5 → 1.10.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/lowcode-builder",
3
- "version": "1.10.5",
3
+ "version": "1.10.7",
4
4
  "description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
5
5
  "author": "yhsunshining@gmail.com",
6
6
  "homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
@@ -80,6 +80,7 @@ Component({
80
80
  avatarUrl: '',
81
81
  avatarRealUrl: '',
82
82
  nickName: '',
83
+ publicPage: []
83
84
  },
84
85
  methods: {
85
86
  async getPhoneCodeNumber(e) {
@@ -127,6 +128,7 @@ Component({
127
128
  let settingData = {
128
129
  logo: app.__internal__.resolveStaticResourceUrl(config.logo) ||
129
130
  'https://sso-1303824488.cos.ap-shanghai.myqcloud.com/logo.svg',
131
+ name: config.name,
130
132
  agreement: {
131
133
  items: [],
132
134
  enable: false,
@@ -167,6 +169,7 @@ Component({
167
169
  avatarRealUrl,
168
170
  avatarUrl,
169
171
  nickName,
172
+ publicPage: (app.__internal__?.getConfig() || {})?.publicPage || [],
170
173
  });
171
174
 
172
175
  if (smsDelay > 0) {
@@ -538,7 +541,20 @@ Component({
538
541
  }
539
542
 
540
543
  wx.hideLoading()
541
- }
544
+ },
545
+ loginCancel() {
546
+ if (this.data.publicPage?.length <= 0) return;
547
+
548
+ const toPage = this.data.publicPage[0]
549
+ const toPagePath = toPage.split('/')
550
+ const pageId = toPagePath.length > 1 ? toPagePath[1] : toPagePath[0]
551
+ const packageName = toPagePath.length > 1 ? toPagePath[0] : undefined
552
+
553
+ app.redirectTo({
554
+ pageId,
555
+ packageName,
556
+ })
557
+ }
542
558
  },
543
559
  observers: {
544
560
  'settingData,agreement': function (settingData, agreement) {
@@ -2,8 +2,11 @@
2
2
  <view wx:if="{{!initing && !error}}" class="wd-mp-root" data-weui-theme="light">
3
3
  <view style="width:90%;margin:0px auto;display:flex;flex-direction:column;max-width:50rem;" class="login-class">
4
4
  <block wx:if="{{!baseInfoShow}}">
5
- <view style="margin:80px 0px 60px;">
5
+ <view style="margin:60px 0px 40px; display: flex; flex-direction: column; align-items: center;">
6
6
  <image style="margin:0px auto;display:flex;justify-content:center;width: 80px;height: 80px;" class="weda-ui weda-image" mode="aspectFit" src="{{settingData.logo}}" />
7
+ <view wx:if="{{ !!settingData.name }}" style="font-size: 16px;">
8
+ {{ settingData.name }}
9
+ </view>
7
10
  </view>
8
11
  <view wx:if="{{currentLoginType === 'password'}}">
9
12
  <form bindsubmit="loginByPassword">
@@ -42,6 +45,9 @@
42
45
  登录
43
46
  </button>
44
47
  </view>
48
+ <view wx:if="{{publicPage && publicPage.length > 0}}" class="weda-ui weda-button weui-btn weui-btn_default wd-event-tap" style="margin-top: 30rpx; width:100%; background: transparent;font-size: 14px;" size="md" bind:tap="loginCancel">
49
+ 暂不登录
50
+ </view>
45
51
  <view wx:if="{{currentLoginList.length >= 1}}" class="login-method">
46
52
  <view class="divider">
47
53
  <view class="divider-line"></view>
@@ -110,4 +116,4 @@
110
116
  </view>
111
117
  <wd-info type="{{initing? 'loading': 'auth'}}" wx:if="{{initing || error}}" message="{{loading?'加载配置中...':' '}}" error="{{error}}" />
112
118
  <captcha-dialog />
113
- </page-meta>
119
+ </page-meta>