panhui 4 лет назад
Родитель
Сommit
ed1b2e206f

BIN
src/main/nine-space/src/assets/icon-lianshangxinxi(1).png


BIN
src/main/nine-space/src/assets/icon-lianshangxinxi(2).png


BIN
src/main/nine-space/src/assets/icon-lianshangxinxi(3).png


BIN
src/main/nine-space/src/assets/icon-miaoshu.png


+ 1 - 1
src/main/nine-space/src/components/Post.vue

@@ -83,7 +83,7 @@ export default {
             if (this.isLogin) {
                 return resolveUrl(
                     this.$baseUrl,
-                    '9th/' + this.pageUrl + '?id=' + this.info.id + '&userId=' + this.$store.state.userInfo.id
+                    '9th/' + this.pageUrl + '?id=' + this.info.id + '&invitor=' + this.$store.state.userInfo.id
                 );
             } else {
                 return resolveUrl(this.$baseUrl, '9th/' + this.pageUrl + '?id=' + this.info.id);

+ 3 - 0
src/main/nine-space/src/views/Submit.vue

@@ -165,6 +165,9 @@ export default {
             if (this.couponInfo) {
                 url += '&couponId=' + this.couponInfo.id;
             }
+            if (this.$route.query.invitor) {
+                url += '&invitor=' + this.$route.query.invitor;
+            }
             this.$http
                 .post(url)
                 .then(res => {

+ 14 - 6
src/main/nine-space/src/views/product/Detail.vue

@@ -57,11 +57,6 @@
             </div>
 
             <div class="price-line" v-if="info.salable">
-                <!-- <div class="price"><i class="font_family icon-icon_jiage"></i>{{ info.price }}</div>
-                <div class="price-sub" v-if="info.originalPrice">¥{{ info.originalPrice || 0 }}</div>
-                <div class="sub" v-if="info.royalties">
-                    含 <span>{{ info.royalties }}%</span> 版税
-                </div> -->
                 <div class="flex1"></div>
                 <div class="text" v-if="info.salable && info.total > 0">
                     <span>已售 {{ info.sale }}</span>
@@ -264,6 +259,13 @@
         </div>
 
         <div class="btn van-safe-area-bottom" ref="btn" v-if="isBuy">
+            <div class="price-content">
+                <div class="price"><i class="font_family icon-icon_jiage"></i>{{ info.price }}</div>
+                <div class="price-sub" v-if="info.originalPrice">¥{{ info.originalPrice || 0 }}</div>
+                <div class="sub" v-if="info.royalties">
+                    含 <span>{{ info.royalties }}%</span> 版税
+                </div>
+            </div>
             <div class="btns">
                 <van-button type="primary" block round @click="buy">立即购买</van-button>
             </div>
@@ -440,7 +442,8 @@ export default {
                 this.$router.push({
                     path: '/submit',
                     query: {
-                        id: this.$route.query.id
+                        id: this.$route.query.id,
+                        invitor: this.$route.query.invitor
                     }
                 });
             });
@@ -1109,4 +1112,9 @@ export default {
         overflow: hidden;
     }
 }
+
+.price-content {
+    display: flex;
+    align-items: center;
+}
 </style>

+ 3 - 1
src/main/pc-space/src/components/Share.vue

@@ -5,6 +5,7 @@
 import SocialShare from 'vue-social-share';
 import resolveUrl from 'resolve-url';
 import product from '../mixins/product';
+import { mapState } from 'vuex';
 export default {
     name: 'share',
     props: {
@@ -28,9 +29,10 @@ export default {
         SocialShare
     },
     computed: {
+        ...mapState(['userInfo']),
         shareConfig() {
             return {
-                url: resolveUrl(this.$baseUrl, '9th/' + this.pageType + '?id=' + this.info.id),
+                url: resolveUrl(this.$baseUrl, '9th/' + this.pageType + '?id=' + this.info.id+'&='+(this.isLogin?this.userInfo.id:'')),
                 title: this.shareTitle, // 标题,默认读取 document.title 或者 <meta name="title" content="share.js" />
                 description: this.description, // 描述, 默认读取head标签:<meta name="description" content="PHP弱类型的实现原理分析" />
                 image: this.image, // 图片, 默认取网页中第一个img标签