Compare commits
No commits in common. "e4a71cc971ad5f118b98922ab139b105f96d1270" and "e704f5f1fcff518ecde7b0d95579a004e0d0499d" have entirely different histories.
e4a71cc971
...
e704f5f1fc
@ -8,6 +8,7 @@
|
|||||||
"prettier": "prettier --write \"{pages,sheep}/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
|
"prettier": "prettier --write \"{pages,sheep}/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
|
||||||
"build:prod": "vue-cli-service build --mode prod",
|
"build:prod": "vue-cli-service build --mode prod",
|
||||||
"build:dev": "vue-cli-service build --mode dev"
|
"build:dev": "vue-cli-service build --mode dev"
|
||||||
|
|
||||||
},
|
},
|
||||||
"repository": "https://github.com/sheepjs/shop.git",
|
"repository": "https://github.com/sheepjs/shop.git",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@ -92,7 +93,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"lodash-es": "^4.17.21",
|
|
||||||
"luch-request": "^3.0.8",
|
"luch-request": "^3.0.8",
|
||||||
"pinia": "^2.0.33",
|
"pinia": "^2.0.33",
|
||||||
"pinia-plugin-persist-uni": "^1.2.0",
|
"pinia-plugin-persist-uni": "^1.2.0",
|
||||||
|
36
pages.json
@ -73,42 +73,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/index/page",
|
"path": "pages/index/page",
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "1"
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"auth": false,
|
|
||||||
"sync": true,
|
|
||||||
"title": "自定义页面",
|
|
||||||
"group": "商城"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/index/page2",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "2"
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"auth": false,
|
|
||||||
"sync": true,
|
|
||||||
"title": "自定义页面二",
|
|
||||||
"group": "商城二"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/index/page3",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"auth": false,
|
|
||||||
"sync": true,
|
|
||||||
"title": "自定义页面",
|
|
||||||
"group": "商城"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/index/page4",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
},
|
},
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<block v-if="modelValue.favorite">
|
<block v-if="modelValue.favorite">
|
||||||
<image
|
<image
|
||||||
class="item-icon"
|
class="item-icon"
|
||||||
src="@/static/images/collect_1.gif"
|
:src="sheep.$url.static('/static/img/shop/goods/collect_1.gif')"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
<view class="item-title">已收藏</view>
|
<view class="item-title">已收藏</view>
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<block v-else>
|
<block v-else>
|
||||||
<image
|
<image
|
||||||
class="item-icon"
|
class="item-icon"
|
||||||
src="@/static/images/collect_0.png"
|
:src="sheep.$url.static('/static/img/shop/goods/collect_0.png')"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
<view class="item-title">收藏</view>
|
<view class="item-title">收藏</view>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="item-icon"
|
class="item-icon"
|
||||||
src="/static/images/service.png"
|
:src="sheep.$url.static('/static/img/shop/goods/message.png')"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
<view class="item-title">客服</view>
|
<view class="item-title">客服</view>
|
||||||
@ -44,7 +44,7 @@
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="item-icon"
|
class="item-icon"
|
||||||
src="@/static/images/share.png"
|
:src="sheep.$url.static('/static/img/shop/goods/share.png')"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
<view class="item-title">分享</view>
|
<view class="item-title">分享</view>
|
||||||
|
@ -156,7 +156,7 @@
|
|||||||
import CombinationApi from '@/sheep/api/promotion/combination';
|
import CombinationApi from '@/sheep/api/promotion/combination';
|
||||||
import SpuApi from '@/sheep/api/product/spu';
|
import SpuApi from '@/sheep/api/product/spu';
|
||||||
|
|
||||||
const headerBg = '@/static/images/seckill-header.png';
|
const headerBg = sheep.$url.css('/static/img/shop/goods/groupon-bg.png');
|
||||||
const btnBg = sheep.$url.css('/static/img/shop/goods/groupon-btn.png');
|
const btnBg = sheep.$url.css('/static/img/shop/goods/groupon-btn.png');
|
||||||
const disabledBtnBg = sheep.$url.css('/static/img/shop/goods/activity-btn-disabled.png');
|
const disabledBtnBg = sheep.$url.css('/static/img/shop/goods/activity-btn-disabled.png');
|
||||||
const grouponBg = sheep.$url.css('/static/img/shop/goods/groupon-tip-bg.png');
|
const grouponBg = sheep.$url.css('/static/img/shop/goods/groupon-tip-bg.png');
|
||||||
@ -293,7 +293,7 @@
|
|||||||
// height: 320rpx;
|
// height: 320rpx;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
background-image: url('@/static/images/seckill-header.png');
|
background-image: v-bind(headerBg);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
.price-box {
|
.price-box {
|
||||||
@ -417,7 +417,7 @@
|
|||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-left: -36rpx;
|
margin-left: -36rpx;
|
||||||
background-image: url('@/static/images/groupon-btn.png');
|
background-image: v-bind(btnBg);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
@ -430,7 +430,7 @@
|
|||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-left: -36rpx;
|
margin-left: -36rpx;
|
||||||
background-image: url('@/static/images/activity-btn-disabled.png');
|
background-image: v-bind(disabledBtnBg);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
<s-layout
|
<s-layout
|
||||||
:title="state.name"
|
:title="state.name"
|
||||||
navbar="custom"
|
navbar="custom"
|
||||||
tabbar="/pages/index/page"
|
|
||||||
:bgStyle="state.page"
|
:bgStyle="state.page"
|
||||||
:navbarStyle="state.navigationBar"
|
:navbarStyle="state.navigationBar"
|
||||||
onShareAppMessage
|
onShareAppMessage
|
||||||
|
@ -1,52 +0,0 @@
|
|||||||
<!-- 自定义页面:支持装修 -->
|
|
||||||
<template>
|
|
||||||
<s-layout
|
|
||||||
:title="state.name"
|
|
||||||
navbar="custom"
|
|
||||||
tabbar="/pages/index/page2"
|
|
||||||
:bgStyle="state.page"
|
|
||||||
:navbarStyle="state.navigationBar"
|
|
||||||
onShareAppMessage
|
|
||||||
showLeftButton
|
|
||||||
>
|
|
||||||
<s-block v-for="(item, index) in state.components" :key="index" :styles="item.property.style">
|
|
||||||
<s-block-item :type="item.id" :data="item.property" :styles="item.property.style" />
|
|
||||||
</s-block>
|
|
||||||
</s-layout>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { reactive } from 'vue';
|
|
||||||
import { onLoad, onPageScroll } from '@dcloudio/uni-app';
|
|
||||||
import DiyApi from '@/sheep/api/promotion/diy';
|
|
||||||
|
|
||||||
const state = reactive({
|
|
||||||
name: '',
|
|
||||||
components: [],
|
|
||||||
navigationBar: {},
|
|
||||||
page: {},
|
|
||||||
});
|
|
||||||
onLoad(async (options) => {
|
|
||||||
let id = options.id;
|
|
||||||
|
|
||||||
// #ifdef MP
|
|
||||||
// 小程序预览自定义页面
|
|
||||||
if (options.scene) {
|
|
||||||
const sceneParams = decodeURIComponent(options.scene).split('=');
|
|
||||||
id = sceneParams[1];
|
|
||||||
}
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
const { code, data } = await DiyApi.getDiyPage(id);
|
|
||||||
if (code === 0) {
|
|
||||||
state.name = data.name;
|
|
||||||
state.components = data.property?.components;
|
|
||||||
state.navigationBar = data.property?.navigationBar;
|
|
||||||
state.page = data.property?.page;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
onPageScroll(() => {});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style></style>
|
|
@ -1,52 +0,0 @@
|
|||||||
<!-- 自定义页面:支持装修 -->
|
|
||||||
<template>
|
|
||||||
<s-layout
|
|
||||||
:title="state.name"
|
|
||||||
navbar="custom"
|
|
||||||
tabbar="/pages/index/page3"
|
|
||||||
:bgStyle="state.page"
|
|
||||||
:navbarStyle="state.navigationBar"
|
|
||||||
onShareAppMessage
|
|
||||||
showLeftButton
|
|
||||||
>
|
|
||||||
<s-block v-for="(item, index) in state.components" :key="index" :styles="item.property.style">
|
|
||||||
<s-block-item :type="item.id" :data="item.property" :styles="item.property.style" />
|
|
||||||
</s-block>
|
|
||||||
</s-layout>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { reactive } from 'vue';
|
|
||||||
import { onLoad, onPageScroll } from '@dcloudio/uni-app';
|
|
||||||
import DiyApi from '@/sheep/api/promotion/diy';
|
|
||||||
|
|
||||||
const state = reactive({
|
|
||||||
name: '',
|
|
||||||
components: [],
|
|
||||||
navigationBar: {},
|
|
||||||
page: {},
|
|
||||||
});
|
|
||||||
onLoad(async (options) => {
|
|
||||||
let id = options.id;
|
|
||||||
|
|
||||||
// #ifdef MP
|
|
||||||
// 小程序预览自定义页面
|
|
||||||
if (options.scene) {
|
|
||||||
const sceneParams = decodeURIComponent(options.scene).split('=');
|
|
||||||
id = sceneParams[1];
|
|
||||||
}
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
const { code, data } = await DiyApi.getDiyPage(id);
|
|
||||||
if (code === 0) {
|
|
||||||
state.name = data.name;
|
|
||||||
state.components = data.property?.components;
|
|
||||||
state.navigationBar = data.property?.navigationBar;
|
|
||||||
state.page = data.property?.page;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
onPageScroll(() => {});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style></style>
|
|
@ -1,52 +0,0 @@
|
|||||||
<!-- 自定义页面:支持装修 -->
|
|
||||||
<template>
|
|
||||||
<s-layout
|
|
||||||
:title="state.name"
|
|
||||||
navbar="custom"
|
|
||||||
tabbar="/pages/index/page4"
|
|
||||||
:bgStyle="state.page"
|
|
||||||
:navbarStyle="state.navigationBar"
|
|
||||||
onShareAppMessage
|
|
||||||
showLeftButton
|
|
||||||
>
|
|
||||||
<s-block v-for="(item, index) in state.components" :key="index" :styles="item.property.style">
|
|
||||||
<s-block-item :type="item.id" :data="item.property" :styles="item.property.style" />
|
|
||||||
</s-block>
|
|
||||||
</s-layout>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { reactive } from 'vue';
|
|
||||||
import { onLoad, onPageScroll } from '@dcloudio/uni-app';
|
|
||||||
import DiyApi from '@/sheep/api/promotion/diy';
|
|
||||||
|
|
||||||
const state = reactive({
|
|
||||||
name: '',
|
|
||||||
components: [],
|
|
||||||
navigationBar: {},
|
|
||||||
page: {},
|
|
||||||
});
|
|
||||||
onLoad(async (options) => {
|
|
||||||
let id = options.id;
|
|
||||||
|
|
||||||
// #ifdef MP
|
|
||||||
// 小程序预览自定义页面
|
|
||||||
if (options.scene) {
|
|
||||||
const sceneParams = decodeURIComponent(options.scene).split('=');
|
|
||||||
id = sceneParams[1];
|
|
||||||
}
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
const { code, data } = await DiyApi.getDiyPage(id);
|
|
||||||
if (code === 0) {
|
|
||||||
state.name = data.name;
|
|
||||||
state.components = data.property?.components;
|
|
||||||
state.navigationBar = data.property?.navigationBar;
|
|
||||||
state.page = data.property?.page;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
onPageScroll(() => {});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style></style>
|
|
@ -1,14 +1,13 @@
|
|||||||
<!-- 个人中心:支持装修 -->
|
<!-- 个人中心:支持装修 -->
|
||||||
<template>
|
<template>
|
||||||
<s-layout
|
<s-layout
|
||||||
title=" "
|
title="我的"
|
||||||
tabbar="/pages/index/user"
|
tabbar="/pages/index/user"
|
||||||
navbar="normal"
|
navbar="custom"
|
||||||
:bgStyle="template.page"
|
:bgStyle="template.page"
|
||||||
:navbarStyle="template.navigationBar"
|
:navbarStyle="template.navigationBar"
|
||||||
onShareAppMessage
|
onShareAppMessage
|
||||||
>
|
>
|
||||||
<image class="seckill" src="@/static/images/seckill-bg.png"></image>
|
|
||||||
<s-block
|
<s-block
|
||||||
v-for="(item, index) in template.components"
|
v-for="(item, index) in template.components"
|
||||||
:key="index"
|
:key="index"
|
||||||
@ -44,12 +43,4 @@
|
|||||||
onPageScroll(() => {});
|
onPageScroll(() => {});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style></style>
|
||||||
.seckill{
|
|
||||||
width:100%;
|
|
||||||
position:absolute;
|
|
||||||
}
|
|
||||||
view{
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
|
|
||||||
<!-- 基础组件:搜索框 -->
|
<!-- 基础组件:搜索框 -->
|
||||||
<s-search-block v-if="type === 'SearchBar'" :data="data" :styles="styles" :navbar="false" />
|
<s-search-block v-if="type === 'SearchBar'" :data="data" :styles="styles" :navbar="false" />
|
||||||
<!-- 基础组件:公告栏 -->
|
<!-- 基础组件:公告栏 -->
|
||||||
|
@ -1,349 +1,365 @@
|
|||||||
<!-- 装修基础组件:菜单导航(金刚区) -->
|
<!-- 装修基础组件:菜单导航(金刚区) -->
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<!-- 包裹层 -->
|
||||||
<view class="title">
|
<view
|
||||||
我的服务
|
class="ui-swiper"
|
||||||
</view>
|
:class="[props.mode, props.bg, props.ui]"
|
||||||
<!-- 包裹层 -->
|
:style="[{ height: swiperHeight + (menuList.length > 1 ? 50 : 0) + 'rpx' }]"
|
||||||
<view class="ui-swiper" :class="[props.mode, props.bg, props.ui]"
|
>
|
||||||
:style="[{ height: swiperHeight + (menuList.length > 1 ? 50 : 0) + 'rpx' }]">
|
<!-- 轮播 -->
|
||||||
<!-- 轮播 -->
|
<swiper
|
||||||
<swiper :circular="props.circular" :current="state.cur" :autoplay="props.autoplay"
|
:circular="props.circular"
|
||||||
:interval="props.interval" :duration="props.duration" :style="[{ height: swiperHeight + 'rpx' }]"
|
:current="state.cur"
|
||||||
@change="swiperChange">
|
:autoplay="props.autoplay"
|
||||||
<swiper-item v-for="(arr, index) in menuList" :key="index" :class="{ cur: state.cur == index }">
|
:interval="props.interval"
|
||||||
<!-- 宫格 -->
|
:duration="props.duration"
|
||||||
<view class="grid-wrap">
|
:style="[{ height: swiperHeight + 'rpx' }]"
|
||||||
<view v-for="(item, index) in arr" :key="index"
|
@change="swiperChange"
|
||||||
class="grid-item ss-flex ss-flex-col ss-col-center ss-row-center"
|
>
|
||||||
:style="[{ width: `${100 * (1 / data.column)}%`, height: '200rpx' }]"
|
<swiper-item
|
||||||
hover-class="ss-hover-btn" @tap="sheep.$router.go(item.url)">
|
v-for="(arr, index) in menuList"
|
||||||
<view class="menu-box ss-flex ss-flex-col ss-col-center ss-row-center">
|
:key="index"
|
||||||
<view v-if="item.badge.show" class="tag-box"
|
:class="{ cur: state.cur == index }"
|
||||||
:style="[{ background: item.badge.bgColor, color: item.badge.textColor }]">
|
>
|
||||||
{{ item.badge.text }}
|
<!-- 宫格 -->
|
||||||
</view>
|
<view class="grid-wrap">
|
||||||
<image v-if="item.iconUrl" class="menu-icon" :style="[
|
<view
|
||||||
|
v-for="(item, index) in arr"
|
||||||
|
:key="index"
|
||||||
|
class="grid-item ss-flex ss-flex-col ss-col-center ss-row-center"
|
||||||
|
:style="[{ width: `${100 * (1 / data.column)}%`, height: '200rpx' }]"
|
||||||
|
hover-class="ss-hover-btn"
|
||||||
|
@tap="sheep.$router.go(item.url)"
|
||||||
|
>
|
||||||
|
<view class="menu-box ss-flex ss-flex-col ss-col-center ss-row-center">
|
||||||
|
<view
|
||||||
|
v-if="item.badge.show"
|
||||||
|
class="tag-box"
|
||||||
|
:style="[{ background: item.badge.bgColor, color: item.badge.textColor }]"
|
||||||
|
>
|
||||||
|
{{ item.badge.text }}
|
||||||
|
</view>
|
||||||
|
<image
|
||||||
|
v-if="item.iconUrl"
|
||||||
|
class="menu-icon"
|
||||||
|
:style="[
|
||||||
{
|
{
|
||||||
width: props.iconSize + 'rpx',
|
width: props.iconSize + 'rpx',
|
||||||
height: props.iconSize + 'rpx',
|
height: props.iconSize + 'rpx',
|
||||||
},
|
},
|
||||||
]" :src="sheep.$url.cdn(item.iconUrl)" mode="aspectFill"></image>
|
]"
|
||||||
<view v-if="data.layout === 'iconText'" class="menu-title"
|
:src="sheep.$url.cdn(item.iconUrl)"
|
||||||
:style="[{ color: item.titleColor }]">
|
mode="aspectFill"
|
||||||
{{ item.title }}
|
></image>
|
||||||
</view>
|
<view
|
||||||
</view>
|
v-if="data.layout === 'iconText'"
|
||||||
</view>
|
class="menu-title"
|
||||||
</view>
|
:style="[{ color: item.titleColor }]"
|
||||||
</swiper-item>
|
>
|
||||||
</swiper>
|
{{ item.title }}
|
||||||
<!-- 指示点 -->
|
</view>
|
||||||
<template v-if="menuList.length > 1">
|
</view>
|
||||||
<view class="ui-swiper-dot" :class="props.dotStyle" v-if="props.dotStyle != 'tag'">
|
</view>
|
||||||
<view class="line-box" v-for="(item, index) in menuList.length" :key="index"
|
</view>
|
||||||
:class="[state.cur == index ? 'cur' : '', props.dotCur]"></view>
|
</swiper-item>
|
||||||
</view>
|
</swiper>
|
||||||
<view class="ui-swiper-dot" :class="props.dotStyle" v-if="props.dotStyle == 'tag'">
|
<!-- 指示点 -->
|
||||||
<view class="ui-tag radius" :class="[props.dotCur]" style="pointer-events: none">
|
<template v-if="menuList.length > 1">
|
||||||
<view style="transform: scale(0.7)">{{ state.cur + 1 }} / {{ menuList.length }}</view>
|
<view class="ui-swiper-dot" :class="props.dotStyle" v-if="props.dotStyle != 'tag'">
|
||||||
</view>
|
<view
|
||||||
</view>
|
class="line-box"
|
||||||
</template>
|
v-for="(item, index) in menuList.length"
|
||||||
</view>
|
:key="index"
|
||||||
</view>
|
:class="[state.cur == index ? 'cur' : '', props.dotCur]"
|
||||||
|
></view>
|
||||||
|
</view>
|
||||||
|
<view class="ui-swiper-dot" :class="props.dotStyle" v-if="props.dotStyle == 'tag'">
|
||||||
|
<view class="ui-tag radius" :class="[props.dotCur]" style="pointer-events: none">
|
||||||
|
<view style="transform: scale(0.7)">{{ state.cur + 1 }} / {{ menuList.length }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
/**
|
/**
|
||||||
* 轮播menu
|
* 轮播menu
|
||||||
*
|
*
|
||||||
* @property {Boolean} circular = false - 是否采用衔接滑动,即播放到末尾后重新回到开头
|
* @property {Boolean} circular = false - 是否采用衔接滑动,即播放到末尾后重新回到开头
|
||||||
* @property {Boolean} autoplay = true - 是否自动切换
|
* @property {Boolean} autoplay = true - 是否自动切换
|
||||||
* @property {Number} interval = 5000 - 自动切换时间间隔
|
* @property {Number} interval = 5000 - 自动切换时间间隔
|
||||||
* @property {Number} duration = 500 - 滑动动画时长,app-nvue不支持
|
* @property {Number} duration = 500 - 滑动动画时长,app-nvue不支持
|
||||||
* @property {Array} list = [] - 轮播数据
|
* @property {Array} list = [] - 轮播数据
|
||||||
* @property {String} ui = '' - 样式class
|
* @property {String} ui = '' - 样式class
|
||||||
* @property {String} mode - 模式
|
* @property {String} mode - 模式
|
||||||
* @property {String} dotStyle - 指示点样式
|
* @property {String} dotStyle - 指示点样式
|
||||||
* @property {String} dotCur= 'ui-BG-Main' - 当前指示点样式,默认主题色
|
* @property {String} dotCur= 'ui-BG-Main' - 当前指示点样式,默认主题色
|
||||||
* @property {String} bg - 背景
|
* @property {String} bg - 背景
|
||||||
*
|
*
|
||||||
* @property {String|Number} col = 4 - 一行数量
|
* @property {String|Number} col = 4 - 一行数量
|
||||||
* @property {String|Number} row = 1 - 几行
|
* @property {String|Number} row = 1 - 几行
|
||||||
* @property {String} hasBorder - 是否有边框
|
* @property {String} hasBorder - 是否有边框
|
||||||
* @property {String} borderColor - 边框颜色
|
* @property {String} borderColor - 边框颜色
|
||||||
* @property {String} background - 背景
|
* @property {String} background - 背景
|
||||||
* @property {String} hoverClass - 按压样式类
|
* @property {String} hoverClass - 按压样式类
|
||||||
* @property {String} hoverStayTime - 动画时间
|
* @property {String} hoverStayTime - 动画时间
|
||||||
*
|
*
|
||||||
* @property {Array} list - 导航列表
|
* @property {Array} list - 导航列表
|
||||||
* @property {Number} iconSize - 图标大小
|
* @property {Number} iconSize - 图标大小
|
||||||
* @property {String} color - 标题颜色
|
* @property {String} color - 标题颜色
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { reactive, computed } from 'vue';
|
||||||
reactive,
|
import sheep from '@/sheep';
|
||||||
computed
|
|
||||||
} from 'vue';
|
|
||||||
import sheep from '@/sheep';
|
|
||||||
|
|
||||||
// 数据
|
// 数据
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
cur: 0,
|
cur: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
// 接收参数
|
// 接收参数
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: {
|
data: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default () {},
|
default() {},
|
||||||
},
|
},
|
||||||
styles: {
|
styles: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default () {},
|
default() {},
|
||||||
},
|
},
|
||||||
circular: {
|
circular: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
autoplay: {
|
autoplay: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
interval: {
|
interval: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 5000,
|
default: 5000,
|
||||||
},
|
},
|
||||||
duration: {
|
duration: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 500,
|
default: 500,
|
||||||
},
|
},
|
||||||
|
|
||||||
ui: {
|
ui: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
mode: {
|
mode: {
|
||||||
//default
|
//default
|
||||||
type: String,
|
type: String,
|
||||||
default: 'default',
|
default: 'default',
|
||||||
},
|
},
|
||||||
dotStyle: {
|
dotStyle: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'long', //default long tag
|
default: 'long', //default long tag
|
||||||
},
|
},
|
||||||
dotCur: {
|
dotCur: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'ui-BG-Main',
|
default: 'ui-BG-Main',
|
||||||
},
|
},
|
||||||
bg: {
|
bg: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'bg-none',
|
default: 'bg-none',
|
||||||
},
|
},
|
||||||
height: {
|
height: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 300,
|
default: 300,
|
||||||
},
|
},
|
||||||
|
|
||||||
// 是否有边框
|
// 是否有边框
|
||||||
hasBorder: {
|
hasBorder: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
// 边框颜色
|
// 边框颜色
|
||||||
borderColor: {
|
borderColor: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'red',
|
default: 'red',
|
||||||
},
|
},
|
||||||
background: {
|
background: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'blue',
|
default: 'blue',
|
||||||
},
|
},
|
||||||
hoverClass: {
|
hoverClass: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'ss-hover-class', //'none'为没有hover效果
|
default: 'ss-hover-class', //'none'为没有hover效果
|
||||||
},
|
},
|
||||||
// 一排宫格数
|
// 一排宫格数
|
||||||
col: {
|
col: {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: 3,
|
default: 3,
|
||||||
},
|
},
|
||||||
iconSize: {
|
iconSize: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 80,
|
default: 80,
|
||||||
},
|
},
|
||||||
color: {
|
color: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '#000',
|
default: '#000',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// 生成数据
|
// 生成数据
|
||||||
const menuList = computed(() => splitData(props.data.list, props.data.row * props.data.column));
|
const menuList = computed(() => splitData(props.data.list, props.data.row * props.data.column));
|
||||||
const swiperHeight = computed(
|
const swiperHeight = computed(
|
||||||
() => props.data.row * (props.data.layout === 'iconText' ? 200 : 180),
|
() => props.data.row * (props.data.layout === 'iconText' ? 200 : 180),
|
||||||
);
|
);
|
||||||
const windowWidth = sheep.$platform.device.windowWidth;
|
const windowWidth = sheep.$platform.device.windowWidth;
|
||||||
|
|
||||||
// current 改变时会触发 change 事件
|
// current 改变时会触发 change 事件
|
||||||
const swiperChange = (e) => {
|
const swiperChange = (e) => {
|
||||||
state.cur = e.detail.current;
|
state.cur = e.detail.current;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 重组数据
|
// 重组数据
|
||||||
const splitData = (oArr = [], length = 1) => {
|
const splitData = (oArr = [], length = 1) => {
|
||||||
let arr = [];
|
let arr = [];
|
||||||
let minArr = [];
|
let minArr = [];
|
||||||
oArr.forEach((c) => {
|
oArr.forEach((c) => {
|
||||||
if (minArr.length === length) {
|
if (minArr.length === length) {
|
||||||
minArr = [];
|
minArr = [];
|
||||||
}
|
}
|
||||||
if (minArr.length === 0) {
|
if (minArr.length === 0) {
|
||||||
arr.push(minArr);
|
arr.push(minArr);
|
||||||
}
|
}
|
||||||
minArr.push(c);
|
minArr.push(c);
|
||||||
});
|
});
|
||||||
|
|
||||||
return arr;
|
return arr;
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.title {
|
.grid-wrap {
|
||||||
padding: 10px 20px;
|
width: 100%;
|
||||||
height: 20px;
|
display: flex;
|
||||||
line-height: 20px;
|
position: relative;
|
||||||
font-size: 16px;
|
box-sizing: border-box;
|
||||||
font-weight: 600;
|
overflow: hidden;
|
||||||
border-bottom: 1px solid #dcdcdc;
|
flex-wrap: wrap;
|
||||||
}
|
align-items: center;
|
||||||
|
}
|
||||||
|
.menu-box {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
transform: translate(0, 0);
|
||||||
|
|
||||||
.grid-wrap {
|
.tag-box {
|
||||||
width: 100%;
|
position: absolute;
|
||||||
display: flex;
|
z-index: 2;
|
||||||
position: relative;
|
top: 0;
|
||||||
box-sizing: border-box;
|
right: -6rpx;
|
||||||
overflow: hidden;
|
font-size: 2em;
|
||||||
flex-wrap: wrap;
|
line-height: 1;
|
||||||
align-items: center;
|
padding: 0.4em 0.6em 0.3em;
|
||||||
}
|
transform: scale(0.4) translateX(0.5em) translatey(-0.6em);
|
||||||
|
transform-origin: 100% 0;
|
||||||
|
border-radius: 200rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.menu-box {
|
.menu-icon {
|
||||||
position: relative;
|
transform: translate(0, 0);
|
||||||
z-index: 1;
|
width: 80rpx;
|
||||||
transform: translate(0, 0);
|
height: 80rpx;
|
||||||
|
padding-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.tag-box {
|
.menu-title {
|
||||||
position: absolute;
|
font-size: 24rpx;
|
||||||
z-index: 2;
|
color: #333;
|
||||||
top: 0;
|
}
|
||||||
right: -6rpx;
|
}
|
||||||
font-size: 2em;
|
|
||||||
line-height: 1;
|
|
||||||
padding: 0.4em 0.6em 0.3em;
|
|
||||||
transform: scale(0.4) translateX(0.5em) translatey(-0.6em);
|
|
||||||
transform-origin: 100% 0;
|
|
||||||
border-radius: 200rpx;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-icon {
|
::v-deep(.ui-swiper) {
|
||||||
transform: translate(0, 0);
|
position: relative;
|
||||||
width: 80rpx;
|
z-index: 1;
|
||||||
height: 80rpx;
|
|
||||||
padding-bottom: 10rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-title {
|
.ui-swiper-dot {
|
||||||
font-size: 24rpx;
|
position: absolute;
|
||||||
color: #333;
|
width: 100%;
|
||||||
}
|
bottom: 20rpx;
|
||||||
}
|
height: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
z-index: 2;
|
||||||
|
|
||||||
::v-deep(.ui-swiper) {
|
&.default .line-box {
|
||||||
position: relative;
|
display: inline-flex;
|
||||||
z-index: 1;
|
border-radius: 50rpx;
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
margin: 0 10rpx;
|
||||||
|
opacity: 0.3;
|
||||||
|
position: relative;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
.ui-swiper-dot {
|
&.cur {
|
||||||
position: absolute;
|
width: 8px;
|
||||||
width: 100%;
|
height: 8px;
|
||||||
bottom: 20rpx;
|
opacity: 1;
|
||||||
height: 30rpx;
|
border: 0px solid transparent;
|
||||||
display: flex;
|
}
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
z-index: 2;
|
|
||||||
|
|
||||||
&.default .line-box {
|
&.cur::after {
|
||||||
display: inline-flex;
|
content: '';
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
width: 6px;
|
width: 4px;
|
||||||
height: 6px;
|
height: 4px;
|
||||||
border: 2px solid transparent;
|
background-color: #fff;
|
||||||
margin: 0 10rpx;
|
}
|
||||||
opacity: 0.3;
|
}
|
||||||
position: relative;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
&.cur {
|
&.long .line-box {
|
||||||
width: 8px;
|
display: inline-block;
|
||||||
height: 8px;
|
border-radius: 100rpx;
|
||||||
opacity: 1;
|
width: 6px;
|
||||||
border: 0px solid transparent;
|
height: 6px;
|
||||||
}
|
margin: 0 10rpx;
|
||||||
|
opacity: 0.3;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
&.cur::after {
|
&.cur {
|
||||||
content: '';
|
width: 24rpx;
|
||||||
border-radius: 50rpx;
|
opacity: 1;
|
||||||
width: 4px;
|
}
|
||||||
height: 4px;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.long .line-box {
|
&.cur::after {
|
||||||
display: inline-block;
|
}
|
||||||
border-radius: 100rpx;
|
}
|
||||||
width: 6px;
|
|
||||||
height: 6px;
|
|
||||||
margin: 0 10rpx;
|
|
||||||
opacity: 0.3;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
&.cur {
|
&.line {
|
||||||
width: 24rpx;
|
bottom: 20rpx;
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.cur::after {}
|
.line-box {
|
||||||
}
|
display: inline-block;
|
||||||
|
width: 30px;
|
||||||
|
height: 3px;
|
||||||
|
opacity: 0.3;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
&.line {
|
&.cur {
|
||||||
bottom: 20rpx;
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.line-box {
|
&.tag {
|
||||||
display: inline-block;
|
justify-content: flex-end;
|
||||||
width: 30px;
|
position: absolute;
|
||||||
height: 3px;
|
bottom: 20rpx;
|
||||||
opacity: 0.3;
|
right: 20rpx;
|
||||||
position: relative;
|
}
|
||||||
|
}
|
||||||
&.cur {
|
}
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.tag {
|
|
||||||
justify-content: flex-end;
|
|
||||||
position: absolute;
|
|
||||||
bottom: 20rpx;
|
|
||||||
right: 20rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
@ -1,129 +1,108 @@
|
|||||||
<!-- 装修用户组件:用户订单 -->
|
<!-- 装修用户组件:用户订单 -->
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="ss-order-menu-wrap ss-flex ss-col-center">
|
||||||
<view class="title">
|
<view
|
||||||
订单中心
|
class="menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center"
|
||||||
</view>
|
v-for="item in orderMap"
|
||||||
<view class="ss-order-menu-wrap ss-flex ss-col-center">
|
:key="item.title"
|
||||||
|
@tap="sheep.$router.go(item.path, { type: item.value })"
|
||||||
<view class="menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center" v-for="(item, index) in orderMap"
|
>
|
||||||
:key="item.title" @tap="sheep.$router.go(item.path, { type: item.value })">
|
<uni-badge
|
||||||
<uni-badge class="uni-badge-left-margin" :text="numData.orderCount[item.count]" absolute="rightTop"
|
class="uni-badge-left-margin"
|
||||||
size="small">
|
:text="numData.orderCount[item.count]"
|
||||||
<image v-if="index == 0" class="item-icon" :src="imag0" mode="aspectFit" />
|
absolute="rightTop"
|
||||||
<image v-if="index == 1" class="item-icon" :src="imag1" mode="aspectFit" />
|
size="small"
|
||||||
<image v-if="index == 2" class="item-icon" :src="imag2" mode="aspectFit" />
|
>
|
||||||
<image v-if="index == 3" class="item-icon" :src="imag3" mode="aspectFit" />
|
<image class="item-icon" :src="sheep.$url.static(item.icon)" mode="aspectFit" />
|
||||||
<image v-if="index == 4" class="item-icon" :src="imag4" mode="aspectFit" />
|
</uni-badge>
|
||||||
</uni-badge>
|
<view class="menu-title ss-m-t-28">{{ item.title }}</view>
|
||||||
<view class="menu-title ss-m-t-28">{{ item.title }}</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import imag0 from '@/static/images/no_0.png'
|
/**
|
||||||
import imag1 from '@/static/images/no_take.png'
|
* 装修组件 - 订单菜单组
|
||||||
import imag2 from '@/static/images/no_comment.png'
|
*/
|
||||||
import imag3 from '@/static/images/order.png'
|
import sheep from '@/sheep';
|
||||||
import imag4 from '@/static/images/order.png'
|
import { computed } from 'vue';
|
||||||
/**
|
|
||||||
* 装修组件 - 订单菜单组
|
|
||||||
*/
|
|
||||||
import sheep from '@/sheep';
|
|
||||||
import {
|
|
||||||
computed
|
|
||||||
} from 'vue';
|
|
||||||
|
|
||||||
const orderMap = [{
|
const orderMap = [
|
||||||
title: '待付款',
|
{
|
||||||
value: '1',
|
title: '待付款',
|
||||||
icon: '/static/img/shop/order/no_pay.png',
|
value: '1',
|
||||||
path: '/pages/order/list',
|
icon: '/static/img/shop/order/no_pay.png',
|
||||||
type: 'unpaid',
|
path: '/pages/order/list',
|
||||||
count: 'unpaidCount',
|
type: 'unpaid',
|
||||||
},
|
count: 'unpaidCount',
|
||||||
{
|
},
|
||||||
title: '待收货',
|
{
|
||||||
value: '3',
|
title: '待收货',
|
||||||
icon: '/static/img/shop/order/no_take.png',
|
value: '3',
|
||||||
path: '/pages/order/list',
|
icon: '/static/img/shop/order/no_take.png',
|
||||||
type: 'noget',
|
path: '/pages/order/list',
|
||||||
count: 'deliveredCount',
|
type: 'noget',
|
||||||
},
|
count: 'deliveredCount',
|
||||||
{
|
},
|
||||||
title: '待评价',
|
{
|
||||||
value: '4',
|
title: '待评价',
|
||||||
icon: '/static/img/shop/order/no_comment.png',
|
value: '4',
|
||||||
path: '/pages/order/list',
|
icon: '/static/img/shop/order/no_comment.png',
|
||||||
type: 'nocomment',
|
path: '/pages/order/list',
|
||||||
count: 'uncommentedCount',
|
type: 'nocomment',
|
||||||
},
|
count: 'uncommentedCount',
|
||||||
{
|
},
|
||||||
title: '售后单',
|
{
|
||||||
value: '0',
|
title: '售后单',
|
||||||
icon: '/static/img/shop/order/change_order.png',
|
value: '0',
|
||||||
path: '/pages/order/aftersale/list',
|
icon: '/static/img/shop/order/change_order.png',
|
||||||
type: 'aftersale',
|
path: '/pages/order/aftersale/list',
|
||||||
count: 'afterSaleCount',
|
type: 'aftersale',
|
||||||
},
|
count: 'afterSaleCount',
|
||||||
{
|
},
|
||||||
title: '全部订单',
|
{
|
||||||
value: '0',
|
title: '全部订单',
|
||||||
icon: '/static/img/shop/order/all_order.png',
|
value: '0',
|
||||||
path: '/pages/order/list',
|
icon: '/static/img/shop/order/all_order.png',
|
||||||
},
|
path: '/pages/order/list',
|
||||||
];
|
},
|
||||||
|
];
|
||||||
|
|
||||||
const numData = computed(() => sheep.$store('user').numData);
|
const numData = computed(() => sheep.$store('user').numData);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.title {
|
.ss-order-menu-wrap {
|
||||||
padding: 10px 20px;
|
.menu-item {
|
||||||
height: 20px;
|
height: 160rpx;
|
||||||
line-height: 20px;
|
position: relative;
|
||||||
font-size: 16px;
|
z-index: 10;
|
||||||
font-weight: 600;
|
.menu-title {
|
||||||
border-bottom: 1px solid #dcdcdc;
|
font-size: 24rpx;
|
||||||
}
|
line-height: 24rpx;
|
||||||
|
color: #333333;
|
||||||
.ss-order-menu-wrap {
|
}
|
||||||
.menu-item {
|
.item-icon {
|
||||||
height: 160rpx;
|
width: 44rpx;
|
||||||
position: relative;
|
height: 44rpx;
|
||||||
z-index: 10;
|
}
|
||||||
|
.num-icon {
|
||||||
.menu-title {
|
position: absolute;
|
||||||
font-size: 24rpx;
|
right: 18rpx;
|
||||||
line-height: 24rpx;
|
top: 18rpx;
|
||||||
color: #333333;
|
// width: 40rpx;
|
||||||
}
|
padding: 0 8rpx;
|
||||||
|
height: 26rpx;
|
||||||
.item-icon {
|
background: #ff4d4f;
|
||||||
width: 44rpx;
|
border-radius: 13rpx;
|
||||||
height: 44rpx;
|
color: #fefefe;
|
||||||
}
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
.num-icon {
|
.num {
|
||||||
position: absolute;
|
font-size: 24rpx;
|
||||||
right: 18rpx;
|
transform: scale(0.8);
|
||||||
top: 18rpx;
|
}
|
||||||
// width: 40rpx;
|
}
|
||||||
padding: 0 8rpx;
|
}
|
||||||
height: 26rpx;
|
}
|
||||||
background: #ff4d4f;
|
|
||||||
border-radius: 13rpx;
|
|
||||||
color: #fefefe;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
.num {
|
|
||||||
font-size: 24rpx;
|
|
||||||
transform: scale(0.8);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
@ -36,7 +36,7 @@
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="share-img"
|
class="share-img"
|
||||||
src="@/static/images/share_poster.png"
|
:src="sheep.$url.static('/static/img/shop/share/share_poster.png')"
|
||||||
mode=""
|
mode=""
|
||||||
/>
|
/>
|
||||||
<text class="share-title">生成海报</text>
|
<text class="share-title">生成海报</text>
|
||||||
@ -50,7 +50,7 @@
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="share-img"
|
class="share-img"
|
||||||
src="@/static/images/share_link.png"
|
:src="sheep.$url.static('/static/img/shop/share/share_link.png')"
|
||||||
mode=""
|
mode=""
|
||||||
/>
|
/>
|
||||||
<text class="share-title">复制链接</text>
|
<text class="share-title">复制链接</text>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
:src="
|
:src="
|
||||||
isLogin
|
isLogin
|
||||||
? sheep.$url.cdn(userInfo.avatar)
|
? sheep.$url.cdn(userInfo.avatar)
|
||||||
: defaultAvatar
|
: sheep.$url.static('/static/img/shop/default_avatar.png')
|
||||||
"
|
"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
@tap="sheep.$router.go('/pages/user/info')"
|
@tap="sheep.$router.go('/pages/user/info')"
|
||||||
@ -43,8 +43,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
// 使用 import
|
|
||||||
import defaultAvatar from '@/static/images/default_avatar.png';
|
|
||||||
/**
|
/**
|
||||||
* 用户卡片
|
* 用户卡片
|
||||||
*
|
*
|
||||||
@ -122,7 +120,7 @@
|
|||||||
.nick-name {
|
.nick-name {
|
||||||
font-size: 34rpx;
|
font-size: 34rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: white;
|
color: #333333;
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="item-icon"
|
class="item-icon"
|
||||||
:src="walleticon"
|
:src="sheep.$url.static('/static/img/shop/user/wallet_icon.png')"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
<view class="menu-title ss-m-t-30">我的钱包</view>
|
<view class="menu-title ss-m-t-30">我的钱包</view>
|
||||||
@ -50,7 +50,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import walleticon from '@/static/images/wallet_icon.png'
|
|
||||||
/**
|
/**
|
||||||
* 装修组件 - 订单菜单组
|
* 装修组件 - 订单菜单组
|
||||||
*/
|
*/
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 726 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 845 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 816 B |