Browse Source

no message

featrue/v.4.0
xpz2018 5 years ago
parent
commit
7512792b2d
7 changed files with 22 additions and 30 deletions
  1. 8
      pages/bidding/detail/index.js
  2. 2
      pages/home/index/index.wxml
  3. 4
      pages/mall/detail/index.js
  4. 2
      pages/mall/detail/index.wxml
  5. 8
      pages/morder/detail/index.js
  6. 25
      pages/purchase/detail/index.js
  7. 3
      pages/purchase/detail/index.wxml

8
pages/bidding/detail/index.js

@ -140,9 +140,11 @@ Page({
if (!this.data.biddingInfo) { if (!this.data.biddingInfo) {
return return
} }
wx.navigateTo({
url: '/pages/shop/detail/index?storeId=' + this.data.biddingInfo.biddingActivity.storeId
})
if(!app.globalData.userInfo){
wx.navigateTo({ url: '/pages/login/index'})
return
}
wx.navigateTo({ url: '/pages/shop/detail/index?storeId=' + this.data.biddingInfo.biddingActivity.storeId })
}, },
formatePrice: function (value, kg) { formatePrice: function (value, kg) {
if (value || value == 0) { if (value || value == 0) {

2
pages/home/index/index.wxml

@ -5,7 +5,7 @@
<scroll-view scroll-y style="height: {{height}}rpx;"> <scroll-view scroll-y style="height: {{height}}rpx;">
<view style="height:80rpx;background-color:#008AFF;border-radius: 0px 0px 100px 100px"></view>
<view style="height:80rpx;background-color:#008AFF;border-radius: 0px 0px 800px 800px"></view>
<view style="padding:0rpx 32rpx 32rpx 32rpx;margin-top:-48rpx" > <view style="padding:0rpx 32rpx 32rpx 32rpx;margin-top:-48rpx" >
<view class="flex bg-white" style="padding:24rpx 32rpx;border-radius: 6px;" bindtap="toUserInfo"> <view class="flex bg-white" style="padding:24rpx 32rpx;border-radius: 6px;" bindtap="toUserInfo">
<view style="position: relative"> <view style="position: relative">

4
pages/mall/detail/index.js

@ -308,6 +308,10 @@ Page({
if (!this.data.orderInfo) { if (!this.data.orderInfo) {
return return
} }
if(!app.globalData.userInfo){
wx.navigateTo({ url: '/pages/login/index'})
return
}
util.navigateTo('/pages/shop/detail/index?storeId=' + this.data.orderInfo.storeId) util.navigateTo('/pages/shop/detail/index?storeId=' + this.data.orderInfo.storeId)
}, },
biddingPrice: function (price) { biddingPrice: function (price) {

2
pages/mall/detail/index.wxml

@ -73,7 +73,7 @@
</wux-image> </wux-image>
<view class="page-num">{{item.mobile}}</view> <view class="page-num">{{item.mobile}}</view>
</view> </view>
<view class="page-num">{{item.updateTime}}</view>
<view class="page-num">{{item.updateTime || ''}}</view>
<view class="page-num" style="color:red">¥{{formate.formatePrice2(item.biddingUnitPrice, kg)}}</view> <view class="page-num" style="color:red">¥{{formate.formatePrice2(item.biddingUnitPrice, kg)}}</view>
</view> </view>
</view> </view>

8
pages/morder/detail/index.js

@ -206,9 +206,11 @@ Page({
if(!this.data.orderInfo){ if(!this.data.orderInfo){
return return
} }
wx.navigateTo({
url: '/pages/shop/detail/index?storeId=' + this.data.orderInfo.storeId
})
if(!app.globalData.userInfo){
wx.navigateTo({ url: '/pages/login/index'})
return
}
wx.navigateTo({ url: '/pages/shop/detail/index?storeId=' + this.data.orderInfo.storeId })
}, },
bindInput: function(e){ bindInput: function(e){
if(e.target.id == 'grossWeight'){ if(e.target.id == 'grossWeight'){

25
pages/purchase/detail/index.js

@ -56,23 +56,6 @@ Page({
wx.previewImage({ urls: imgList, current: e.currentTarget.dataset.url }) wx.previewImage({ urls: imgList, current: e.currentTarget.dataset.url })
}, },
check: function(){ check: function(){
// if (!app.globalData.userInfo.isAuth) {
// this.wuxDialog.open({
// resetOnClose: true,
// title: '温馨提示',
// content: '您还没有进行个人信息认证,现在去进行个人信息认证?',
// buttons: [{
// text: '确定',
// type: 'primary',
// onTap(e) {
// wx.navigateTo({
// url: '/pages/home/idcard/index'
// })
// }
// }]
// })
// return false
// }
if (!app.globalData.userInfo.isVIP) { if (!app.globalData.userInfo.isVIP) {
this.wuxDialog.open({ this.wuxDialog.open({
resetOnClose: true, resetOnClose: true,
@ -82,9 +65,7 @@ Page({
text: '确定', text: '确定',
type: 'primary', type: 'primary',
onTap(e) { onTap(e) {
wx.navigateTo({
url: '/pages/ztbvip/index'
})
wx.navigateTo({ url: '/pages/ztbvip/index' })
} }
}] }]
}) })
@ -96,6 +77,10 @@ Page({
if (!this.data.orderInfo) { if (!this.data.orderInfo) {
return return
} }
if(!app.globalData.userInfo){
wx.navigateTo({ url: '/pages/login/index'})
return
}
if(this.check()){ if(this.check()){
wx.navigateTo({ url: '/pages/shop/detail/index?storeId=' + this.data.orderInfo.storeId }) wx.navigateTo({ url: '/pages/shop/detail/index?storeId=' + this.data.orderInfo.storeId })
} }

3
pages/purchase/detail/index.wxml

@ -20,7 +20,6 @@
<view class="detail-price">{{orderInfo.unitPrice ? '采购单价:¥' + formate.formatePrice2(orderInfo.unitPrice, kg) : '价格面议'}}</view> <view class="detail-price">{{orderInfo.unitPrice ? '采购单价:¥' + formate.formatePrice2(orderInfo.unitPrice, kg) : '价格面议'}}</view>
</view> </view>
<view class="bg-white margin-top" style="padding:32rpx"> <view class="bg-white margin-top" style="padding:32rpx">
<view class="text-black text-bold" style="font-size:30rpx">采购信息</view> <view class="text-black text-bold" style="font-size:30rpx">采购信息</view>
<view class="bg-white flex margin-top" style="font-size:28rpx;padding:12rpx 0rpx" wx:if="{{orderInfo.locCityName}}"> <view class="bg-white flex margin-top" style="font-size:28rpx;padding:12rpx 0rpx" wx:if="{{orderInfo.locCityName}}">
@ -38,7 +37,7 @@
<view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{orderInfo.description}}</view> <view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{orderInfo.description}}</view>
</view> </view>
<view class="booking-tool" style="bottom:{{ 250 + safeBottom}}rpx">
<view class="booking-tool" style="bottom:{{ 300 + safeBottom}}rpx">
<view class="roder-add flex flex-center"> <view class="roder-add flex flex-center">
<button open-type="share" style="background-color: #fff;border-radius: 0;padding-left: 0px;padding-right: 0px;height:32px;line-height: 32px"> <button open-type="share" style="background-color: #fff;border-radius: 0;padding-left: 0px;padding-right: 0px;height:32px;line-height: 32px">
<text class="cuIcon-share text-gray" style="font-size:22px;"></text> <text class="cuIcon-share text-gray" style="font-size:22px;"></text>

Loading…
Cancel
Save