confirm_success.vue 6.4 KB

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