confirm_success.vue 6.6 KB

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