Commit fde2e5b2 by 赵雅纹

Merge branch 'fixbug-ZYW' into 'dev_7.1.0'

Fixbug zyw

See merge request !132
parents 9462e83a 02262c8d
<!--component/buyImageSwiper/buyImageSwiper.wxml--> <!--component/buyImageSwiper/buyImageSwiper.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<view class="image-wrap"> <view class="image-wrap">
<swiper <swiper
indicator-dots="{{indicatorDots}}" indicator-dots="{{indicatorDots}}"
...@@ -11,7 +12,8 @@ ...@@ -11,7 +12,8 @@
> >
<block wx:for="{{imageData}}" wx:key="{{item}}"> <block wx:for="{{imageData}}" wx:key="{{item}}">
<swiper-item class="swiper-item"> <swiper-item class="swiper-item">
<image src="{{item.url}}" data-appid="{{item.id}}" data-path="{{item.link.url}}" data-link="{{item.link}}" data-item="{{item}}" bindtap='preview' class="slide-image" /> <image src="{{item.url}}" wx:if="{{!item.videoUrl}}" data-appid="{{item.id}}" data-path="{{item.link.url}}" data-link="{{item.link}}" data-item="{{item}}" bindtap='preview' class="slide-image" />
<video class="slide-image" src="{{utils.formateUrl(item.videoUrl,baseImgUrl)}}" wx:if="{{item.videoUrl}}" controls="true" autoplay="true"></video>
</swiper-item> </swiper-item>
</block> </block>
......
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
<view class="pro-nav-wrap"> <view class="pro-nav-wrap">
<view class="nav-list"> <view class="nav-list">
<block wx:for="{{navTab}}" wx:key="{{index}}"> <block wx:for="{{navTab}}" wx:key="{{index}}">
<view class="nav-item {{currentTab == item.type ? 'nav-active' : ''}}" bindtap="switchTab" data-type="{{item.type}}">{{item.name}}</view> <view class="nav-item {{currentTab == item.type ? 'nav-active' : ''}}" bindtap="switchTab" data-type="{{item.type}}">{{item.name}}
<!-- <image mode="widthFix" src="{{}}"></image> -->
</view>
</block> </block>
</view> </view>
<view class="pro-style" bindtap="switchProStyle"> <view class="pro-style" bindtap="switchProStyle">
......
...@@ -87,26 +87,28 @@ wxService.page({ ...@@ -87,26 +87,28 @@ wxService.page({
// 获取关联商品 // 获取关联商品
getInitPro(productIds){ getInitPro(productIds){
wxService.post(`/sale/product/buyer/listPage?pageNo=${this.data.pageNo}&pageSize=${this.data.pageSize}`,{ if (productIds && productIds.length > 0){
productIds: productIds wxService.post(`/sale/product/buyer/listPage?pageNo=${this.data.pageNo}&pageSize=${this.data.pageSize}`,{
}).then(res => { productIds: productIds
const { result, data } = res.data }).then(res => {
if (result == 0 && data.content) { const { result, data } = res.data
this.setData({ if (result == 0 && data.content) {
proGoods: data.content
})
let stcList = []
for (var i in this.data.proGoods) {
stcList.push({
commodityId: this.data.proGoods[i].productId
})
this.setData({ this.setData({
'params.stcList': stcList proGoods: data.content
}) })
let stcList = []
for (var i in this.data.proGoods) {
stcList.push({
commodityId: this.data.proGoods[i].productId
})
this.setData({
'params.stcList': stcList
})
}
} }
} }).finally(() => {
}).finally(() => { })
}) }
}, },
// 关联商品 // 关联商品
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"x-dialog": "/component/dialog/dialog", "x-dialog": "/component/dialog/dialog",
"card-modal": "/component/cardModal/cardModal", "card-modal": "/component/cardModal/cardModal",
"go-home": "/component/goHome/goHome", "go-home": "/component/goHome/goHome",
"x-html": "/component/html2wxml/wxHtml" "x-html": "/component/html2wxml/wxHtml",
"buy-image-swiper": "/component/buyImageSwiper/buyImageSwiper"
} }
} }
\ No newline at end of file
<!--subPackage/page/pages/myReleaseDetail.wxml--> <!--subPackage/page/pages/myReleaseDetail.wxml-->
<view class="release-detail"> <view class="release-detail">
<view class="detail-img"> <!-- <view class="detail-img">
<image src="{{contentInfo.sspList[0].url}}" /> <image src="{{contentInfo.sspList[0].url}}" />
</view> </view> -->
<buy-image-swiper bind:updatePage="updatePage" image-data="{{contentInfo.sspList}}" />
<view class="detail-content border_box"> <view class="detail-content border_box">
<view class="detail-title">{{contentInfo.headline}}</view> <view class="detail-title">{{contentInfo.headline}}</view>
<view class="detail-desc"><x-html html="{{contentInfo.article}}" /></view> <view class="detail-desc"><x-html html="{{contentInfo.article}}" /></view>
......
...@@ -109,7 +109,8 @@ class Http { ...@@ -109,7 +109,8 @@ class Http {
post (url, parmas, channel) { post (url, parmas, channel) {
let baseUserInfo = wx.getStorageSync('_baseUserInfo') let baseUserInfo = wx.getStorageSync('_baseUserInfo')
console.log('has base info ----',baseUserInfo)
console.log('header tentacle info ----', this.getTentacle())
if(baseUserInfo){ if(baseUserInfo){
return this.request({ return this.request({
url, url,
...@@ -213,8 +214,10 @@ class Http { ...@@ -213,8 +214,10 @@ class Http {
tentacle = storage.obj; tentacle = storage.obj;
} }
console.log(tentacle)
if (tentacle && TIME_EXPIRATION > time){ if (tentacle && TIME_EXPIRATION > time){
wx.setStorageSync('TIME_EXPIRATION', time) wx.setStorageSync('TIME_EXPIRATION', time + 30*60*1000);
return JSON.stringify(tentacle); return JSON.stringify(tentacle);
}else{ }else{
wx.removeStorageSync('TENTACLE_CONTENT') wx.removeStorageSync('TENTACLE_CONTENT')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment