twt 11 月之前
父节点
当前提交
1d27865a0b
共有 2 个文件被更改,包括 7 次插入3 次删除
  1. 3 3
      pages/user/historyDetail.vue
  2. 4 0
      utils/common.js

+ 3 - 3
pages/user/historyDetail.vue

@@ -166,11 +166,11 @@
 						  	{{item.AmountMoney?item.AmountMoney:0}}
 						  	{{item.AmountMoney?item.AmountMoney:0}}
 						  </view>
 						  </view>
 					  </view>
 					  </view>
-						<view class="itemWorkHoursBox" v-if="itemWorkHours&&itemWorkHours" :class="{nopb:ItemComment&&item.Comment}">
+						<view class="itemWorkHoursBox" v-if="itemWorkHours||itemPrice" :class="{nopb:ItemComment&&item.Comment}">
 							<view class="itemWorkHours" v-if="itemWorkHours">
 							<view class="itemWorkHours" v-if="itemWorkHours">
 								工时:<span class="SalePrice">{{item.SaleQty}}</span> 
 								工时:<span class="SalePrice">{{item.SaleQty}}</span> 
 							</view>
 							</view>
-							<view class="itemPrice" v-if="itemWorkHours">
+							<view class="itemPrice" v-if="itemPrice">
 								单价:<span class="SalePrice">{{item.SalePrice}}</span>
 								单价:<span class="SalePrice">{{item.SalePrice}}</span>
 							</view>
 							</view>
 						</view>
 						</view>
@@ -208,7 +208,7 @@
 							</view>
 							</view>
 							<!-- <view class="qty" v-if="goodsNumber">x{{item.SaleQty}}</view> -->
 							<!-- <view class="qty" v-if="goodsNumber">x{{item.SaleQty}}</view> -->
 						</view>
 						</view>
-						<view class="itemWorkHoursBox" v-if="itemWorkHours&&itemWorkHours" :class="{nopb:GoodsComment&&item.Comment}">
+						<view class="itemWorkHoursBox" v-if="goodsPrice||goodsNumber" :class="{nopb:GoodsComment&&item.Comment}">
 							<view class="itemWorkHours" v-if="goodsNumber">
 							<view class="itemWorkHours" v-if="goodsNumber">
 								数量:<span class="SalePrice">{{item.SaleQty}}<span v-if="item.Unit">({{item.Unit}})</span> </span> 
 								数量:<span class="SalePrice">{{item.SaleQty}}<span v-if="item.Unit">({{item.Unit}})</span> </span> 
 							</view>
 							</view>

+ 4 - 0
utils/common.js

@@ -30,10 +30,14 @@ const automaticlogin = function() {
 			  provider: 'weixin',
 			  provider: 'weixin',
 			  success: function (loginRes) {
 			  success: function (loginRes) {
 			    //console.log(loginRes);
 			    //console.log(loginRes);
+				uni.showLoading({
+					title: '加载中'
+				});
 				request.http('miniApp2/sys/getWxOpenID', {
 				request.http('miniApp2/sys/getWxOpenID', {
 				   code:loginRes.code,
 				   code:loginRes.code,
 				   unionId:extConfig.unionId
 				   unionId:extConfig.unionId
 				  },'GET').then(res => {
 				  },'GET').then(res => {
+					  uni.hideLoading();
 					  $store.commit('mutationswxOpenData', res.data);
 					  $store.commit('mutationswxOpenData', res.data);
 					  var themeColor= res.data.themeColor
 					  var themeColor= res.data.themeColor
 					   uni.setStorageSync('themeColor',themeColor);
 					   uni.setStorageSync('themeColor',themeColor);