feat:小程序压住问题
This commit is contained in:
@@ -1,46 +1,23 @@
|
|||||||
import App from './App'
|
import App from './App'
|
||||||
import messages from './locale/index'
|
import messages from './locale/index'
|
||||||
import uviewPlus from '@/uni_modules/uview-plus'
|
import uviewPlus from '@/uni_modules/uview-plus'
|
||||||
import QiaobaoAssistant from '@/components/qiaobao-assistant/qiaobao-assistant.vue'
|
import { createSSRApp, h } from 'vue'
|
||||||
// #ifndef MP-WEIXIN
|
import { createI18n } from 'vue-i18n'
|
||||||
|
|
||||||
|
// #ifdef H5
|
||||||
import VueClipboard from 'vue-clipboard2'
|
import VueClipboard from 'vue-clipboard2'
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
let i18nConfig = {
|
const i18nConfig = {
|
||||||
locale: uni.getLocale(),
|
locale: uni.getLocale(),
|
||||||
messages
|
messages
|
||||||
}
|
}
|
||||||
|
|
||||||
// #ifndef VUE3
|
|
||||||
import Vue from 'vue'
|
|
||||||
import VueI18n from 'vue-i18n'
|
|
||||||
|
|
||||||
import '@/uni_modules/uview-plus/theme.scss' // 引入uView的样式
|
|
||||||
|
|
||||||
// #ifndef MP-WEIXIN
|
|
||||||
Vue.use(VueClipboard);
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
Vue.use(uviewPlus)
|
|
||||||
Vue.use(VueI18n)
|
|
||||||
Vue.component('qiaobao-assistant', QiaobaoAssistant)
|
|
||||||
const i18n = new VueI18n(i18nConfig)
|
|
||||||
Vue.config.productionTip = false
|
|
||||||
App.mpType = 'app'
|
|
||||||
const app = new Vue({
|
|
||||||
i18n,
|
|
||||||
...App
|
|
||||||
})
|
|
||||||
app.$mount()
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// #ifdef VUE3
|
|
||||||
import { createSSRApp } from 'vue'
|
|
||||||
import { createI18n } from 'vue-i18n'
|
|
||||||
const i18n = createI18n(i18nConfig)
|
const i18n = createI18n(i18nConfig)
|
||||||
|
|
||||||
export function createApp() {
|
export function createApp() {
|
||||||
const app = createSSRApp(App)
|
const app = createSSRApp(App)
|
||||||
app.component('qiaobao-assistant', QiaobaoAssistant)
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
app.component('AsyncError', {
|
app.component('AsyncError', {
|
||||||
props: ['error'],
|
props: ['error'],
|
||||||
@@ -57,14 +34,13 @@ export function createApp() {
|
|||||||
}, `页面加载失败${detail},点击屏幕重试`)
|
}, `页面加载失败${detail},点击屏幕重试`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// #endif
|
|
||||||
// #ifndef MP-WEIXIN
|
|
||||||
app.use(VueClipboard);
|
app.use(VueClipboard);
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
app.use(i18n)
|
app.use(i18n)
|
||||||
app.use(uviewPlus)
|
app.use(uviewPlus)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
app
|
app
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// #endif
|
|
||||||
|
|||||||
+4
-1
@@ -182,7 +182,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mp-alipay" : {
|
"mp-alipay" : {
|
||||||
"usingComponents" : true
|
"usingComponents" : true,
|
||||||
|
"optimization" : {
|
||||||
|
"subPackages" : true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"mp-baidu" : {
|
"mp-baidu" : {
|
||||||
"usingComponents" : true
|
"usingComponents" : true
|
||||||
|
|||||||
+5
-3
@@ -5,7 +5,9 @@
|
|||||||
"custom": {
|
"custom": {
|
||||||
"^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
|
"^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
|
||||||
"^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
|
"^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
|
||||||
"^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue"
|
"^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
|
||||||
|
"^qiaobao-assistant": "@/components/qiaobao-assistant/qiaobao-assistant.vue",
|
||||||
|
"^TopSafe": "@/components/common/top-safe.nvue"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pages": [
|
"pages": [
|
||||||
@@ -748,7 +750,7 @@
|
|||||||
"preloadRule": {
|
"preloadRule": {
|
||||||
"pages/home/home": {
|
"pages/home/home": {
|
||||||
"network": "all",
|
"network": "all",
|
||||||
"packages": ["pages/other_package"]
|
"packages": ["pages/other_package", "pages/login_package"]
|
||||||
},
|
},
|
||||||
"pages/sort/sort": {
|
"pages/sort/sort": {
|
||||||
"network": "all",
|
"network": "all",
|
||||||
@@ -760,7 +762,7 @@
|
|||||||
},
|
},
|
||||||
"pages/mine/mine": {
|
"pages/mine/mine": {
|
||||||
"network": "all",
|
"network": "all",
|
||||||
"packages": ["pages/mine_package"]
|
"packages": ["pages/mine_package", "pages/login_package"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"condition": {
|
"condition": {
|
||||||
|
|||||||
@@ -37,9 +37,11 @@
|
|||||||
|
|
||||||
<view class="bottom_item" @click.stop="onTip(vIndex)">
|
<view class="bottom_item" @click.stop="onTip(vIndex)">
|
||||||
<view class="bottom_item_lock">{{ item.lockAmount || 0 }}</view>
|
<view class="bottom_item_lock">{{ item.lockAmount || 0 }}</view>
|
||||||
<view class="bottom_item_title">{{ item.categoty === "raffle" ? "不可用次数" : "不可用余额" }}
|
<view class="bottom_item_title bottom_item_title_right">
|
||||||
<up-image src="/pages/rwa_package/static/tips.png" width="12" height="12" bgColor="#fff"
|
<text class="title_text">{{ item.categoty === "raffle" ? "不可用次数" : "不可用余额" }}</text>
|
||||||
style="margin-left: 8rpx; margin-top: 4rpx" v-if="item.categoty == 'balance'" />
|
<view class="tips_icon_box" v-if="item.categoty == 'balance' || item.categoty == 'raffle'">
|
||||||
|
<up-image src="/pages/rwa_package/static/tips.png" width="12" height="12" bgColor="#fff" />
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -79,7 +81,8 @@
|
|||||||
<input class="form_input" v-model="collectForm.password" placeholder="请输入支付密码"
|
<input class="form_input" v-model="collectForm.password" placeholder="请输入支付密码"
|
||||||
:type="collectForm.showPassword ? 'text' : 'password'" />
|
:type="collectForm.showPassword ? 'text' : 'password'" />
|
||||||
<view class="form_eye" @click="togglePassword">
|
<view class="form_eye" @click="togglePassword">
|
||||||
<up-image :src="collectForm.showPassword ? '/pages/login_package/static/login/show.png' : '/pages/login_package/static/login/hidden.png'"
|
<up-image
|
||||||
|
:src="collectForm.showPassword ? '/pages/login_package/static/login/show.png' : '/pages/login_package/static/login/hidden.png'"
|
||||||
width="24" height="24" />
|
width="24" height="24" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -377,6 +380,23 @@ export default {
|
|||||||
color: #999999;
|
color: #999999;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
&.bottom_item_title_right {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title_text {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tips_icon_box {
|
||||||
|
margin-left: 8rpx;
|
||||||
|
flex-shrink: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
::v-deep(.bottom_item_tip_title) {
|
::v-deep(.bottom_item_tip_title) {
|
||||||
.u-image__image {
|
.u-image__image {
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
assetsInlineLimit: 4096,
|
assetsInlineLimit: 4096,
|
||||||
cssCodeSplit: true,
|
cssCodeSplit: true,
|
||||||
|
chunkSizeWarningLimit: 2000,
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 5173,
|
port: 5173,
|
||||||
|
|||||||
Reference in New Issue
Block a user