im重复请求问题
parent
bc10d774a7
commit
63ebf1a7c5
|
@ -36,8 +36,8 @@
|
||||||
}}</text>
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="goodsdesc-rice" style="margin-top:10rpx; color: orange;"><text
|
<view class="goodsdesc-rice" style="margin-top:10rpx; color: orange;"><text
|
||||||
style="font-size:20rpx;">¥{{
|
style="font-size:20rpx;">¥{{
|
||||||
JSON.parse(item.text)['price']
|
JSON.parse(item.text)['price'] | unitPrice
|
||||||
}}</text>
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -141,8 +141,8 @@
|
||||||
goodListData.goodsName
|
goodListData.goodsName
|
||||||
}}</text>
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="goodsdesc-rice" style="margin-top:10rpx; color: orange;"><text style="font-size:20rpx;">¥{{
|
<view class="goodsdesc-rice" style="margin-top:10rpx; color: orange;"><text style="font-size:20rpx;"> ¥{{
|
||||||
goodListData.price
|
goodListData.price | unitPrice
|
||||||
}}</text>
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -318,7 +318,8 @@ export default {
|
||||||
scrollHeight: 0,
|
scrollHeight: 0,
|
||||||
ws: new SocketService(),
|
ws: new SocketService(),
|
||||||
resolve: {},
|
resolve: {},
|
||||||
goodListData: {}
|
goodListData: {},
|
||||||
|
count: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// watch: {
|
// watch: {
|
||||||
|
@ -416,16 +417,15 @@ export default {
|
||||||
if (!this.socketOpen) {
|
if (!this.socketOpen) {
|
||||||
// 监听连接失败
|
// 监听连接失败
|
||||||
uni.onSocketError(function (err) {
|
uni.onSocketError(function (err) {
|
||||||
let count = 0;
|
if (this.count < 3) {
|
||||||
if (count < 3) {
|
|
||||||
if (err && err.code !== 1000) {
|
if (err && err.code !== 1000) {
|
||||||
_this.socketOpen = true;
|
_this.socketOpen = true;
|
||||||
uni.connectSocket({
|
uni.connectSocket({
|
||||||
url: url,
|
url: url,
|
||||||
});
|
});
|
||||||
count = count + 1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.count++
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 监听连接关闭
|
// 监听连接关闭
|
||||||
|
@ -795,6 +795,7 @@ export default {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-left: 12rpx;
|
margin-left: 12rpx;
|
||||||
|
width: 400rpx;
|
||||||
|
|
||||||
.goodsdesc-name {
|
.goodsdesc-name {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
@ -804,6 +805,7 @@ export default {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
|
||||||
|
|
||||||
.goodsCard_goodNmae {
|
.goodsCard_goodNmae {
|
||||||
color: black;
|
color: black;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
this.routerVal.id +
|
this.routerVal.id +
|
||||||
'&goodsId=' +
|
'&goodsId=' +
|
||||||
this.routerVal.goodsId
|
this.routerVal.goodsId
|
||||||
" :thumbnail="goodsDetail.thumbnail" :goodsName="goodsDetail.goodsName" type="goods" @close="enableShare = false" />
|
" :thumbnail="goodsDetail.thumbnail" :goodsName="goodsDetail.goodsName" type="goods"
|
||||||
|
@close="enableShare = false" />
|
||||||
<popups v-model="popupsSwitch" @tapPopup="handleNavbarList" :popData="navbarListData" :x="navbarListX"
|
<popups v-model="popupsSwitch" @tapPopup="handleNavbarList" :popData="navbarListData" :x="navbarListX"
|
||||||
:y="navbarListY" placement="top-start" />
|
:y="navbarListY" placement="top-start" />
|
||||||
<view class="index">
|
<view class="index">
|
||||||
|
@ -66,8 +67,8 @@
|
||||||
<u-icon size="30" :color="favorite ? '#f2270c' : '#262626'" :name="favorite ? 'heart-fill' : 'heart'">
|
<u-icon size="30" :color="favorite ? '#f2270c' : '#262626'" :name="favorite ? 'heart-fill' : 'heart'">
|
||||||
</u-icon>
|
</u-icon>
|
||||||
<view :style="{ color: favorite ? '#f2270c' : '#262626' }">{{
|
<view :style="{ color: favorite ? '#f2270c' : '#262626' }">{{
|
||||||
favorite ? "已收藏" : "收藏"
|
favorite? "已收藏": "收藏"
|
||||||
}}</view>
|
}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 商品描述 -->
|
<!-- 商品描述 -->
|
||||||
|
@ -86,19 +87,20 @@
|
||||||
<span v-if="wholesaleList.length">
|
<span v-if="wholesaleList.length">
|
||||||
<span>¥</span><span class="price">{{
|
<span>¥</span><span class="price">{{
|
||||||
$options.filters.goodsFormatPrice(wholesaleList[wholesaleList.length - 1].price)[0]
|
$options.filters.goodsFormatPrice(wholesaleList[wholesaleList.length - 1].price)[0]
|
||||||
}}</span>.{{
|
}}</span>.{{
|
||||||
$options.filters.goodsFormatPrice(wholesaleList[wholesaleList.length - 1].price)[1]
|
$options.filters.goodsFormatPrice(wholesaleList[wholesaleList.length - 1].price)[1]
|
||||||
}}
|
}}
|
||||||
~
|
~
|
||||||
<span>¥</span><span class="price">{{
|
<span>¥</span><span class="price">{{
|
||||||
$options.filters.goodsFormatPrice(wholesaleList[0].price)[0]
|
$options.filters.goodsFormatPrice(wholesaleList[0].price)[0]
|
||||||
}}</span>.{{
|
}}</span>.{{
|
||||||
$options.filters.goodsFormatPrice(wholesaleList[0].price)[1]
|
$options.filters.goodsFormatPrice(wholesaleList[0].price)[1]
|
||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<span>¥</span><span class="price">{{ $options.filters.goodsFormatPrice(goodsDetail.price)[0]
|
<span>¥</span><span class="price">{{
|
||||||
}}</span>.{{ $options.filters.goodsFormatPrice(goodsDetail.price)[1] }}
|
$options.filters.goodsFormatPrice(goodsDetail.price)[0]
|
||||||
|
}}</span>.{{ $options.filters.goodsFormatPrice(goodsDetail.price)[1] }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</view>
|
</view>
|
||||||
|
@ -114,8 +116,8 @@
|
||||||
<u-icon size="30" :color="favorite ? '#f2270c' : '#262626'"
|
<u-icon size="30" :color="favorite ? '#f2270c' : '#262626'"
|
||||||
:name="favorite ? 'heart-fill' : 'heart'"></u-icon>
|
:name="favorite ? 'heart-fill' : 'heart'"></u-icon>
|
||||||
<view :style="{ color: favorite ? '#f2270c' : '#262626' }">{{
|
<view :style="{ color: favorite ? '#f2270c' : '#262626' }">{{
|
||||||
favorite ? "已收藏" : "收藏"
|
favorite? "已收藏": "收藏"
|
||||||
}}</view>
|
}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="-goods-name desc-bold">
|
<view class="-goods-name desc-bold">
|
||||||
|
@ -151,7 +153,7 @@
|
||||||
<view class="card-content">
|
<view class="card-content">
|
||||||
<span v-if="selectedGoods.spec">{{ selectedGoods.spec.specName }}-{{
|
<span v-if="selectedGoods.spec">{{ selectedGoods.spec.specName }}-{{
|
||||||
selectedGoods.spec.specValue
|
selectedGoods.spec.specValue
|
||||||
}}</span>
|
}}</span>
|
||||||
<span v-else>默认</span>
|
<span v-else>默认</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="card-bottom">
|
<view class="card-bottom">
|
||||||
|
@ -163,7 +165,7 @@
|
||||||
<view class="card-content">
|
<view class="card-content">
|
||||||
<span v-if="delivery">{{
|
<span v-if="delivery">{{
|
||||||
delivery.consigneeAddressPath | clearStrComma
|
delivery.consigneeAddressPath | clearStrComma
|
||||||
}}</span>
|
}}</span>
|
||||||
<span v-else>暂无地址信息</span>
|
<span v-else>暂无地址信息</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="card-bottom">
|
<view class="card-bottom">
|
||||||
|
@ -601,10 +603,10 @@ export default {
|
||||||
|
|
||||||
linkMsgDetail () {
|
linkMsgDetail () {
|
||||||
// lili 基础客服
|
// lili 基础客服
|
||||||
// this.$options.filters.talkIm(this.storeDetail.storeId)
|
this.$options.filters.talkIm(this.goodsDetail.storeId, this.routerVal.goodsId, this.routerVal.id)
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url: `/pages/mine/im/index?userId=${this.goodsDetail.storeId}&goodsid=${this.routerVal.goodsId}&skuid=${this.routerVal.id}`
|
// url: `/pages/mine/im/index?userId=${this.goodsDetail.storeId}&goodsid=${this.routerVal.goodsId}&skuid=${this.routerVal.id}`
|
||||||
});
|
// });
|
||||||
|
|
||||||
// udesk 代码
|
// udesk 代码
|
||||||
// if (this.storeDetail.merchantEuid) {
|
// if (this.storeDetail.merchantEuid) {
|
||||||
|
|
|
@ -363,10 +363,10 @@ export function quiteLoginOut () {
|
||||||
/**
|
/**
|
||||||
* 跳转im
|
* 跳转im
|
||||||
*/
|
*/
|
||||||
export function talkIm (storeId) {
|
export function talkIm (storeId, goodsId, id) {
|
||||||
if (isLogin('auth')) {
|
if (isLogin('auth')) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/tabbar/home/web-view?IM=${storeId}`,
|
url: `/pages/mine/im/index?userId=${storeId}&goodsid=${goodsId}&skuid=${id}`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue