jiazhipeng 2 months ago
parent
commit
60336cf70c
  1. 11
      App.vue
  2. 24
      pages/index/index.vue
  3. 2
      pages/user/user.vue
  4. 2
      subPackages/activity/agriculturalProdNH.vue
  5. 10
      subPackages/food/detail.vue
  6. 16
      subPackages/techan/detail.vue
  7. 6
      subPackages/ticket/detail.vue

11
App.vue

@ -3,6 +3,17 @@
onLaunch: function() { onLaunch: function() {
console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!') console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
console.log('App Launch') 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() { onShow: function() {
console.log('App Show') console.log('App Show')

24
pages/index/index.vue

@ -8,7 +8,7 @@
<!-- 搜索框 --> <!-- 搜索框 -->
<view class="search-box" @click="gotoPath('/subPackages/search/index')"> <view class="search-box" @click="gotoPath('/subPackages/search/index')" v-if="!SHFlag">
<image src="https://static.ticket.sz-trip.com/shiweisuzhou/images/index/search.png" mode=""></image> <image src="https://static.ticket.sz-trip.com/shiweisuzhou/images/index/search.png" mode=""></image>
搜一搜您想要的 搜一搜您想要的
<view class="search-btn">搜索</view> <view class="search-btn">搜索</view>
@ -40,7 +40,7 @@
</swiper> </swiper>
<!-- 推荐广告 --> <!-- 推荐广告 -->
<view class="flex-between" style="margin-top: 36rpx;" v-if="recommendNav.length>0"> <view class="flex-between" style="margin-top: 36rpx;" v-if="recommendNav.length>0&&!SHFlag">
<view class="country-box"> <view class="country-box">
<image class="img1" :src="xcsh.img1.image" @click.stop="gotoPath('/subPackages/food/cafe')" mode="aspectFill"></image> <image class="img1" :src="xcsh.img1.image" @click.stop="gotoPath('/subPackages/food/cafe')" mode="aspectFill"></image>
<view class="flex-between" style="padding-top: 10rpx;"> <view class="flex-between" style="padding-top: 10rpx;">
@ -57,14 +57,14 @@
<!-- 模块 --> <!-- 模块 -->
<view class="module-box"> <view class="module-box" v-if="!SHFlag">
<view v-for="(item,index) in moduleList" :key="index" @click="gotoHomeDetail(item)"> <view v-for="(item,index) in moduleList" :key="index" @click="gotoHomeDetail(item)">
<image :src="item.icon" mode="widthFix" class="module-item"></image> <image :src="item.icon" mode="widthFix" class="module-item"></image>
</view> </view>
</view> </view>
<!-- 热门推荐 --> <!-- 热门推荐 -->
<image :src="homeUi.rmtjbttp" mode="heightFix" class="rmtj-img"></image> <image :src="homeUi.rmtjbttp" mode="heightFix" class="rmtj-img" v-if="!SHFlag"></image>
<!-- <view class="hot-box"> <!-- <view class="hot-box">
<view v-for="(num,nums) in 2" :key="nums"> <view v-for="(num,nums) in 2" :key="nums">
<view v-for="(item,index) in hotList" :key="index" v-if="index % 2 == nums" class="hot-item" @click="gotoDetailByType(item)"> <view v-for="(item,index) in hotList" :key="index" v-if="index % 2 == nums" class="hot-item" @click="gotoDetailByType(item)">
@ -76,7 +76,7 @@
</view> </view>
</view> </view>
</view> --> </view> -->
<view class="new-hot-box hot-box"> <view class="new-hot-box hot-box" v-if="!SHFlag">
<image class="hot-adv" v-if="hotAdv" :src="hotAdv.head_img" mode="aspectFill" @click.stop="gotoBannerDetail(hotAdv)"></image> <image class="hot-adv" v-if="hotAdv" :src="hotAdv.head_img" mode="aspectFill" @click.stop="gotoBannerDetail(hotAdv)"></image>
<view v-for="(item,index) in hotList" :key="index" class="hot-item" @click="gotoDetailByType(item)"> <view v-for="(item,index) in hotList" :key="index" class="hot-item" @click="gotoDetailByType(item)">
<image :src="item.headimg" mode="aspectFill"></image> <image :src="item.headimg" mode="aspectFill"></image>
@ -125,12 +125,21 @@
path: '/subPackages/letter/index?type=whck&imgId=2379' path: '/subPackages/letter/index?type=whck&imgId=2379'
} }
] ]
} },
SHFlag: false,
} }
}, },
onLoad() { onLoad() {
},
onShow() {
try {
this.SHFlag = uni.getStorageSync('SHFlag')?true: false
} catch (e) {
this.SHFlag = false
}
}, },
// //
onHide() { onHide() {
@ -150,6 +159,8 @@
}, },
// UI // UI
gotoHomeDetail(item) { gotoHomeDetail(item) {
if(item.jump_type == 'page') { if(item.jump_type == 'page') {
// //
// 4 5 6 // 4 5 6
@ -177,6 +188,7 @@
}, },
// 广 // 广
gotoBannerDetail(item) { gotoBannerDetail(item) {
if (this.SHFlag) { return }
// 1 2 3 4 // 1 2 3 4
switch (item.jump_type){ switch (item.jump_type){
case 1: case 1:

2
pages/user/user.vue

@ -153,7 +153,7 @@
title: '商户核销', title: '商户核销',
path: '', path: '',
isShow: true, 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', src: 'https://static.ticket.sz-trip.com/shiweisuzhou/images/user/yhxy.png',

2
subPackages/activity/agriculturalProdNH.vue

@ -95,7 +95,7 @@
.bg { .bg {
width: 750rpx; width: 750rpx;
min-height: 100vh; min-height: 100vh;
background: #E9F5EC; background: #FCE1B6;
padding-bottom: 60rpx; padding-bottom: 60rpx;
} }

10
subPackages/food/detail.vue

@ -592,7 +592,7 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
z-index: 10; z-index: 10;
padding: 0 46rpx; padding: 0 26rpx;
.icon-container{ .icon-container{
font-weight: 400; font-weight: 400;
font-size: 23rpx; font-size: 23rpx;
@ -613,17 +613,17 @@
.btn{ .btn{
width: 200rpx; width: 200rpx;
height: 60rpx; height: 75rpx;
line-height: 75rpx;
font-weight: 500; font-weight: 500;
font-size: 31rpx; font-size: 31rpx;
color: #FFFFFF; color: #FFFFFF;
line-height: 60rpx;
text-align: center; text-align: center;
background: #6A8A27; background: #6A8A27;
border-radius: 0rpx 11rpx 11rpx 0rpx; border-radius: 0rpx 20rpx 20rpx 0rpx;
&:first-of-type{ &:first-of-type{
background: #D3E8A7; background: #D3E8A7;
border-radius: 11rpx 0rpx 0rpx 11rpx; border-radius: 20rpx 0rpx 0rpx 20rpx;
color: #6A8A27; color: #6A8A27;
} }
} }

16
subPackages/techan/detail.vue

@ -560,7 +560,7 @@
box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(6, 0, 1, 0.1); box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(6, 0, 1, 0.1);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 30rpx 50rpx 0 50rpx; padding: 30rpx 26rpx 0 ;
.left-box { .left-box {
display: flex; display: flex;
@ -816,17 +816,19 @@
display: flex; display: flex;
.left-btn-buy{ .left-btn-buy{
width: 207rpx; width: 200rpx;
height: 60rpx; height: 75rpx;
line-height: 75rpx;
color: #6A8A27; color: #6A8A27;
background: #D3E8A7; background: #D3E8A7;
border-radius: 11rpx 0rpx 0rpx 11rpx; border-radius: 20rpx 0rpx 0rpx 20rpx;
} }
.right-btn-buy{ .right-btn-buy{
width: 207rpx; width: 200rpx;
height: 60rpx; height: 75rpx;
line-height: 75rpx;
background: #6A8A27; background: #6A8A27;
border-radius: 0rpx 11rpx 11rpx 0rpx; border-radius: 0rpx 20rpx 20rpx 0rpx;
} }
} }
.add-cart-icon{ .add-cart-icon{

6
subPackages/ticket/detail.vue

@ -872,7 +872,7 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
z-index: 10; z-index: 10;
padding: 0 46rpx; padding: 0 26rpx;
.icon-container{ .icon-container{
font-weight: 400; font-weight: 400;
font-size: 23rpx; font-size: 23rpx;
@ -893,13 +893,13 @@
.btn{ .btn{
width: 200rpx; width: 200rpx;
height: 60rpx; height: 75rpx;
background: #6A8A27; background: #6A8A27;
border-radius: 11rpx; border-radius: 11rpx;
font-weight: 500; font-weight: 500;
font-size: 31rpx; font-size: 31rpx;
color: #FFFFFF; color: #FFFFFF;
line-height: 60rpx; line-height: 75rpx;
text-align: center; text-align: center;
} }

Loading…
Cancel
Save