parent
bfd39255c1
commit
95154dec62
|
|
@ -302,7 +302,7 @@ public class PayServiceImpl implements IPayService {
|
|||
bizContent.put("passback_params", JSONObject.toJSONString(new JSONObject(){{
|
||||
put("from", params.getScene());
|
||||
}}));
|
||||
if (params.getTerminal().equals(ClientEnum.H5.getCode())) {
|
||||
if (params.getTerminal().equals(ClientEnum.H5.getCode()) || params.getTerminal().equals(ClientEnum.OA.getCode())) {
|
||||
AlipayTradeWapPayRequest alipayRequest = new AlipayTradeWapPayRequest();
|
||||
//alipayRequest.setNotifyUrl("http://y4f8ud.natappfree.cc" + aliPayNotifyUrl);
|
||||
alipayRequest.setNotifyUrl(UrlUtils.getRequestUrl() + aliPayNotifyUrl);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
:border-bottom="false"
|
||||
:title-bold="true"
|
||||
:background="{ background: 'rgba(256,256, 256, 0)' }"
|
||||
:title-color="$theme.navColor"
|
||||
:title-color="navColor"
|
||||
>
|
||||
<template #title>
|
||||
<image
|
||||
|
|
@ -72,6 +72,10 @@ const props = defineProps({
|
|||
},
|
||||
isLogin: {
|
||||
type: Boolean
|
||||
},
|
||||
navColor: {
|
||||
type: String,
|
||||
default: "#000000"
|
||||
}
|
||||
})
|
||||
const { copy } = useCopy()
|
||||
|
|
|
|||
|
|
@ -1,22 +1,9 @@
|
|||
<template>
|
||||
<page-meta :page-style="$theme.pageStyle">
|
||||
<!-- #ifndef H5 -->
|
||||
<navigation-bar
|
||||
:front-color="$theme.navColor"
|
||||
:background-color="$theme.navBgColor"
|
||||
/>
|
||||
<!-- #endif -->
|
||||
</page-meta>
|
||||
<view class="user">
|
||||
<view class="user" :style="pageStyle">
|
||||
<view v-for="(item, index) in state.pages" :key="index">
|
||||
<template v-if="item.name == 'user-info'">
|
||||
<w-user-info
|
||||
:pageMeta="state.meta"
|
||||
:content="item.content"
|
||||
:styles="item.styles"
|
||||
:user="userInfo"
|
||||
:is-login="isLogin"
|
||||
/>
|
||||
<w-user-info :pageMeta="state.meta" :content="item.content" :styles="item.styles" :user="userInfo"
|
||||
:is-login="isLogin" :navColor="navColor" />
|
||||
</template>
|
||||
<template v-if="item.name == 'my-service'">
|
||||
<w-my-service :content="item.content" :styles="item.styles" />
|
||||
|
|
@ -32,9 +19,9 @@
|
|||
<script setup lang="ts">
|
||||
import { getDecorate } from '@/api/shop'
|
||||
import { useUserStore } from '@/stores/user'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { onShow, onLoad } from '@dcloudio/uni-app'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { reactive } from 'vue'
|
||||
import { computed, reactive } from 'vue'
|
||||
const state = reactive<{
|
||||
meta : any[]
|
||||
pages : any[]
|
||||
|
|
@ -43,19 +30,53 @@ const state = reactive<{
|
|||
pages: []
|
||||
})
|
||||
const getData = async () => {
|
||||
|
||||
console.log('asdasd')
|
||||
const data = await getDecorate({ id: 2 })
|
||||
state.meta = JSON.parse(data.meta)
|
||||
state.pages = JSON.parse(data.data)
|
||||
uni.setNavigationBarTitle({
|
||||
title: state.meta[0].content.title
|
||||
title: state.meta[0].content.title,
|
||||
})
|
||||
uni.setNavigationBarColor({
|
||||
frontColor: '#000000',
|
||||
})
|
||||
console.log(123123)
|
||||
}
|
||||
const userStore = useUserStore()
|
||||
const { userInfo, isLogin } = storeToRefs(userStore)
|
||||
// 根页面样式
|
||||
const pageStyle = computed(() => {
|
||||
const { bg_type, bg_color, bg_image } = state.meta[0]?.content ?? {}
|
||||
if (bg_type != undefined) {
|
||||
return bg_type == 1 ? { 'background-color': bg_color } : { 'background-image': `url(${bg_image})` };
|
||||
} else {
|
||||
return ""
|
||||
}
|
||||
})
|
||||
const navColor = computed(() => {
|
||||
const { text_color } = state.meta[0]?.content ?? {}
|
||||
if (text_color == 2) {
|
||||
return '#000000';
|
||||
} else {
|
||||
return '#ffffff'
|
||||
}
|
||||
})
|
||||
onShow(() => {
|
||||
userStore.getUser()
|
||||
})
|
||||
getData()
|
||||
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
<style lang="scss" scoped>
|
||||
.user {
|
||||
position: relative;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
transition: all 1s;
|
||||
min-height: calc(100vh - env(safe-area-inset-bottom));
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue