Compare commits
	
		
			2 Commits
		
	
	
		
			002a9c79af
			...
			b5b7d667b6
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b5b7d667b6 | |||
| 53d6123af9 | 
							
								
								
									
										25
									
								
								pages.json
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								pages.json
									
									
									
									
									
								
							@ -21,13 +21,13 @@
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"path": "pages/index/fabu",
 | 
								"path": "pages/index/category",
 | 
				
			||||||
			"style": {
 | 
								"style": {
 | 
				
			||||||
				"navigationBarTitleText": "发布信息"
 | 
									"navigationBarTitleText": "商品分类"
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			"meta": {
 | 
								"meta": {
 | 
				
			||||||
				"sync": true,
 | 
									"sync": true,
 | 
				
			||||||
				"title": "发布信息",
 | 
									"title": "商品分类",
 | 
				
			||||||
				"group": "商城"
 | 
									"group": "商城"
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
@ -43,13 +43,13 @@
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"path": "pages/index/category",
 | 
								"path": "pages/index/fabu",
 | 
				
			||||||
			"style": {
 | 
								"style": {
 | 
				
			||||||
				"navigationBarTitleText": "商品分类"
 | 
									"navigationBarTitleText": "发布信息"
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			"meta": {
 | 
								"meta": {
 | 
				
			||||||
				"sync": true,
 | 
									"sync": true,
 | 
				
			||||||
				"title": "商品分类",
 | 
									"title": "发布信息",
 | 
				
			||||||
				"group": "商城"
 | 
									"group": "商城"
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
@ -169,6 +169,17 @@
 | 
				
			|||||||
						"group": "商品"
 | 
											"group": "商品"
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
				},
 | 
									},
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
											"path": "lawNotice",
 | 
				
			||||||
 | 
											"style": {
 | 
				
			||||||
 | 
												"navigationBarTitleText": "法律声明"
 | 
				
			||||||
 | 
											},
 | 
				
			||||||
 | 
											"meta": {
 | 
				
			||||||
 | 
												"sync": true,
 | 
				
			||||||
 | 
												"title": "法律声明",
 | 
				
			||||||
 | 
												"group": "商品"
 | 
				
			||||||
 | 
											}
 | 
				
			||||||
 | 
										},
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					"path": "groupon",
 | 
										"path": "groupon",
 | 
				
			||||||
					"style": {
 | 
										"style": {
 | 
				
			||||||
@ -854,7 +865,7 @@
 | 
				
			|||||||
				"pagePath": "pages/index/index"
 | 
									"pagePath": "pages/index/index"
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				"pagePath": "pages/index/fabu"
 | 
									"pagePath": "pages/index/category"
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				"pagePath": "pages/index/user"
 | 
									"pagePath": "pages/index/user"
 | 
				
			||||||
 | 
				
			|||||||
@ -80,6 +80,11 @@
 | 
				
			|||||||
				</view>
 | 
									</view>
 | 
				
			||||||
			</view>
 | 
								</view>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								<!-- 重要提示 -->
 | 
				
			||||||
 | 
								<view class="lawBox">
 | 
				
			||||||
 | 
									<view style=""></view>
 | 
				
			||||||
 | 
								</view>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<view style="width: 100%;height: 248rpx;"></view>
 | 
								<view style="width: 100%;height: 248rpx;"></view>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<!-- 底部按钮 -->
 | 
								<!-- 底部按钮 -->
 | 
				
			||||||
@ -564,6 +569,13 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							.lawBox {
 | 
				
			||||||
 | 
								width: 100%;
 | 
				
			||||||
 | 
								background-color: #ffffff;
 | 
				
			||||||
 | 
								padding: 20rpx 30rpx;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		.footer-box {
 | 
							.footer-box {
 | 
				
			||||||
			width: 100%;
 | 
								width: 100%;
 | 
				
			||||||
			height: 100rpx auto;
 | 
								height: 100rpx auto;
 | 
				
			||||||
 | 
				
			|||||||
@ -7,26 +7,13 @@
 | 
				
			|||||||
			<!-- 骨架屏 -->
 | 
								<!-- 骨架屏 -->
 | 
				
			||||||
			<detailSkeleton v-if="state.skeletonLoading" />
 | 
								<detailSkeleton v-if="state.skeletonLoading" />
 | 
				
			||||||
			<!-- 下架/售罄提醒 -->
 | 
								<!-- 下架/售罄提醒 -->
 | 
				
			||||||
      <s-empty
 | 
								<s-empty v-else-if="state.goodsInfo === null" text="商品不存在或已下架" icon="/static/soldout-empty.png" showAction
 | 
				
			||||||
        v-else-if="state.goodsInfo === null"
 | 
									actionText="再逛逛" actionUrl="/pages/goods/list" />
 | 
				
			||||||
        text="商品不存在或已下架"
 | 
					 | 
				
			||||||
        icon="/static/soldout-empty.png"
 | 
					 | 
				
			||||||
        showAction
 | 
					 | 
				
			||||||
        actionText="再逛逛"
 | 
					 | 
				
			||||||
        actionUrl="/pages/goods/list"
 | 
					 | 
				
			||||||
      />
 | 
					 | 
				
			||||||
			<block v-else>
 | 
								<block v-else>
 | 
				
			||||||
				<view class="detail-swiper-selector">
 | 
									<view class="detail-swiper-selector">
 | 
				
			||||||
					<!-- 商品轮播图  -->
 | 
										<!-- 商品轮播图  -->
 | 
				
			||||||
          <su-swiper
 | 
										<su-swiper class="ss-m-b-14" isPreview :list="state.goodsSwiper" dotStyle="tag" imageMode="widthFix"
 | 
				
			||||||
            class="ss-m-b-14"
 | 
											dotCur="bg-mask-40" :seizeHeight="750" />
 | 
				
			||||||
            isPreview
 | 
					 | 
				
			||||||
            :list="state.goodsSwiper"
 | 
					 | 
				
			||||||
            dotStyle="tag"
 | 
					 | 
				
			||||||
            imageMode="widthFix"
 | 
					 | 
				
			||||||
            dotCur="bg-mask-40"
 | 
					 | 
				
			||||||
            :seizeHeight="750"
 | 
					 | 
				
			||||||
          />
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
					<!-- 价格+标题 -->
 | 
										<!-- 价格+标题 -->
 | 
				
			||||||
					<view class="title-card detail-card ss-p-y-40 ss-p-x-20">
 | 
										<view class="title-card detail-card ss-p-y-40 ss-p-x-20">
 | 
				
			||||||
@ -46,22 +33,15 @@
 | 
				
			|||||||
						<view class="discounts-box ss-flex ss-row-between ss-m-b-28">
 | 
											<view class="discounts-box ss-flex ss-row-between ss-m-b-28">
 | 
				
			||||||
							<div class="tag-content">
 | 
												<div class="tag-content">
 | 
				
			||||||
								<view class="tag-box ss-flex">
 | 
													<view class="tag-box ss-flex">
 | 
				
			||||||
                  <view
 | 
														<view class="tag ss-m-r-10" v-for="promos in state.goodsInfo.promos"
 | 
				
			||||||
                    class="tag ss-m-r-10"
 | 
															:key="promos.id" @tap="onActivity">
 | 
				
			||||||
                    v-for="promos in state.goodsInfo.promos"
 | 
					 | 
				
			||||||
                    :key="promos.id"
 | 
					 | 
				
			||||||
                    @tap="onActivity"
 | 
					 | 
				
			||||||
                  >
 | 
					 | 
				
			||||||
										{{ promos.title }}
 | 
															{{ promos.title }}
 | 
				
			||||||
									</view>
 | 
														</view>
 | 
				
			||||||
								</view>
 | 
													</view>
 | 
				
			||||||
							</div>
 | 
												</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              <view
 | 
												<view class="get-coupon-box ss-flex ss-col-center ss-m-l-20" @tap="state.showModel = true"
 | 
				
			||||||
                class="get-coupon-box ss-flex ss-col-center ss-m-l-20"
 | 
													v-if="state.couponInfo.length">
 | 
				
			||||||
                @tap="state.showModel = true"
 | 
					 | 
				
			||||||
                v-if="state.couponInfo.length"
 | 
					 | 
				
			||||||
              >
 | 
					 | 
				
			||||||
								<view class="discounts-title ss-m-r-8">领券</view>
 | 
													<view class="discounts-title ss-m-r-8">领券</view>
 | 
				
			||||||
								<text class="cicon-forward"></text>
 | 
													<text class="cicon-forward"></text>
 | 
				
			||||||
							</view>
 | 
												</view>
 | 
				
			||||||
@ -72,51 +52,33 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
					<!-- 功能卡片 -->
 | 
										<!-- 功能卡片 -->
 | 
				
			||||||
					<view class="detail-cell-card detail-card ss-flex-col">
 | 
										<view class="detail-cell-card detail-card ss-flex-col">
 | 
				
			||||||
            <detail-cell-sku
 | 
											<detail-cell-sku v-model="state.selectedSkuPrice.goods_sku_text" :skus="state.goodsInfo.skus"
 | 
				
			||||||
              v-model="state.selectedSkuPrice.goods_sku_text"
 | 
												@tap="state.showSelectSku = true" />
 | 
				
			||||||
              :skus="state.goodsInfo.skus"
 | 
											<!-- <detail-cell-service v-if="state.goodsInfo.service" v-model="state.goodsInfo.service" /> -->
 | 
				
			||||||
              @tap="state.showSelectSku = true"
 | 
					 | 
				
			||||||
            />
 | 
					 | 
				
			||||||
            <detail-cell-service v-if="state.goodsInfo.service" v-model="state.goodsInfo.service" />
 | 
					 | 
				
			||||||
						<detail-cell-params v-if="state.goodsInfo.params" v-model="state.goodsInfo.params" />
 | 
											<detail-cell-params v-if="state.goodsInfo.params" v-model="state.goodsInfo.params" />
 | 
				
			||||||
					</view>
 | 
										</view>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					<!-- 规格与数量弹框 -->
 | 
										<!-- 规格与数量弹框 -->
 | 
				
			||||||
          <s-select-sku
 | 
										<s-select-sku :goodsInfo="state.goodsInfo" :show="state.showSelectSku" @addCart="onAddCart"
 | 
				
			||||||
            :goodsInfo="state.goodsInfo"
 | 
											@buy="onBuy" @change="onSkuChange" @close="state.showSelectSku = false" />
 | 
				
			||||||
            :show="state.showSelectSku"
 | 
					 | 
				
			||||||
            @addCart="onAddCart"
 | 
					 | 
				
			||||||
            @buy="onBuy"
 | 
					 | 
				
			||||||
            @change="onSkuChange"
 | 
					 | 
				
			||||||
            @close="state.showSelectSku = false"
 | 
					 | 
				
			||||||
          />
 | 
					 | 
				
			||||||
				</view>
 | 
									</view>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				<!-- 评价 -->
 | 
									<!-- 评价 -->
 | 
				
			||||||
        <detail-comment-card class="detail-comment-selector" :goodsId="state.goodsId" />
 | 
									<!-- <detail-comment-card class="detail-comment-selector" :goodsId="state.goodsId" /> -->
 | 
				
			||||||
				<!-- 详情 -->
 | 
									<!-- 详情 -->
 | 
				
			||||||
				<detail-content-card class="detail-content-selector" :content="state.goodsInfo.content" />
 | 
									<detail-content-card class="detail-content-selector" :content="state.goodsInfo.content" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				<!-- 活动跳转 -->
 | 
									<!-- 活动跳转 -->
 | 
				
			||||||
        <detail-activity-tip
 | 
									<detail-activity-tip v-if="state.goodsInfo.activities" :data="state.goodsInfo"></detail-activity-tip>
 | 
				
			||||||
          v-if="state.goodsInfo.activities"
 | 
					 | 
				
			||||||
          :data="state.goodsInfo"
 | 
					 | 
				
			||||||
        ></detail-activity-tip>
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
				<!-- 详情tabbar -->
 | 
									<!-- 详情tabbar -->
 | 
				
			||||||
				<detail-tabbar v-model="state.goodsInfo">
 | 
									<detail-tabbar v-model="state.goodsInfo">
 | 
				
			||||||
					<!-- TODO: 缺货中 已售罄 判断 设计-->
 | 
										<!-- TODO: 缺货中 已售罄 判断 设计-->
 | 
				
			||||||
					<view class="buy-box ss-flex ss-col-center ss-p-r-20" v-if="state.goodsInfo.stock > 0">
 | 
										<view class="buy-box ss-flex ss-col-center ss-p-r-20" v-if="state.goodsInfo.stock > 0">
 | 
				
			||||||
            <button
 | 
											<button class="ss-reset-button add-btn ui-Shadow-Main" @tap="state.showSelectSku = true">
 | 
				
			||||||
              class="ss-reset-button add-btn ui-Shadow-Main"
 | 
					 | 
				
			||||||
              @tap="state.showSelectSku = true"
 | 
					 | 
				
			||||||
            >
 | 
					 | 
				
			||||||
							加入购物车
 | 
												加入购物车
 | 
				
			||||||
						</button>
 | 
											</button>
 | 
				
			||||||
            <button
 | 
											<button class="ss-reset-button buy-btn ui-Shadow-Main" @tap="state.showSelectSku = true">
 | 
				
			||||||
              class="ss-reset-button buy-btn ui-Shadow-Main"
 | 
					 | 
				
			||||||
              @tap="state.showSelectSku = true"
 | 
					 | 
				
			||||||
            >
 | 
					 | 
				
			||||||
							立即购买
 | 
												立即购买
 | 
				
			||||||
						</button>
 | 
											</button>
 | 
				
			||||||
					</view>
 | 
										</view>
 | 
				
			||||||
@ -124,27 +86,30 @@
 | 
				
			|||||||
						<button class="ss-reset-button disabled-btn" disabled> 已售罄 </button>
 | 
											<button class="ss-reset-button disabled-btn" disabled> 已售罄 </button>
 | 
				
			||||||
					</view>
 | 
										</view>
 | 
				
			||||||
				</detail-tabbar>
 | 
									</detail-tabbar>
 | 
				
			||||||
        <s-coupon-get
 | 
									<s-coupon-get v-model="state.couponInfo" :show="state.showModel" @close="state.showModel = false"
 | 
				
			||||||
          v-model="state.couponInfo"
 | 
										@get="onGet" />
 | 
				
			||||||
          :show="state.showModel"
 | 
									<s-activity-pop v-model="state.activityInfo" :show="state.showActivityModel"
 | 
				
			||||||
          @close="state.showModel = false"
 | 
										@close="state.showActivityModel = false" />
 | 
				
			||||||
          @get="onGet"
 | 
					 | 
				
			||||||
        />
 | 
					 | 
				
			||||||
        <s-activity-pop
 | 
					 | 
				
			||||||
          v-model="state.activityInfo"
 | 
					 | 
				
			||||||
          :show="state.showActivityModel"
 | 
					 | 
				
			||||||
          @close="state.showActivityModel = false"
 | 
					 | 
				
			||||||
        />
 | 
					 | 
				
			||||||
			</block>
 | 
								</block>
 | 
				
			||||||
		</s-layout>
 | 
							</s-layout>
 | 
				
			||||||
	</view>
 | 
						</view>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script setup>
 | 
					<script setup>
 | 
				
			||||||
  import { reactive, computed } from 'vue';
 | 
						import {
 | 
				
			||||||
  import { onLoad, onPageScroll } from '@dcloudio/uni-app';
 | 
							reactive,
 | 
				
			||||||
 | 
							computed
 | 
				
			||||||
 | 
						} from 'vue';
 | 
				
			||||||
 | 
						import {
 | 
				
			||||||
 | 
							onLoad,
 | 
				
			||||||
 | 
							onPageScroll
 | 
				
			||||||
 | 
						} from '@dcloudio/uni-app';
 | 
				
			||||||
	import sheep from '@/sheep';
 | 
						import sheep from '@/sheep';
 | 
				
			||||||
  import { formatSales, formatGoodsSwiper, formatPrice } from '@/sheep/hooks/useGoods';
 | 
						import {
 | 
				
			||||||
 | 
							formatSales,
 | 
				
			||||||
 | 
							formatGoodsSwiper,
 | 
				
			||||||
 | 
							formatPrice
 | 
				
			||||||
 | 
						} from '@/sheep/hooks/useGoods';
 | 
				
			||||||
	import detailNavbar from './components/detail/detail-navbar.vue';
 | 
						import detailNavbar from './components/detail/detail-navbar.vue';
 | 
				
			||||||
	import detailCellSku from './components/detail/detail-cell-sku.vue';
 | 
						import detailCellSku from './components/detail/detail-cell-sku.vue';
 | 
				
			||||||
	import detailCellService from './components/detail/detail-cell-service.vue';
 | 
						import detailCellService from './components/detail/detail-cell-service.vue';
 | 
				
			||||||
@ -154,7 +119,9 @@
 | 
				
			|||||||
	import detailCommentCard from './components/detail/detail-comment-card.vue';
 | 
						import detailCommentCard from './components/detail/detail-comment-card.vue';
 | 
				
			||||||
	import detailContentCard from './components/detail/detail-content-card.vue';
 | 
						import detailContentCard from './components/detail/detail-content-card.vue';
 | 
				
			||||||
	import detailActivityTip from './components/detail/detail-activity-tip.vue';
 | 
						import detailActivityTip from './components/detail/detail-activity-tip.vue';
 | 
				
			||||||
  import { isEmpty } from 'lodash';
 | 
						import {
 | 
				
			||||||
 | 
							isEmpty
 | 
				
			||||||
 | 
						} from 'lodash';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// import detailActivityTip from './components/detail/detail-activity-tip.vue';
 | 
						// import detailActivityTip from './components/detail/detail-activity-tip.vue';
 | 
				
			||||||
	// import detailTab from './components/detail/detail-tab.vue';
 | 
						// import detailTab from './components/detail/detail-tab.vue';
 | 
				
			||||||
@ -190,13 +157,11 @@
 | 
				
			|||||||
		sheep.$router.go('/pages/order/confirm', {
 | 
							sheep.$router.go('/pages/order/confirm', {
 | 
				
			||||||
			data: JSON.stringify({
 | 
								data: JSON.stringify({
 | 
				
			||||||
				order_type: 'goods',
 | 
									order_type: 'goods',
 | 
				
			||||||
        goods_list: [
 | 
									goods_list: [{
 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
					goods_id: e.goods_id,
 | 
										goods_id: e.goods_id,
 | 
				
			||||||
					goods_num: e.goods_num,
 | 
										goods_num: e.goods_num,
 | 
				
			||||||
					goods_sku_price_id: e.id,
 | 
										goods_sku_price_id: e.id,
 | 
				
			||||||
          },
 | 
									}, ],
 | 
				
			||||||
        ],
 | 
					 | 
				
			||||||
			}),
 | 
								}),
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@ -208,7 +173,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	//立即领取
 | 
						//立即领取
 | 
				
			||||||
	async function onGet(id) {
 | 
						async function onGet(id) {
 | 
				
			||||||
    const { code, msg } = await sheep.$api.coupon.get(id);
 | 
							const {
 | 
				
			||||||
 | 
								code,
 | 
				
			||||||
 | 
								msg
 | 
				
			||||||
 | 
							} = await sheep.$api.coupon.get(id);
 | 
				
			||||||
		if (code === 1) {
 | 
							if (code === 1) {
 | 
				
			||||||
			uni.showToast({
 | 
								uni.showToast({
 | 
				
			||||||
				title: msg,
 | 
									title: msg,
 | 
				
			||||||
@ -221,8 +189,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	const shareInfo = computed(() => {
 | 
						const shareInfo = computed(() => {
 | 
				
			||||||
		if (isEmpty(state.goodsInfo)) return {};
 | 
							if (isEmpty(state.goodsInfo)) return {};
 | 
				
			||||||
    return sheep.$platform.share.getShareInfo(
 | 
							return sheep.$platform.share.getShareInfo({
 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
			title: state.goodsInfo.title,
 | 
								title: state.goodsInfo.title,
 | 
				
			||||||
			image: sheep.$url.cdn(state.goodsInfo.image),
 | 
								image: sheep.$url.cdn(state.goodsInfo.image),
 | 
				
			||||||
			desc: state.goodsInfo.subtitle,
 | 
								desc: state.goodsInfo.subtitle,
 | 
				
			||||||
@ -230,15 +197,13 @@
 | 
				
			|||||||
				page: '2',
 | 
									page: '2',
 | 
				
			||||||
				query: state.goodsInfo.id,
 | 
									query: state.goodsInfo.id,
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
      },
 | 
							}, {
 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
			type: 'goods', // 商品海报
 | 
								type: 'goods', // 商品海报
 | 
				
			||||||
			title: state.goodsInfo.title, // 商品标题
 | 
								title: state.goodsInfo.title, // 商品标题
 | 
				
			||||||
			image: sheep.$url.cdn(state.goodsInfo.image), // 商品主图
 | 
								image: sheep.$url.cdn(state.goodsInfo.image), // 商品主图
 | 
				
			||||||
			price: state.goodsInfo.price[0], // 商品价格
 | 
								price: state.goodsInfo.price[0], // 商品价格
 | 
				
			||||||
			original_price: state.goodsInfo.original_price, // 商品原价
 | 
								original_price: state.goodsInfo.original_price, // 商品原价
 | 
				
			||||||
      },
 | 
							}, );
 | 
				
			||||||
    );
 | 
					 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	onLoad(async (options) => {
 | 
						onLoad(async (options) => {
 | 
				
			||||||
@ -259,7 +224,10 @@
 | 
				
			|||||||
				state.goodsInfo = null;
 | 
									state.goodsInfo = null;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
    const { code, data } = await sheep.$api.coupon.listByGoods(state.goodsId);
 | 
							const {
 | 
				
			||||||
 | 
								code,
 | 
				
			||||||
 | 
								data
 | 
				
			||||||
 | 
							} = await sheep.$api.coupon.listByGoods(state.goodsId);
 | 
				
			||||||
		if (code === 1) {
 | 
							if (code === 1) {
 | 
				
			||||||
			state.couponInfo = data;
 | 
								state.couponInfo = data;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
@ -267,6 +235,7 @@
 | 
				
			|||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style lang="scss" scoped>
 | 
					<style lang="scss" scoped>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.detail-card {
 | 
						.detail-card {
 | 
				
			||||||
		background-color: #ffff;
 | 
							background-color: #ffff;
 | 
				
			||||||
		margin: 14rpx 20rpx;
 | 
							margin: 14rpx 20rpx;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										25
									
								
								pages/goods/lawNotice.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								pages/goods/lawNotice.vue
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
				
			|||||||
 | 
					<template>
 | 
				
			||||||
 | 
						<s-layout title="法律声明">
 | 
				
			||||||
 | 
							<view style="padding: 30rpx;">
 | 
				
			||||||
 | 
								<rich-text style="text-align: justify;" :nodes="Negotiate"></rich-text>
 | 
				
			||||||
 | 
							</view>
 | 
				
			||||||
 | 
						</s-layout>
 | 
				
			||||||
 | 
					</template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<script setup>
 | 
				
			||||||
 | 
						import { ref,reactive } from 'vue'
 | 
				
			||||||
 | 
						import {
 | 
				
			||||||
 | 
							onLoad,
 | 
				
			||||||
 | 
							onShow,
 | 
				
			||||||
 | 
							onPageScroll,
 | 
				
			||||||
 | 
							onPullDownRefresh,
 | 
				
			||||||
 | 
							onReachBottom
 | 
				
			||||||
 | 
						} from '@dcloudio/uni-app';
 | 
				
			||||||
 | 
						import sheep from '@/sheep';
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<style lang="scss" scoped>
 | 
				
			||||||
 | 
					</style>
 | 
				
			||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
	<!-- tabbar="/pages/index/category" -->
 | 
						<!-- tabbar="/pages/index/category" -->
 | 
				
			||||||
  <s-layout title="分类"  :bgStyle="{ color: '#fff' }">
 | 
					  <s-layout title="分类" tabbar="/pages/index/category" :bgStyle="{ color: '#fff' }">
 | 
				
			||||||
    <view class="s-category">
 | 
					    <view class="s-category">
 | 
				
			||||||
      <view class="three-level-wrap ss-flex ss-col-top">
 | 
					      <view class="three-level-wrap ss-flex ss-col-top">
 | 
				
			||||||
        <view class="side-menu-wrap" :style="[{ top: Number(statusBarHeight + 88) + 'rpx' }]">
 | 
					        <view class="side-menu-wrap" :style="[{ top: Number(statusBarHeight + 88) + 'rpx' }]">
 | 
				
			||||||
 | 
				
			|||||||
@ -37,7 +37,7 @@
 | 
				
			|||||||
								<view class="title" style="">平台学院</view>
 | 
													<view class="title" style="">平台学院</view>
 | 
				
			||||||
								<view class="intro" style="color: #05b0b0;margin-top: 20rpx;">学知赋能成长</view>
 | 
													<view class="intro" style="color: #05b0b0;margin-top: 20rpx;">学知赋能成长</view>
 | 
				
			||||||
							</view>
 | 
												</view>
 | 
				
			||||||
							<view class="navRight2" @click="toPage('/pages/index/category')">
 | 
												<view class="navRight2" @click="toTabb('/pages/index/category')">
 | 
				
			||||||
								<view class="title" style="">原料商城</view>
 | 
													<view class="title" style="">原料商城</view>
 | 
				
			||||||
								<view class="intro" style="color: #f58f3d;margin-top: 20rpx;">优材好料直供</view>
 | 
													<view class="intro" style="color: #f58f3d;margin-top: 20rpx;">优材好料直供</view>
 | 
				
			||||||
							</view>
 | 
												</view>
 | 
				
			||||||
@ -367,6 +367,12 @@
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 | 
						const toTabb = (e) => {
 | 
				
			||||||
 | 
							uni.switchTab({
 | 
				
			||||||
 | 
								url: e,
 | 
				
			||||||
 | 
							})
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const rentList = ref([])
 | 
						const rentList = ref([])
 | 
				
			||||||
	//招租列表
 | 
						//招租列表
 | 
				
			||||||
	async function getList() {
 | 
						async function getList() {
 | 
				
			||||||
 | 
				
			|||||||
@ -47,6 +47,7 @@ const getShareInfo = (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  // 配置转发参数
 | 
					  // 配置转发参数
 | 
				
			||||||
  if (shareConfig.methods.includes('forward')) {
 | 
					  if (shareConfig.methods.includes('forward')) {
 | 
				
			||||||
 | 
						  console.log('shareConfig');
 | 
				
			||||||
    if (shareConfig.forwardInfo.title === '' || shareConfig.forwardInfo.image === '') {
 | 
					    if (shareConfig.forwardInfo.title === '' || shareConfig.forwardInfo.image === '') {
 | 
				
			||||||
      console.log('请在平台设置中配置转发信息');
 | 
					      console.log('请在平台设置中配置转发信息');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -148,11 +149,13 @@ const decryptSpm = (spm) => {
 | 
				
			|||||||
      };
 | 
					      };
 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
  shareParams.platform = platformMap[shareParamsArray[3] - 1];
 | 
					  shareParams.platform = platformMap[shareParamsArray[3] - 1];
 | 
				
			||||||
  shareParams.from = fromMap[shareParamsArray[4] - 1];
 | 
					  shareParams.from = fromMap[shareParamsArray[4] - 1];
 | 
				
			||||||
  if (shareParams.shareId != 0) {
 | 
					  if (shareParams.shareId != 0) {
 | 
				
			||||||
    // 已登录 立即添加分享记录
 | 
					    // 已登录 立即添加分享记录
 | 
				
			||||||
    if (user.isLogin) {
 | 
					    if (user.isLogin) {
 | 
				
			||||||
 | 
							 console.log('已登录 立即添加分享记录前');
 | 
				
			||||||
      user.addShareLog(shareParams);
 | 
					      user.addShareLog(shareParams);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      // 未登录 待用户登录后添加分享记录
 | 
					      // 未登录 待用户登录后添加分享记录
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user