confirm_success.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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. uni.switchTab({
  118. url: "/pages/course/index",
  119. });
  120. },
  121. goOrder() {
  122. // uni.redirectTo({
  123. // url: '/pages2/order/index?current=1'
  124. // });
  125. uni.switchTab({
  126. url: "/pages/learn/index",
  127. });
  128. },
  129. radioChange(e) {
  130. // console.log(e);
  131. },
  132. // 选中任一radio时,由radio-group触发
  133. radioGroupChange(e) {
  134. // console.log(e);
  135. },
  136. cMenu(index) {
  137. this.menuIndex = index;
  138. },
  139. change(index) {
  140. this.current = index;
  141. },
  142. },
  143. onReachBottom() {},
  144. computed: { ...mapGetters(["userInfo", "shoppingCartList", "config"]) },
  145. };
  146. </script>
  147. <style>
  148. ::-webkit-scrollbar {
  149. width: 0;
  150. height: 0;
  151. color: transparent;
  152. }
  153. </style>
  154. <style lang="scss" scoped>
  155. page {
  156. background-color: #ffffff;
  157. }
  158. .btn2 {
  159. padding: 0rpx 30rpx;
  160. height: 76rpx;
  161. background: #007aff;
  162. border-radius: 100rpx;
  163. font-size: 28rpx;
  164. color: #ffffff;
  165. text-align: center;
  166. line-height: 76rpx;
  167. }
  168. .btn1 {
  169. padding: 0 30rpx;
  170. height: 76rpx;
  171. border-radius: 100rpx;
  172. border: 1px solid #828282;
  173. box-sizing: border-box;
  174. font-size: 28rpx;
  175. color: #222222;
  176. line-height: 76rpx;
  177. margin-right: 48rpx;
  178. }
  179. .pay_icon {
  180. width: 64rpx;
  181. height: 64rpx;
  182. margin-right: 10rpx;
  183. }
  184. .box3 {
  185. width: 100%;
  186. background: #ffffff;
  187. border-radius: 16rpx;
  188. margin-top: 30rpx;
  189. }
  190. .tip {
  191. text-align: center;
  192. font-size: 28rpx;
  193. color: #999999;
  194. height: 40rpx;
  195. line-height: 40rpx;
  196. color: #7c7c7c;
  197. margin: 24rpx 0 48rpx;
  198. }
  199. .collect {
  200. width: 89%;
  201. background: #e7f1ff;
  202. padding: 30rpx 40rpx;
  203. margin-left: 34rpx;
  204. border-radius: 24rpx;
  205. &:nth-of-type(2) {
  206. image {
  207. width: 112rpx;
  208. height: 112rpx;
  209. }
  210. }
  211. text {
  212. margin-left: 32rpx;
  213. color: #222222;
  214. font-size: 30rpx;
  215. line-height: 44rpx;
  216. }
  217. }
  218. .txt_right_sn {
  219. color: #666666;
  220. }
  221. .txt_right_price {
  222. font-weight: bold;
  223. color: #eb5757;
  224. }
  225. .txt_left {
  226. color: #444444;
  227. }
  228. .txt_right {
  229. width: 70%;
  230. text-align: right;
  231. color: #666666;
  232. }
  233. .list_item {
  234. display: flex;
  235. justify-content: space-between;
  236. align-items: center;
  237. margin-top: 40rpx;
  238. }
  239. .title2 {
  240. font-weight: bold;
  241. color: #222222;
  242. }
  243. .box2 {
  244. margin: 0 40rpx;
  245. margin-top: 64rpx;
  246. font-size: 32rpx;
  247. }
  248. .box1_t2 {
  249. font-size: 24rpx;
  250. color: #999999;
  251. text-align: center;
  252. }
  253. .box1_t1 {
  254. font-size: 30rpx;
  255. font-weight: bold;
  256. color: #333333;
  257. height: 70rpx;
  258. display: flex;
  259. align-items: center;
  260. justify-content: center;
  261. image {
  262. width: 72rpx;
  263. height: 72rpx;
  264. }
  265. }
  266. .box1 {
  267. width: 100%;
  268. background: #ffffff;
  269. border-radius: 16rpx;
  270. padding: 56rpx 0 80rpx;
  271. text {
  272. margin-left: 8rpx;
  273. font-weight: bold;
  274. color: #222222;
  275. font-size: 36rpx;
  276. }
  277. }
  278. .bottomBtn {
  279. position: fixed;
  280. bottom: 0;
  281. width: 100%;
  282. height: 98rpx;
  283. background: linear-gradient(0deg, #015eea, #00c0fa);
  284. color: #ffffff;
  285. text-align: center;
  286. line-height: 98rpx;
  287. font-weight: bold;
  288. font-size: 30rpx;
  289. }
  290. </style>