浏览代码

Merge branch 'master' of http://git.jihengcc.cn/liubaiyan/qjd-user-uniapp

unknown 4 年之前
父节点
当前提交
d44f03242c
共有 12 个文件被更改,包括 323 次插入162 次删除
  1. 2 0
      App.vue
  2. 3 2
      config/api.js
  3. 60 4
      pages/cart/cart.vue
  4. 87 70
      pages/index/login.vue
  5. 7 1
      pagesGood/evaluateList.vue
  6. 102 31
      pagesGood/goodDetails.vue
  7. 0 31
      pagesGood/goodList.vue
  8. 35 3
      pagesMain/entrustList.vue
  9. 11 8
      pagesMain/orderDetail.vue
  10. 6 6
      pagesMain/orderItem.vue
  11. 二进制
      static/images/noCart.png
  12. 10 6
      utils/request.js

+ 2 - 0
App.vue

@@ -1,6 +1,8 @@
 <script>
+	// var VConsole = require("./vconsole.min.js")
 	export default {
 		onLaunch: function() {
+			// var vConsole = new VConsole();
 			console.log('App Launch');
 		},
 		onShow: function() {

+ 3 - 2
config/api.js

@@ -1,7 +1,8 @@
-// const WX_API_BASE = 'https://www.qianjiadi.com/'
+const WX_API_BASE = 'https://www.qianjiadi.com/'
 // const WX_API_BASE = 'http://ch.jihengcc.cn:17080/'
+// const WX_API_BASE = 'http://172.18.1.79:8765/'
  //const WX_API_BASE = 'https://test.jihengcc.cn/'
-const WX_API_BASE = 'https://www.qianjiadi.com/'
+// const WX_API_BASE = 'https://www.qianjiadi.com/'
 
 module.exports = {
 	//  微信登录

+ 60 - 4
pages/cart/cart.vue

@@ -1,11 +1,16 @@
 <template>
 	<view class="container">
-		<view class="swiper">
+		<view class="swiper" :style="{height: getCartAllGoods() ? '120px' : '60px'}">
 			<view class="swiper-text">共{{getCartAllGoods()}}件商品</view>
-			<view class="swiper-text" style="float: right;" @click="manageType = !manageType">{{manageType ? '完成' :'管理'}}</view>
+			<view v-if="cartsList.length" class="swiper-text" style="float: right;" @click="manageType = !manageType">{{manageType ? '完成' :'管理'}}</view>
 		</view>
 		<view class="cart-box" :style="{bottom: manageType ? '52px' : '0px'}">
-			<view class="shop-row" v-for="(item, index1) in cartsList" :key="index1">
+			<view class="no-cart" v-if="!cartsList.length">
+				<image class="no-cart-img" src="../../static/images/noCart.png" mode="aspectFill"></image>
+				<text class="no-cart-text">购物车暂无商品</text>
+				<u-button type="success" shape="circle" :ripple="true" :hair-line="false" :plain="true" @click="goToMall" class="button1">去逛逛</u-button>
+			</view>
+			<view v-if="cartsList.length" class="shop-row" v-for="(item, index1) in cartsList" :key="index1">
 				<view class="shop-info">
 					<view class="iconfont" :class="item.allCheck ? 'iconqueding' : 'iconfeigouxuan'" @click="checkShop(item)"></view>
 					<view class="shop-info-right" @click="goToShop(item)">
@@ -67,6 +72,9 @@
 				manageType: false,
 				modalShow: false,
 			}
+		},
+		onLoad() {
+			
 		},
 		onShow() {
 			this.cartsList = []
@@ -77,6 +85,12 @@
 			this.getCartData('refresh')
 		},
 		methods: {
+			// 跳转商城
+			goToMall() {
+				uni.switchTab({
+					url: '/pages/shop/index'
+				});
+			},
 			//  跳转商铺页
 			goToShop(item) {
 				uni.navigateTo({
@@ -293,7 +307,49 @@
 				padding: 16px 15px;
 			}
 		}
-
+		.swiper2 {
+			width: 100%;
+			height: 60px;
+			float: left;
+			background-color: #56a83a;
+			border-radius: 0 0 40px 40px;
+		
+			.swiper-text {
+				float: left;
+				line-height: 16px;
+				font-size: 15px;
+				color: #FFFFFF;
+				padding: 16px 15px;
+			}
+		}
+        .no-cart {
+			display: flex;
+			flex-direction: column;
+			justify-content: center;
+			align-items: center;
+			top: 50px;
+			position: relative;
+			.no-cart-img {
+				width: 155px;
+				height: 200px;
+				margin-bottom: 20px;
+			}
+			.no-cart-text {
+				font-size: 16px;
+				font-family: PingFang SC;
+				color: #999999;
+				margin-bottom: 60px;
+			}
+			.button1 {
+				/deep/button {
+					background-color: #74bd60 !important;
+					border: none !important;
+					color: white !important;
+				}
+				width: 40%;
+				height: 34px;
+			}
+		}
 		.cart-box {
 			width: calc(100% - 30px);
 			min-height: calc(100vh - 40px - 50px);

+ 87 - 70
pages/index/login.vue

@@ -14,19 +14,17 @@
 			</button>
 			<view class="authorize-info">{{wxPhoneData? '****************' : ''}}</view> -->
 			<!-- <view class="authorize-login" @click="getUserInfo">登录</view> -->
-			<button 
-				class="authorize-login" 
-				open-type="getUserInfo" 
-				@getuserinfo="getUserinfoWechat" withCredentials="true" >
+			<!-- #ifdef MP-WEIXIN -->
+			<button class="authorize-login" open-type="getUserInfo" @getuserinfo="getUserinfoWechat" withCredentials="true">
 				登录
 			</button>
+			<!-- #endif -->
+			<!-- #ifdef APP-PLUS -->
+			<button class="authorize-login" @click="getUserinfoApp">
+				登录5
+			</button>
+			<!-- #endif -->
 			<view @click="showAgreement = true" class="agreement">点击登录视为同意<text class="underline">平台服务协议</text></view>
-			<!-- <button 
-				class="authorize-login" 
-				open-type="getUserInfo" 
-				@click="getUserinfoApp">
-				登录
-			</button> -->
 		</view>
 		{{tipxx}}
 		<u-top-tips ref="uTips"></u-top-tips>
@@ -46,7 +44,8 @@
 <script>
 	const NET = require('@/utils/request')
 	const API = require('@/config/api')
-	const html = `
+	const html =
+		`
 <h4>用户服务协议</h4>
 特别提示:         
 欢迎您来到千家地!    
@@ -140,7 +139,8 @@
 14.1. 条款的独立性。如果根据适用的法律认定本协议中的任何条款或者任何条款中的任何部分无效、违法或者不具有可执行性,这种无效、违法或者不具有可执行性不影响本协议中的任何其它条款或者这些条款中的任何其它部分的效力。    
 14.2. 平台权利的保留。本协议未明示授权的其他权利仍由千家地保留,用户未经千家地书  面许可不得行使,且千家地未行使前述任何权利并不构成放弃权利。    
 14.3. 条标的作用。本协议条款的标题仅作参考使用,不界定、影响或限制本协议条款的含义、描述及解释。    
-`.split('\n').map(v=>v+'<br/>').join('\n')
+`
+		.split('\n').map(v => v + '<br/>').join('\n')
 
 	export default {
 		data() {
@@ -183,6 +183,7 @@
 			// 		})
 			// 	}
 			// },
+			// #ifdef MP-WEIXIN
 			getUserinfoWechat(data) {
 				uni.getProvider({
 					service: 'oauth',
@@ -222,63 +223,77 @@
 					}
 				});
 			},
-			//  获取登录权限
-			// getUserinfoApp() {
-			// 	uni.getProvider({
-			// 		service: 'oauth',
-			// 		success: (res) => {
-			// 			if (~res.provider.indexOf('weixin')) {
-			// 				uni.login({
-			// 					provider: 'weixin',
-			// 					success: (res2) => {
-			// 						uni.getUserInfo({
-			// 							provider: 'weixin',
-			// 							success: (info) => {
-			// 								uni.setStorage({
-			// 									key: 'wxLoginData',
-			// 									data: {
-			// 										code: res2.code,
-			// 										encryptedData: info.encryptedData,
-			// 										iv: info.iv,
-			// 										rawData: info.rawData,
-			// 										signature: info.signature,
-			// 									}
-			// 								})
-			// 								this.wxLoginData = uni.getStorageSync("wxLoginData")
-			// 								console.log(1111111,this.wxLoginData&&this.wxLoginData.rawData)
-			// 								this.userNmae = JSON.parse(this.wxLoginData.rawData).nickName
-			// 								this.getUserInfo()
-			// 								// this.$refs.uTips.show({
-			// 								// 	title: '获取角色信息成功',
-			// 								// 	type: 'success',
-			// 								// })
-			// 							},
-			// 							fail: (error) => {
-			// 								console.log(2222, error)
-			// 								this.$refs.uTips.show({
-			// 									title: '微信登录授权失败',
-			// 									type: 'warning',
-			// 								})
-			// 							}
-			// 						})
-			// 					},
-			// 					fail: () => {
-			// 						console.log(33333, error)
-			// 						this.$refs.uTips.show({
-			// 							title: '微信登录授权失败',
-			// 							type: 'warning',
-			// 						})
-			// 					}
-			// 				})
-			// 			} else {
-			// 				this.$refs.uTips.show({
-			// 					title: '请先安装微信或升级版本',
-			// 					type: 'warning',
-			// 				})
-			// 			}
-			// 		}
-			// 	});
-			// },
+			//#endif
+
+			// #ifdef APP-PLUS
+			// 获取app登录权限
+			getUserinfoApp() {
+				let that = this
+				console.log('app enter')
+				uni.login({
+					// provider: 'weixin',
+					success: (res2) => {
+						console.log('res2', res2)
+						uni.getUserInfo({
+							provider: 'weixin',
+							success: (info) => {
+								console.log('info')
+								// uni.setStorage({
+								// 	key: 'wxLoginData',
+								// 	data: {
+								// 		code: res2.code,
+								// 		encryptedData: info.encryptedData,
+								// 		iv: info.iv,
+								// 		rawData: info.rawData,
+								// 		signature: info.signature,
+								// 	}
+								// })
+								// that.wxLoginData = uni.getStorageSync("wxLoginData")
+								// console.log(1111111, that.wxLoginData && that.wxLoginData.rawData)
+								// that.userNmae = JSON.parse(that.wxLoginData.rawData).nickName
+								// that.getUserInfo()
+								// this.$refs.uTips.show({
+								// 	title: '获取角色信息成功',
+								// 	type: 'success',
+								// })
+							},
+							fail: (error) => {
+								console.log(2222, error)
+								// that.$refs.uTips.show({
+								// 	title: '微信登录授权失败',
+								// 	type: 'warning',
+								// })
+							}
+						})
+					},
+					fail: () => {
+						console.log(33333, error)
+						// that.$refs.uTips.show({
+						// 	title: '微信登录授权失败',
+						// 	type: 'warning',
+						// })
+					}
+				})
+				// uni.getProvider({
+				// 	service: 'oauth',
+				// 	success: (res) => {
+				// 		console.log('success', res, res.provider)
+				// 		if (~res.provider.indexOf('weixin')) {
+				// 			console.log('res.provider',~res.provider, ~res.provider.indexOf('weixin'))
+				// 			console.log('2333')
+				// 		} else {
+				// 			console.log('请先安装微信或升级版本')
+				// 			that.$refs.uTips.show({
+				// 				title: '请先安装微信或升级版本',
+				// 				type: 'warning',
+				// 			})
+				// 		}
+				// 	}
+				// });
+				console.log('app end')
+			},
+			//#endif
+
 			// 发请求获取个人数据
 			getUserInfo() {
 				NET.request(API.WxLogin, {
@@ -405,6 +420,7 @@
 				line-height: 36px;
 				text-align: center;
 			}
+
 			.authorize-tip {
 				width: 220px;
 				height: 20px;
@@ -424,6 +440,7 @@
 			font-size: 12px;
 			font-family: PingFang SC;
 			color: #FEFEFE;
+
 			.underline {
 				text-decoration: underline;
 			}
@@ -434,7 +451,7 @@
 			padding: 12px;
 
 			.scroll {
-				height: calc( 100% - 40px - 16px );
+				height: calc(100% - 40px - 16px);
 			}
 
 			.confrim-btn {

+ 7 - 1
pagesGood/evaluateList.vue

@@ -40,13 +40,18 @@
 				pageIndex: 1,
 				isOver: false,
 				assessList: [],
+				preview: false
 			}
 		},
 		onLoad(options) {
 			this.goodId = options.goodId
 		},
 		onShow() {
-			this.getMessageList()
+			if (!this.preview) {
+				this.pageIndex = 1
+				this.assessList = []
+				this.getMessageList('refresh')
+			}
 		},
 		onPullDownRefresh() {
 			this.pageIndex = 1
@@ -78,6 +83,7 @@
 			},
 			// 图片预览
 			_previewImage(image,index) {
+				this.preview = true
 				var imgArr = [];
 				imgArr.push(image);
 				//预览图片

+ 102 - 31
pagesGood/goodDetails.vue

@@ -1,5 +1,35 @@
 <template>
 	<view class="container">
+		<view v-if="goodData.productType == 2">
+			<view class="auction-title" @click="isOpen = !isOpen">拍卖规则
+			    <u-icon :name="isOpen?'arrow-up-fill':'arrow-down-fill'" color="#ffffff" style="margin-left:5px"></u-icon>
+			</view>
+			<view v-if="isOpen" class="auction-explain">
+				<span>特别注意:</span>
+				<p>本商城拍卖采用竞拍即付款的拍卖方式,每名会员每次拍卖仅能购买一件拍卖商品,同时根据拍卖商品的数量也可能会有多个会员竞拍成功。</p>
+				<span>关于退款:</span>
+				<p>会员出价如果已经不具有竞拍成功资质(也就是出价已经不是最高出价的几名会员之一时),则会立刻退还费用。同一会员多次出价会立刻退还上次出价的费用。</p>
+				<span>关于竞拍结果:</span>
+				<p>拍卖结束时,出价最高的几名会员竞拍成功,至多有"拍卖商品数量"个竞拍成功的会员。</p>
+			</view>
+		</view>
+		<!-- <u-collapse v-if="goodType == 2" :head-style="auctiontitle">
+			<u-collapse-item>
+				<view slot="title-all" class="auction-title" @click="isOpen = !isOpen">拍卖规则
+					<u-icon :name="isOpen?'arrow-up-fill':'arrow-down-fill'" color="#ffffff" style="margin-left:5px"></u-icon>
+				</view>
+				<view class="auction-main">
+					<view class="auction-explain">
+						<span>特别注意:</span>
+						<p>本商城拍卖采用竞拍即付款的拍卖方式,每名会员每次拍卖仅能购买一件拍卖商品,同时根据拍卖商品的数量也可能会有多个会员竞拍成功。</p>
+						<span>关于退款:</span>
+						<p>会员出价如果已经不具有竞拍成功资质(也就是出价已经不是最高出价的几名会员之一时),则会立刻退还费用。同一会员多次出价会立刻退还上次出价的费用。</p>
+						<span>关于竞拍结果:</span>
+						<p>拍卖结束时,出价最高的几名会员竞拍成功,至多有"拍卖商品数量"个竞拍成功的会员。</p>
+					</view>
+				</view>
+			</u-collapse-item>
+		</u-collapse> -->
 		<swiper class="swiper" :style="{width: swiperHeight+'px', height: swiperHeight+'px'}" :indicator-dots="true" indicator-color="#9A9A9A" indicator-active-color="#52A63A" :autoplay="true"
 		 :interval="3000" :duration="500">
 			<swiper-item v-for="(item,index) in goodData.imgs" :key="index">
@@ -34,27 +64,34 @@
  -->
 		</view>
 		<view class="buy-num" v-if="goodData.productType != 2 && !minePlant">
-			<view class="buy-text">购买数量:</view>
-			<!-- <view style="display: flex;">
-				<uni-icons type="minus-filled" size="20" color="#A67A54" @click="number>1?number--:''"></uni-icons>
-				<text class="buy-select">{{number}}</text>
-				<u-input
-				  v-model="number"
-				  type="number"
-				  height="40"
-				  placeholder=" "
-				  :clearable="false"
-				  input-align="center"
-				  :custom-style="{width:'40px'}"/>
-				<uni-icons type="plus-filled" size="20" color="#A67A54" @click="number++"></uni-icons>
-			</view> -->
-			<view>
-				<CnumberBox @getNum="getNum" :isDisabled="true" minNum="1"></CnumberBox>
+			<view class="buy-num1">
+				<view class="buy-text">库存:</view>
+				<view class="buy-select">{{goodData.stock}}</view>
+			</view>
+			<view class="buy-line"></view>
+			<view class="buy-num1">
+				<view class="buy-text">购买数量:</view>
+				<!-- <view style="display: flex;">
+					<uni-icons type="minus-filled" size="20" color="#A67A54" @click="number>1?number--:''"></uni-icons>
+					<text class="buy-select">{{number}}</text>
+					<u-input
+					  v-model="number"
+					  type="number"
+					  height="40"
+					  placeholder=" "
+					  :clearable="false"
+					  input-align="center"
+					  :custom-style="{width:'40px'}"/>
+					<uni-icons type="plus-filled" size="20" color="#A67A54" @click="number++"></uni-icons>
+				</view> -->
+				<view>
+					<CnumberBox @getNum="getNum" :isDisabled="true" minNum="1"></CnumberBox>
+				</view>
 			</view>
 		</view>
 		<view class="tab-box">
 			<view class="tab-col" :class="tabIndex == 1 ? 'tab-col-active' :''" @click="tabIndex = 1">产品介绍</view>
-			<view class="tab-col" :class="tabIndex == 2 ? 'tab-col-active' :''" v-if="goodData.productType != 2 && goodData.productType != 4 "
+			<view class="tab-col" :class="tabIndex == 2 ? 'tab-col-active' :''" v-if="goodData.productType != 2"
 			 @click="tabIndex = 2">用户评价</view>
 		</view>
 		<rich-text :nodes="goodData.sellDesc" v-if="tabIndex == 1"></rich-text>
@@ -86,7 +123,7 @@
 			</scroll-view>
 		</view>
 		<uni-goods-nav :fill="true" :options="goodData.productType == 4 ? [] : options" @click="goToShop" @buttonClick="showPopup"
-		 style="width: 100%; position: fixed; bottom: 0px;" :buttonGroup="goodData.productType == 2 ? buttonGroup2 : (goodData.productType == 4 ? (minePlant ? buttonGroup4 : buttonGroup3) : buttonGroup1)" />
+		 style="width: 100%; position: fixed; bottom: 0px;z-index: 2;" :buttonGroup="goodData.productType == 2 ? buttonGroup2 : (goodData.productType == 4 ? (minePlant ? buttonGroup4 : buttonGroup3) : buttonGroup1)" />
 		<!-- <uni-popup ref="popup" type="bottom">
 			<view class="popup-box">
 				<view class="popup-good-info-box">
@@ -187,6 +224,7 @@
 					backgroundColor: '#52A63A',
 					color: '#fff'
 				}],
+				isOpen: false,
 			}
 		},
 		onLoad(options) {
@@ -450,6 +488,25 @@
 				border-radius: 8px;
 			}
 		}
+		.auction-title {
+			height: 35px;
+			background:#52A63A;
+			color: #FFFFFF;
+			text-align: center;
+			padding: 5px;
+			line-height: 25px;
+		}
+		.auction-explain {
+			background:#52A63A;
+			color: #FFFFFF;
+			border-radius: 0 0 8px 8px;
+			// text-align: center;
+			padding: 10px;
+			p {
+			  margin-bottom: 5px;
+			  text-indent:25px;
+			}
+		}
 
 		.good-info {
 			box-sizing: border-box;
@@ -588,26 +645,40 @@
 		}
 		
 		.buy-num {
-			display: flex;
-			justify-content: space-between;
-			height: 46px;
-			margin-top: 10px;
+			height: 90px;
 			box-sizing: border-box;
 			background-color: #FFFFFF;
 			padding: 14px 16px;
 			font-family: PingFang SC;
+			margin-top: 10px;
 			// font-size: 12px;
 			// line-height: 14px;
-			.buy-text {
-				margin-right: 10px;
+			.buy-num1 {
+				display: flex;
+				justify-content: space-between;
+				margin-bottom: 10px;
+				font-size: 14px;
+				.buy-text {
+					margin-right: 10px;
+					font-size: 14px;
+				}
+				.buy-select {
+					font-size: 14px;
+					font-family: PingFang SC;
+					color: #343434;
+					// margin: 0 12px;
+					line-height: 20px;
+					// margin-right: 10px;
+				}
 			}
-			.buy-select {
-				font-size: 16px;
-				font-family: PingFang SC;
-				color: #343434;
-				margin: 0 12px;
-				line-height: 20px;
-				margin-right: 10px;
+			.buy-line {
+				width:100%;
+				height: 1px;
+				//border: 1px solid #e2e2e2;
+				margin-bottom: 10px;
+			}
+			.buy-num2 {
+				
 			}
 		}
 

+ 0 - 31
pagesGood/goodList.vue

@@ -1,35 +1,5 @@
 <template>
 	<view class="container">
-		<view v-if="goodType == 2" class="auction-main">
-			<view class="auction-title" @click="isOpen = !isOpen">拍卖规则
-			    <u-icon :name="isOpen?'arrow-up-fill':'arrow-down-fill'" color="#ffffff" style="margin-left:5px"></u-icon>
-			</view>
-			<view v-if="isOpen" class="auction-explain">
-				<span>特别注意:</span>
-				<p>本商城拍卖采用竞拍即付款的拍卖方式,每名会员每次拍卖仅能购买一件拍卖商品,同时根据拍卖商品的数量也可能会有多个会员竞拍成功。</p>
-				<span>关于退款:</span>
-				<p>会员出价如果已经不具有竞拍成功资质(也就是出价已经不是最高出价的几名会员之一时),则会立刻退还费用。同一会员多次出价会立刻退还上次出价的费用。</p>
-				<span>关于竞拍结果:</span>
-				<p>拍卖结束时,出价最高的几名会员竞拍成功,至多有"拍卖商品数量"个竞拍成功的会员。</p>
-			</view>
-		</view>
-		<!-- <u-collapse v-if="goodType == 2" :head-style="auctiontitle">
-			<u-collapse-item>
-				<view slot="title-all" class="auction-title" @click="isOpen = !isOpen">拍卖规则
-					<u-icon :name="isOpen?'arrow-up-fill':'arrow-down-fill'" color="#ffffff" style="margin-left:5px"></u-icon>
-				</view>
-				<view class="auction-main">
-					<view class="auction-explain">
-						<span>特别注意:</span>
-						<p>本商城拍卖采用竞拍即付款的拍卖方式,每名会员每次拍卖仅能购买一件拍卖商品,同时根据拍卖商品的数量也可能会有多个会员竞拍成功。</p>
-						<span>关于退款:</span>
-						<p>会员出价如果已经不具有竞拍成功资质(也就是出价已经不是最高出价的几名会员之一时),则会立刻退还费用。同一会员多次出价会立刻退还上次出价的费用。</p>
-						<span>关于竞拍结果:</span>
-						<p>拍卖结束时,出价最高的几名会员竞拍成功,至多有"拍卖商品数量"个竞拍成功的会员。</p>
-					</view>
-				</view>
-			</u-collapse-item>
-		</u-collapse> -->
 		<view class="search-box" v-if="goodsList.length">
 			<uni-search-bar ref="searchBar" radius="5" placeholder="搜索" :defaultText="goodName" clearButton="auto" cancelButton="none"
 			 bgColor="#ffffff" @confirm="search" class="search-bar" />
@@ -81,7 +51,6 @@
 				goodsList: [],
 				modalShow: false,
 				goodItem: {},
-				isOpen: false,
 				auctiontitle: {
 					height: '35px',
 					background:'#52A63A',

+ 35 - 3
pagesMain/entrustList.vue

@@ -1,9 +1,13 @@
 <template>
 	<scroll-view class="container" :style="{backgroundColor: entrustTotle ? '#f7f7f7' : '#f7f7f7'}" scroll-y="true" @scrolltolower="handleLoadMore()">
-		<view class="entrust-info">
+		<view class="entrust-info" :style="{height: entrustTotle ? '115px' : '60px'}">
 			<view class="entrust-info-text">共{{entrustTotle}}个委托订单</view>
 		</view>
-		<view class="entrust-row" v-for="(item, index) in entrustList" :key="index">
+		<view v-if="!entrustTotle" class="no-cart">
+			<image class="no-cart-img" src="../static/images/noCart.png" mode="aspectFill"></image>
+			<text class="no-cart-text">暂无订单</text>
+		</view>
+		<view v-if="entrustTotle" class="entrust-row" v-for="(item, index) in entrustList" :key="index">
 			<view class="entrust-title">已委托订单</view>
 			<view class="entrust-text">委托开始时间:{{item.entrustStartTime}}</view>
 			<view class="entrust-text">委托时长:{{item.entrustDurationTime}}小时</view>
@@ -147,7 +151,35 @@
 				line-height: 50px;
 			}
 		}
-
+        
+		.no-cart {
+			display: flex;
+			flex-direction: column;
+			justify-content: center;
+			align-items: center;
+			top: 25%;
+			left:30%;
+			position: absolute;
+			.no-cart-img {
+				width: 155px;
+				height: 200px;
+				margin-bottom: 20px;
+			}
+			.no-cart-text {
+				font-size: 16px;
+				font-family: PingFang SC;
+				color: #999999;
+			}
+			.button1 {
+				/deep/button {
+					background-color: #ffffff !important;
+					border: 1px solid #74bd60 !important;
+					color: #74bd60 !important;
+				}
+				width: 40%;
+				height: 34px;
+			}
+		}
 		.entrust-row {
 			width: calc(100% - 30px);
 			float: left;

+ 11 - 8
pagesMain/orderDetail.vue

@@ -115,7 +115,7 @@
 			</view>
 		</view>
 		<!-- </view> -->
-		<uni-goods-nav :fill="true" :options="[]" @click="" @buttonClick="orderHandle" class="order-handle" :buttonGroup="buttonGroup" />
+		<uni-goods-nav :fill="true" :options="[]" @click="" @buttonClick="orderHandle" class="order-handle" :buttonGroup="buttonGroup"/>
 		<u-modal v-model="modalShow" :content="modalContent" @confirm="submitHandle" :async-close="true" :show-cancel-button="true"></u-modal>
 		<u-top-tips ref="uTips"></u-top-tips>
 		<view class="uni-popup-dialog" :hidden="show_qx">
@@ -535,15 +535,15 @@
 							paySign: res.data.paySign,
 							success: (payRes) => {
 								console.log('success:' + JSON.stringify(payRes));
-								if (this.goodType == 3) {
-									uni.navigateTo({
-										url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId + '&goodType=' + this.goodType + '&tenantCode=' + this.orderData.tenantCode
-									});
-								} else {
+								// if (this.goodType == 3) {
+								// 	uni.navigateTo({
+								// 		url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId + '&goodType=' + this.goodType + '&tenantCode=' + this.orderData.tenantCode
+								// 	});
+								// } else {
 									uni.navigateTo({
 										url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
 									});
-								}
+								// }
 							},
 							fail: (error) => {
 								console.log('fail:' + JSON.stringify(error));
@@ -663,7 +663,7 @@
 		float: left;
 		background-color: #f7f7f7;
 		// box-sizing: border-box;
-		// padding-bottom: 50px;
+		padding-bottom: 50px;
 		overflow-y: auto;
 
 		.order-type-info {
@@ -1187,6 +1187,9 @@
 			height: 50px;
 			float: left;
 			border-top: 1px solid #cccccc;
+			position: fixed;
+			bottom: 0;
+			left:0;
 		}
 	}
 	.uni-popup-dialog {

+ 6 - 6
pagesMain/orderItem.vue

@@ -287,15 +287,15 @@
 							paySign: res.data.paySign,
 							success: (payRes) => {
 								console.log('success:' + JSON.stringify(payRes));
-								if (this.goodType == 3) {
-									uni.navigateTo({
-										url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId + '&goodType=' + this.goodType + '&tenantCode=' + this.orderData.tenantCode
-									});
-								} else {
+								// if (this.goodType == 3) {
+								// 	uni.navigateTo({
+								// 		url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId + '&goodType=' + this.goodType + '&tenantCode=' + this.orderData.tenantCode
+								// 	});
+								// } else {
 									uni.navigateTo({
 										url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
 									});
-								}
+								// }
 							},
 							fail: (error) => {
 								console.log('fail:' + JSON.stringify(error));

二进制
static/images/noCart.png


+ 10 - 6
utils/request.js

@@ -7,11 +7,13 @@ const request = (url, data, method = 'GET') => {
 		if (uni.getStorageSync('token')) {
 			header.token = 'Bearer ' + uni.getStorageSync('token')
 		}
-		ajaxTimes++;
-		uni.showLoading({
-			title: "加载中",
-			mask: true,
-		});
+		if (url.indexOf('app/product/user/auctionProductDetail/biddingHall/') == -1) {
+			ajaxTimes++;
+			uni.showLoading({
+				title: "加载中",
+				mask: true,
+			});
+		}
 		uni.request({
 			url: url,
 			data: data,
@@ -41,7 +43,9 @@ const request = (url, data, method = 'GET') => {
 				reject(res)
 			},
 			complete: () => {
-				ajaxTimes--;
+				if (url.indexOf('app/product/user/auctionProductDetail/biddingHall/') == -1) {
+					ajaxTimes--;
+				}
 				if (ajaxTimes === 0) {
 					uni.hideLoading();
 				}