Browse Source

修改跳转地址

zyh
Gaoxs 4 years ago
parent
commit
3289e30dad
  1. 3
      components/PromotionGood.vue
  2. 9
      components/sh-activity-goods.vue
  3. 4
      config/index.js
  4. 3
      manifest.json
  5. 8
      pages/home/index.vue

3
components/PromotionGood.vue

@ -3,7 +3,8 @@
<view class="sh-title-card mb10"> <view class="sh-title-card mb10">
<view class="title-box"> <view class="title-box">
<image class="title-bg" src="@/static/images/title1.png" mode="aspectFill"></image> <image class="title-bg" src="@/static/images/title1.png" mode="aspectFill"></image>
<view class="title-text" :style="{ color: detail.color }">为你推荐</view> <view class="title-text">为你推荐</view>
<!-- <view class="title-text" :style="{ color: detail.color }">为你推荐</view> -->
</view> </view>
</view> </view>
<view class="hot-goods mx20 mb10" v-if="benefit.length"> <view class="hot-goods mx20 mb10" v-if="benefit.length">

9
components/sh-activity-goods.vue

@ -1,5 +1,5 @@
<template> <template>
<view class="min-goods" @tap="jump('/pages/goods/detail/index', { id: detail.id })"> <view class="min-goods" @tap="jump('/pages/activity/GroupDetails/index', { id: detail.id })">
<view class="img-box"> <view class="img-box">
<view class="tag" >{{ detail.people}}人团</view> <view class="tag" >{{ detail.people}}人团</view>
<image class="img" :src="detail.image" mode="widthFix"></image> <image class="img" :src="detail.image" mode="widthFix"></image>
@ -26,8 +26,11 @@ export default {
computed: {}, computed: {},
methods: { methods: {
// //
jump(path, parmas) { jump(path, query) {
this.$Router.push({ path: path, query: parmas }); this.$yrouter.push({
path,
query
});
} }
} }
}; };

4
config/index.js

@ -1,5 +1,5 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'; // export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api';
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static'; export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static';

3
manifest.json

@ -164,6 +164,7 @@
"key" : "" "key" : ""
} }
} }
} },
"domain" : "h5.yixiang.co"
} }
} }

8
pages/home/index.vue

@ -4,9 +4,9 @@
<view class="head_box " :style="{ background: bgcolor }" :class="{ active: bgcolor }"> <view class="head_box " :style="{ background: bgcolor }" :class="{ active: bgcolor }">
<view class="cu-custom" :style="[{height:CustomBar+ 'px',}]"> <view class="cu-custom" :style="[{height:CustomBar+ 'px',}]">
<view class="cu-bar fixed" :style="customStyle" <view class="cu-bar fixed" :style="customStyle"
:class="[bgImage!=''?'none-bg text-white bg-img':'',bgColor]"> :class="[bgcolor]">
<view class="action"> <view class="action">
<text class="nav-title shopro-selector-rect">{{ info.name || '商城' }}</text> <text class="nav-title shopro-selector-rect">{{ 'yshop商城' }}</text>
</view> </view>
<view class="content" :style="[{top:StatusBar + 'px'}]"> <view class="content" :style="[{top:StatusBar + 'px'}]">
@ -98,6 +98,7 @@
categoryCurrent: 0, categoryCurrent: 0,
menuNum: 5, menuNum: 5,
bgcolor: '', bgcolor: '',
bgColor: '',
swiperCurrent: 0, // swiperCurrent: 0, //
webviewId: 0, webviewId: 0,
showCoupon: false, showCoupon: false,
@ -172,7 +173,8 @@
slidesPerView: 'auto', slidesPerView: 'auto',
observer: true, observer: true,
observeParents: true observeParents: true
} },
bgImage:''
}; };
}, },
computed: { computed: {

Loading…
Cancel
Save