Rap 原分销系统代码Web
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

81b762dd1a2e45ba2d26e0e055692a9a08b46b4d.svn-base 1.4KB

pirms 5 mēnešiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <el-tabs v-model="activeName" style="padding-left: 5px;">
  3. <el-tab-pane label="参数配置" name="first">
  4. <Config />
  5. </el-tab-pane>
  6. <el-tab-pane label="支付测试" name="second">
  7. <ToPay />
  8. </el-tab-pane>
  9. <el-tab-pane label="使用说明" name="third">
  10. <div>
  11. <blockquote class="my-blockquote">注意</blockquote>
  12. <pre class="my-code">
  13. 测试所用参数都是沙箱环境,仅供测试使用,申请地址:<a style="color: #00a0e9" href="https://openhome.alipay.com/platform/appDaily.htm?tab=info" target="_blank">支付宝开发平台</a>
  14. 如需付款测试,请使用
  15. 账号:uuxesw9745@sandbox.com
  16. 密码与支付密码:111111</pre>
  17. <blockquote class="my-blockquote"> 支付设置</blockquote>
  18. <pre class="my-code">
  19. // 支付提供两个接口,
  20. // PC端与手机端,并且在前端使用代码识别
  21. if (/(Android)/i.test(navigator.userAgent)){ // 判断是否为Android手机
  22. url = "/aliPay/toPayAsWeb"
  23. }else if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)){ // 判断是否为苹果手机
  24. url = "/aliPay/toPayAsWeb"
  25. } else {
  26. url = "/aliPay/toPayAsPC"
  27. }</pre>
  28. </div>
  29. </el-tab-pane>
  30. </el-tabs>
  31. </template>
  32. <script>
  33. import Config from './config'
  34. import ToPay from './toPay'
  35. export default {
  36. name: 'AliPay',
  37. components: { Config, ToPay },
  38. data() {
  39. return {
  40. activeName: 'second'
  41. }
  42. }
  43. }
  44. </script>
  45. <style scoped>
  46. </style>