feat:小程序压住问题
This commit is contained in:
@@ -1,46 +1,23 @@
|
||||
import App from './App'
|
||||
import messages from './locale/index'
|
||||
import uviewPlus from '@/uni_modules/uview-plus'
|
||||
import QiaobaoAssistant from '@/components/qiaobao-assistant/qiaobao-assistant.vue'
|
||||
// #ifndef MP-WEIXIN
|
||||
import { createSSRApp, h } from 'vue'
|
||||
import { createI18n } from 'vue-i18n'
|
||||
|
||||
// #ifdef H5
|
||||
import VueClipboard from 'vue-clipboard2'
|
||||
// #endif
|
||||
|
||||
let i18nConfig = {
|
||||
const i18nConfig = {
|
||||
locale: uni.getLocale(),
|
||||
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)
|
||||
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
app.component('qiaobao-assistant', QiaobaoAssistant)
|
||||
|
||||
// #ifdef H5
|
||||
app.component('AsyncError', {
|
||||
props: ['error'],
|
||||
@@ -57,14 +34,13 @@ export function createApp() {
|
||||
}, `页面加载失败${detail},点击屏幕重试`)
|
||||
}
|
||||
})
|
||||
// #endif
|
||||
// #ifndef MP-WEIXIN
|
||||
app.use(VueClipboard);
|
||||
// #endif
|
||||
|
||||
app.use(i18n)
|
||||
app.use(uviewPlus)
|
||||
|
||||
return {
|
||||
app
|
||||
}
|
||||
}
|
||||
// #endif
|
||||
|
||||
+4
-1
@@ -182,7 +182,10 @@
|
||||
}
|
||||
},
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
"usingComponents" : true,
|
||||
"optimization" : {
|
||||
"subPackages" : true
|
||||
}
|
||||
},
|
||||
"mp-baidu" : {
|
||||
"usingComponents" : true
|
||||
|
||||
+5
-3
@@ -5,7 +5,9 @@
|
||||
"custom": {
|
||||
"^u--(.*)": "@/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": [
|
||||
@@ -748,7 +750,7 @@
|
||||
"preloadRule": {
|
||||
"pages/home/home": {
|
||||
"network": "all",
|
||||
"packages": ["pages/other_package"]
|
||||
"packages": ["pages/other_package", "pages/login_package"]
|
||||
},
|
||||
"pages/sort/sort": {
|
||||
"network": "all",
|
||||
@@ -760,7 +762,7 @@
|
||||
},
|
||||
"pages/mine/mine": {
|
||||
"network": "all",
|
||||
"packages": ["pages/mine_package"]
|
||||
"packages": ["pages/mine_package", "pages/login_package"]
|
||||
}
|
||||
},
|
||||
"condition": {
|
||||
|
||||
@@ -37,9 +37,11 @@
|
||||
|
||||
<view class="bottom_item" @click.stop="onTip(vIndex)">
|
||||
<view class="bottom_item_lock">{{ item.lockAmount || 0 }}</view>
|
||||
<view class="bottom_item_title">{{ item.categoty === "raffle" ? "不可用次数" : "不可用余额" }}
|
||||
<up-image src="/pages/rwa_package/static/tips.png" width="12" height="12" bgColor="#fff"
|
||||
style="margin-left: 8rpx; margin-top: 4rpx" v-if="item.categoty == 'balance'" />
|
||||
<view class="bottom_item_title bottom_item_title_right">
|
||||
<text class="title_text">{{ item.categoty === "raffle" ? "不可用次数" : "不可用余额" }}</text>
|
||||
<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>
|
||||
@@ -79,7 +81,8 @@
|
||||
<input class="form_input" v-model="collectForm.password" placeholder="请输入支付密码"
|
||||
:type="collectForm.showPassword ? 'text' : 'password'" />
|
||||
<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" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -97,7 +100,7 @@
|
||||
</view>
|
||||
</up-popup>
|
||||
<qiaobao-assistant page-key="pages/mine_package/mine_purse/mine_purse" title="钱包与账户" />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -207,7 +210,7 @@ export default {
|
||||
this.availableAmount = row ? (row.curAmount || 0) : 0;
|
||||
this.collectSuccess = false;
|
||||
this.collectShow = true;
|
||||
}else if (type === "deduction") {
|
||||
} else if (type === "deduction") {
|
||||
// 兑换
|
||||
uni.navigateTo({
|
||||
url: "/pages/rwa_package/shop/points-shop",
|
||||
@@ -312,7 +315,7 @@ export default {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.u-image__image{
|
||||
.u-image__image {
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
}
|
||||
@@ -377,8 +380,25 @@ export default {
|
||||
color: #999999;
|
||||
display: flex;
|
||||
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) {
|
||||
.u-image__image{
|
||||
.u-image__image {
|
||||
margin-top: 8rpx;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ export default defineConfig({
|
||||
},
|
||||
assetsInlineLimit: 4096,
|
||||
cssCodeSplit: true,
|
||||
chunkSizeWarningLimit: 2000,
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
|
||||
Reference in New Issue
Block a user