result.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <!-- icondaizhifu -->
  3. <appResult :title="status == '2' ? '审核中' : '审核通过'" :icon="status == '2' ? 'icondaizhifu' : 'iconchenggong'">
  4. <button class="admin-button-com blue big" v-if="status != '2'" @click="loginSys">登录后台</button>
  5. <button class="admin-button-com big" @click="openInform">开启通知</button>
  6. <view class="openInfo">开启通知,第一时间接受{{text}}</view>
  7. </appResult>
  8. </template>
  9. <script>
  10. import appResult from "@/components/app-result";
  11. export default {
  12. name: "BillingResult", // 开单结果
  13. data(){
  14. return {
  15. status: '1'
  16. }
  17. },
  18. components: {
  19. appResult
  20. },
  21. computed: {
  22. text() {
  23. return this.status == '2' ? '审核结果' : '门店动态'
  24. }
  25. },
  26. onLoad(option){
  27. this.status = option.status
  28. },
  29. methods: {
  30. loginSys(){
  31. uni.removeStorageSync('OPEN_SHOP_ID')
  32. uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
  33. this.$util.pageTo({
  34. url: '/admin/home/workbench',
  35. type: 3
  36. })
  37. this.$store.commit("setLoginInfo", {});
  38. },
  39. openInform(){
  40. this.pageTo({
  41. url: '/pagesClient/official/warn',
  42. type: 2
  43. })
  44. }
  45. }
  46. };
  47. </script>
  48. <style lang="scss" scoped>
  49. .admin-button-com {
  50. margin-bottom: 20upx;
  51. width: 100%;
  52. }
  53. .openInfo{
  54. text-align: center;
  55. font-size: 30upx;
  56. margin-top: 20upx;
  57. color: #666;
  58. }
  59. </style>