首页积分页面实施
This commit is contained in:
parent
a18bd4f01a
commit
dd75674ff3
16
pages.json
16
pages.json
@ -46,6 +46,19 @@
|
||||
"group": "商城"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/reservation_record/reservation_record",
|
||||
"style": {
|
||||
"navigationBarTitleText": "预约记录",
|
||||
"enablePullDownRefresh": true
|
||||
},
|
||||
"meta": {
|
||||
"auth": false,
|
||||
"sync": true,
|
||||
"title": "预约记录",
|
||||
"group": "商城"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/user",
|
||||
"style": {
|
||||
@ -763,6 +776,9 @@
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/user"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/category"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,53 @@
|
||||
<!-- 签到界面 -->
|
||||
<template>
|
||||
<s-layout title="签到有礼">
|
||||
<view class="new-bg">
|
||||
<image class="new-qdyl"
|
||||
src="https://zysc.fjptzykj.com:3000/shangcheng/56024e3b60810cc781cbed30ebfe4568a8b721dae5e15aab848f760574558843.png">
|
||||
</image>
|
||||
<view class="new-title">签到有礼</view>
|
||||
<view class="new-left-title">
|
||||
<view class="top">
|
||||
我的积分
|
||||
</view>
|
||||
<view class="bottom">
|
||||
26871
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="new-main">
|
||||
<view class="sign-list">
|
||||
<view class="new-top">
|
||||
<view class="left">已连续签到<span class="number">2</span>天</view>
|
||||
<view class="right">
|
||||
签到
|
||||
</view>
|
||||
</view>
|
||||
<view class="new-bottom">
|
||||
<view class="new-list" v-for=" o in 6">
|
||||
<view class="t">
|
||||
第1天
|
||||
</view>
|
||||
<view class="c">
|
||||
<image class="img" src="https://zysc.fjptzykj.com:3000/shangcheng/d1dd98b6a37ea9ea90c49898024d3669a54ee2a48f028b671609937b6b1250af.png"></image>
|
||||
</view>
|
||||
<view class="b">
|
||||
10积分
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 签到说明 -->
|
||||
<view class="new-qdsm">
|
||||
<view class="t">签到说明</view>
|
||||
<view class="tt">1、已累计签到{{ state.signInfo.totalDay }}天</view>
|
||||
<view class="tt">
|
||||
2、据说连续签到第 {{ state.maxDay }} 天可获得超额积分,一定要坚持签到哦~~~
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<s-empty v-if="state.loading" icon="/static/data-empty.png" text="签到活动还未开始" />
|
||||
<view v-if="state.loading" />
|
||||
<view class="sign-wrap" v-else-if="!state.loading">
|
||||
@ -12,34 +59,26 @@
|
||||
已连续签到 <text class="sign-num">{{ state.signInfo.continuousDay }}</text> 天
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="list acea-row row-between-wrapper"
|
||||
style="
|
||||
<view class="list acea-row row-between-wrapper" style="
|
||||
padding: 0 30rpx;
|
||||
height: 240rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
"
|
||||
>
|
||||
">
|
||||
<view class="item" v-for="(item, index) in state.signConfigList" :key="index">
|
||||
<view
|
||||
:class="
|
||||
<view :class="
|
||||
(index === state.signConfigList.length ? 'reward' : '') +
|
||||
' ' +
|
||||
(state.signInfo.continuousDay >= item.day ? 'rewardTxt' : '')
|
||||
"
|
||||
>
|
||||
">
|
||||
第{{ item.day }}天
|
||||
</view>
|
||||
<view
|
||||
class="venus"
|
||||
:class="
|
||||
<view class="venus" :class="
|
||||
(index + 1 === state.signConfigList.length ? 'reward' : '') +
|
||||
' ' +
|
||||
(state.signInfo.continuousDay >= item.day ? 'venusSelect' : '')
|
||||
"
|
||||
>
|
||||
">
|
||||
</view>
|
||||
<view class="num" :class="state.signInfo.continuousDay >= item.day ? 'on' : ''">
|
||||
+ {{ item.point }}
|
||||
@ -50,11 +89,7 @@
|
||||
<!-- 签到按钮 -->
|
||||
<view class="myDateTable">
|
||||
<view class="ss-flex ss-col-center ss-row-center sign-box ss-m-y-40">
|
||||
<button
|
||||
class="ss-reset-button sign-btn"
|
||||
v-if="!state.signInfo.todaySignIn"
|
||||
@tap="onSign"
|
||||
>
|
||||
<button class="ss-reset-button sign-btn" v-if="!state.signInfo.todaySignIn" @tap="onSign">
|
||||
签到
|
||||
</button>
|
||||
<button class="ss-reset-button already-btn" v-else disabled> 已签到 </button>
|
||||
@ -98,8 +133,12 @@
|
||||
|
||||
<script setup>
|
||||
import sheep from '@/sheep';
|
||||
import { onReady } from '@dcloudio/uni-app';
|
||||
import { reactive } from 'vue';
|
||||
import {
|
||||
onReady
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
reactive
|
||||
} from 'vue';
|
||||
import SignInApi from '@/sheep/api/member/signin';
|
||||
|
||||
const headerBg = sheep.$url.css('/static/img/shop/app/sign.png');
|
||||
@ -118,7 +157,10 @@
|
||||
|
||||
// 发起签到
|
||||
async function onSign() {
|
||||
const { code, data } = await SignInApi.createSignInRecord();
|
||||
const {
|
||||
code,
|
||||
data
|
||||
} = await SignInApi.createSignInRecord();
|
||||
if (code !== 0) {
|
||||
return;
|
||||
}
|
||||
@ -135,7 +177,10 @@
|
||||
|
||||
// 获得个人签到统计
|
||||
async function getSignInfo() {
|
||||
const { code, data } = await SignInApi.getSignInRecordSummary();
|
||||
const {
|
||||
code,
|
||||
data
|
||||
} = await SignInApi.getSignInRecordSummary();
|
||||
if (code !== 0) {
|
||||
return;
|
||||
}
|
||||
@ -145,7 +190,10 @@
|
||||
|
||||
// 获取签到配置
|
||||
async function getSignConfigList() {
|
||||
const { code, data } = await SignInApi.getSignInConfigList();
|
||||
const {
|
||||
code,
|
||||
data
|
||||
} = await SignInApi.getSignInConfigList();
|
||||
if (code !== 0) {
|
||||
return;
|
||||
}
|
||||
@ -448,4 +496,113 @@
|
||||
.on {
|
||||
background-color: #999 !important;
|
||||
}
|
||||
|
||||
.new-bg {
|
||||
position: relative;
|
||||
|
||||
.new-qdyl {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.new-title {
|
||||
color: white;
|
||||
font-size: 20px;
|
||||
position: absolute;
|
||||
top: 26px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.new-left-title {
|
||||
position: absolute;
|
||||
bottom: 69px;
|
||||
left: 20px;
|
||||
|
||||
.top {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
color: white;
|
||||
font-size: 38px;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
.new-main{
|
||||
top:-57px;
|
||||
position:relative;
|
||||
.sign-list {
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background: white;
|
||||
border-radius: 18px;
|
||||
|
||||
.new-top {
|
||||
display:flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom:10px;
|
||||
.left {
|
||||
color:rgba(35,24,21,1);
|
||||
font-size:25px;
|
||||
font-weight:700;
|
||||
.number{
|
||||
color:rgba(255,110,16);
|
||||
margin: 0 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
padding:5px 10px;
|
||||
color:white;
|
||||
font-size:20px;
|
||||
background:rgba(255,139,43);
|
||||
width: 62px;
|
||||
border-radius: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.new-bottom {
|
||||
display:flex;
|
||||
flex-wrap:wrap;
|
||||
.new-list {
|
||||
padding:5px 5px;
|
||||
background: rgba(255,247,239);
|
||||
width:33%;
|
||||
border-radius:12px;
|
||||
.t {
|
||||
width:100%;
|
||||
color:black;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.c {
|
||||
width:100%;
|
||||
margin:5px 0;
|
||||
.img{
|
||||
width:50px;
|
||||
height:50px;
|
||||
display:block;
|
||||
margin:0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.b {
|
||||
width:100%;
|
||||
color:rgba(176,144,122);
|
||||
text-align:center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.new-qdsm {
|
||||
.t {}
|
||||
|
||||
.tt {}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
@ -38,7 +38,7 @@
|
||||
path: '/pages/commission/team',
|
||||
},
|
||||
{
|
||||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/ec41e4f5b45c087232aab8d088019a1e9d781b9bde0f54ddbb18e90230b83255.png',
|
||||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/228c9cd847514f99ca1181b4d413c24e482ab46459a557e3b934facb32ab546d.png',
|
||||
title: '佣金明细',
|
||||
path: '/pages/commission/wallet',
|
||||
},
|
||||
@ -60,18 +60,18 @@
|
||||
// },
|
||||
// todo @芋艿:邀请海报需要登录后的个人数据
|
||||
{
|
||||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/f9f9914bb3c1695055771cada0022c12bcf08fe3975485fc05ddd345c6f6e2a4.png',
|
||||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/f238f60d6e45080cdbbd294c344d3e2fc3a30c34ccb9345e931b0c5aa9e90645.png',
|
||||
title: '邀请海报',
|
||||
path: 'action:showShareModal',
|
||||
},
|
||||
// TODO @芋艿:缺少 icon
|
||||
{
|
||||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/f9f9914bb3c1695055771cada0022c12bcf08fe3975485fc05ddd345c6f6e2a4.png',
|
||||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/d6bc7dbec1333e554a4781cbfae023e590a555dfca12784615023ae43bd2bf46.png',
|
||||
title: '推广排行',
|
||||
path: '/pages/commission/promoter',
|
||||
},
|
||||
{
|
||||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/f9f9914bb3c1695055771cada0022c12bcf08fe3975485fc05ddd345c6f6e2a4.png',
|
||||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/4332d64835bb4aedc05636950f7cd7dcbab085f0f72f42eee4d87799947a7108.png',
|
||||
title: '佣金排行',
|
||||
path: '/pages/commission/commission-ranking',
|
||||
},
|
||||
|
@ -75,7 +75,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 功能卡片 -->
|
||||
<view class=" new-detail-card detail-cell-card detail-card ss-flex-col">
|
||||
<view class="new-gonn new-detail-card detail-cell-card detail-card ss-flex-col">
|
||||
<!-- 规格 -->
|
||||
<detail-cell-sku :sku="state.selectedSkuPrice" @tap="state.showSelectSku = true" />
|
||||
</view>
|
||||
@ -94,8 +94,6 @@
|
||||
:grouponAction="state.grouponAction" :grouponNum="state.grouponNum" @buy="onBuy"
|
||||
@change="onSkuChange" @close="onSkuClose" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="new-bottom">
|
||||
<!-- 评价 -->
|
||||
<detail-comment-card class="detail-comment-selector" :goodsId="state.goodsId" />
|
||||
@ -115,7 +113,7 @@
|
||||
state.activity.status === 0 && state.goodsInfo.stock !== 0
|
||||
? 'check-btn-box'
|
||||
: 'disabled-btn-box'
|
||||
" :disabled="state.goodsInfo.stock === 0 || state.activity.status !== 0 || state.activity.remainingPurchases == 0"">
|
||||
" :disabled="state.goodsInfo.stock === 0 || state.activity.status !== 0 || state.activity.remainingPurchases == 0">
|
||||
<view class="btn-price">{{
|
||||
fen2yuan(state.activity.price || state.goodsInfo.price)
|
||||
}}</view>
|
||||
@ -130,6 +128,8 @@
|
||||
</detail-tabbar>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</block>
|
||||
</s-layout>
|
||||
</template>
|
||||
@ -616,4 +616,7 @@
|
||||
top: -31px;
|
||||
// z-index: 2;
|
||||
}
|
||||
.new-gonn{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
@ -32,7 +32,8 @@
|
||||
<view class="origin-price ss-flex ss-col-center" v-if="state.goodsInfo.marketPrice">
|
||||
|
||||
<view class="origin-price-text">
|
||||
{{ fen2yuan(state.selectedSku.marketPrice || state.goodsInfo.marketPrice) }}
|
||||
{{ state.selectedSku.marketPrice || state.goodsInfo.marketPrice }}
|
||||
<!-- {{ fen2yuan(state.selectedSku.marketPrice || state.goodsInfo.marketPrice) }} -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -86,7 +87,8 @@
|
||||
v-if="state.goodsInfo.marketPrice"
|
||||
@tap="sheep.$router.go('/pages/goods/index', { id: state.goodsInfo.id })">
|
||||
<view>
|
||||
<view class="btn-price">{{ fen2yuan(state.goodsInfo.marketPrice) }}</view>
|
||||
<!-- <view class="btn-price">{{ fen2yuan(state.goodsInfo.marketPrice) }}</view> -->
|
||||
<view class="btn-price">{{state.goodsInfo.marketPrice}}</view>
|
||||
<view>原价购买</view>
|
||||
</view>
|
||||
</button>
|
||||
@ -99,7 +101,7 @@
|
||||
</button>
|
||||
<button class="ss-reset-button btn-box ss-flex-col" @tap="state.showSelectSku = true"
|
||||
:class="
|
||||
timeStatusEnum === TimeStatusEnum.STARTED && state.goodsInfo.stock != 0
|
||||
timeStatusEnum === TimeStatusEnum.STARTED && state.goodsInfo.stock != 0 && activity.remainingPurchases != 0
|
||||
? 'check-btn-box'
|
||||
: 'disabled-btn-box'
|
||||
" :disabled="state.goodsInfo.stock === 0 || timeStatusEnum !== TimeStatusEnum.STARTED || activity.remainingPurchases == 0">
|
||||
|
@ -3,8 +3,7 @@
|
||||
<s-layout title="个人中心" tabbar="/pages/index/user" navbar="normal" :bgStyle="template.page"
|
||||
:navbarStyle="template.navigationBar" onShareAppMessage>
|
||||
|
||||
<image class="seckill" src="@/static/images/seckilbg.png"></image>
|
||||
<s-block class="" v-for="(item, index) in template.components" :key="index" :styles="item.property.style">
|
||||
<s-block class="" v-for="(item, index) in template.components" :key="index" :styles="item.id != 'UserCard' ? item.property.style: ''">
|
||||
<s-block-item :type="item.id" :data="item.property" :styles="item.property.style" />
|
||||
</s-block>
|
||||
</s-layout>
|
||||
@ -42,22 +41,18 @@
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.new-main{
|
||||
.new-main {}
|
||||
|
||||
}
|
||||
.seckill1 {
|
||||
position: absolute;
|
||||
top: 117px;
|
||||
/* top: 117px; */
|
||||
z-index: 22;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 94%;
|
||||
}
|
||||
|
||||
.seckill {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
|
||||
view {
|
||||
position: relative;
|
||||
|
@ -51,7 +51,7 @@
|
||||
class="score-img"
|
||||
/>
|
||||
<text class="item-value ss-m-r-24">
|
||||
{{ state.orderInfo.usedPoint }}
|
||||
{{ state.orderInfo.usePoint }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -69,7 +69,7 @@
|
||||
<text class="item-value ss-m-r-24">
|
||||
{{
|
||||
state.pointStatus || state.orderPayload.pointActivityId
|
||||
? state.orderInfo.totalPoint - state.orderInfo.usedPoint
|
||||
? state.orderInfo.totalPoint - state.orderInfo.usePoint
|
||||
: state.orderInfo.totalPoint || 0
|
||||
}}
|
||||
</text>
|
||||
|
211
pages/reservation_record/reservation_record.vue
Normal file
211
pages/reservation_record/reservation_record.vue
Normal file
@ -0,0 +1,211 @@
|
||||
<template>
|
||||
<s-layout title="预约记录" :bgStyle="{ color: '#fff' }">
|
||||
<view class="container">
|
||||
<!-- <view class="health_title">
|
||||
<image class="health_title_img" ></image>
|
||||
<view class="health-title-title">预约记录</view>
|
||||
</view> -->
|
||||
<view class="cards">
|
||||
<view class="card" v-for="(item, index) in reservationList" :key="index">
|
||||
<view class="card-content">
|
||||
<text class="type" >预约类型:{{ item.typeName }}</text>
|
||||
<!-- <text class="type" v-if="item.type===1">预约类型:教培预约</text> -->
|
||||
<text class="time">预约时间:{{ item.reAddTime }}</text>
|
||||
</view>
|
||||
<view style="height: 1px; background-color: #e8e8e8;margin:7px 0px 7px 0px"></view>
|
||||
<!-- <view class="card-contentinfo">
|
||||
<text class="time">预约时间:{{ item.reAddTime }}</text>
|
||||
</view> -->
|
||||
<view>
|
||||
<text class="address">医生:{{ item.technicianName }}</text><br><br>
|
||||
<text class="address">医馆:{{ item.brandName }}</text><br><br>
|
||||
<text class="address">医馆电话:{{ item.brandphone }}</text><br><br>
|
||||
<div class="address-container">
|
||||
<text class="address">医馆地址:{{ item.brandaddress }}</text><br><br>
|
||||
</div>
|
||||
<text class="address">备注:{{ item.remark }}</text><br><br>
|
||||
</view>
|
||||
<view>
|
||||
<text class="status" style="float: right; border-radius: 10px; background-color: orangered; padding: 5px 10px; color: white;" v-if=" item.reStatus===0">待审核</text>
|
||||
<text class="status" style="float: right; border-radius: 10px; background-color: orangered; padding: 5px 10px; color: white;" v-if=" item.reStatus===1">预约成功</text>
|
||||
<text class="status" style="float: right; border-radius: 10px; background-color: orangered; padding: 5px 10px; color: white;" v-if=" item.reStatus===2">已完结</text><br><br>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</s-layout>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from '@/sheep/request';
|
||||
import { computed } from 'vue';
|
||||
import sheep from '@/sheep';
|
||||
import {
|
||||
baseUrl,
|
||||
apiPath
|
||||
} from '@/sheep/config';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
memberId:null,
|
||||
reservationList: [],
|
||||
page: 1,
|
||||
limit: 10,
|
||||
totalPages: 1,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.memberId=computed(() => sheep.$store('user').userInfo).value.id
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
request({
|
||||
url: `${baseUrl}${apiPath}/h5/reservation/list`,
|
||||
method: 'GET',
|
||||
params:{
|
||||
userId:this.memberId,
|
||||
},
|
||||
custom: {
|
||||
showLoading: false,
|
||||
},
|
||||
}).then((res) => {
|
||||
this.reservationList = res.data.list
|
||||
});
|
||||
// uni.request({
|
||||
// url: `${baseUrl}${apiPath}/h5/reservation/list`, // 接口地址
|
||||
// data: {
|
||||
// userId:this.memberId,
|
||||
// },
|
||||
// success: (res) => {
|
||||
// console.log(res.data);
|
||||
// this.reservationList = res.data.rows
|
||||
// },
|
||||
// fail: (error) => {
|
||||
// console.log(error)
|
||||
// }
|
||||
// })
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped>
|
||||
.address-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* align-items: center; */
|
||||
background-color: #f5f5f5;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.cards {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-around;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.card {
|
||||
/* width: calc(50% - 10px); */
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 20px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.card-content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-contentinfo {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
/* display: flex;
|
||||
justify-content: space-between; */
|
||||
}
|
||||
|
||||
.card-image {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
||||
.technician {
|
||||
margin-left: 20%;
|
||||
}
|
||||
|
||||
.hospital,
|
||||
.technician,
|
||||
.type{
|
||||
margin-left: 20px;
|
||||
font-size: 15px;
|
||||
color: #161616;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status {
|
||||
font-size: 15px;
|
||||
color: #666;
|
||||
}
|
||||
.address{
|
||||
margin: 20px 0px 0px 20px ;
|
||||
font-size: 15px;
|
||||
color: #666;
|
||||
}
|
||||
.health-list {
|
||||
background-color: #FFFFFF;
|
||||
height: 100%;
|
||||
width: 98%;
|
||||
margin: 5PX;
|
||||
padding-left: 15px;
|
||||
padding-top: 10px;
|
||||
/* padding: 10px; */
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.health_title {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.health_title_img {
|
||||
float: left;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.health-title-title {
|
||||
float: none;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.time {
|
||||
/* margin-top: 20px; */
|
||||
font-size: 15px;
|
||||
color: #5e5e5e;
|
||||
}
|
||||
</style>
|
@ -22,7 +22,7 @@
|
||||
<text class="clinic-select-label">医馆选择</text>
|
||||
<picker mode="selector" :range="brandNameList" @change="onClinicChange">
|
||||
<view class="clinic-select-value">
|
||||
<text>{{ brandList.list[selectedClinicIndex].name}}</text>
|
||||
<text>{{ ll}}</text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
@ -30,7 +30,7 @@
|
||||
<text class="clinic-select-label">预约类型</text>
|
||||
<picker mode="selector" :range="typenameList" @change="ontype">
|
||||
<view class="clinic-select-value">
|
||||
<text>{{ typeList[selecttypeIndex].label}}</text>
|
||||
<text>{{ gg }}</text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
@ -190,6 +190,8 @@
|
||||
selecttypeIndex: 0,
|
||||
techid: 0,
|
||||
type: 0,
|
||||
ll:'请选择',
|
||||
gg:'请选择'
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@ -210,14 +212,16 @@
|
||||
this.brandName = this.brandList.list[selectedClinicIndex].name
|
||||
this.brandId = this.brandList.list[selectedClinicIndex].id
|
||||
console.log("dddddddddddd")
|
||||
this.ll = this.brandList.list[selectedClinicIndex].name
|
||||
this.technicianList();
|
||||
},
|
||||
ontype(event) {
|
||||
const selecttypeIndex = event.detail.value;
|
||||
this.selecttypeIndex = selecttypeIndex;
|
||||
this.typename = this.typeList[selecttypeIndex].dictValue
|
||||
this.type = this.typeList[selecttypeIndex].dictValue
|
||||
console.log(this.selecttypeIndex)
|
||||
this.type = this.typeList[selecttypeIndex].value
|
||||
console.log(this.type,"this.type")
|
||||
this.gg = this.typeList[selecttypeIndex].label
|
||||
this.technicianList();
|
||||
},
|
||||
// 查询医馆列表
|
||||
@ -435,7 +439,7 @@
|
||||
this.memberId = computed(() => sheep.$store('user').userInfo).value.id
|
||||
if (!this.memberId) {
|
||||
if (sheep.$platform.name === 'WechatMiniProgram') {
|
||||
showAuthModal('wechatMiniLogin')
|
||||
// showAuthModal('wechatMiniLogin')
|
||||
return;
|
||||
}
|
||||
showAuthModal('accountLogin')
|
||||
@ -451,7 +455,7 @@
|
||||
sheep.$helper.toast('请选择预约时间段')
|
||||
} else if (this.memberId) {
|
||||
request({
|
||||
url: `${baseUrl}/app-api/h5/reservation`,
|
||||
url: `${baseUrl}/app-api/h5/reservation/add`,
|
||||
method: 'post',
|
||||
params: {
|
||||
type: this.type,
|
||||
@ -481,39 +485,7 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
// uni.request({
|
||||
// method: "post",
|
||||
// url: `${baseUrl}/app-api/h5/reservation`,
|
||||
// data: {
|
||||
// type: this.type,
|
||||
// brandId: this.brandId,
|
||||
// technicianId: this.techid,
|
||||
// reAddTime: this.addDate,
|
||||
// hsstr: this.hsstr,
|
||||
// userId: this.memberId,
|
||||
// },
|
||||
// success: (res) => {
|
||||
// uni.showModal({
|
||||
// title: '预约提示',
|
||||
// content: '预约成功!',
|
||||
// success: function(res) {
|
||||
// if (res.confirm) {
|
||||
// uni.switchTab({
|
||||
// url: '/pages/index/user'
|
||||
// });
|
||||
// } else {
|
||||
// uni.switchTab({
|
||||
// url: '/pages/index/user'
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
|
||||
// },
|
||||
// fail: (error) => {
|
||||
// console.log(error)
|
||||
// }
|
||||
// })
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -48,12 +48,10 @@
|
||||
<s-coupon-block v-if="type === 'CouponCard'" :data="data" :styles="styles" />
|
||||
<!-- 营销组件:文章 -->
|
||||
<!-- <s-richtext-block v-if="type === 'PromotionArticle'" :data="data" :styles="styles" /> -->
|
||||
<view class="floxt" v-if="type === 'PromotionArticle'" >
|
||||
<view class="floxt" v-if="type === 'PromotionArticle'">
|
||||
<view class="addClass" v-for="(item, index) in state.model" @click="path(item.id)">
|
||||
<view class="image">
|
||||
<image
|
||||
:src="item.picUrl"
|
||||
alt="" />
|
||||
<image :src="item.picUrl" alt="" />
|
||||
</view>
|
||||
<view class="text">
|
||||
<view class="top">
|
||||
@ -68,15 +66,12 @@
|
||||
|
||||
<!-- 用户组件:用户卡片 -->
|
||||
<s-user-card v-if="type === 'UserCard'" />
|
||||
<view v-if="type === 'UserOrder'" class="new-huiy"
|
||||
@click="
|
||||
<view v-if="type === 'UserOrder'" class="new-huiy" @click="
|
||||
sheep.$router.go('/pages/user/user_vip/index')
|
||||
"
|
||||
>
|
||||
">
|
||||
<view class="new-button">立即开通</view>
|
||||
<img class="seckill1" mode="aspectFit"
|
||||
src="https://zysc.fjptzykj.com:3000/shangcheng/64776e2edc3c2f15295e7c3976ba301e08f9170f99a2e845d8f33bd65179b177.png"
|
||||
/>
|
||||
<image class="seckill1" mode="aspectFit"
|
||||
src="https://zysc.fjptzykj.com:3000/shangcheng/64776e2edc3c2f15295e7c3976ba301e08f9170f99a2e845d8f33bd65179b177.png" />
|
||||
</view>
|
||||
<!-- 用户组件:用户订单 -->
|
||||
<s-order-card v-if="type === 'UserOrder'" :data="data" />
|
||||
@ -89,14 +84,21 @@
|
||||
|
||||
<script setup>
|
||||
import sheep from '@/sheep';
|
||||
import { ref, reactive, unref } from 'vue';
|
||||
import {
|
||||
ref,
|
||||
reactive,
|
||||
unref
|
||||
} from 'vue';
|
||||
import AddressApi from '@/sheep/api/member/address';
|
||||
const state = reactive({
|
||||
model: [],
|
||||
});
|
||||
|
||||
const ff = async (id) => {
|
||||
let { code, data } = await AddressApi.textList();
|
||||
let {
|
||||
code,
|
||||
data
|
||||
} = await AddressApi.textList();
|
||||
state.model = data;
|
||||
}
|
||||
|
||||
@ -125,35 +127,37 @@
|
||||
url: `/pages/mulu/mulu?id=${id}`
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
:deep(.uni-border-bottom){
|
||||
height:0;
|
||||
:deep(.uni-border-bottom) {
|
||||
height: 0;
|
||||
}
|
||||
.new-huiy{
|
||||
width:100%;
|
||||
height:100px;
|
||||
.new-button{
|
||||
background:white;
|
||||
padding:4px 8px;
|
||||
text-align:center;
|
||||
|
||||
.new-huiy {
|
||||
width: 100%;
|
||||
height: 89px;
|
||||
z-index: 9999999999999;
|
||||
|
||||
.new-button {
|
||||
background: white;
|
||||
padding: 4px 8px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
border-radius: 20px;
|
||||
right: 29px;
|
||||
top: 37px;
|
||||
font-size:14px;
|
||||
font-size: 14px;
|
||||
color: rgba(148, 109, 45, 1);
|
||||
z-index: 33;
|
||||
}
|
||||
.seckill1{
|
||||
|
||||
.seckill1 {
|
||||
height: 100px;
|
||||
position: absolute;
|
||||
top: -71px;
|
||||
z-index: 22;
|
||||
/* left: 50%; */
|
||||
/* transform: translateX(-50%); */
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 94%;
|
||||
}
|
||||
}
|
||||
@ -161,12 +165,14 @@
|
||||
|
||||
.floxt {
|
||||
width: 100%;
|
||||
|
||||
.addClass {
|
||||
background:white;
|
||||
background: white;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin:20rpx 0;
|
||||
margin: 20rpx 0;
|
||||
|
||||
// padding: 40rpx;
|
||||
// padding-right: 0;
|
||||
// height: 200rpx;
|
||||
@ -174,8 +180,9 @@
|
||||
width: 250rpx;
|
||||
height: 156rpx;
|
||||
margin-right: 18rpx;
|
||||
padding:20rpx 20rpx;
|
||||
image{
|
||||
padding: 20rpx 20rpx;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
@ -185,11 +192,12 @@
|
||||
display: flex;
|
||||
width: 100%;
|
||||
// text-align: center;
|
||||
padding:20rpx 20rpx;
|
||||
flex:1;
|
||||
padding: 20rpx 20rpx;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
.bottom{
|
||||
|
||||
.bottom {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
@ -614,7 +614,7 @@
|
||||
}
|
||||
|
||||
.price-unit {
|
||||
margin-right: -4px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
.sales-text {
|
||||
|
@ -64,7 +64,7 @@
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view v-if="'threeCol' === 'threeCol'" class="goods-sm-box ss-flex ss-flex-wrap"
|
||||
<view v-if="'threeCol' === 'threeCol'" class="goods-sm-box ss-flex ss-flex-wrap new-ll"
|
||||
:style="[{ margin: '-' + data.space + 'rpx' }]">
|
||||
<!-- productList -->
|
||||
<view v-for="product in productList" :key="product.id" class="goods-card-box" :style="[
|
||||
@ -225,7 +225,7 @@
|
||||
|
||||
.new-class {
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
border-radius: 13px;
|
||||
}
|
||||
|
||||
:deep(.sm-goods-card) {
|
||||
|
@ -1,18 +1,11 @@
|
||||
<!-- 装修基础组件:宫格导航 -->
|
||||
<template>
|
||||
<uni-grid :showBorder="Boolean(data.border)" :column="data.column">
|
||||
<uni-grid-item
|
||||
v-for="(item, index) in data.list"
|
||||
:key="index"
|
||||
@tap="sheep.$router.go(item.url)"
|
||||
>
|
||||
<uni-grid-item v-for="(item, index) in data.list" :key="index" @tap="sheep.$router.go(item.url)">
|
||||
<view class="grid-item-box ss-flex ss-flex-col ss-row-center ss-col-center">
|
||||
<view class="img-box">
|
||||
<view
|
||||
class="tag-box"
|
||||
v-if="item.badge.show"
|
||||
:style="[{ background: item.badge.bgColor, color: item.badge.textColor }]"
|
||||
>
|
||||
<view class="tag-box" v-if="item.badge.show"
|
||||
:style="[{ background: item.badge.bgColor, color: item.badge.textColor }]">
|
||||
{{ item.badge.text }}
|
||||
</view>
|
||||
<image class="menu-image" :src="sheep.$url.cdn(item.iconUrl)"></image>
|
||||
@ -37,7 +30,7 @@
|
||||
const props = defineProps({
|
||||
data: {
|
||||
type: Object,
|
||||
default() {},
|
||||
default () {},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
@ -47,15 +40,18 @@
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
// flex: 1;
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
// height: 100%;
|
||||
|
||||
.img-box {
|
||||
position: relative;
|
||||
|
||||
.tag-box {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
|
@ -32,7 +32,8 @@
|
||||
<style lang="scss" scoped>
|
||||
.notice-wrap {
|
||||
.icon-img {
|
||||
height: 56rpx;
|
||||
width: 80px !important;
|
||||
height: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!-- 装修用户组件:用户订单 -->
|
||||
<template>
|
||||
<view style="background:white;">
|
||||
<view style="background:white;border-radius: 9px;">
|
||||
<view class="title">
|
||||
<span>订单中心</span>
|
||||
<view class="ff">
|
||||
|
@ -34,12 +34,12 @@
|
||||
¥{{ fen2yuan(state.selectedSku.price || state.goodsInfo.price) }}
|
||||
</view>
|
||||
<!-- 秒杀价格标签 -->
|
||||
<view class="tig ss-flex ss-col-center">
|
||||
<!-- <view class="tig ss-flex ss-col-center">
|
||||
<view class="tig-icon ss-flex ss-col-center ss-row-center">
|
||||
<text class="cicon-alarm"></text>
|
||||
</view>
|
||||
<view class="tig-title">秒杀价</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 库存 -->
|
||||
<view class="stock-text ss-m-l-20">
|
||||
库存{{ state.selectedSku.stock || state.goodsInfo.stock }}件
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!-- 装修用户组件:用户卡片 -->
|
||||
<template>
|
||||
<view class="ss-user-info-wrap ss-p-t-50" style="z-index: 9999;margin-top: 23px;">
|
||||
<view class="ss-user-info-wrap ss-p-t-50" style="z-index: 9999;">
|
||||
<image class="seckill" src="@/static/images/seckilbg.png"></image>
|
||||
<view class="ss-flex ss-col-center ss-row-between ">
|
||||
<view class="left-box ss-flex ss-col-center ss-m-l-36">
|
||||
<view class="avatar-box ss-m-r-24">
|
||||
@ -179,4 +180,12 @@
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
.seckill {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
height:217px;
|
||||
z-index:0;
|
||||
}
|
||||
</style>
|
@ -1,6 +1,6 @@
|
||||
<!-- 装修用户组件:用户资产 -->
|
||||
<template>
|
||||
<view class="ss-wallet-menu-wrap ss-flex ss-col-center" style="z-index: 9999;">
|
||||
<view class="ss-wallet-menu-wrap ss-flex ss-col-center" style="z-index: 9999; margin-top: 17px;position: relative;">
|
||||
<view
|
||||
class="menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center"
|
||||
@tap="sheep.$router.go('/pages/user/wallet/money')"
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 82 KiB |
Loading…
Reference in New Issue
Block a user