| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 | 
							- <template>
 
-  <view class="box">
 
- 	 <view class="topTis">
 
- 		 <view class="tanhao">!</view>
 
- 		 <view class="topTisTxt">提交申请后请到店兑换</view>
 
- 	 </view>
 
- 	 <view class="cont">
 
- 		 <view class="contTitle">商品明细</view>
 
- 		 <view class="goodsCont">
 
- 			 <img :src="jfgoodsDetail.imgList[0].img" alt="" class="goodsImg" v-if="jfgoodsDetail.imgList.length>0">
 
- 			  <image src="../../static/timg/noimg.png"  class="goodsImg" v-else></image>
 
- 		     <view class="goodsRight">
 
- 				 <view class="goodsName">{{jfgoodsDetail.name}}</view>
 
- 				 <view class="goodsNumbox">
 
- 					 <view class="Price" v-if="jfgoodsDetail.salePrice">¥<span>{{jfgoodsDetail.salePrice}}</span> </view>
 
- 					 <view class="goodsNum">x{{goodsnum}}</view>
 
- 				 </view>
 
- 			 </view>
 
- 		 </view>
 
- 	 </view>
 
- 	 <view class="shopCont">
 
- 		 <view class="shopLeft">服务门店</view>
 
- 		 <view class="shopName">{{shopName}}</view>
 
- 	 </view>
 
- 	 <view class="buybtnBox">
 
- 	 	<view class="ktyong"><view>合计 <span class="ktyong1">{{goodsnum*jfgoodsDetail.integral}}</span><span class="ktyong2">积分</span>   </view> 
 
- 	 	   <view class="kyNum">可用积分:{{avaIntegral}}</view>
 
- 	 	</view>
 
- 	 	<view class="bottomBtn commonBtn"  @click="goBuy">提交订单</view>
 
- 	 </view>
 
-  </view>
 
- </template>
 
- <script>
 
- 	export default {
 
- 		data() {
 
- 			return {
 
- 				shopId:'',
 
- 				shopName:'',
 
- 				avaIntegral:'',
 
- 				goodsnum:'',
 
- 				jfgoodsDetail:'',
 
- 				themeColor:'',
 
- 			}
 
- 		},
 
- 		onLoad(opt) {
 
- 			this.jfgoodsDetail=uni.getStorageSync("jfgoodsDetail");
 
- 			this.shopName=opt.shopName;
 
- 			this.shopId=opt.shopID;
 
- 			this.avaIntegral=opt.avaIntegral;
 
- 			this.goodsnum=opt.goodsnum;
 
- 			this.themeColor = uni.getStorageSync("themeColor");
 
- 		},
 
- 		methods: {
 
- 			
 
- 			goDetail(){
 
- 				uni.navigateTo({
 
- 					url:'integralgoodsDetail'
 
- 				})
 
- 			},
 
- 			goBuy(){
 
- 				uni.showLoading({
 
- 					title: '加载中'
 
- 				})
 
- 				this.$http('openIntegralMall/exchangeApply', {
 
- 				  shopId:this.shopId,
 
- 				  goodsID:this.jfgoodsDetail.id,
 
- 				  qty:this.goodsnum
 
- 				 },'POST').then(res => {
 
- 						uni.hideLoading();
 
- 						if(res.code==0){
 
- 							this.orderData=res.data
 
- 							// uni.showToast({
 
- 							// 	title: '兑换成功',
 
- 							// 	icon: 'none',
 
- 							// 	duration: 3000
 
- 							// });
 
- 							
 
- 							var that = this
 
- 							uni.showModal({
 
- 							    title: '提示',
 
- 							    content: '提交成功',
 
- 								cancelText:'回到首页',
 
- 								confirmText:'查看订单',
 
- 							    success: function (res2) {
 
- 							        if (res2.confirm) {
 
- 										uni.redirectTo({
 
- 											url:'recordDetail?id='+res.data
 
- 										})
 
- 									
 
- 							          
 
- 							        } else if (res2.cancel) {
 
- 							           uni.switchTab({
 
- 							           	url:'../index/index'
 
- 							           })
 
- 							        }
 
- 							    }
 
- 							});
 
- 						}else{
 
- 							uni.showToast({
 
- 								title: res.msg,
 
- 								icon: 'none',
 
- 								duration: 3000
 
- 							});
 
- 						}
 
- 				 })
 
- 			}
 
- 		}
 
- 	}
 
- </script>
 
- <style scoped>
 
- .box{
 
- 	background: #F4F5F7;
 
- 	min-height: 100vh;
 
- }
 
-  .tanhao{
 
- 	 width: 30rpx;
 
- 	 height: 30rpx;
 
- 	 background: #F19D01;
 
- 	 border-radius: 50%;
 
- 	 text-align: center;
 
- 	 line-height: 30rpx;
 
- 	 color: #ffffff;
 
- 	 font-size: 30rpx;
 
-  }
 
- .topTis{
 
- 	padding: 20rpx 21rpx;
 
- 	background: #FDF5E5;
 
- 	display: flex;
 
- }
 
- .topTisTxt{
 
- 	color: #F19D01;font-size: 26rpx;line-height: 30rpx;padding-left: 10rpx;
 
- }
 
- .cont{
 
- 	width: 702rpx;
 
- 	background: #FFFFFF;
 
- 	border-radius: 10rpx;
 
- 	margin-left: 24rpx;
 
- 	margin-top: 20rpx;
 
- }
 
- .contTitle{
 
- 	font-size: 30rpx;
 
- 	font-family: PingFangSC-Medium, PingFang SC;
 
- 	font-weight: 500;
 
- 	color: #3C3C3C;
 
- 	line-height: 42rpx;
 
- 	padding: 26rpx 20rpx;
 
- 	border-bottom: 1px solid #EEEEEE;
 
- }
 
- .goodsImg{
 
- 	width: 120rpx;
 
- 	height: 120rpx;
 
- }
 
- .goodsCont{
 
- 	display: flex;
 
- 	padding: 30rpx 20rpx;
 
- }
 
- .goodsRight{
 
- 	width: 522rpx;
 
- 	padding-left: 20rpx;
 
- 	display: flex;
 
- 	flex-direction: column;
 
- 	justify-content: space-between;
 
- }
 
- .goodsName{
 
- 	color: #3C3C3C;font-size: 26rpx;
 
- }
 
- .goodsNumbox{
 
- 	display: flex;
 
- 	justify-content: space-between;
 
- }
 
- .Price{
 
- 	color: #3C3C3C;font-size: 22rpx;
 
- }
 
- .Price span{
 
- 	font-weight: 500;
 
- 	color: #3C3C3C;
 
- 	font-size: 32rpx;
 
- }
 
- .goodsNum{
 
- 	color: #999999;font-size: 24rpx;padding-top: 5rpx;
 
- }
 
- .buybtnBox{
 
- 	width: 750rpx;
 
- 	height: 120rpx;
 
- 	background: #FFFFFF;
 
- 	box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
 
- 	display: flex;
 
- 	justify-content: space-between;
 
- 	position: fixed;
 
- 	left: 0;
 
- 	bottom: 0;
 
- 	padding-bottom: env(safe-area-inset-bottom);
 
- }
 
- .ktyong{
 
- 		font-weight: 500;
 
- 		color: #666666;
 
- 		font-size: 24rpx;
 
- 		padding-left: 30rpx;
 
- 		padding-top: 18rpx;
 
- 	}    .ktyong1{
 
- 		color: #EC0F0A;
 
- 		font-size: 32rpx;
 
- 	}
 
- 	.ktyong2{
 
- 		color: #EC0F0A;
 
- 		font-size: 24rpx;
 
- 	}
 
- 	.kyNum{
 
- 		color: #999999;
 
- 		font-size: 24rpx;
 
- 	}
 
- 	.bottomBtn{
 
- 		width: 204rpx;
 
- 		height: 74rpx;
 
- 		background: #EC0F0A;
 
- 		border-radius: 37rpx;
 
- 		line-height: 74rpx;
 
- 		text-align: center;
 
- 		color: #FFFFFF;
 
- 		font-size: 30rpx;
 
- 		margin-top: 23rpx;
 
- 		margin-left: 70rpx;
 
- 		margin-right: 30rpx;
 
- 	}
 
- .shopCont{
 
- 	background: #FEFFFE;
 
- 	border-radius: 10rpx;
 
- 	width: 702rpx;
 
- 	padding: 30rpx 0;
 
- 	margin-top: 20rpx;
 
- 	margin-left: 24rpx;
 
- 	display: flex;
 
- 	justify-content: space-between;
 
- }
 
- .shopLeft{
 
- 	color: #666666;
 
- 	font-size: 28rpx;
 
- 	padding-left: 20rpx;
 
- }
 
- .shopName{
 
- 	color: #333333;font-size: 28rpx;
 
- 	padding-right: 20rpx;
 
- }
 
- </style>
 
 
  |