confirm_success.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <template>
  2. <view>
  3. <view>
  4. <view style="padding: 8rpx;">
  5. <view class="box1">
  6. <view class="box1_t1">
  7. <u-icon name="checkmark-circle" color="#34C759" size="32"></u-icon><text style="margin-left: 8rpx;">您的订单已支付成功!</text></view>
  8. <view style="display: flex;align-items: center;justify-content: center;" v-if="isBK === '1'">
  9. <view class="btn1" @click="backMyStudent">
  10. 返回我的网课
  11. </view>
  12. <view class="btn2" @click="gots">
  13. 继续本次的考试预约
  14. </view>
  15. </view>
  16. <view style="display: flex;align-items: center;justify-content: center;" v-else>
  17. <view class="btn1" @click="goCourse">
  18. 继续选课
  19. </view>
  20. <view class="btn2" @click="goOrder">
  21. 我的订单
  22. </view>
  23. </view>
  24. </view>
  25. <view class="box2">
  26. <view class="title2">订单信息</view>
  27. <u-line color="#D6D6DB" />
  28. <view style="padding:10rpx 30rpx;" v-for="(item,index) in shoppingCartList" :key="index">
  29. <view class="list_item">
  30. <view class="txt_left">商品名称</view>
  31. <view class="txt_right">{{item.goodsName}}</view>
  32. </view>
  33. <view class="list_item">
  34. <view class="txt_left">应付金额</view>
  35. <view class="txt_right_price">¥ {{item.standPrice}}</view>
  36. </view>
  37. <view class="list_item">
  38. <view class="txt_left">订单编号</view>
  39. <view class="txt_right_sn">{{sn}}</view>
  40. </view>
  41. <view class="tip">*您可在“我的>我的订单”中查询</view>
  42. </view>
  43. <u-line color="#D6D6DB" />
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import { mapGetters } from 'vuex';
  51. export default {
  52. components: {
  53. },
  54. data() {
  55. return {
  56. list:[
  57. {
  58. name: '网课'
  59. },
  60. {
  61. name: '题库通'
  62. }
  63. ],
  64. array:['全部','建设工程施工管理','机电全科','机电工程管理与实','机电全科','全科'],
  65. current:0,
  66. menuIndex:0,
  67. sn:'',
  68. isBK:'',//1补考商品
  69. getDatas:{}
  70. };
  71. },
  72. onPullDownRefresh(){
  73. },
  74. onLoad(option) {
  75. this.sn = option.sn
  76. this.isBK = option.isBk
  77. if(option.isBk === '1'){
  78. this.getDatas = this.$store.getters.getBackPageApplyData
  79. console.log(this.isBK === '1',this.getDatas)
  80. }
  81. },
  82. onShow() {
  83. /* if(this.current === 2 && this.$method.isLogin()){
  84. this.$refs.refMy.init();
  85. } */
  86. },
  87. methods: {
  88. // 返回我的网课
  89. backMyStudent(){
  90. uni.redirectTo({
  91. url: '/pages2/wd/class'
  92. });
  93. },
  94. // 继续本次的考试预约
  95. gots(){
  96. uni.redirectTo({
  97. url: `/pages2/appointment/index?goodsId=${this.getDatas.goodsId}&gradeId=${this.getDatas.gradeId}`
  98. });
  99. },
  100. goCourse(){
  101. uni.switchTab({
  102. url: '/pages/course/index'
  103. });
  104. },
  105. goOrder(){
  106. uni.redirectTo({
  107. url: '/pages2/order/index?current=1'
  108. });
  109. },
  110. radioChange(e) {
  111. // console.log(e);
  112. },
  113. // 选中任一radio时,由radio-group触发
  114. radioGroupChange(e) {
  115. // console.log(e);
  116. },
  117. cMenu(index){
  118. this.menuIndex = index;
  119. },
  120. change(index){
  121. this.current = index;
  122. }
  123. },
  124. onReachBottom() {},
  125. computed: { ...mapGetters(['userInfo','shoppingCartList']) }
  126. };
  127. </script>
  128. <style >
  129. ::-webkit-scrollbar{
  130. width: 0;
  131. height: 0;
  132. color: transparent
  133. }
  134. page{
  135. background-color: #EAEEF1;
  136. }
  137. </style>
  138. <style scoped>
  139. .btn2{
  140. /* width: 160rpx; */
  141. padding: 0rpx 20rpx;
  142. height: 56rpx;
  143. background: #007AFF;
  144. border-radius: 16rpx;
  145. font-size: 30rpx;
  146. color: #FFFFFF;
  147. margin: 10rpx;
  148. text-align: center;
  149. line-height: 56rpx;
  150. }
  151. .btn1{
  152. padding: 0rpx 20rpx;
  153. /* width: 160rpx; */
  154. height: 56rpx;
  155. background: #F5F5F5;
  156. border-radius: 16rpx;
  157. font-size: 30rpx;
  158. color: #007AFF;
  159. margin: 10rpx;
  160. text-align: center;
  161. line-height: 56rpx;
  162. }
  163. .txt_left_pay{
  164. display: flex;
  165. align-items: center;
  166. height: 64rpx;
  167. font-size: 24rpx;
  168. color: #666666;
  169. }
  170. .pay_icon{
  171. width: 64rpx;
  172. height: 64rpx;
  173. margin-right: 10rpx;
  174. }
  175. .box3{
  176. width: 100%;
  177. background: #FFFFFF;
  178. border-radius: 16rpx;
  179. margin-top: 30rpx;
  180. }
  181. .tip{
  182. font-size: 24rpx;
  183. color: #999999;
  184. height: 40rpx;
  185. line-height: 40rpx;
  186. }
  187. .txt_right_sn{
  188. font-size: 30rpx;
  189. font-weight: bold;
  190. color: #666666;
  191. }
  192. .txt_right_price{
  193. font-size: 30rpx;
  194. font-weight: bold;
  195. color: #FF2D55;
  196. }
  197. .txt_left{
  198. font-size: 24rpx;
  199. color: #666666;
  200. }
  201. .txt_right{
  202. text-align: right;
  203. color: #333333;
  204. font-weight: bold;
  205. width: 75%;
  206. }
  207. .list_item{
  208. display: flex;
  209. justify-content: space-between;
  210. height: 80rpx;
  211. align-items: center;
  212. }
  213. .title2{
  214. font-size: 30rpx;
  215. font-weight: bold;
  216. color: #333333;
  217. height: 80rpx;
  218. line-height: 80rpx;
  219. margin-left: 30rpx;
  220. }
  221. .box2{
  222. width: 100%;
  223. background: #FFFFFF;
  224. border-radius: 16rpx;
  225. margin-top: 16rpx;
  226. }
  227. .box1_t2{
  228. font-size: 24rpx;
  229. color: #999999;
  230. text-align: center;
  231. }
  232. .box1_t1{
  233. font-size: 30rpx;
  234. font-weight: bold;
  235. color: #333333;
  236. height: 70rpx;
  237. display: flex;
  238. align-items: center;
  239. justify-content: center;
  240. }
  241. .box1{
  242. width: 100%;
  243. background: #FFFFFF;
  244. border-radius: 16rpx;
  245. padding: 15rpx;
  246. }
  247. .bottomBtn{
  248. position: fixed;
  249. bottom: 0;
  250. width: 100%;
  251. height: 98rpx;
  252. background: linear-gradient(0deg, #015EEA, #00C0FA);
  253. color: #FFFFFF;
  254. text-align: center;
  255. line-height: 98rpx;
  256. font-weight: bold;
  257. font-size: 30rpx;
  258. }
  259. </style>