Explorar o código

新增主活動名稱

maa3520 %!s(int64=2) %!d(string=hai) anos
pai
achega
82453ca6f3

+ 24 - 0
resources/js/src/@core/layouts/components/AppBreadcrumb.vue

@@ -5,6 +5,7 @@
         <b-col class="content-header-left mb-2" cols="12" md="9">
             <b-row class="breadcrumbs-top">
                 <b-col cols="12">
+                    <h1>{{ activity_name }}</h1>
                     <h2 class="content-header-title float-left pr-1 mb-0">
                         {{ $route.meta.pageTitle }}
                     </h2>
@@ -89,6 +90,7 @@ import {
 import Ripple from 'vue-ripple-directive'
 import { useUtils as useI18nUtils } from '@core/libs/i18n'
 import { getUserData } from '@/auth/utils'
+import useJwt from '@/auth/jwt/useJwt'
 
 export default {
     setup() {
@@ -106,6 +108,7 @@ export default {
     data() {
         return {
             userData: getUserData(),
+            activity_name: "",
         }
     },
     components: {
@@ -117,5 +120,26 @@ export default {
         BDropdownItem,
         BButton,
     },
+    created() {
+        this.activityName(this.$route.params.activity_id)
+    },
+    computed: {
+       
+    },
+    methods: {
+        activityName(activity_id) {
+            useJwt.postData('/api/activity/show', { activity_id: activity_id }).then(response => {
+                this.activity_name = response.data.activity_name;
+            }).catch(error => {
+                console.log("error: " + error);
+            });
+        },
+    },
+    watch: {
+        '$route.params.activity_id': function (newValue) {
+            this.activityName(newValue)
+
+        }
+    }
 }
 </script>

+ 4 - 11
resources/js/src/@core/layouts/components/AppFooter.vue

@@ -1,22 +1,15 @@
 <template>
   <p class="clearfix mb-0">
     <span class="float-md-left d-block d-md-inline-block mt-25">
-      COPYRIGHT  © {{ new Date().getFullYear() }}
+      © {{ new Date().getFullYear() }}
       <b-link
         class="ml-25"
-        href="https://1.envato.market/pixinvent_portfolio"
+        href="http://www2.maaconsultants.com/index-tw.php"
         target="_blank"
-      >Pixinvent</b-link>
-      <span class="d-none d-sm-inline-block">, All rights Reserved</span>
+      >亞新工程顧問集團.</b-link>
+      <span class="d-none d-sm-inline-block">版權所有 </span>
     </span>
 
-    <span class="float-md-right d-none d-md-block">Hand-crafted &amp; Made with
-      <feather-icon
-        icon="HeartIcon"
-        size="21"
-        class="text-danger stroke-current"
-      />
-    </span>
   </p>
 </template>
 

+ 1 - 1
resources/js/src/views/lottery/PrizeClaim.vue

@@ -8,7 +8,7 @@
             <b-media no-body>
                 <b-media-aside>
                     <b-img :src="'/images/profile-picture/' + user.user_id + '.jpg'" blank-color="#ccc" fluid
-                        alt="placeholder" style="width:300prox;" onerror="this.src='/images/unknown.png'" />
+                        alt="placeholder" style="width:300prox;" onerror="this.src='/images/error.png'" />
                 </b-media-aside>
 
                 <b-media-body class="ml-1">