Ver Fonte

Merge branch 'dev' into 'test'

Dev

See merge request quanshu/mp-ui-user!31
hunagwb há 3 anos atrás
pai
commit
4c3e7ce604
35 ficheiros alterados com 283 adições e 202 exclusões
  1. 86 95
      package-lock.json
  2. 6 3
      src/packageGoods/goods/detail.vue
  3. 16 15
      src/packageGoods/order/index.vue
  4. 16 5
      src/packageOperate/activity/index.vue
  5. 1 1
      src/packageOperate/address/index.vue
  6. BIN
      src/packageOperate/static/activity/effectsseven.png
  7. 1 2
      src/packagePrize/bean/index.vue
  8. 4 4
      src/packagePrize/rolling/index.vue
  9. 0 3
      src/pages/index/index.vue
  10. 146 64
      src/pages/lucky/index.vue
  11. 2 0
      src/pages/ticketBox/detail.vue
  12. 5 10
      src/pages/user/index.vue
  13. BIN
      src/static/index/index_btn_cir_center.png
  14. BIN
      src/static/index/index_chance_1.png
  15. BIN
      src/static/index/index_chance_2.png
  16. BIN
      src/static/index/index_chance_3.png
  17. BIN
      src/static/index/index_chance_4.png
  18. BIN
      src/static/index/index_price_checkout.png
  19. BIN
      src/static/index/index_prize.png
  20. BIN
      src/static/index/index_ticket.png
  21. BIN
      src/static/lucky/lucky_gkmp.png
  22. BIN
      src/static/lucky/lucky_guajiangqu.png
  23. BIN
      src/static/lucky/lucky_not.png
  24. BIN
      src/static/lucky/lucky_not_num.png
  25. BIN
      src/static/lucky/lucky_ok.png
  26. BIN
      src/static/lucky/lucky_ok_num.png
  27. BIN
      src/static/lucky/lucky_piaohao.png
  28. BIN
      src/static/lucky/lucky_tu.png
  29. BIN
      src/static/lucky/lucky_xiaoguo.png
  30. BIN
      src/static/lucky/lucky_yidong.png
  31. BIN
      src/static/user/user_about.png
  32. BIN
      src/static/user/user_addr.png
  33. BIN
      src/static/user/user_close.png
  34. BIN
      src/static/user/user_kefu.png
  35. BIN
      src/static/user/user_order.png

+ 86 - 95
package-lock.json

@@ -3176,6 +3176,44 @@
           "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
           "dev": true
         },
+        "ansi-styles": {
+          "version": "4.3.0",
+          "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
+          "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+          "dev": true,
+          "optional": true,
+          "requires": {
+            "color-convert": "^2.0.1"
+          }
+        },
+        "chalk": {
+          "version": "4.1.2",
+          "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
+          "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+          "dev": true,
+          "optional": true,
+          "requires": {
+            "ansi-styles": "^4.1.0",
+            "supports-color": "^7.1.0"
+          }
+        },
+        "color-convert": {
+          "version": "2.0.1",
+          "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
+          "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+          "dev": true,
+          "optional": true,
+          "requires": {
+            "color-name": "~1.1.4"
+          }
+        },
+        "color-name": {
+          "version": "1.1.4",
+          "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
+          "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+          "dev": true,
+          "optional": true
+        },
         "globby": {
           "version": "9.2.0",
           "resolved": "https://registry.npmmirror.com/globby/-/globby-9.2.0.tgz",
@@ -3192,6 +3230,13 @@
             "slash": "^2.0.0"
           }
         },
+        "has-flag": {
+          "version": "4.0.0",
+          "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
+          "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+          "dev": true,
+          "optional": true
+        },
         "hash-sum": {
           "version": "2.0.0",
           "resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-2.0.0.tgz",
@@ -3204,6 +3249,25 @@
           "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
           "dev": true
         },
+        "json5": {
+          "version": "2.2.1",
+          "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.1.tgz",
+          "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
+          "dev": true,
+          "optional": true
+        },
+        "loader-utils": {
+          "version": "2.0.2",
+          "resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-2.0.2.tgz",
+          "integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
+          "dev": true,
+          "optional": true,
+          "requires": {
+            "big.js": "^5.2.2",
+            "emojis-list": "^3.0.0",
+            "json5": "^2.1.2"
+          }
+        },
         "slash": {
           "version": "2.0.0",
           "resolved": "https://registry.npmmirror.com/slash/-/slash-2.0.0.tgz",
@@ -3218,6 +3282,28 @@
           "requires": {
             "minipass": "^3.1.1"
           }
+        },
+        "supports-color": {
+          "version": "7.2.0",
+          "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
+          "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+          "dev": true,
+          "optional": true,
+          "requires": {
+            "has-flag": "^4.0.0"
+          }
+        },
+        "vue-loader-v16": {
+          "version": "npm:vue-loader@16.8.3",
+          "resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz",
+          "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
+          "dev": true,
+          "optional": true,
+          "requires": {
+            "chalk": "^4.1.0",
+            "hash-sum": "^2.0.0",
+            "loader-utils": "^2.0.0"
+          }
         }
       }
     },
@@ -15267,101 +15353,6 @@
         "vue-style-loader": "^4.1.0"
       }
     },
-    "vue-loader-v16": {
-      "version": "npm:vue-loader@16.8.3",
-      "resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz",
-      "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
-      "dev": true,
-      "optional": true,
-      "requires": {
-        "chalk": "^4.1.0",
-        "hash-sum": "^2.0.0",
-        "loader-utils": "^2.0.0"
-      },
-      "dependencies": {
-        "ansi-styles": {
-          "version": "4.3.0",
-          "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
-          "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
-          "dev": true,
-          "optional": true,
-          "requires": {
-            "color-convert": "^2.0.1"
-          }
-        },
-        "chalk": {
-          "version": "4.1.2",
-          "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
-          "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
-          "dev": true,
-          "optional": true,
-          "requires": {
-            "ansi-styles": "^4.1.0",
-            "supports-color": "^7.1.0"
-          }
-        },
-        "color-convert": {
-          "version": "2.0.1",
-          "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
-          "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
-          "dev": true,
-          "optional": true,
-          "requires": {
-            "color-name": "~1.1.4"
-          }
-        },
-        "color-name": {
-          "version": "1.1.4",
-          "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
-          "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
-          "dev": true,
-          "optional": true
-        },
-        "has-flag": {
-          "version": "4.0.0",
-          "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
-          "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
-          "dev": true,
-          "optional": true
-        },
-        "hash-sum": {
-          "version": "2.0.0",
-          "resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-2.0.0.tgz",
-          "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==",
-          "dev": true,
-          "optional": true
-        },
-        "json5": {
-          "version": "2.2.1",
-          "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.1.tgz",
-          "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
-          "dev": true,
-          "optional": true
-        },
-        "loader-utils": {
-          "version": "2.0.2",
-          "resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-2.0.2.tgz",
-          "integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
-          "dev": true,
-          "optional": true,
-          "requires": {
-            "big.js": "^5.2.2",
-            "emojis-list": "^3.0.0",
-            "json5": "^2.1.2"
-          }
-        },
-        "supports-color": {
-          "version": "7.2.0",
-          "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
-          "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
-          "dev": true,
-          "optional": true,
-          "requires": {
-            "has-flag": "^4.0.0"
-          }
-        }
-      }
-    },
     "vue-style-loader": {
       "version": "4.1.3",
       "resolved": "https://registry.npmmirror.com/vue-style-loader/-/vue-style-loader-4.1.3.tgz",

+ 6 - 3
src/packageGoods/goods/detail.vue

@@ -9,7 +9,7 @@
 			<!-- 详情 -->
 			<view class="detail-info flex">
 				<view class="detail-info-left">
-					<view class="detail-info-left__title ells-one">{{ info.title }}</view>
+					<view class="detail-info-left__title">{{ info.title }}</view>
 					<view class="detail-info-left__coin">
 						<view class="content flex">
 							<image src="../../static/public/goods_coin.png" mode=""></image>
@@ -261,15 +261,18 @@
 			margin-bottom: 22rpx;
 			
 			&-left {
+				width: 100%;
 				flex: 1;
 				
 				&__title {
+					width: 100%;
 					font-size: 34rpx;
 					line-height: 34rpx;
-					height: 34rpx;
-					overflow: hidden;
 					margin-bottom: 26rpx;
 					font-weight: bold;
+					white-space: nowrap;
+					overflow: hidden;
+					text-overflow: ellipsis;
 				}
 				
 				&__coin {

+ 16 - 15
src/packageGoods/order/index.vue

@@ -21,7 +21,8 @@
 			<view class="order-list">
 				<view class="order-list-item" v-for="(item, index) in list" :key="index">
 					<view class="order-list-item__state">
-						<text class="success" v-if="!status">{{ item.status && item.status.desc }}</text>
+						<text class="success" v-if="item.status.value == -1 || item.status.value == 3">{{ item.status && item.status.desc }}</text>
+						<text v-else>{{ item.status && item.status.desc }}</text>
 					</view>
 					<view class="order-list-item__goods" @click="toDetail(item)">
 						<view class="order-list-item__goods-item" v-for="(items, indexs) in item.items" :key="indexs">
@@ -37,7 +38,7 @@
 					</view>
 					<view class="order-list-item-price flex">
 						<view class="order-list-item-price__num">共计<text>{{ item.orderNum }}</text>商品,</view>
-						<view class="order-list-item-price__total">总金额:<text>¥{{ $numberFormat(item.payAmt) }}</text></view>
+						<view class="order-list-item-price__total">总金额:<text>¥</text><text>{{ $numberFormat(item.payAmt) }}</text></view>
 					</view>
 					<view class="order-list-item-btn flex">
 						<view class="order-list-item-btn-item flex logistics" v-if="item.status.value == 2 || item.status.value == 3" @click="toLogistics(item)"><text>查看物流</text></view>
@@ -266,22 +267,20 @@
 					font-size: 30rpx;
 					line-height: 30rpx;
 					margin-bottom: 22rpx;
+					color: #F9822C;
 					
 					.success {
-						color: #FF1818;
+						color: #999;
 					}
 				}
 				
 				// 商品列表
 				&__goods {
-					margin-bottom: 20rpx;
-					
 					&-item{
 						display: flex;
-						padding: 22rpx;
-						box-shadow: 0px 0px 8px 0px rgba(26, 35, 113, 0.08);
+						padding: 40rpx 20rpx;
 						border-radius: 4rpx;
-						margin-bottom: 20rpx;
+						border-bottom: 1px solid rgba(51, 51, 51, 0.12);
 						
 						image {
 							width: 220rpx;
@@ -318,6 +317,7 @@
 					
 					&-item:last-child {
 						margin-bottom: 0;
+						border: none;
 					}
 				}
 				
@@ -328,15 +328,16 @@
 					border-bottom: 1px solid #E5E5E5;
 					margin-bottom: 22rpx;
 					
-					&__num {
-						text {
-							color: #F9822C;
-						}
-					}
-					
 					&__total {
+						text:first-child {
+							font-size: 24rpx;
+							font-weight: normal;
+						}
+						
 						text {
-							color: #F24E4E;
+							font-size: 30rpx;
+							font-weight: bold;
+							color: #F9822C;
 						}
 					}
 				}

+ 16 - 5
src/packageOperate/activity/index.vue

@@ -131,6 +131,7 @@
 			</view>
 
 			<!-- 关注公众号 -->
+			<!-- #ifdef MP-WEIXIN -->
 			<view class="wrap-account" @click="toWeixin">
 				<view class="wrap-account-view">
 					<image src="../static/activity/logo.png" mode=""></image>
@@ -138,7 +139,8 @@
 					<view>去关注</view>
 				</view>
 			</view>
-
+			<!-- #endif -->
+			
 			<!-- 图文介绍 -->
 			<view v-if="description" class="wrap-descriptiontwo">
 				<view style="padding: 36rpx 24rpx 36rpx;">图文介绍</view>
@@ -146,7 +148,8 @@
 			</view>
 
 		</view>
-
+		
+		<!-- #ifdef MP-WEIXIN -->
 		<view class="footer-fixed">
 			<view class="flex btn">
 				<button v-if="info.codeType == 2 && info.codeList.length < 1" type="default" @click="exChange"
@@ -154,7 +157,7 @@
 				<button v-if="info.codeType == 1 && info.codeList.length < 1" type="default" @click="exChangeCode">立即参与抽奖</button>
 				<button v-if="info.codeType == 1 && info.codeList.length >= 1 || info.codeType == 2 && info.codeList.length >= 1" type="default" @click="exChange"
 					open-type="share">分享给好友,提升中奖概率</button>
-<!-- 				<u-count-down v-else :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond
+				<!--<u-count-down v-else :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond
 					@change="onChange">
 					<button class="buttoncol" type="default">
 						开始倒计时:{{timeData.days}}&nbsp;天{{ timeData.hours>=10?timeData.hours:'0'+timeData.hours}}&nbsp;:{{timeData.minutes>=10?timeData.minutes:'0'+timeData.minutes}}&nbsp;:{{timeData.seconds>=10?timeData.seconds:'0'+timeData.seconds}}
@@ -162,8 +165,16 @@
 				</u-count-down> -->
 			</view>
 		</view>
-
-		<!-- 		<u-popup :show="popupShow" mode="bottom" @close="close" closeable>
+		<!-- #endif -->
+		<!-- #ifdef H5 -->
+		<view class="footer-fixed" v-if="info.codeType == 1 && info.codeList.length < 1">
+			<view class="flex btn">
+				<button type="default" @click="exChangeCode">立即参与抽奖</button>
+			</view>
+		</view>
+		<!-- #endif -->
+		
+	<!-- <u-popup :show="popupShow" mode="bottom" @close="close" closeable>
 			<view class="popupcode">获取抽奖码</view>
 			<view class="popupcodetwo">
 				<view class="popupcodetwo-view">邀请好友助力,获取抽奖码</view>

+ 1 - 1
src/packageOperate/address/index.vue

@@ -34,7 +34,7 @@
 				</view>
 			</view>
 		</view>
-		<view class="flex empty" v-if="!list.length && !loading">
+		<view class="flex empty" v-if="!list.length">
 			<view class="center">
 				<image class="center-img" src="https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/nodata_5.png" mode=""></image>
 				<view class="center-font">暂无收货地址</view>

BIN
src/packageOperate/static/activity/effectsseven.png


+ 1 - 2
src/packagePrize/bean/index.vue

@@ -22,12 +22,11 @@
 					</view>
 				</view>
 			</view>
-			<view class="flex empty" v-if="!list.length && !loading">
+			<view class="flex empty" v-if="!list.length">
 				<view class="center">
 					<image class="center-img" src="https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/nodata_6.png" mode=""></image>
 					<view class="center-font">还没有记录</view>
 				</view>
-			
 			</view>
 		</view>
 	</view>

+ 4 - 4
src/packagePrize/rolling/index.vue

@@ -382,18 +382,18 @@
 	.rolling {
 		width: 100%;
 		height: calc(100vh - 44px);
-		background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/prize_bkg1.png) center center no-repeat;
+		background: url(https://mp-public-test-1307117429.cos.ap-shanghai.myqcloud.com/v2/prize_bkg1.png) center center no-repeat;
 		background-size: 100vw calc(100vh - 44px);
 		overflow: hidden;
 		
 		// 奖品滚动
 		&-prize {
 			display: flex;
-			margin-top: 30vh;
+			margin-top: 28vh;
 			height: 28vh;
-			background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/prize_bkg2.png) center center no-repeat;
+			background: url(https://mp-public-test-1307117429.cos.ap-shanghai.myqcloud.com/v2/prize_bkg2.png) center center no-repeat;
 			background-size: 100vw 28vh;
-			margin-bottom: 42rpx;
+			margin-bottom: 82rpx;
 			
 			&-list {
 				display: flex;

+ 0 - 3
src/pages/index/index.vue

@@ -102,9 +102,6 @@
 				
 				<!-- 盲票价格 -->
 				<view class="ticket-price flex">
-					<!-- <view class="ticket-price-checkbox flex">
-						<image src="../../static/index/index_price_checkout.png" mode="scaleToFill"></image>
-					</view> -->
 					<view class="ticket-price-amt flex">
 						<view class="num">{{ $numberFormat(ticketInfo.salePrice) }}</view>
 						<view class="txt">元</view>

+ 146 - 64
src/pages/lucky/index.vue

@@ -9,17 +9,22 @@
 					</view>
 					<view class="luck-info-content flex">
 						<view class="luck-info-content-num">
-							<image src="../../static/lucky/lucky_not_num.png" mode="" v-if="info.status == 1"></image>
-							<image src="../../static/lucky/lucky_ok_num.png" mode="" v-else></image>
-							<view class="luck-info-content-num__content flex" v-if="info.status == 2">
-								<text>{{ info.plainLuckyNum }}</text>
-							</view>
+							<image src="../../static/lucky/lucky_gkmp.png" mode=""></image>
+						</view>
+						<view class="luck-info-content-img">
+							<view class="luck-info-content-img-word">
+								<image class="img" src="../../static/lucky/lucky_tu.png" mode=""></image>
+								<view class="luck-info-content-img-word__content">
+									<text>{{ info.awardsName }}</text>
+								</view>
+								<image class="imgtwo" src="../../static/lucky/lucky_xiaoguo.png" mode="" v-if="infoimg">
+								</image>
+								<image class="img" src="../../static/lucky/lucky_guajiangqu.png" mode="" v-if="info.status == 1">
+								<image class="imgone" src="../../static/lucky/lucky_yidong.png" v-else-if="info.status == 2"></image>
+							</view> 
 						</view>
-						<view class="luck-info-content-title" v-if="info.status == 1">- 幸运数字 -</view>
-						<view class="luck-info-content-tip" v-else>请刮开纸质票面的数字,与此幸运数字相同的就是所中奖项</view>
 						<view class="luck-info-content-ticket">
-							<image src="../../static/lucky/lucky_not.png" mode="" v-if="info.status == 1"></image>
-							<image src="../../static/lucky/lucky_ok.png" mode="" v-else></image>
+							<image src="../../static/lucky/lucky_piaohao.png" mode=""></image>
 							<view class="luck-info-content-ticket-info flex">
 								<view class="title" :class="{ 'action': info.status == 2 }">{{ info.title }}</view>
 								<view class="serialNo" :class="{ 'action': info.status == 2 }">盲票序列号:{{ info.serialNo }}
@@ -27,10 +32,10 @@
 							</view>
 						</view>
 						<view class="luck-info-content-btn" @click="pay" v-if="info.status == 1 && info.salePrice != 0">
-							支付{{ info.salePrice / 100 }}元 立即查看</view>
+							支付{{ info.salePrice / 100 }}元 立即刮开盲票</view>
 						<view class="luck-info-content-btn" @click="payDetail"
-							v-else-if="info.status == 1 && info.salePrice == 0">收下盲票,查看幸运数字</view>
-						<view class="luck-info-content-btn code" @click="scanCode" v-else>扫码兑奖</view>
+							v-else-if="info.status == 1 && info.salePrice == 0">收下盲票,立即刮开盲票</view>
+						<view class=" code" v-else>开奖啦!</view>
 					</view>
 					<view class="luck-info-close flex">
 						<navigator open-type="exit" target="miniProgram" hover-class="none"
@@ -45,10 +50,17 @@
 		<pay-popup :pay-show="payShow" :pay-info="payInfo" @close="close" @success="getDetailInfo" v-if="payShow" />
 
 		<u-popup :show="showNull" :round="10" mode="center" :safeAreaInsetBottom="false" overlayOpacity="0.8"
+			@touchmove.prevent.stop>
+			<view class="null-prize">
+				<view class="title">该盲票已兑奖</view>
+				<view class="btn" @click="toUser">确认</view>
+			</view>
+		</u-popup>
+		
+		<u-popup :show="tipShow" :round="10" mode="center" :safeAreaInsetBottom="false" overlayOpacity="0.8"
 			@touchmove.prevent.stop>
 			<view class="null-prize">
 				<view class="title">该盲票已被他人买走了</view>
-				<!-- <navigator open-type="exit" target="miniProgram" hover-class="none" class="btn">确认</navigator> -->
 				<view class="btn" @click="toUser">确认</view>
 			</view>
 		</u-popup>
@@ -85,6 +97,7 @@
 				luckyShow: false,
 				status: 2,
 				showAction: false,
+				infoimg: false,
 			};
 		},
 
@@ -98,29 +111,10 @@
 				let obj = urlParameter(decodeURIComponent(options.q))
 				this.serialNo = obj.id
 				this.getDetail()
-				// let url = JSON.stringify(options.q)
-				// this.serialNo = url.substring(url.length - 22, url.length - 1)
-				// this.getDetail()
 			}
 		},
 
 		methods: {
-			scanCode() {
-				let _this = this
-				uni.scanCode({
-					scanType: ['qrCode'],
-					success(res) {
-						let url = res.result
-						// _this.serialNo = url.substring(url.length - 21, url.length)
-						_this.serialNo = urlParameter(url).id
-						_this.getDetail()
-					},
-					fail() {
-						uni.$u.toast('请扫二维码');
-					}
-				});
-			},
-
 			getDetail() {
 				uni.showLoading({
 					title: '加载中'
@@ -140,6 +134,7 @@
 								uni.redirectTo({
 									url: `/packagePrize/choice/index?id=${ res.data.ticketId }&type=offLine`
 								})
+
 							} else {
 								this.luckyShow = true
 								uni.showModal({
@@ -190,7 +185,14 @@
 					if (res.code == 0) {
 						if (res.data.status == 2) {
 							_this.info = res.data
-							let num = res.data.plainLuckyNum
+							setTimeout(() => {
+								this.infoimg = true
+								setTimeout(() => {
+									uni.redirectTo({
+										url: `/packagePrize/choice/index?id=${ res.data.ticketId }&type=offLine`
+									})
+								}, 500)
+							}, 500)
 						} else {
 							let num = 0
 							let time = setInterval(() => {
@@ -206,7 +208,14 @@
 										uni.hideLoading();
 										clearInterval(time)
 										_this.info = res.data
-										let num = res.data.plainLuckyNum
+										setTimeout(() => {
+											this.infoimg = true
+											setTimeout(() => {
+												uni.redirectTo({
+													url: `/packagePrize/choice/index?id=${ res.data.ticketId }&type=offLine`
+												})
+											}, 500)
+										}, 500)
 									}
 								})
 								if (num == 10) {
@@ -243,8 +252,8 @@
 								uni.hideLoading();
 								if (res.code == 0) {
 									this.getDetailInfo()
-								}else {
-									this.showNull = true
+								} else {
+									this.tipShow = true
 									this.luckyShow = false
 								}
 							}).catch(() => {
@@ -309,7 +318,6 @@
 			position: relative;
 			width: 87vw;
 			height: 60vh;
-			// background-color: #fff;
 
 			&-bg {
 				position: absolute;
@@ -332,10 +340,10 @@
 
 				&-num {
 					position: relative;
-					width: 60%;
-					height: 10vh;
-					margin-top: 17vh;
-					margin-bottom: 2vh;
+					width: 422rpx;
+					height: 8vh;
+					margin-top: 16vh;
+					margin-bottom: 3vh;
 
 					image {
 						position: absolute;
@@ -344,17 +352,61 @@
 						height: 100%;
 					}
 
-					&__content {
+
+				}
+
+				&-img {
+					position: relative;
+					width: 73%;
+					height: 10vh;
+					background-color: #fff;
+					border-radius: 12rpx;
+
+					&-word {
 						position: absolute;
-						top: 0;
-						width: 100%;
-						height: 100%;
-						z-index: 5;
-						font-size: 120rpx;
-						font-family: YouSheBiaoTiHei;
-						font-weight: 400;
-						color: #FD3331;
+						top: 15%;
+						left: 5%;
+						width: 90%;
+						height: 85%;
+						overflow: hidden;
+
+						.img {
+							position: absolute;
+							width: 100%;
+							height: 82.6%;
+						}
+
+						.imgtwo {
+							position: absolute;
+							width: 20%;
+							height: 82%;
+							left: -20%;
+							animation: shadowTwoMove 0.5s linear infinite;
+							animation-iteration-count: 1;
+						}
+
+						.imgone {
+							position: absolute;
+							left: 100%;
+							width: 100%;
+							height: 100%;
+							animation: shadowMove 0.5s linear infinite;
+							animation-iteration-count: 1;
+						}
+
+						&__content {
+							position: absolute;
+							top: 25%;
+							text-align: center;
+							width: 100%;
+							height: 100%;
+							font-size: 36rpx;
+							font-family: YouSheBiaoTiHei;
+							font-weight: 400;
+							color: #fff;
+						}
 					}
+
 				}
 
 				&-title {
@@ -374,20 +426,21 @@
 
 				&-ticket {
 					position: relative;
-					width: 96%;
-					height: 14vh;
-					margin-bottom: 2vh;
+					width: 73%;
+					height: 10vh;
+					margin-top: 2vh;
 
 					image {
 						position: absolute;
 						top: 0;
 						width: 100%;
-						height: 100%;
+						height: 95%;
 					}
 
 					&-info {
-						width: 100%;
-						height: 100%;
+						width: 90%;
+						height: 75%;
+						left: 5%;
 						position: absolute;
 						top: 0;
 						z-index: 5;
@@ -395,15 +448,15 @@
 						flex-direction: column;
 
 						.title {
-							font-size: 36rpx;
-							line-height: 36rpx;
-							font-weight: bold;
+							font-size: 30rpx;
+							line-height: 30rpx;
 							color: #FF6D2C;
-							margin-bottom: 2vh;
+							margin-top: 1vh;
+							margin-bottom: 1vh;
 						}
 
 						.serialNo {
-							font-size: 26rpx;
+							font-size: 24rpx;
 							color: #FF6D2C;
 						}
 
@@ -414,19 +467,26 @@
 				}
 
 				&-btn {
-					padding: 0 13%;
-					height: 8vh;
-					line-height: 8vh;
+					padding: 0 8%;
+					height: 7vh;
+					line-height: 7vh;
 					background: linear-gradient(0deg, #FF4924, #F9D448);
 					box-shadow: 0px 6px 9px 0px rgba(135, 19, 3, 0.49);
 					border-radius: 4vh;
 					text-align: center;
 					color: #FEFEFE;
 					font-size: 40rpx;
+					margin-top: 1vh;
 				}
 
 				.code {
 					padding: 0 20%;
+					height: 7vh;
+					line-height: 10vh;
+					text-align: center;
+					color: #FEFEFE;
+					font-family: YouSheBiaoTiHei;
+					font-size: 38rpx
 				}
 			}
 
@@ -474,4 +534,26 @@
 			text-align: center;
 		}
 	}
+
+	// 支付后移动动画
+	@keyframes shadowMove {
+		0% {
+			left: 0%;
+		}
+
+		100% {
+			left: 100%;
+		}
+	}
+
+	// 支付后移动动画
+	@keyframes shadowTwoMove {
+		0% {
+			left: -20%;
+		}
+
+		100% {
+			left: 100%;
+		}
+	}
 </style>

+ 2 - 0
src/pages/ticketBox/detail.vue

@@ -50,8 +50,10 @@
 					<view class="ticket-btn-center-txt">刮开盲票</view>
 				</view>
 				<view class="ticket-btn-share flex">
+					<!-- #ifdef MP-WEIXIN -->
 					<image src="../../static/ticketBox/ticket_share.png" mode="scaleToFill" @click="toShare"></image>
 					<button type="default" open-type="share" v-if="loginState"></button>
+					<!-- #endif -->
 				</view>
 			</view>
 		</view>

+ 5 - 10
src/pages/user/index.vue

@@ -58,7 +58,7 @@
 			</view>
 			<view class="action-item flex" @click="toAddress">
 				<view class="action-item-left flex">
-					<image class="addr" src="../../static/user/user_addr.png" mode=""></image>
+					<image src="../../static/user/user_addr.png" mode=""></image>
 					<view class="title">我的地址</view>
 				</view>
 				<u-icon name="arrow-right" color="#666" size="16"></u-icon>
@@ -335,8 +335,8 @@
 				color: #666;
 				
 				image {
-					width: 44rpx;
-					height: 44rpx;
+					width: 52rpx;
+					height: 52rpx;
 					margin-right: 20rpx;
 				}
 				
@@ -345,14 +345,9 @@
 					line-height: 30rpx;
 				}
 				
-				.addr {
-					width: 38rpx;
-					height: 46rpx;
-				}
-				
 				.close {
-					width: 50rpx;
-					height: 46rpx;
+					width: 62rpx;
+					height: 62rpx;
 				}
 			}
 		}

BIN
src/static/index/index_btn_cir_center.png


BIN
src/static/index/index_chance_1.png


BIN
src/static/index/index_chance_2.png


BIN
src/static/index/index_chance_3.png


BIN
src/static/index/index_chance_4.png


BIN
src/static/index/index_price_checkout.png


BIN
src/static/index/index_prize.png


BIN
src/static/index/index_ticket.png


BIN
src/static/lucky/lucky_gkmp.png


BIN
src/static/lucky/lucky_guajiangqu.png


BIN
src/static/lucky/lucky_not.png


BIN
src/static/lucky/lucky_not_num.png


BIN
src/static/lucky/lucky_ok.png


BIN
src/static/lucky/lucky_ok_num.png


BIN
src/static/lucky/lucky_piaohao.png


BIN
src/static/lucky/lucky_tu.png


BIN
src/static/lucky/lucky_xiaoguo.png


BIN
src/static/lucky/lucky_yidong.png


BIN
src/static/user/user_about.png


BIN
src/static/user/user_addr.png


BIN
src/static/user/user_close.png


BIN
src/static/user/user_kefu.png


BIN
src/static/user/user_order.png