页面
Some checks are pending
Auto Merge Main to Other Branches / Merge main into i18n (push) Waiting to run
Auto Merge Main to Other Branches / Merge main into base-sard-ui (push) Waiting to run

This commit is contained in:
sjeam 2025-09-07 10:22:54 +08:00
parent c5465b5844
commit 3b46b76f1f
4 changed files with 16 additions and 19 deletions

View File

@ -14,7 +14,7 @@
<view class=""> <view class="">
<view class="background_home"> <view class="background_home">
<view <view
class="" class=" "
style="" style=""
@click=" @click="
more({ more({
@ -285,7 +285,7 @@
/> />
</view> </view>
<view class="ps-2 pt-2 font-size-4 font-bold color-black ellipsis"> <view class="ps-2 pt-2 font-size-4 font-bold color-black ellipsis">
{{ item.title }}发放接口连接啊发生金坷拉激发 {{ item.title }}
</view> </view>
<view class="ps-2 pt-2 font-size-3 ellipsis"> <view class="ps-2 pt-2 font-size-3 ellipsis">
{{ item.description }} {{ item.description }}

View File

@ -134,8 +134,8 @@ function more(item) {
> >
<wd-grid-item use-slot> <wd-grid-item use-slot>
<view class="p-2"> <view class="p-2">
<wd-img radius="20rpx" width="100rpx" height="100rpx" :src="item.icon" /> <wd-img radius="20rpx" width="60rpx" height="60rpx" :src="item.icon" />
<view class="pb-2 ps-2 pt-2 text-center font-size-3 color-black"> <view class="py-2 text-center font-size-3 color-black">
{{ item.name }} {{ item.name }}
</view> </view>
</view> </view>
@ -193,8 +193,8 @@ function more(item) {
> >
<wd-grid-item use-slot> <wd-grid-item use-slot>
<view class="p-2"> <view class="p-2">
<wd-img radius="20rpx" width="100rpx" height="100rpx" :src="item.icon" /> <wd-img radius="20rpx" width="60rpx" height="60rpx" :src="item.icon" />
<view class="pb-2 ps-2 pt-2 text-center font-size-3 color-black"> <view class="py-2 text-center font-size-3 color-black">
{{ item.name }} {{ item.name }}
</view> </view>
</view> </view>
@ -249,7 +249,7 @@ function more(item) {
> >
<wd-grid-item use-slot> <wd-grid-item use-slot>
<view class="p-2"> <view class="p-2">
<wd-img radius="20rpx" width="100rpx" height="100rpx" :src="item.icon" /> <wd-img radius="20rpx" width="60rpx" height="60rpx" :src="item.icon" />
<view class="pb-2 ps-2 pt-2 text-center font-size-3 color-black"> <view class="pb-2 ps-2 pt-2 text-center font-size-3 color-black">
{{ item.name }} {{ item.name }}
</view> </view>

View File

@ -47,14 +47,9 @@ export default defineComponent({
}, },
}, },
onLoad(option) { onLoad(option) {
// if (hasLogin) {
// this.show = true
// return
// }
// this.local_url = decodeURIComponent(getUrlCrmebLogin() + option.target)
console.log(getUrlCrmebLogin())
// const target = encodeURIComponent(option.target) // const target = encodeURIComponent(option.target)
const target = option.target const target = option.target
console.log('获取跳转连接', target)
if (isMpWeixin) { if (isMpWeixin) {
this.local_url = getUrlCrmebLogin() + '?target=' + target this.local_url = getUrlCrmebLogin() + '?target=' + target
} else { } else {

View File

@ -193,7 +193,7 @@ export function getUrlCrmebProxy() {
//模块跳转 //模块跳转
export function getUrl(url) { export function getUrl(url) {
console.log(url) console.log('c123', url)
return uni.navigateTo({ return uni.navigateTo({
url: url, url: url,
}) })
@ -201,17 +201,19 @@ export function getUrl(url) {
// 代登录跳转 // 代登录跳转
export function getWebUrl(url) { export function getWebUrl(url) {
console.log(url) console.log('传递参数', url)
const target = encodeURIComponent(url)
return uni.navigateTo({ return uni.navigateTo({
url: `/pages/web_view/index?target=${url}`, url: `/pages/web_view/index?target=${target}`,
}) })
} }
// 代登录跳转 // 代登录跳转
export function getShopWebUrl(url) { export function getShopWebUrl(url) {
console.log(url) console.log('传递参数', url)
const target = encodeURIComponent(url)
return uni.navigateTo({ return uni.navigateTo({
url: `/pages/web_view/h5?target=${url}`, url: `/pages/web_view/h5?target=${target}`,
}) })
} }
import { useUserStore } from '@/store' import { useUserStore } from '@/store'
@ -221,7 +223,7 @@ export function hasLogin() {
const hasLogin = useUserStore().userInfo.id ? true : false const hasLogin = useUserStore().userInfo.id ? true : false
// console.log(useUserStore().userInfo) // console.log(useUserStore().userInfo)
// console.log('是否登录', hasLogin) // console.log('是否登录', hasLogin)
console.log('是否登录sss', useUserStore().userInfo) // console.log('是否登录sss', useUserStore().userInfo)
//强制跳转设置村庄 //强制跳转设置村庄
if (hasLogin && !useUserStore().userInfo.isset) { if (hasLogin && !useUserStore().userInfo.isset) {
// if (!this.phone) { // if (!this.phone) {