integralConfirm.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <template>
  2. <view class="box">
  3. <view class="topTis">
  4. <view class="tanhao">!</view>
  5. <view class="topTisTxt">提交申请后请到店兑换</view>
  6. </view>
  7. <view class="cont">
  8. <view class="contTitle">商品明细</view>
  9. <view class="goodsCont">
  10. <img :src="jfgoodsDetail.imgList[0].img" alt="" class="goodsImg" v-if="jfgoodsDetail.imgList.length>0">
  11. <image src="../../static/timg/noimg.png" class="goodsImg" v-else></image>
  12. <view class="goodsRight">
  13. <view class="goodsName">{{jfgoodsDetail.name}}</view>
  14. <view class="goodsNumbox">
  15. <view class="Price">¥<span>{{jfgoodsDetail.salePrice}}</span> </view>
  16. <view class="goodsNum">x{{goodsnum}}</view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="shopCont">
  22. <view class="shopLeft">服务门店</view>
  23. <view class="shopName">{{shopName}}</view>
  24. </view>
  25. <view class="buybtnBox">
  26. <view class="ktyong"><view>合计 <span class="ktyong1">{{goodsnum*jfgoodsDetail.integral}}</span><span class="ktyong2">积分</span> </view>
  27. <view class="kyNum">可用积分:{{avaIntegral}}</view>
  28. </view>
  29. <view class="bottomBtn" @click="goBuy">提交订单</view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. shopId:'',
  38. shopName:'',
  39. avaIntegral:'',
  40. goodsnum:'',
  41. jfgoodsDetail:'',
  42. }
  43. },
  44. onLoad(opt) {
  45. this.jfgoodsDetail=uni.getStorageSync("jfgoodsDetail");
  46. this.shopName=opt.shopName;
  47. this.shopId=opt.shopId;
  48. this.avaIntegral=opt.avaIntegral;
  49. this.goodsnum=opt.goodsnum;
  50. },
  51. methods: {
  52. goDetail(){
  53. uni.navigateTo({
  54. url:'integralgoodsDetail'
  55. })
  56. }
  57. }
  58. }
  59. </script>
  60. <style scoped>
  61. .box{
  62. background: #F4F5F7;
  63. min-height: 100vh;
  64. }
  65. .tanhao{
  66. width: 30rpx;
  67. height: 30rpx;
  68. background: #F19D01;
  69. border-radius: 50%;
  70. text-align: center;
  71. line-height: 30rpx;
  72. color: #ffffff;
  73. font-size: 30rpx;
  74. }
  75. .topTis{
  76. padding: 20rpx 21rpx;
  77. background: #FDF5E5;
  78. display: flex;
  79. }
  80. .topTisTxt{
  81. color: #F19D01;font-size: 26rpx;line-height: 30rpx;padding-left: 10rpx;
  82. }
  83. .cont{
  84. width: 702rpx;
  85. background: #FFFFFF;
  86. border-radius: 10rpx;
  87. margin-left: 24rpx;
  88. margin-top: 20rpx;
  89. }
  90. .contTitle{
  91. font-size: 30rpx;
  92. font-family: PingFangSC-Medium, PingFang SC;
  93. font-weight: 500;
  94. color: #3C3C3C;
  95. line-height: 42rpx;
  96. padding: 26rpx 20rpx;
  97. border-bottom: 1px solid #EEEEEE;
  98. }
  99. .goodsImg{
  100. width: 120rpx;
  101. height: 120rpx;
  102. }
  103. .goodsCont{
  104. display: flex;
  105. padding: 30rpx 20rpx;
  106. }
  107. .goodsRight{
  108. width: 522rpx;
  109. padding-left: 20rpx;
  110. display: flex;
  111. flex-direction: column;
  112. justify-content: space-between;
  113. }
  114. .goodsName{
  115. color: #3C3C3C;font-size: 26rpx;
  116. }
  117. .goodsNumbox{
  118. display: flex;
  119. justify-content: space-between;
  120. }
  121. .Price{
  122. color: #3C3C3C;font-size: 22rpx;
  123. }
  124. .Price span{
  125. font-weight: 500;
  126. color: #3C3C3C;
  127. font-size: 32rpx;
  128. }
  129. .goodsNum{
  130. color: #999999;font-size: 24rpx;padding-top: 5rpx;
  131. }
  132. .buybtnBox{
  133. width: 750rpx;
  134. height: 120rpx;
  135. background: #FFFFFF;
  136. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  137. display: flex;
  138. justify-content: space-between;
  139. position: fixed;
  140. left: 0;
  141. bottom: 0;
  142. padding-bottom: env(safe-area-inset-bottom);
  143. }
  144. .ktyong{
  145. font-weight: 500;
  146. color: #666666;
  147. font-size: 24rpx;
  148. padding-left: 30rpx;
  149. padding-top: 18rpx;
  150. } .ktyong1{
  151. color: #FF0000;
  152. font-size: 32rpx;
  153. }
  154. .ktyong2{
  155. color: #FF0000;
  156. font-size: 24rpx;
  157. }
  158. .kyNum{
  159. color: #999999;
  160. font-size: 24rpx;
  161. }
  162. .bottomBtn{
  163. width: 204rpx;
  164. height: 74rpx;
  165. background: #D53533;
  166. border-radius: 37rpx;
  167. line-height: 74rpx;
  168. text-align: center;
  169. color: #FFFFFF;
  170. font-size: 30rpx;
  171. margin-top: 23rpx;
  172. margin-left: 70rpx;
  173. margin-right: 30rpx;
  174. }
  175. .shopCont{
  176. background: #FEFFFE;
  177. border-radius: 10rpx;
  178. width: 702rpx;
  179. padding: 30rpx 0;
  180. margin-top: 20rpx;
  181. margin-left: 24rpx;
  182. display: flex;
  183. justify-content: space-between;
  184. }
  185. .shopLeft{
  186. color: #666666;
  187. font-size: 28rpx;
  188. padding-left: 20rpx;
  189. }
  190. .shopName{
  191. color: #333333;font-size: 28rpx;
  192. padding-right: 20rpx;
  193. }
  194. </style>