mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2025-12-12 01:47:08 +00:00
fix uni-app
This commit is contained in:
parent
231f476a6f
commit
e879cf0b7a
@ -122,6 +122,9 @@
|
|||||||
<diy-form-file ref="diyFormFileRef" :component="component" :global="data.global" :index="index" />
|
<diy-form-file ref="diyFormFileRef" :component="component" :global="data.global" :index="index" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 以下是addon文件夹下的自定义组件 -->
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -132,6 +135,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
|
||||||
import topTabbar from '@/components/top-tabbar/top-tabbar.vue'
|
import topTabbar from '@/components/top-tabbar/top-tabbar.vue'
|
||||||
import popAds from '@/components/pop-ads/pop-ads.vue'
|
import popAds from '@/components/pop-ads/pop-ads.vue'
|
||||||
import { useDiyGroup } from './useDiyGroup'
|
import { useDiyGroup } from './useDiyGroup'
|
||||||
|
|||||||
@ -321,8 +321,9 @@ const calcFourSquare = () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
diyComponent.value.list.forEach((item: any, index: any) => {
|
diyComponent.value.list.forEach((item: any, index: any) => {
|
||||||
item.imgWidth = 'calc((100% - ' + upx2px(diyComponent.value.imageGap * 2) + 'px) / 2)';
|
//影响下次计算ratio
|
||||||
item.widthStyle = item.imgWidth;
|
// item.imgWidth = 'calc((100% - ' + upx2px(diyComponent.value.imageGap * 2) + 'px) / 2)';
|
||||||
|
item.widthStyle = 'calc((100% - ' + upx2px(diyComponent.value.imageGap * 2) + 'px) / 2)';
|
||||||
if (index <= 1) {
|
if (index <= 1) {
|
||||||
item.imgHeight = maxHeightFirst;
|
item.imgHeight = maxHeightFirst;
|
||||||
} else if (index > 1) {
|
} else if (index > 1) {
|
||||||
|
|||||||
@ -201,7 +201,8 @@ const getFriendspayInfoFn = (tradeType : string, tradeId : number) => {
|
|||||||
},
|
},
|
||||||
weapp: {
|
weapp: {
|
||||||
...share
|
...share
|
||||||
}
|
},
|
||||||
|
isStop:true
|
||||||
});
|
});
|
||||||
// 分享 - end
|
// 分享 - end
|
||||||
copyUrlFn();
|
copyUrlFn();
|
||||||
|
|||||||
@ -125,7 +125,7 @@ onLoad((data: any) => {
|
|||||||
if (uni.getStorageSync('addressInfo')) {
|
if (uni.getStorageSync('addressInfo')) {
|
||||||
Object.assign(formData.value, uni.getStorageSync('addressInfo'))
|
Object.assign(formData.value, uni.getStorageSync('addressInfo'))
|
||||||
}
|
}
|
||||||
formData.value.address = data.name;
|
// formData.value.address = data.name;
|
||||||
getAddress(data.latng);
|
getAddress(data.latng);
|
||||||
const tempArr = getQueryVariable('latng').split(',');
|
const tempArr = getQueryVariable('latng').split(',');
|
||||||
formData.value.lat = tempArr[0];
|
formData.value.lat = tempArr[0];
|
||||||
@ -294,7 +294,7 @@ const chooseLocation = () => {
|
|||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// #ifndef H5
|
// #ifdef H5
|
||||||
const urlencode = formData.value;
|
const urlencode = formData.value;
|
||||||
uni.setStorageSync('addressInfo', urlencode);
|
uni.setStorageSync('addressInfo', urlencode);
|
||||||
let backurl = location.origin + location.pathname + '?source=' + source.value;
|
let backurl = location.origin + location.pathname + '?source=' + source.value;
|
||||||
@ -309,6 +309,9 @@ const chooseLocation = () => {
|
|||||||
const getAddress = (latlng: any) => {
|
const getAddress = (latlng: any) => {
|
||||||
getAddressByLatlng({ latlng }).then((res: any) => {
|
getAddressByLatlng({ latlng }).then((res: any) => {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
|
// #ifdef H5
|
||||||
|
formData.value.address = res.data.formatted_addresses.recommend;
|
||||||
|
// #endif
|
||||||
formData.value.full_address = '';
|
formData.value.full_address = '';
|
||||||
formData.value.full_address += res.data.province != undefined ? res.data.province : '';
|
formData.value.full_address += res.data.province != undefined ? res.data.province : '';
|
||||||
formData.value.full_address += res.data.city != undefined ? '' + res.data.city : '';
|
formData.value.full_address += res.data.city != undefined ? '' + res.data.city : '';
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="min-h-[100vh] bg-[var(--page-bg-color)] overflow-hidden" :style="themeColor()">
|
<view class="min-h-[100vh] bg-[var(--page-bg-color)] overflow-hidden" :style="themeColor()">
|
||||||
<view class="fixed left-0 right-0 top-0 z-99">
|
<view class="fixed left-0 right-0 top-0 z-99">
|
||||||
<view class="bg-[#fff] px-[var(--sidebar-m)] py-[14rpx] flex items-center">
|
<view class="bg-[#f6f6f6] px-[var(--sidebar-m)] py-[14rpx] flex items-center">
|
||||||
<view class="search-input">
|
<view class="search-input bg-[#fff]">
|
||||||
<text class="nc-iconfont nc-icon-sousuo-duanV6xx1 btn" @click="searchTypeFn()"></text>
|
<text class="nc-iconfont nc-icon-sousuo-duanV6xx1 btn" @click="searchTypeFn()"></text>
|
||||||
<input class="input" maxlength="50" type="text" v-model="keyword" placeholder="请输入搜索关键词" placeholderClass="text-[var(--text-color-light9)] text-[24rpx]" confirm-type="search" @confirm="searchTypeFn()">
|
<input class="input" maxlength="50" type="text" v-model="keyword" placeholder="请输入搜索关键词" placeholderClass="text-[var(--text-color-light9)] text-[24rpx]" confirm-type="search" @confirm="searchTypeFn()">
|
||||||
<text v-if="keyword" class="nc-iconfont nc-icon-cuohaoV6xx1 clear" @click="keyword=''"></text>
|
<text v-if="keyword" class="nc-iconfont nc-icon-cuohaoV6xx1 clear" @click="keyword=''"></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tab-style-1 pt-[4rpx] bg-[#fff]">
|
<view class="tab-style-1 pt-[4rpx] bg-[#f6f6f6]">
|
||||||
<view class="tab-left">
|
<view class="tab-left">
|
||||||
<view class="tab-left-item"
|
<view class="tab-left-item"
|
||||||
:class="{'!text-primary class-select':fromType.from_type === item.from_type && fromType.account_data_gt === item.account_data_gt}"
|
:class="{'!text-primary class-select':fromType.from_type === item.from_type && fromType.account_data_gt === item.account_data_gt}"
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="bg-[var(--page-bg-color)] min-h-[100vh]" :style="themeColor()">
|
<view class="bg-[var(--page-bg-color)] min-h-[100vh]" :style="themeColor()">
|
||||||
<view class="fixed left-0 right-0 top-0 z-10085">
|
<view class="fixed left-0 right-0 top-0 z-10085">
|
||||||
<view class="bg-[#fff] px-[30rpx] h-[88rpx] flex-center relative z-10084">
|
<view class="bg-[#f6f6f6] px-[30rpx] h-[88rpx] pt-[10rpx] flex-center relative z-10084">
|
||||||
<view class="search-input">
|
<view class="search-input bg-[#fff]">
|
||||||
<view class="flex-1 text-[24rpx] leading-[60rpx] text-[var(--text-color-light9)]" :class="{'!text-[#333]':from_type}" @click="typePopup = true">{{ from_type_name || '请选择来源用途' }}</view>
|
<view class="flex-1 text-[24rpx] leading-[60rpx] text-[var(--text-color-light9)]" :class="{'!text-[#333]':from_type}" @click="typePopup = true">{{ from_type_name || '请选择来源用途' }}</view>
|
||||||
<text class="nc-iconfont nc-icon-shangV6xx-1 !text-[26rpx] ml-[18rpx] !text-[var(--text-color-light6)]" v-if="typePopup" @click="typePopup = false"></text>
|
<text class="nc-iconfont nc-icon-shangV6xx-1 !text-[26rpx] ml-[18rpx] !text-[var(--text-color-light6)]" v-if="typePopup" @click="typePopup = false"></text>
|
||||||
<text class="nc-iconfont nc-icon-xiaV6xx !text-[26rpx] ml-[18rpx] !text-[var(--text-color-light6)]" v-else @click="typePopup = true"></text>
|
<text class="nc-iconfont nc-icon-xiaV6xx !text-[26rpx] ml-[18rpx] !text-[var(--text-color-light6)]" v-else @click="typePopup = true"></text>
|
||||||
@ -19,7 +19,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
<view class="px-[var(--sidebar-m)] py-[30rpx] flex items-center justify-between">
|
<view class="px-[var(--sidebar-m)] pb-[30rpx] pt-[20rpx] bg-[#f6f6f6] flex items-center justify-between">
|
||||||
<view class="flex items-center">
|
<view class="flex items-center">
|
||||||
<view class="px-[30rpx] bg-[#fff] rounded-[30rpx] text-[24rpx] leading-[54rpx] mr-[20rpx] text-[#333]"
|
<view class="px-[30rpx] bg-[#fff] rounded-[30rpx] text-[24rpx] leading-[54rpx] mr-[20rpx] text-[#333]"
|
||||||
:class="{'!text-[var(--primary-color)] font-500':amount_type == item.status}"
|
:class="{'!text-[var(--primary-color)] font-500':amount_type == item.status}"
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="bg-[var(--page-bg-color)] min-h-screen overflow-hidden" :style="themeColor()">
|
<view class="bg-[var(--page-bg-color)] min-h-screen overflow-hidden" :style="themeColor()">
|
||||||
<view class="fixed left-0 right-0 top-0 z-99 bg-[#fff]">
|
<view class="fixed left-0 right-0 top-0 z-99 bg-[#f6f6f6]">
|
||||||
<view class="py-[14rpx] flex items-center justify-between px-[20rpx]">
|
<view class="py-[14rpx] flex items-center justify-between px-[20rpx]">
|
||||||
<view class="flex-1 search-input mr-[20rpx]">
|
<view class="flex-1 search-input bg-[#fff] mr-[20rpx]">
|
||||||
<text @click.stop="searchTypeFn()" class="nc-iconfont nc-icon-sousuo-duanV6xx1 btn"></text>
|
<text @click.stop="searchTypeFn()" class="nc-iconfont nc-icon-sousuo-duanV6xx1 btn"></text>
|
||||||
<input class="input" maxlength="50" type="text" v-model="keyword" placeholder="请输入搜索关键词" placeholderClass="text-[var(--text-color-light9)] text-[24rpx]" confirm-type="search" @confirm="searchTypeFn()">
|
<input class="input" maxlength="50" type="text" v-model="keyword" placeholder="请输入搜索关键词" placeholderClass="text-[var(--text-color-light9)] text-[24rpx]" confirm-type="search" @confirm="searchTypeFn()">
|
||||||
<text v-if="keyword" class="nc-iconfont nc-icon-cuohaoV6xx1 clear" @click="keyword=''"></text>
|
<text v-if="keyword" class="nc-iconfont nc-icon-cuohaoV6xx1 clear" @click="keyword=''"></text>
|
||||||
|
|||||||
@ -25,8 +25,12 @@
|
|||||||
<u-form-item :label="t('mobile')" prop="mobile" :border-bottom="true" v-if="isBindMobile || config.login.is_bind_mobile">
|
<u-form-item :label="t('mobile')" prop="mobile" :border-bottom="true" v-if="isBindMobile || config.login.is_bind_mobile">
|
||||||
<input type="mobile" v-model="formData.mobile" :disabled="true" v-if="formData.mobile" placeholderClass="text-[28rpx]" class="text-[28rpx]">
|
<input type="mobile" v-model="formData.mobile" :disabled="true" v-if="formData.mobile" placeholderClass="text-[28rpx]" class="text-[28rpx]">
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<u-button v-if="info" :customStyle="{border:'none',color: '#999',width:'140rpx', textAlign:'left',margin:'0rpx'}" :text="t('getMobile')" open-type="getPhoneNumber" @getphonenumber="memberStore.bindMobile" class="text-[28rpx]"></u-button>
|
<u-button v-if="info" :customStyle="{border:'none',color: '#999',width:'140rpx', textAlign:'left',margin:'0rpx',fontSize:'28rpx'}" open-type="getPhoneNumber" @getphonenumber="memberStore.bindMobile">
|
||||||
<u-button v-else :customStyle="{border:'none',color: '#999',width:'140rpx', textAlign:'left',margin:'0rpx'}" :text="t('getMobile')" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" class="text-[28rpx]"></u-button>
|
<text class="text-[28rpx]">{{ t('getMobile') }}</text>
|
||||||
|
</u-button>
|
||||||
|
<u-button v-else :customStyle="{border:'none',color: '#999',width:'140rpx', textAlign:'left',margin:'0rpx',fontSize:'28rpx'}" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
|
||||||
|
<text class="text-[28rpx]">{{ t('getMobile') }}</text>
|
||||||
|
</u-button>
|
||||||
</template>
|
</template>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -11,12 +11,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view v-if="data.customer_phone" class="w-full h-[1rpx] bg-dashed-style my-[40rpx]"></view>
|
<view v-if="data.customer_phone" class="w-full h-[1rpx] bg-dashed-style my-[40rpx]"></view>
|
||||||
<view class="px-[24rpx] flex flex-col items-center justify-center" v-if="data.customer_qrcode">
|
<view class="px-[24rpx] flex flex-col items-center justify-center" v-if="data.customer_qrcode">
|
||||||
<view class="border border-[#eee] border-solid rounded-[10rpx] border-[1rpx] w-[240rpx] h-[240rpx] flex items-center justify-center">
|
<view class="border border-[#eee] border-solid rounded-[10rpx] border-[1rpx] p-[10rpx] flex items-center justify-center">
|
||||||
<image class="w-[226rpx] h-[226rpx]" :src="img(data.customer_qrcode)" mode="widthFix" />
|
<image class="w-[226rpx] h-[226rpx]" :src="img(data.customer_qrcode)" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view class="text-[26rpx] text-[#333] mt-[20rpx]">扫描二维码添加客服</view>
|
<view class="text-[26rpx] text-[#333] mt-[20rpx]">扫描二维码添加客服</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="px-[50rpx] mt-[16rpx] text-[22rpx] text-[#999] leading-[1.5]" style="text-indent: 2em;">{{ data.customer_guided_words }}</view>
|
<view class="px-[50rpx] mt-[16rpx] text-center text-[22rpx] text-[#999] leading-[1.5]">{{ data.customer_guided_words }}</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view @click="servicesDataShow = false" class="mt-[50rpx] nc-iconfont nc-icon-cuohaoV6xx1 !text-[50rpx] text-[#fff]"></view> -->
|
<!-- <view @click="servicesDataShow = false" class="mt-[50rpx] nc-iconfont nc-icon-cuohaoV6xx1 !text-[50rpx] text-[#fff]"></view> -->
|
||||||
|
|||||||
@ -35,14 +35,21 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, version } from 'vue'
|
import { ref, version, computed } from 'vue'
|
||||||
import {onBackPress, onHide} from "@dcloudio/uni-app";
|
import {onBackPress, onHide} from "@dcloudio/uni-app";
|
||||||
import useSystemStore from '@/stores/system';
|
import useSystemStore from '@/stores/system';
|
||||||
import { img, getUrl } from '@/utils/common';
|
import { img, getUrl } from '@/utils/common';
|
||||||
|
|
||||||
const systemStore = useSystemStore();
|
const systemStore = useSystemStore();
|
||||||
|
|
||||||
const show = ref(false)
|
const show = computed({
|
||||||
|
get() {
|
||||||
|
return systemStore.updateVersionPopup
|
||||||
|
},
|
||||||
|
set(value: boolean){
|
||||||
|
systemStore.updateVersionPopup = false
|
||||||
|
}
|
||||||
|
})
|
||||||
const downloading = ref(false)
|
const downloading = ref(false)
|
||||||
const downloadProgress = ref(0)
|
const downloadProgress = ref(0)
|
||||||
const versionInfo = ref({})
|
const versionInfo = ref({})
|
||||||
@ -60,7 +67,6 @@ const closeFn = () => {
|
|||||||
lock[versionInfo.value.version_code] = true
|
lock[versionInfo.value.version_code] = true
|
||||||
uni.setStorageSync('update_version_close_lock', lock)
|
uni.setStorageSync('update_version_close_lock', lock)
|
||||||
show.value = false
|
show.value = false
|
||||||
systemStore.updateVersionPopup = false
|
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '下载过程中不允许关闭',
|
title: '下载过程中不允许关闭',
|
||||||
|
|||||||
@ -87,6 +87,18 @@ export const useShare = () => {
|
|||||||
uni.setStorageSync('weappOptions', weappOptions)
|
uni.setStorageSync('weappOptions', weappOptions)
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 在这里判断isStop(关键:放在参数处理之后)
|
||||||
|
if (options.hasOwnProperty('isStop') && options.isStop) {
|
||||||
|
// 停止执行,更新store后返回
|
||||||
|
useSystemStore().$patch((state) => {
|
||||||
|
state.shareOptions = {
|
||||||
|
wechatOptions,
|
||||||
|
weappOptions
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return; // 终止整个setShare函数
|
||||||
|
}
|
||||||
}
|
}
|
||||||
getShareInfo({
|
getShareInfo({
|
||||||
route: '/' + currRoute(),
|
route: '/' + currRoute(),
|
||||||
@ -96,11 +108,11 @@ export const useShare = () => {
|
|||||||
|
|
||||||
let wechat = data.wechat;
|
let wechat = data.wechat;
|
||||||
if (wechat) {
|
if (wechat) {
|
||||||
wechatOptions.title = wechat.title
|
wechatOptions.title = wechat.title? wechat.title : options.wechat?.title
|
||||||
wechatOptions.desc = wechat.desc
|
wechatOptions.desc = wechat.desc? wechat.desc : options.wechat?.desc
|
||||||
wechatOptions.imgUrl = wechat.url ? img(wechat.url) : ''
|
wechatOptions.imgUrl = wechat.url ? img(wechat.url) : ''
|
||||||
} else {
|
} else {
|
||||||
wechatOptions.title = document.title;
|
wechatOptions.title = document ? document.title : ''
|
||||||
wechatOptions.desc = ''
|
wechatOptions.desc = ''
|
||||||
}
|
}
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
|
|||||||
@ -9,16 +9,6 @@
|
|||||||
import { ref, watch } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
import useSystemStore from '@/stores/system'
|
import useSystemStore from '@/stores/system'
|
||||||
import updateVersion from '@/components/update-version/update-version.vue'
|
import updateVersion from '@/components/update-version/update-version.vue'
|
||||||
|
|
||||||
const systemStore = useSystemStore()
|
|
||||||
|
|
||||||
// #ifdef APP-PLUS
|
|
||||||
const updateVersionRef = ref(null)
|
|
||||||
watch(() => systemStore.updateVersionPopup, () => {
|
|
||||||
if (systemStore.updateVersionPopup) updateVersionRef.value?.open()
|
|
||||||
else updateVersionRef.value?.close()
|
|
||||||
})
|
|
||||||
// #endif
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@ -143,5 +143,17 @@
|
|||||||
"o2o.orderNo": "订单号",
|
"o2o.orderNo": "订单号",
|
||||||
"o2o.actualPayment": "实付款",
|
"o2o.actualPayment": "实付款",
|
||||||
"o2o.orderDetail": "详情",
|
"o2o.orderDetail": "详情",
|
||||||
"notHave": "无"
|
"notHave": "无",
|
||||||
|
"tourism.scenic": "景点",
|
||||||
|
"tourism.way": "线路",
|
||||||
|
"tourism.hotel": "酒店",
|
||||||
|
"tourism.seeMore": "查看更多",
|
||||||
|
"vipcard.seeMore": "查看更多",
|
||||||
|
"shop.emptyAddress": "暂无收货地址,请先创建地址",
|
||||||
|
"shop.addAddress": "新增收货地址",
|
||||||
|
"shop.selectAddress": "选择地址",
|
||||||
|
"shop_fenxiao.orderNo": "订单号",
|
||||||
|
"shop_giftcard.actualPayment": "实付款",
|
||||||
|
"shop_giftcard.orderClose": "关闭订单",
|
||||||
|
"shop_giftcard.orderNo": "订单号"
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@
|
|||||||
"oauth" : {},
|
"oauth" : {},
|
||||||
"maps" : {
|
"maps" : {
|
||||||
"tencent" : {
|
"tencent" : {
|
||||||
"key" : ""
|
"key" : "6ZDBZ-CLSLX-66747-7MVM4-HLK47-XMBXU"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"share" : {
|
"share" : {
|
||||||
|
|||||||
@ -378,7 +378,7 @@
|
|||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#F6F6F6",
|
||||||
"backgroundColor": "#F6F6F6",
|
"backgroundColor": "#F6F6F6",
|
||||||
"backgroundColorTop": "#F6F6F6",
|
"backgroundColorTop": "#F6F6F6",
|
||||||
"backgroundColorBottom": "#F6F6F6"
|
"backgroundColorBottom": "#F6F6F6"
|
||||||
|
|||||||
@ -279,7 +279,8 @@ button[type='primary'],uni-button[type='primary']{
|
|||||||
}
|
}
|
||||||
//普通tab切换样式
|
//普通tab切换样式
|
||||||
.tab-style-2{
|
.tab-style-2{
|
||||||
@apply box-border bg-white;
|
@apply box-border ;
|
||||||
|
background-color: #f6f6f6; /* 直接覆盖背景色 */
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
.tab-content{
|
.tab-content{
|
||||||
@apply flex whitespace-nowrap justify-between;
|
@apply flex whitespace-nowrap justify-between;
|
||||||
@ -309,9 +310,9 @@ button[type='primary'],uni-button[type='primary']{
|
|||||||
}
|
}
|
||||||
//两个tab选项卡样式
|
//两个tab选项卡样式
|
||||||
.tab-style-3{
|
.tab-style-3{
|
||||||
@apply flex whitespace-nowrap justify-around box-border bg-white;
|
@apply flex whitespace-nowrap justify-around box-border ;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
|
background-color: #f6f6f6; /* 直接覆盖背景色 */
|
||||||
.tab-items{
|
.tab-items{
|
||||||
@apply flex-1;
|
@apply flex-1;
|
||||||
line-height: 88rpx;
|
line-height: 88rpx;
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
[]
|
[
|
||||||
|
]
|
||||||
@ -13,6 +13,20 @@ export const redirect = (redirect: any) => {
|
|||||||
if (useDiyStore().mode == 'decorate') return
|
if (useDiyStore().mode == 'decorate') return
|
||||||
|
|
||||||
let { url, mode, param, success, fail, complete } = redirect
|
let { url, mode, param, success, fail, complete } = redirect
|
||||||
|
// 新增:判断是否为外部链接
|
||||||
|
if (url && (url.indexOf('https') != -1 || url.indexOf('http') != -1)) {
|
||||||
|
|
||||||
|
// #ifdef H5
|
||||||
|
window.location.href = url;
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
redirect({
|
||||||
|
url: '/app/pages/webview/index',
|
||||||
|
param: { src: encodeURIComponent(url) }
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
let originalUrl = url; // 原始地址
|
let originalUrl = url; // 原始地址
|
||||||
let newLogin = false; // 是否需要登录
|
let newLogin = false; // 是否需要登录
|
||||||
|
|
||||||
@ -292,7 +306,6 @@ export function img(path: string): string {
|
|||||||
|
|
||||||
if (typeof path == 'string' && path.startsWith('/')) path = path.replace(/^\//, '')
|
if (typeof path == 'string' && path.startsWith('/')) path = path.replace(/^\//, '')
|
||||||
if (typeof imgDomain == 'string' && imgDomain.endsWith('/')) imgDomain = imgDomain.slice(0, -1)
|
if (typeof imgDomain == 'string' && imgDomain.endsWith('/')) imgDomain = imgDomain.slice(0, -1)
|
||||||
|
|
||||||
return isUrl(path) ? path : `${imgDomain}/${path}`
|
return isUrl(path) ? path : `${imgDomain}/${path}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ export function topTabar() {
|
|||||||
topStatusBar: {
|
topStatusBar: {
|
||||||
style: 'style-1',
|
style: 'style-1',
|
||||||
bgColor: 'transparent',
|
bgColor: 'transparent',
|
||||||
rollBgColor: '#fff',
|
rollBgColor: '#f6f6f6',
|
||||||
textColor: '#fff',
|
textColor: '#fff',
|
||||||
rollTextColor: '#333'
|
rollTextColor: '#333'
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user