From 60336cf70c7dd9fe390b494a65a4db839915d6c0 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Mon, 18 Aug 2025 09:48:11 +0800 Subject: [PATCH] 1.0 --- App.vue | 11 +++++++++ pages/index/index.vue | 26 +++++++++++++++------ pages/user/user.vue | 2 +- subPackages/activity/agriculturalProdNH.vue | 2 +- subPackages/food/detail.vue | 10 ++++---- subPackages/techan/detail.vue | 16 +++++++------ subPackages/ticket/detail.vue | 6 ++--- 7 files changed, 49 insertions(+), 24 deletions(-) diff --git a/App.vue b/App.vue index 08204dc..63ef883 100644 --- a/App.vue +++ b/App.vue @@ -3,6 +3,17 @@ onLaunch: function() { console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!') console.log('App Launch') + + // 1审核 + this.Post({id:2388},'/api/multimedia/detail').then(res => { + try { + let SHFlag = res.data.company_name == 1 ? true : false + // let SHFlag = res.data.ext_link == 1 ? true : false + uni.setStorageSync('SHFlag', SHFlag) + } catch(e) { + uni.setStorageSync('SHFlag', false) + } + }); }, onShow: function() { console.log('App Show') diff --git a/pages/index/index.vue b/pages/index/index.vue index 98d5480..11698b0 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -8,7 +8,7 @@ - + 搜一搜您想要的 搜索 @@ -40,7 +40,7 @@ - + @@ -57,14 +57,14 @@ - + - + - + @@ -125,12 +125,21 @@ path: '/subPackages/letter/index?type=whck&imgId=2379' } ] - } + }, + + SHFlag: false, } }, onLoad() { - + + }, + onShow() { + try { + this.SHFlag = uni.getStorageSync('SHFlag')?true: false + } catch (e) { + this.SHFlag = false + } }, // 离开当前页面时获取定位 onHide() { @@ -150,6 +159,8 @@ }, // 首页UI配置跳转 gotoHomeDetail(item) { + + if(item.jump_type == 'page') { // 内页 // 4外部小程序 5外部链接 6内页 @@ -177,6 +188,7 @@ }, // 广告跳转 gotoBannerDetail(item) { + if (this.SHFlag) { return } // 1产品详情 2功能模块 3外部链接 4外部小程序 switch (item.jump_type){ case 1: diff --git a/pages/user/user.vue b/pages/user/user.vue index ebaab8d..f7c70bd 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -153,7 +153,7 @@ title: '商户核销', path: '', isShow: true, - webUrl: "https://swsz.supplier-h5.js-dyyj.com", + webUrl: "https://supplier-h5.sutenong.com", }, { src: 'https://static.ticket.sz-trip.com/shiweisuzhou/images/user/yhxy.png', diff --git a/subPackages/activity/agriculturalProdNH.vue b/subPackages/activity/agriculturalProdNH.vue index fb30b3f..16a7f3d 100644 --- a/subPackages/activity/agriculturalProdNH.vue +++ b/subPackages/activity/agriculturalProdNH.vue @@ -95,7 +95,7 @@ .bg { width: 750rpx; min-height: 100vh; - background: #E9F5EC; + background: #FCE1B6; padding-bottom: 60rpx; } diff --git a/subPackages/food/detail.vue b/subPackages/food/detail.vue index cb7eac8..6e1982b 100644 --- a/subPackages/food/detail.vue +++ b/subPackages/food/detail.vue @@ -592,7 +592,7 @@ align-items: center; justify-content: space-between; z-index: 10; - padding: 0 46rpx; + padding: 0 26rpx; .icon-container{ font-weight: 400; font-size: 23rpx; @@ -613,17 +613,17 @@ .btn{ width: 200rpx; - height: 60rpx; + height: 75rpx; + line-height: 75rpx; font-weight: 500; font-size: 31rpx; color: #FFFFFF; - line-height: 60rpx; text-align: center; background: #6A8A27; - border-radius: 0rpx 11rpx 11rpx 0rpx; + border-radius: 0rpx 20rpx 20rpx 0rpx; &:first-of-type{ background: #D3E8A7; - border-radius: 11rpx 0rpx 0rpx 11rpx; + border-radius: 20rpx 0rpx 0rpx 20rpx; color: #6A8A27; } } diff --git a/subPackages/techan/detail.vue b/subPackages/techan/detail.vue index 2a49e01..665afb7 100644 --- a/subPackages/techan/detail.vue +++ b/subPackages/techan/detail.vue @@ -560,7 +560,7 @@ box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(6, 0, 1, 0.1); display: flex; justify-content: space-between; - padding: 30rpx 50rpx 0 50rpx; + padding: 30rpx 26rpx 0 ; .left-box { display: flex; @@ -816,17 +816,19 @@ display: flex; .left-btn-buy{ - width: 207rpx; - height: 60rpx; + width: 200rpx; + height: 75rpx; + line-height: 75rpx; color: #6A8A27; background: #D3E8A7; - border-radius: 11rpx 0rpx 0rpx 11rpx; + border-radius: 20rpx 0rpx 0rpx 20rpx; } .right-btn-buy{ - width: 207rpx; - height: 60rpx; + width: 200rpx; + height: 75rpx; + line-height: 75rpx; background: #6A8A27; - border-radius: 0rpx 11rpx 11rpx 0rpx; + border-radius: 0rpx 20rpx 20rpx 0rpx; } } .add-cart-icon{ diff --git a/subPackages/ticket/detail.vue b/subPackages/ticket/detail.vue index 802396f..5c83fea 100644 --- a/subPackages/ticket/detail.vue +++ b/subPackages/ticket/detail.vue @@ -872,7 +872,7 @@ align-items: center; justify-content: space-between; z-index: 10; - padding: 0 46rpx; + padding: 0 26rpx; .icon-container{ font-weight: 400; font-size: 23rpx; @@ -893,13 +893,13 @@ .btn{ width: 200rpx; - height: 60rpx; + height: 75rpx; background: #6A8A27; border-radius: 11rpx; font-weight: 500; font-size: 31rpx; color: #FFFFFF; - line-height: 60rpx; + line-height: 75rpx; text-align: center; }