xuqiang před 4 roky
rodič
revize
62c7d426a1
1 změnil soubory, kde provedl 14 přidání a 9 odebrání
  1. 14 9
      src/pages/details.vue

+ 14 - 9
src/pages/details.vue

@@ -41,21 +41,20 @@
         <div class="box-con2">
         <div class="box-con2">
             <div class="box-con2-shop">
             <div class="box-con2-shop">
                 <div class="box-con2-tit">
                 <div class="box-con2-tit">
-                    <img src="../static/imgs/icon_dianpu@3x..png" alt="" />
+                    <img :src="storeLogo" alt="" />
                     <div class="logo-shop">
                     <div class="logo-shop">
-                        <p>光之城官方卡牌店铺</p>
-                        <span>浙江 杭州</span>
+                        <p>{{ cardCaseInfo.storeName }}</p>
+                        <span> {{ city }}</span>
                     </div>
                     </div>
                 </div>
                 </div>
-                <div class="logo-btn" @click="wait">进入店铺</div>
+                <div class="logo-btn" @click="wait">
+                    进入店铺
+                </div>
             </div>
             </div>
         </div>
         </div>
         <h3>拼箱详情</h3>
         <h3>拼箱详情</h3>
         <div class="box-details">
         <div class="box-details">
             {{ cardCaseInfo.description }}
             {{ cardCaseInfo.description }}
-            <!-- 1盒6包 1包5张 种类:全80种,UR8种,SR10种,R8种,N44种<br />
-            其中1种有HR版本,UR卡有UTR版本,UR卡和SR卡有SER版本和PSER版本<br />
-            本卡包是1105初回生产限定版的盒内特典包(1盒1包) UR卡8种盒SR卡10种都与1105收录相同,而PSER卡1种是旧卡复刻<br /> -->
         </div>
         </div>
         <!-- <img class="container-img" src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/wechat/3.jpeg" alt="" /> -->
         <!-- <img class="container-img" src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/wechat/3.jpeg" alt="" /> -->
         <h3>拼箱规则</h3>
         <h3>拼箱规则</h3>
@@ -99,9 +98,10 @@
 <script>
 <script>
 import CardCase from '../components/CardCase';
 import CardCase from '../components/CardCase';
 import collection from '../mixins/collection';
 import collection from '../mixins/collection';
+import store from '../mixins/store';
 import dayjs from 'dayjs';
 import dayjs from 'dayjs';
 export default {
 export default {
-    mixins: [collection],
+    mixins: [collection, store],
     components: {
     components: {
         CardCase
         CardCase
     },
     },
@@ -131,11 +131,16 @@ export default {
             this.$http
             this.$http
                 .get('/cardCase/showInfoMA?caseId=' + this.$mp.options.id)
                 .get('/cardCase/showInfoMA?caseId=' + this.$mp.options.id)
                 .then(res => {
                 .then(res => {
-                    console.log(res);
                     this.hideLoading();
                     this.hideLoading();
                     this.detailsList = res.groupBoxMap;
                     this.detailsList = res.groupBoxMap;
                     this.cardCaseInfo = res.cardCaseInfo || {};
                     this.cardCaseInfo = res.cardCaseInfo || {};
                     this.banners = res.cardCaseInfo.image.split(',');
                     this.banners = res.cardCaseInfo.image.split(',');
+                    return this.$http.get('/store/get/' + res.cardCaseInfo.storeId);
+                })
+                .then(res => {
+                    console.log(res);
+                    this.storeInfo = res;
+                    console.log(this.cardCaseInfo.userId);
                 })
                 })
                 .catch(e => {
                 .catch(e => {
                     this.hideLoading();
                     this.hideLoading();