|
|
|
@ -1,21 +1,21 @@
|
|
|
|
|
<template> |
|
|
|
|
<view class="index"> |
|
|
|
|
<!-- 导航栏 --> |
|
|
|
|
<!-- <view class="head_box " :style="{ background: bgcolor }" :class="{ active: bgcolor }">--> |
|
|
|
|
<!-- <view class="cu-custom" :style="[{height:CustomBar+ 'px',}]">--> |
|
|
|
|
<!-- <view class="cu-bar fixed" :style="customStyle" :class="[bgcolor]">--> |
|
|
|
|
<!-- <view class="action">--> |
|
|
|
|
<!-- <text class="nav-title Shop-selector-rect">{{ 'yshop商城' }}</text>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
<!-- <view class="content" :style="[{top:StatusBar + 'px'}]">--> |
|
|
|
|
<!-- <view class="head_box " :style="{ background: bgcolor }" :class="{ active: bgcolor }">--> |
|
|
|
|
<!-- <view class="cu-custom" :style="[{height:CustomBar+ 'px',}]">--> |
|
|
|
|
<!-- <view class="cu-bar fixed" :style="customStyle" :class="[bgcolor]">--> |
|
|
|
|
<!-- <view class="action">--> |
|
|
|
|
<!-- <text class="nav-title Shop-selector-rect">{{ 'yshop商城' }}</text>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
<!-- <view class="content" :style="[{top:StatusBar + 'px'}]">--> |
|
|
|
|
|
|
|
|
|
<!-- </view>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
|
|
|
|
|
<view class="head_box " :style="{ background: bgcolor }" :class="{ active: bgcolor }"> |
|
|
|
|
<cu-custom :isBack="true" > |
|
|
|
|
<cu-custom :isBack="true" :bgColor="bgcolor"> |
|
|
|
|
<block slot="backText"> |
|
|
|
|
<text class="nav-title shopro-selector-rect">{{ 'YSHOP商城' }}</text> |
|
|
|
|
</block> |
|
|
|
@ -31,8 +31,7 @@
|
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<Banner :detail="banner" v-if="banner.length>0" @getbgcolor="getbgcolor"></Banner> |
|
|
|
|
<uni-notice-bar scrollable="true" @click="goRoll(singNew)" single="true" :speed="10" showIcon="true" |
|
|
|
|
:text="singNew.info"></uni-notice-bar> |
|
|
|
|
<uni-notice-bar scrollable="true" @click="goRoll(singNew)" single="true" :speed="10" showIcon="true" :text="singNew.info"></uni-notice-bar> |
|
|
|
|
<view class="content_box home_content_box"> |
|
|
|
|
<!-- 菜单 --> |
|
|
|
|
<Menu :list="menus"></Menu> |
|
|
|
@ -112,7 +111,7 @@
|
|
|
|
|
Live |
|
|
|
|
}, |
|
|
|
|
props: {}, |
|
|
|
|
data: function () { |
|
|
|
|
data: function() { |
|
|
|
|
return { |
|
|
|
|
CustomBar: this.CustomBar, |
|
|
|
|
StatusBar: this.StatusBar, |
|
|
|
@ -215,7 +214,7 @@
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
onShow: function () { |
|
|
|
|
onShow: function() { |
|
|
|
|
this.getLocation() |
|
|
|
|
let that = this; |
|
|
|
|
uni.showLoading({ |
|
|
|
@ -243,14 +242,14 @@
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
...mapActions(["getLocation"]), |
|
|
|
|
onShareTimeline: function () { |
|
|
|
|
onShareTimeline: function() { |
|
|
|
|
return { |
|
|
|
|
title: this.miniHomeRemark, |
|
|
|
|
imageUrl: this.miniHomeImg, |
|
|
|
|
path: "pages/home/index?spread=" + uni.getStorageSync("uid") |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onShareAppMessage: function () { |
|
|
|
|
onShareAppMessage: function() { |
|
|
|
|
return { |
|
|
|
|
title: this.miniHomeRemark, |
|
|
|
|
imageUrl: this.miniHomeImg, |
|
|
|
@ -288,7 +287,7 @@
|
|
|
|
|
goGoodsPromotion() { |
|
|
|
|
this.$yrouter.push('/pages/shop/GoodsPromotion/index'); |
|
|
|
|
}, |
|
|
|
|
setOpenShare: function () { |
|
|
|
|
setOpenShare: function() { |
|
|
|
|
if (this.$deviceType == 'weixin') { |
|
|
|
|
getShare().then(res => { |
|
|
|
|
var data = res.data.data; |
|
|
|
@ -302,7 +301,7 @@
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
startQr: function () { |
|
|
|
|
startQr: function() { |
|
|
|
|
uni.scanCode({ |
|
|
|
|
success: (res) => { |
|
|
|
|
let option = handleUrlParam(res.result) |
|
|
|
@ -351,7 +350,7 @@
|
|
|
|
|
this.bgcolor = e; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
created: async function () { |
|
|
|
|
created: async function() { |
|
|
|
|
// await this.doColorThief(); |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
@ -447,4 +446,12 @@
|
|
|
|
|
.home_content_box { |
|
|
|
|
margin-top: -10rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.head_box { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.nav-title { |
|
|
|
|
margin-left: 20rpx; |
|
|
|
|
line-height: 40px; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|