|
@@ -6,7 +6,7 @@
|
|
|
<view class="logoBox">
|
|
|
<!-- <image src="../../static/img2/indexlogo.png" mode="" class="logoImg"></image> -->
|
|
|
<image v-if="appletHomeSetting.showImageType==0" :src="appletHomeSetting.showImage" mode="" class="logoImg"></image>
|
|
|
- <view class="showTitleBox">
|
|
|
+ <view class="showTitleBox" v-if="appletHomeSetting.showTitleType==0">
|
|
|
{{appletHomeSetting.showTitle}}
|
|
|
</view>
|
|
|
</view>
|
|
@@ -111,9 +111,10 @@
|
|
|
|
|
|
<!-- 有车 -->
|
|
|
<!-- 无车 -->
|
|
|
- <view class="nocarBox" v-if="!carInfo" >
|
|
|
- <image @click="addCar" v-if="appletHomeSetting.carAddImageType!=1" :src="appletHomeSetting.carAddImage" mode="" style="width: 100%;height: 148rpx;"></image>
|
|
|
- <image @click="addCar" v-else src="http://dmsphoto.66km.com.cn/thFiles/1A5B68D2-6627-406D-A775-550C92979026.png" mode="" style="width: 100%;height: 148rpx;"></image>
|
|
|
+ <view class="nocarBox" v-if="!carInfo" ><!-- -->
|
|
|
+ <image @click="addCar" v-if="appletHomeSetting.carAddImageType!=1" :src="appletHomeSetting.carAddImage" mode="" style="width: 100%;height: 148rpx;"></image>
|
|
|
+ <image @click="addCar" v-else :src="appletHomeSetting.carAddImageDefault" mode="" style="width: 100%;height: 148rpx;"></image>
|
|
|
+ <!-- <image @click="addCar" v-else src="http://dmsphoto.66km.com.cn/thFiles/1A5B68D2-6627-406D-A775-550C92979026.png" mode="" style="width: 100%;height: 148rpx;"></image> -->
|
|
|
<!-- <view style="display: flex;">
|
|
|
<image v-if="appletHomeSetting.carAddImageType==1" src="../../static/img2/pic.png" mode="" class="carAddImage"></image>
|
|
|
<image v-else :src="appletHomeSetting.carAddImage" mode="" class="carAddImage"></image>
|
|
@@ -1320,10 +1321,8 @@
|
|
|
this.$store.commit('mutationscarInfo', '')
|
|
|
}else{
|
|
|
if(res.data&&res.data!='null'){
|
|
|
-
|
|
|
this.carInfo = res.data
|
|
|
}else{
|
|
|
-
|
|
|
this.carInfo=''
|
|
|
}
|
|
|
this.$store.commit('mutationscarInfo', this.carInfo)
|
|
@@ -1425,9 +1424,8 @@
|
|
|
this.homeCardList=res.data;
|
|
|
this.appletHomeSetting=res.data.appletHomeSetting;
|
|
|
this.navigationList=res.data.navigationList
|
|
|
- var appletHomeSetting=this.appletHomeSetting
|
|
|
- //this.tabType=appletHomeSetting.sortSettingList[0].type
|
|
|
-
|
|
|
+ var appletHomeSetting=this.appletHomeSetting
|
|
|
+ this.setTabBarItemFn()
|
|
|
if(this.homeCardList.activityModules.length>0){
|
|
|
this.activityModulesShow=true
|
|
|
}
|
|
@@ -1447,44 +1445,183 @@
|
|
|
that.getCarList()
|
|
|
}
|
|
|
});
|
|
|
+ var carbg={
|
|
|
+ carAddImage:appletHomeSetting.carAddImage,
|
|
|
+ carAddImageType:appletHomeSetting.carAddImageType,
|
|
|
+ carAddImageDefault:appletHomeSetting.carAddImageDefault,
|
|
|
+
|
|
|
+ }
|
|
|
uni.setStorage({
|
|
|
- key: 'carAddImage',
|
|
|
- data: appletHomeSetting.carAddImage,
|
|
|
+ key: 'carbg',
|
|
|
+ data: carbg,
|
|
|
success: function () {
|
|
|
|
|
|
}
|
|
|
});
|
|
|
- uni.setTabBarItem({
|
|
|
- index: 0,
|
|
|
- text: '首页',
|
|
|
- iconPath:appletHomeSetting.homeImageUnCheck,
|
|
|
- selectedIconPath: appletHomeSetting.homeImageCheck
|
|
|
- })
|
|
|
- uni.setTabBarItem({
|
|
|
- index: 1,
|
|
|
- text: '商城',
|
|
|
- iconPath:appletHomeSetting.mallImageUnCheck,
|
|
|
- selectedIconPath: appletHomeSetting.mallImageCheck
|
|
|
- })
|
|
|
- uni.setTabBarItem({
|
|
|
- index: 2,
|
|
|
- text: '活动',
|
|
|
- iconPath:appletHomeSetting.activityImageUnCheck,
|
|
|
- selectedIconPath: appletHomeSetting.activityImageCheck
|
|
|
- })
|
|
|
- uni.setTabBarItem({
|
|
|
- index: 3,
|
|
|
- text: '门店',
|
|
|
- iconPath:appletHomeSetting.storeImageUnCheck,
|
|
|
- selectedIconPath: appletHomeSetting.storeImageCheck
|
|
|
- })
|
|
|
- uni.setTabBarItem({
|
|
|
- index: 4,
|
|
|
- text: '我的',
|
|
|
- iconPath:appletHomeSetting.mineImageUnCheck,
|
|
|
- selectedIconPath: appletHomeSetting.mineImageCheck
|
|
|
- })
|
|
|
+
|
|
|
})
|
|
|
+ },
|
|
|
+ setTabBarItemFn(){
|
|
|
+ var appletHomeSetting=this.appletHomeSetting
|
|
|
+ /* uni.setTabBarStyle({
|
|
|
+ // color: '#FF0000',
|
|
|
+ selectedColor: '#'+this.themeColor,
|
|
|
+ }) */
|
|
|
+ if(appletHomeSetting.showHomeType==1){
|
|
|
+ if(this.themeColor=='6F2BE8'){
|
|
|
+ var backgroundImage='/static/tabimg/index6F2BE8.png'
|
|
|
+ }else if(this.themeColor=='1677FF'){
|
|
|
+ var backgroundImage='/static/tabimg/index1677FF.png'
|
|
|
+ }else if(this.themeColor=='FF4F00'){
|
|
|
+ var backgroundImage='/static/tabimg/indexFF4F00.png'
|
|
|
+ }else if(this.themeColor=='D53533'){
|
|
|
+ var backgroundImage='/static/tabimg/index1.png'
|
|
|
+ }else{
|
|
|
+ var backgroundImage='/static/tabimg/index1.png'
|
|
|
+ }
|
|
|
+
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 0,
|
|
|
+ text: '首页',
|
|
|
+ iconPath:'/static/tabimg/index2.png',
|
|
|
+ selectedIconPath: backgroundImage
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 0,
|
|
|
+ text: '首页',
|
|
|
+ iconPath:appletHomeSetting.homeImageUnCheck,
|
|
|
+ selectedIconPath: appletHomeSetting.homeImageCheck
|
|
|
+ })
|
|
|
+ }
|
|
|
+ //商城
|
|
|
+ if(appletHomeSetting.showMallType==1){
|
|
|
+ if(this.themeColor=='6F2BE8'){
|
|
|
+ var backgroundImage='/static/tabimg/shop6F2BE8.png'
|
|
|
+ }else
|
|
|
+ if(this.themeColor=='1677FF'){
|
|
|
+ var backgroundImage='/static/tabimg/shop1677FF.png'
|
|
|
+ }else
|
|
|
+ if(this.themeColor=='FF4F00'){
|
|
|
+ var backgroundImage='/static/tabimg/shopFF4F00.png'
|
|
|
+ }else
|
|
|
+ if(this.themeColor=='D53533'){
|
|
|
+ var backgroundImage='/static/tabimg/shop1.png'
|
|
|
+ }else{
|
|
|
+ var backgroundImage='/static/tabimg/shop1.png'
|
|
|
+ }
|
|
|
+
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 1,
|
|
|
+ text: '商城',
|
|
|
+ iconPath:'/static/tabimg/shop2.png',
|
|
|
+ selectedIconPath: backgroundImage
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 1,
|
|
|
+ text: '商城',
|
|
|
+ iconPath:appletHomeSetting.mallImageUnCheck,
|
|
|
+ selectedIconPath: appletHomeSetting.mallImageCheck
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(appletHomeSetting.showActivityType==1){
|
|
|
+ if(this.themeColor=='6F2BE8'){
|
|
|
+ var backgroundImage='/static/tabimg/activty6F2BE8.png'
|
|
|
+ }else
|
|
|
+ if(this.themeColor=='1677FF'){
|
|
|
+ var backgroundImage='/static/tabimg/activty1677FF.png'
|
|
|
+ }else
|
|
|
+ if(this.themeColor=='FF4F00'){
|
|
|
+ var backgroundImage='/static/tabimg/activtyFF4F00.png'
|
|
|
+ }else
|
|
|
+ if(this.themeColor=='D53533'){
|
|
|
+ var backgroundImage='/static/tabimg/activity1.png'
|
|
|
+ }else{
|
|
|
+ var backgroundImage='/static/tabimg/activity1.png'
|
|
|
+ }
|
|
|
+
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 2,
|
|
|
+ text: '活动',
|
|
|
+ iconPath:'/static/tabimg/activty2.png',
|
|
|
+ selectedIconPath: backgroundImage
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 2,
|
|
|
+ text: '活动',
|
|
|
+ iconPath:appletHomeSetting.activityImageUnCheck,
|
|
|
+ selectedIconPath: appletHomeSetting.activityImageCheck
|
|
|
+ })
|
|
|
+ }
|
|
|
+ //门店
|
|
|
+ if(appletHomeSetting.showStoreType==1){
|
|
|
+ if(this.themeColor=='6F2BE8'){
|
|
|
+ var backgroundImage='/static/tabimg/shop6F2BE8.png'
|
|
|
+ }else
|
|
|
+ if(this.themeColor=='1677FF'){
|
|
|
+ var backgroundImage='/static/tabimg/shop1677FF.png'
|
|
|
+ }else
|
|
|
+ if(this.themeColor=='FF4F00'){
|
|
|
+ var backgroundImage='/static/tabimg/shopFF4F00.png'
|
|
|
+ }else
|
|
|
+ if(this.themeColor=='D53533'){
|
|
|
+ var backgroundImage='/static/tabimg/shop1.png'
|
|
|
+ }else{
|
|
|
+ var backgroundImage='/static/tabimg/shop1.png'
|
|
|
+ }
|
|
|
+
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 3,
|
|
|
+ text: '门店',
|
|
|
+ iconPath:'/static/tabimg/shop2.png',
|
|
|
+ selectedIconPath: backgroundImage
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 3,
|
|
|
+ text: '门店',
|
|
|
+ iconPath:appletHomeSetting.storeImageUnCheck,
|
|
|
+ selectedIconPath: appletHomeSetting.storeImageCheck
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(appletHomeSetting.showMineType==1){
|
|
|
+ if (this.themeColor == '6F2BE8') {
|
|
|
+ var backgroundImage = '/static/tabimg/me6F2BE8.png'
|
|
|
+ }else
|
|
|
+ if (this.themeColor == '1677FF') {
|
|
|
+ var backgroundImage = '/static/tabimg/me1677FF.png'
|
|
|
+ }else
|
|
|
+ if (this.themeColor == 'FF4F00') {
|
|
|
+ var backgroundImage = '/static/tabimg/meFF4F00.png'
|
|
|
+ }else
|
|
|
+ if (this.themeColor == 'D53533') {
|
|
|
+ var backgroundImage = '/static/tabimg/me1.png'
|
|
|
+ }else{
|
|
|
+ var backgroundImage = '/static/tabimg/me1.png'
|
|
|
+ }
|
|
|
+
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 4,
|
|
|
+ text: '我的',
|
|
|
+ iconPath:'/static/tabimg/me2.png',
|
|
|
+ selectedIconPath: backgroundImage
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.setTabBarItem({
|
|
|
+ index: 4,
|
|
|
+ text: '我的',
|
|
|
+ iconPath:appletHomeSetting.mineImageUnCheck,
|
|
|
+ selectedIconPath: appletHomeSetting.mineImageCheck
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
getShopinfo(num,shopId){
|
|
|
var that=this;
|