充值页面配置
2
main.js
|
|
@ -29,7 +29,7 @@ export function createApp() {
|
||||||
app.config.globalProperties.$system = plus.os.name;
|
app.config.globalProperties.$system = plus.os.name;
|
||||||
// #endif
|
// #endif
|
||||||
app.config.globalProperties.$systemInfo = systemInfo
|
app.config.globalProperties.$systemInfo = systemInfo
|
||||||
uni.setStorageSync('version', '1.0.6.sp12')
|
uni.setStorageSync('version', '1.0.6.sp13')
|
||||||
app.config.globalProperties.$version = uni.getStorageSync('version')
|
app.config.globalProperties.$version = uni.getStorageSync('version')
|
||||||
app.use(globalMethods);
|
app.use(globalMethods);
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page-container">
|
<view class="page-container">
|
||||||
<uni-icons class="back" type="left" size="20" @click="open" color="#fff"></uni-icons>
|
<uni-icons class="back" type="left" size="20" @click="open" color="#fff"></uni-icons>
|
||||||
<view>
|
<view v-if="data.swiperlist.length==0">
|
||||||
<image :src="data.banner" style="width: 100%;height: 244px;"></image>
|
<image :src="data.banner" style="width: 100%;height: 244px;"></image>
|
||||||
</view>
|
</view>
|
||||||
|
<swiper v-else class="swiper" circular style="width: 100%;height: 244px;" autoplay>
|
||||||
|
<swiper-item style="width: 100%;height: 244px;" v-for="(item,index) in data.swiperlist" :key="index">
|
||||||
|
<image :src="item" style="width: 100%;height: 244px;"></image>
|
||||||
|
</swiper-item>
|
||||||
|
</swiper>
|
||||||
<exchange v-if="data.tradeCoupon" />
|
<exchange v-if="data.tradeCoupon" />
|
||||||
<!-- <view style="margin-top:-90px;position: relative;">
|
<!-- <view style="margin-top:-90px;position: relative;">
|
||||||
<customTab :isHuise="shouldBeTrue(data.goods)" />
|
<customTab :isHuise="shouldBeTrue(data.goods)" />
|
||||||
|
|
@ -344,6 +349,7 @@
|
||||||
]
|
]
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
|
swiperlist:[],
|
||||||
scrollLeft: 0,
|
scrollLeft: 0,
|
||||||
active_id: 0,
|
active_id: 0,
|
||||||
active_ids: 0,
|
active_ids: 0,
|
||||||
|
|
@ -489,47 +495,20 @@
|
||||||
data.source = option.source
|
data.source = option.source
|
||||||
}
|
}
|
||||||
const config = uni.getStorageSync('config').config
|
const config = uni.getStorageSync('config').config
|
||||||
const themeConfig = config?.['client.uniapp.theme']
|
const themeConfig = config?.['client.uniapp.theme.payment']
|
||||||
|
try {
|
||||||
data.tradeCoupon = config?.['client.trade_coupon'] === true ? true : false
|
data.tradeCoupon = config?.['client.trade_coupon'] === true ? true : false
|
||||||
if (themeConfig?.enable) {
|
} catch (error) {
|
||||||
if (themeConfig?.theme == '0214') {
|
//TODO handle the exception
|
||||||
data.banner = '/static/image/recharge/214/bannar.png'
|
|
||||||
// })
|
|
||||||
} else if (themeConfig?.theme == '0217') {
|
|
||||||
data.banner = '/static/image/recharge/chunjie/bannar.png'
|
|
||||||
} else if (themeConfig?.theme == '0405') {
|
|
||||||
data.banner = '/static/image/recharge/qmj/bannar.png'
|
|
||||||
data.benefitList.forEach(item => {
|
|
||||||
item.url = item.url.replace('/static/image/recharge/',
|
|
||||||
'/static/image/recharge/qmj/')
|
|
||||||
})
|
|
||||||
} else if (themeConfig?.theme == '0401') {
|
|
||||||
data.banner = '/static/image/recharge/yrj/bannar.png'
|
|
||||||
} else if (themeConfig?.theme == '0501') {
|
|
||||||
data.banner = '/static/image/recharge/51/bannar.png'
|
|
||||||
data.benefitList.forEach(item => {
|
|
||||||
item.url = item.url.replace('/static/image/recharge/',
|
|
||||||
'/static/image/recharge/51/')
|
|
||||||
})
|
|
||||||
} else if (themeConfig?.theme == '0520') {
|
|
||||||
data.banner = '/static/image/recharge/520/bannar.png'
|
|
||||||
data.benefitList.forEach(item => {
|
|
||||||
item.url = item.url.replace('/static/image/recharge/',
|
|
||||||
'/static/image/recharge/520/')
|
|
||||||
})
|
|
||||||
} else if (themeConfig?.theme == '0601') {
|
|
||||||
data.banner = '/static/image/recharge/61/bannar.png'
|
|
||||||
data.benefitList.forEach(item => {
|
|
||||||
item.url = item.url.replace('/static/image/recharge/',
|
|
||||||
'/static/image/recharge/51/')
|
|
||||||
})
|
|
||||||
} else if (themeConfig?.theme == '0606') {
|
|
||||||
data.banner = '/static/image/recharge/66/bannar.png'
|
|
||||||
// data.benefitList.forEach(item => {
|
|
||||||
// item.url = item.url.replace('/static/image/recharge/',
|
|
||||||
// '/static/image/recharge/66/')
|
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
|
if (themeConfig?.enable) {
|
||||||
|
data.swiperlist = themeConfig.banners || []
|
||||||
|
data.benefitList = themeConfig.icons.map(item => {
|
||||||
|
return {
|
||||||
|
url: item.icon,
|
||||||
|
name: item.text
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
let pages = getCurrentPages();
|
let pages = getCurrentPages();
|
||||||
let currentPage = pages[pages.length - 1];
|
let currentPage = pages[pages.length - 1];
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 367 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 328 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 524 KiB |
|
Before Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 206 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |