瀏覽代碼

bug 修复

lilei 4 年之前
父節點
當前提交
5a75886f92
共有 4 個文件被更改,包括 7 次插入9 次删除
  1. 2 2
      pages/cart/cart.vue
  2. 2 2
      pages/checkOut/checkFinish.vue
  3. 2 4
      pages/checkOut/checkOut.vue
  4. 1 1
      pages/goods/index.vue

+ 2 - 2
pages/cart/cart.vue

@@ -23,7 +23,7 @@
 						</view>
 					</view>
 					<view class="des">
-						<view>商品乐豆合计满<text>{{item.goldLimit}}</text></view>
+						<view>商品满<text>{{item.goldLimit}}</text></view>
 						<u-image mode="scaleToFill" width="26rpx" height="26rpx" src="/static/ledou.png"></u-image>
 						<view>才可购买</view>
 					</view>
@@ -66,7 +66,7 @@
 					</view>
 				</view>
 			</view>
-			<view class="noData" v-if="cartList.length==0">
+			<view class="noData" v-if="!loading&&cartList.length==0">
 				<u-empty mode="car">
 					<view slot="bottom">
 						<u-button size="mini" @click="toBuy">去选商品</u-button>

+ 2 - 2
pages/checkOut/checkFinish.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="page-cont">
 		<view class="icon-cont">
-			<u-icon class="icon" name="checkmark" color="#62c500" size="80"></u-icon>
+			<u-icon class="icon" name="checkmark" color="#ffffff" size="80"></u-icon>
 			<view>支付成功</view>
 			<view>150 乐豆</view>
 		</view>
@@ -63,7 +63,7 @@ export default {
 		.icon{
 			width: 120upx;
 			height: 120upx;
-			background-color: #d1d1d1;
+			background-color: #00aa00;
 			display: flex;
 			justify-content: center;
 			border-radius: 50%;

+ 2 - 4
pages/checkOut/checkOut.vue

@@ -154,10 +154,8 @@
 				sellerReceive(data).then(res => {
 					console.log(res)
 					if(res.status == 200){
-						uni.navigateBack()
-						uni.showToast({
-							icon: 'none',
-							title: res.message
+						uni.redirectTo({
+							url:"/pages/checkOut/checkFinish"
 						})
 					}
 				})

+ 1 - 1
pages/goods/index.vue

@@ -32,7 +32,7 @@
 		},
 		data() {
 			return {
-				noDataText: '正加载...',
+				noDataText: '正加载...',
 				imageTopList:[],
 				goodsList:[], // 商品
 				goodsType:[], // 商品分类