|
@@ -58,10 +58,11 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 服务顾问 -->
|
|
|
- <view class="adviser" v-if="homeCardList.openMUsers.showType==1" @click="goMUsers">
|
|
|
+ <view class="adviser" v-if="managerInfo" @click="goMUsers">
|
|
|
<view class="adviserLeft">
|
|
|
- <img src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
|
|
|
- <view class="adviserNema">{{homeCardList.openMUsers.operatorName}}</view>
|
|
|
+ <img v-if="managerInfo.avatar" :src="managerInfo.avatar" alt="" class="advisertx">
|
|
|
+ <img v-else src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
|
|
|
+ <view class="adviserNema">{{managerInfo.name}}</view>
|
|
|
<view class="adviserms">服务顾问</view>
|
|
|
</view>
|
|
|
<img src="../../static/timg/icon_arrow_right.png" alt="" class="adviserJt">
|
|
@@ -140,38 +141,40 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 热门商品 -->
|
|
|
-
|
|
|
- <view class="Hot">
|
|
|
- <view class="hotTop">
|
|
|
- <view class="hotLeft">
|
|
|
- <view class="hotSx"></view>
|
|
|
- <view class="hottitle">热门商品</view>
|
|
|
- </view>
|
|
|
- <view class="hotRight">
|
|
|
- <view class="hotMore">更多</view>
|
|
|
- <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="hotGoodsLine" v-for="(item,index) in 5">
|
|
|
- <view>
|
|
|
- <image src="../../static/timg/nocar.png" mode="" class="hotGoodsLineImg"></image>
|
|
|
+ <view class="" v-if="homeCardList">
|
|
|
+ <view class="Hot" v-if="homeCardList.openMGoods.showType==1">
|
|
|
+ <view class="hotTop">
|
|
|
+ <view class="hotLeft">
|
|
|
+ <view class="hotSx"></view>
|
|
|
+ <view class="hottitle">热门商品</view>
|
|
|
+ </view>
|
|
|
+ <view class="hotRight">
|
|
|
+ <view class="hotMore">更多</view>
|
|
|
+ <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="hotGoodsLineRIght">
|
|
|
- <view class="goodsName">德国马牌 Continental 全新升级6代 TechContct德国马牌 Continental 全新升级6代 TechContct</view>
|
|
|
- <view class="Sold">已售 999</view>
|
|
|
- <view class="goodsPrice">
|
|
|
- <view class="goodsPrice1">店庆价</view>
|
|
|
- <view class="goodsPrice2">¥</view>
|
|
|
- <view class="goodsPrice3">999</view>
|
|
|
- <view class="goodsPrice3">¥893</view>
|
|
|
+
|
|
|
+ <view class="hotGoodsLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)">
|
|
|
+ <view>
|
|
|
+ <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
|
|
|
+ </view>
|
|
|
+ <view class="hotGoodsLineRIght">
|
|
|
+ <view class="goodsName">{{item.name}}</view>
|
|
|
+ <view class="Sold">已售 {{item.saleQty}}</view>
|
|
|
+ <view class="goodsPrice">
|
|
|
+ <view class="goodsPrice1">{{item.saleLabel}}</view>
|
|
|
+ <view class="goodsPrice2">¥</view>
|
|
|
+ <view class="goodsPrice3">{{item.salePrice}}</view>
|
|
|
+ <view class="goodsPrice4" v-if="item.scribingPrice">¥{{item.scribingPrice}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
|
|
|
|
|
|
+
|
|
|
<view style="height: 60rpx;"></view>
|
|
|
<!-- 手机号授权 -->
|
|
|
<view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
|
|
@@ -205,6 +208,7 @@
|
|
|
authorizShow:false,
|
|
|
miniAppName:'',
|
|
|
iStatusBarHeight:'',
|
|
|
+ managerInfo:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -231,6 +235,7 @@
|
|
|
//this.wxOpenData = uni.getStorageSync("wxOpenData");
|
|
|
this.getCarList();
|
|
|
this.queryHomeCardList()
|
|
|
+ this.queryManagerInfo()
|
|
|
}else{
|
|
|
this.uniLogin()
|
|
|
}
|
|
@@ -271,6 +276,15 @@
|
|
|
|
|
|
}
|
|
|
},
|
|
|
+ goGoods(item){
|
|
|
+ if(!this.userInfo){
|
|
|
+ this.authorizShow=true;
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'../shop/goodsDetail?id='+item.id
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
goRoter(item){
|
|
|
console.log(item)
|
|
|
if(!this.userInfo){
|
|
@@ -292,25 +306,14 @@
|
|
|
})
|
|
|
}else if(item.bizType==4){ //在线预约
|
|
|
uni.navigateTo({
|
|
|
- url:'onlineBooking'
|
|
|
+ url:'onlineBooking?naShopId='+item.naShopId
|
|
|
})
|
|
|
}else if(item.bizType==5){ //导航
|
|
|
- uni.openLocation({
|
|
|
- latitude:'36.671541' ,
|
|
|
- longitude:'117.138777',
|
|
|
- name: '',
|
|
|
- address: '',
|
|
|
- success: function() {
|
|
|
- console.log('success');
|
|
|
- },
|
|
|
- fail(err) {
|
|
|
- console.log(err)
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
+ this.getShopinfo(5,item.reShopId)
|
|
|
}else if(item.bizType==6){ //联系本店
|
|
|
- uni.makePhoneCall({
|
|
|
- phoneNumber: 10086
|
|
|
- });
|
|
|
+ this.getShopinfo(6,item.orShopId)
|
|
|
+
|
|
|
}else if(item.bizType==7){ //7门店列表
|
|
|
uni.navigateTo({
|
|
|
url:'shopList'
|
|
@@ -344,9 +347,17 @@
|
|
|
url:'../user/checkReport'
|
|
|
})
|
|
|
}else if(item.bizType==14){ //指定商品分类
|
|
|
- uni.navigateTo({
|
|
|
- url:'../shop/shop'
|
|
|
- })
|
|
|
+ uni.setStorage({
|
|
|
+ key: 'shopcategoryID',
|
|
|
+ data: item.bizId,
|
|
|
+ success: function () {
|
|
|
+ getApp().globalData.shopcategoryID=item.bizId;
|
|
|
+ uni.switchTab({
|
|
|
+ url:'../shop/shop?shopcategoryID='+ item.bizId
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
}else if(item.bizType==15){ //商品详情
|
|
|
uni.navigateTo({
|
|
|
url:'../shop/goodsDetail?id=CD2D70DC-706C-4441-9864-33BD19457CAE'
|
|
@@ -422,6 +433,7 @@
|
|
|
if(this.wxOpenData.loginInfo){
|
|
|
this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
|
|
|
this.userInfo=that.wxOpenData.loginInfo.openUser
|
|
|
+ that.queryManagerInfo()
|
|
|
uni.setStorage({
|
|
|
key: 'userInfo',
|
|
|
data: that.wxOpenData.loginInfo.openUser,
|
|
@@ -455,6 +467,7 @@
|
|
|
success: function () {
|
|
|
that.getCarList()
|
|
|
that.queryHomeCardList()
|
|
|
+ that.queryManagerInfo()
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -474,6 +487,15 @@
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ queryManagerInfo(){
|
|
|
+ console.log("11")
|
|
|
+ this.$http('openHome/queryManagerInfo', {
|
|
|
+
|
|
|
+ },'GET').then(res => {
|
|
|
+ this.managerInfo=res.data
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
queryHomeCardList(){
|
|
|
//console.log(this.wxOpenData)
|
|
|
this.$http('openHome/queryHomeCardList', {
|
|
@@ -482,6 +504,39 @@
|
|
|
uni.hideLoading();
|
|
|
this.homeCardList=res.data
|
|
|
})
|
|
|
+ },
|
|
|
+ getShopinfo(num,shopId){
|
|
|
+ var that=this;
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ })
|
|
|
+ if(!shopId){
|
|
|
+ shopId=''
|
|
|
+ }
|
|
|
+ this.$http('openmy/getShopinfo', {
|
|
|
+ shopId:shopId
|
|
|
+ },'GET').then(res => {
|
|
|
+ uni.hideLoading();
|
|
|
+ var res=res.data
|
|
|
+ if(num==5){
|
|
|
+ uni.openLocation({
|
|
|
+ latitude:Number(res.lat),
|
|
|
+ longitude:Number(res.lng),
|
|
|
+ name: res.shopName,
|
|
|
+ address: res.address,
|
|
|
+ success: function() {
|
|
|
+ console.log('success');
|
|
|
+ },
|
|
|
+ fail(err) {
|
|
|
+ console.log(err)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: res.contactorPhone
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -906,21 +961,27 @@
|
|
|
font-size: 24rpx;
|
|
|
font-weight: 400;
|
|
|
color: #FF0000;
|
|
|
+ padding-top: 5rpx;
|
|
|
}
|
|
|
.goodsPrice2{
|
|
|
font-size: 22rpx;
|
|
|
font-weight: 400;
|
|
|
color: #FF0000;
|
|
|
+ padding-top: 10rpx;
|
|
|
}
|
|
|
.goodsPrice3{
|
|
|
font-size: 32rpx;
|
|
|
- font-weight: 400;
|
|
|
+ font-weight: 500;
|
|
|
color: #FF0000;
|
|
|
}
|
|
|
- .goodsPrice3{
|
|
|
+
|
|
|
+ .goodsPrice4{
|
|
|
font-size: 24rpx;
|
|
|
font-weight: 400;
|
|
|
color: #999999;
|
|
|
+ padding-top: 8rpx;
|
|
|
+ padding-left: 5rpx;
|
|
|
+ text-decoration:line-through;
|
|
|
}
|
|
|
.Sold{
|
|
|
font-weight: 400;
|