jpsoft.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view>
  3. openId:<u-input v-model="openId" :border="true"></u-input>
  4. <u-button @click="submit" >提交</u-button>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. openId:"",
  12. form: {
  13. phone: '',
  14. code: '',
  15. },
  16. }
  17. },
  18. onLoad(op) {
  19. },
  20. methods: {
  21. submit(){
  22. var NODE_NAME= process.env['NODE_NAME']
  23. if(NODE_NAME=="production"){
  24. alert("该功能只支持测试环境")
  25. }else{
  26. this.carhelp.setOpenId(this.openId);
  27. this.carhelp.setToken("");
  28. this.carhelp.set("token_tdate","")
  29. uni.showToast({
  30. title:"修改成功"
  31. })
  32. }
  33. }
  34. },
  35. onReady() {
  36. this.openId=this.carhelp.getOpenId();
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .login-title {
  42. display: flex;
  43. align-items: center;
  44. margin: 25px 30px;
  45. h3 {
  46. font-size: 20px;
  47. margin-left: 10rpx;
  48. color: #1677ff;
  49. font-weight: normal;
  50. }
  51. }
  52. .login-main {
  53. margin: 0 30px;
  54. }
  55. .login-btn {
  56. margin: 30px;
  57. }
  58. .login-code {
  59. color: #1677ff;
  60. }
  61. </style>