...
 
Commits (3)
$app-main-color: #1FCA7C; $app-main-color: #1FCA7C;
// @font-face {
// font-family: "customicons";
// src: url('https://img.wucunfang.com/customicons.ttf') format('truetype');
// }
page { page {
height: 100%; height: 100%;
//font-family: "customicons", sans-serif;
} }
.container { .container {
...@@ -20,11 +24,16 @@ ...@@ -20,11 +24,16 @@
image { image {
box-sizing: content-box; /* padding border 等增加到宽高上 */ box-sizing: content-box; /* padding border 等增加到宽高上 */
} }
.full{
width: 100%;
height: 100%;
}
.flex { .flex {
display: flex; display: flex;
} }
.flex1 {
flex: 1;
}
.flex-wrap { .flex-wrap {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -51,14 +60,14 @@ ...@@ -51,14 +60,14 @@
justify-content: center; justify-content: center;
} }
// 纵轴 // 纵轴
.flex-column-center { .flex-column-center {
display: flex; display: flex;
flex-direction: column;
justify-content: center;
align-items: center; align-items: center;
} }
// 横轴 纵轴 // 横轴 纵轴
.flex-around-center{ .flex-around-center{
display: flex; display: flex;
...@@ -100,6 +109,10 @@ ...@@ -100,6 +109,10 @@
.h-#{$i} { .h-#{$i} {
height: $i + rpx; height: $i + rpx;
} }
.wh-#{$i} {
width: $i + rpx;
height: $i + rpx;
}
.lh-#{$i} { .lh-#{$i} {
line-height: $i + rpx; line-height: $i + rpx;
} }
...@@ -107,7 +120,7 @@ ...@@ -107,7 +120,7 @@
} }
// 字体大小 // 字体大小
@for $i from 10 through 60 { @for $i from 10 through 100 {
.fs-#{$i} { .fs-#{$i} {
font-size: $i + rpx; font-size: $i + rpx;
} }
...@@ -224,23 +237,41 @@ ...@@ -224,23 +237,41 @@
margin-right: 20rpx; margin-right: 20rpx;
text-align: center; text-align: center;
line-height: 90rpx; line-height: 90rpx;
background-color: #1FCA7C; background-color: #17191D;
border-radius: 12rpx; border-radius: 12rpx;
color: #FFFFFF; color: #FFFFFF;
} }
.full-btn { .full-btn {
height: 100rpx; height: 100rpx;
margin: 0 20rpx;
text-align: center; text-align: center;
line-height: 100rpx; line-height: 100rpx;
background-color: #EBF5F0; border:2rpx solid #17191D;
border-radius: 50rpx; border-radius: 16rpx;
color: #EEA616; color: #17191D;
}
.full-btn-bk {
height: 100rpx;
text-align: center;
line-height: 100rpx;
border-radius: 16rpx;
}
.bk-white {
border:2rpx solid white;
color: white;
}
.bk-black {
border:2rpx solid #333333;
color: #333333;
} }
.overflow-y { .overflow-y {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
} }
.text-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
button::after { button::after {
border: none; border: none;
......
...@@ -6,7 +6,6 @@ import config from "config" ...@@ -6,7 +6,6 @@ import config from "config"
* @param {Object} params * @param {Object} params
*/ */
function request(params) { function request(params) {
//console.log(params)
const token = uni.getStorageSync('token') const token = uni.getStorageSync('token')
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
try { try {
...@@ -18,6 +17,12 @@ function request(params) { ...@@ -18,6 +17,12 @@ function request(params) {
title: params.loadingTip title: params.loadingTip
}) })
} }
let header = {
"Authorization": token || '',
};
if (params.contentType == 1) {
header["Content-Type"] = "application/x-www-form-urlencoded";
}
uni.request({ uni.request({
...params, ...params,
header: { header: {
...@@ -29,11 +34,13 @@ function request(params) { ...@@ -29,11 +34,13 @@ function request(params) {
uni.hideLoading() uni.hideLoading()
} }
// 这里判断code为1,组件那边不需要再判断then回调就是成功 // 这里判断code为1,组件那边不需要再判断then回调就是成功
if (res.statusCode === 200 && res.data.code === 200) { console.log(res.data.code,'------------');
if (res.data.code === 200) {
resolve(res.data) resolve(res.data)
} else if (res.statusCode === 401 || res.data.code === 401) { // 未登录,或登录过期 } else if (res.data.code === 401) { // 未登录,或登录过期
toLogin() toLogin()
} else if (res.statusCode === 200 || res.data.code === 500) {
} else if (res.data.code === 500) {
this.$wskj.toast('接口异常') this.$wskj.toast('接口异常')
} else { } else {
reject(res.data || {}) reject(res.data || {})
...@@ -74,8 +81,8 @@ function toLogin() { ...@@ -74,8 +81,8 @@ function toLogin() {
success(res) { success(res) {
console.log(res) console.log(res)
if (res.confirm) { if (res.confirm) {
uni.redirectTo({ uni.navigateTo({
url: '/pages/login/wechatlogin' url: '/pages/wechatlogin'
}) })
} }
} }
......
...@@ -46,16 +46,16 @@ function uploadImg(imgurl) { ...@@ -46,16 +46,16 @@ function uploadImg(imgurl) {
const token = uni.getStorageSync('token') const token = uni.getStorageSync('token')
try { try {
uni.uploadFile({ uni.uploadFile({
url: config.domain + '/api/oss/upload', url: config.domain + '/xcx/common/upload',
header: { header: {
"Authorization": token "token": token
}, },
filePath: imgurl, filePath: imgurl,
name: 'file', name: 'file',
success: res => { success: res => {
const data = JSON.parse(res.data) const data = JSON.parse(res.data)
if (data.code === 200) { if (data.code === 200) {
resolve(data.data) resolve(data.url)
} else { } else {
reject(data) reject(data)
} }
......
<!-- components/CustomSwiper.vue -->
<template>
<view class="custom-swiper">
<!-- 自定义卡片轮播 -->
<swiper class="swiper-box" :style="{ height: imageHeight + 'rpx' }" :previous-margin="prevMargin"
:next-margin="nextMargin" :circular="circular" :autoplay="autoplay" :interval="interval"
:duration="duration" @change="handleChange" @touchstart="onTouchStart" @touchend="onTouchEnd">
<swiper-item class="swiper-item" v-for="(item, index) in list" :key="item.id || index" :style="{
width: imageWidth + 'rpx',
marginRight: '20rpx'
}">
<view class="swiper-card" :class="{'active': currentIndex === index}" :style="{
transform: currentIndex === index ? 'scale(1)' : 'scale(' + scaleRatio + ')',
zIndex: currentIndex === index ? 10 : 1
}" @click="handleCardClick(item)">
<view class="card-pic" :style="{
width: imageWidth + 'rpx',
height: imageHeight + 'rpx'
}">
<image :src="item.bannerImg" mode="aspectFill"></image>
</view>
</view>
</swiper-item>
<!-- 指示器 -->
<view class="indicator" v-if="showIndicator">
<view class="dot" :class="{ active: currentIndex === i }" v-for="(item, i) in list" :key="i"></view>
</view>
</swiper>
</view>
</template>
<script>
export default {
name: 'CustomSwiper',
props: {
// 轮播数据列表
list: {
type: Array,
default: () => []
},
// 左侧边距(rpx)
prevMargin: {
type: String,
default: '0rpx'
},
// 右侧边距(rpx)- 控制右侧显示范围
nextMargin: {
type: String,
default: '420rpx' // 增加右侧边距,抵消间距影响
},
// 非活动卡片缩放比例
scaleRatio: {
type: Number,
default: 0.85
},
// 是否循环轮播
circular: {
type: Boolean,
default: true
},
// 是否自动轮播
autoplay: {
type: Boolean,
default: true
},
// 轮播间隔时间(ms)
interval: {
type: Number,
default: 3000
},
// 轮播动画时长(ms)
duration: {
type: Number,
default: 500
},
// 是否显示指示器
showIndicator: {
type: Boolean,
default: true
},
// 初始索引
initialIndex: {
type: Number,
default: 0
},
// 图片高度(rpx)
imageHeight: {
type: Number,
default: 400
},
// 图片宽度(rpx)
imageWidth: {
type: Number,
default: 300
}
},
data() {
return {
currentIndex: this.initialIndex,
touchStartTime: 0,
isTransitioning: false
}
},
methods: {
// 处理轮播变化
handleChange(e) {
this.currentIndex = e.detail.current;
this.$emit('change', this.currentIndex);
},
// 触摸开始
onTouchStart(e) {
this.touchStartTime = Date.now();
this.isTransitioning = true;
},
// 触摸结束
onTouchEnd(e) {
const touchDuration = Date.now() - this.touchStartTime;
if (touchDuration < 300) {
this.handleCardClick(this.list[this.currentIndex]);
}
this.isTransitioning = false;
},
// 处理卡片点击
handleCardClick(item) {
this.$emit('click', item);
}
}
}
</script>
<style scoped>
.custom-swiper {
position: relative;
width: 100%;
box-sizing: border-box;
padding: 0;
}
.swiper-box {
overflow: visible;
position: relative;
}
.swiper-item {
display: flex;
justify-content: flex-start;
align-items: center;
padding: 0;
box-sizing: border-box;
/* 确保宽度计算包含间距 */
}
.swiper-card {
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
/* border-radius: 16rpx; */
overflow: hidden;
box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, 0.1);
width: 100%;
/* 卡片宽度占满swiper-item */
}
.swiper-card.active {
box-shadow: 0 15rpx 30rpx rgba(0, 0, 0, 0.15);
}
.card-pic {
overflow: hidden;
}
.card-pic image {
width: 100%;
height: 100%;
object-fit: cover;
}
.indicator {
position: absolute;
bottom: -50rpx;
left: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
}
.dot {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background-color: #ddd;
margin: 0 8rpx;
transition: all 0.3s;
}
.dot.active {
background-color: deeppink;
width: 36rpx;
border-radius: 6rpx;
}
</style>
\ No newline at end of file
<template> <template>
<view> <view>
<view class="mt-32 flex-between-center"> <view class="flex-between-center">
<view @click="onOpenStartTime" class="select-time"> <view @click="onOpenStartTime" class="select-time">
<text v-if="!startTimeValue">选择开始时间</text> <text v-if="!startTimeValue">选择开始时间</text>
<text v-else>{{ startTimeValue }}</text> <text v-else style="color: black;">{{ startTimeValue }}</text>
</view> </view>
<text class="fs-30" style="color: #999999;">-</text> <text class="fs-30" style="color: #999999;">-</text>
<view @click="onOpenEndTime" class="select-time"> <view @click="onOpenEndTime" class="select-time">
<text v-if="!endTimeValue">选择结束时间</text> <text v-if="!endTimeValue">选择结束时间</text>
<text v-else>{{ endTimeValue }}</text> <text v-else style="color: black;">{{ endTimeValue }}</text>
</view> </view>
</view> </view>
<!-- 选择开始时间 --> <!-- 选择开始时间 -->
<u-datetime-picker :show="startTimeShow" v-model="startTime" title="开始时间" mode="datetime" :formatter="formatter" <u-datetime-picker :show="startTimeShow" v-model="startTime" title="开始时间" mode="date" :formatter="formatter"
:closeOnClickOverlay="true" @confirm="onConfirmStartTime" :closeOnClickOverlay="true" @confirm="onConfirmStartTime" @close="startTimeShow = false"
@close="startTimeShow = false"></u-datetime-picker> @cancel="startTimeShow = false"></u-datetime-picker>
<!-- 选择结束时间 --> <!-- 选择结束时间 -->
<u-datetime-picker :show="endTimeShow" v-model="endTime" title="结束时间" mode="datetime" :formatter="formatter" <u-datetime-picker :show="endTimeShow" v-model="endTime" title="结束时间" mode="date" :formatter="formatter"
:closeOnClickOverlay="true" @confirm="onConfirmEndTime" @close="endTimeShow = false"></u-datetime-picker> :closeOnClickOverlay="true" @confirm="onConfirmEndTime" @close="endTimeShow = false"
@cancel="endTimeShow = false"></u-datetime-picker>
</view> </view>
</template> </template>
...@@ -31,7 +32,9 @@ ...@@ -31,7 +32,9 @@
startTime: new Date().getTime(), startTime: new Date().getTime(),
endTimeShow: false, endTimeShow: false,
endTime: new Date().getTime(), endTime: new Date().getTime(),
endTimeValue: '' endTimeValue: '',
startTimeNumber: 0,
endTimeNumber: 0,
} }
}, },
methods: { methods: {
...@@ -57,17 +60,28 @@ ...@@ -57,17 +60,28 @@
this.startTimeShow = true this.startTimeShow = true
}, },
onOpenEndTime() { onOpenEndTime() {
if (this.startTimeValue == '') {
this.$wskj.toast('请先选择开始时间')
return
}
this.endTimeShow = true this.endTimeShow = true
}, },
onConfirmStartTime(e) { onConfirmStartTime(e) {
// console.log(e) console.log(e)
this.startTimeNumber = e.value
this.startTimeShow = false this.startTimeShow = false
this.startTimeValue = this.$wskj.timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss') this.startTimeValue = this.$wskj.timeFormat(e.value, 'yyyy-mm-dd')
this.$emit('onConfirmStartTime', this.startTimeValue) this.$emit('onConfirmStartTime', this.startTimeValue)
}, },
onConfirmEndTime(e) { onConfirmEndTime(e) {
console.log(e)
this.endTimeNumber = e.value
if (this.startTimeNumber > this.endTimeNumber) {
this.$wskj.toast('结束时间必须大于开始时间')
return
}
this.endTimeShow = false this.endTimeShow = false
this.endTimeValue = this.$wskj.timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss') this.endTimeValue = this.$wskj.timeFormat(e.value, 'yyyy-mm-dd')
this.$emit('onConfirmEndTime', this.endTimeValue) this.$emit('onConfirmEndTime', this.endTimeValue)
}, },
} }
...@@ -76,11 +90,10 @@ ...@@ -76,11 +90,10 @@
<style scoped> <style scoped>
.select-time { .select-time {
width: 322rpx; width: 300rpx;
height: 84rpx; height: 84rpx;
text-align: center; text-align: center;
line-height: 84rpx; line-height: 84rpx;
background: #f7f7f7;
border-radius: 5px; border-radius: 5px;
font-size: 30rpx; font-size: 30rpx;
color: #999999; color: #999999;
......
...@@ -4,10 +4,9 @@ ...@@ -4,10 +4,9 @@
<view class="modal-content"> <view class="modal-content">
<slot></slot> <slot></slot>
</view> </view>
<!-- <view @click="$emit('close')" class="close">
<view @click="$emit('close')" class="close">
<image src="/static/close.png"></image> <image src="/static/close.png"></image>
</view> </view> -->
</view> </view>
</u-overlay> </u-overlay>
</template> </template>
......
export default { export default {
domain: 'http://192.168.0.160:8086', // 项目域名 domain: 'http://zz.xnszz.com/prod-api', // 项目域名
// domain: 'http://192.168.1.206:9900', // 项目域名
cdnUrl: '', // 云储蓄静态资源图片域名 cdnUrl: '', // 云储蓄静态资源图片域名
amapKey: '', // 高德web服务key amapKey: '', // 高德web服务key
socketUrl: '' // websocket地址 socketUrl: '' // websocket地址
......
{ {
"name": "basis-template", "name" : "小神仙妆造预约",
"appid": "__UNI__7B80478", "appid" : "__UNI__B1817BB",
"description": "", "description" : "",
"versionName": "1.0.0", "versionName" : "1.0.0",
"versionCode": "100", "versionCode" : "100",
"transformPx": false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus": { "app-plus" : {
"usingComponents": true, "usingComponents" : true,
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
/* 模块配置 */ /* 模块配置 */
"modules": {}, "modules" : {},
/* 应用发布信息 */ /* 应用发布信息 */
"distribute": { "distribute" : {
/* android打包配置 */ /* android打包配置 */
"android": { "android" : {
"permissions": [ "permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
...@@ -41,38 +41,38 @@ ...@@ -41,38 +41,38 @@
] ]
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios": {}, "ios" : {},
/* SDK配置 */ /* SDK配置 */
"sdkConfigs": {} "sdkConfigs" : {}
} }
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
"quickapp": {}, "quickapp" : {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin": { "mp-weixin" : {
"appid": "wxa54fb690ac0a3f64", "appid" : "wx26941232c2e26343",
"setting": { "setting" : {
"urlCheck": false "urlCheck" : false
}, },
"usingComponents": true, "usingComponents" : true
"requiredPrivateInfos": ["getLocation", "chooseLocation"],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置定位"
}
}
}, },
"mp-alipay": { // "requiredPrivateInfos": ["getLocation", "chooseLocation"],
"usingComponents": true // "permission": {
// "scope.userLocation": {
// "desc": "你的位置信息将用于小程序位置定位"
// }
// }
"mp-alipay" : {
"usingComponents" : true
}, },
"mp-baidu": { "mp-baidu" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-toutiao": { "mp-toutiao" : {
"usingComponents": true "usingComponents" : true
}, },
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
}, },
"vueVersion": "2" "vueVersion" : "2"
} }
...@@ -4,9 +4,9 @@ export default { ...@@ -4,9 +4,9 @@ export default {
return { return {
// 默认的全局分享内容 // 默认的全局分享内容
share: { share: {
title: '分享标题', title: '小神仙妆造预约',
path: '/pages/global', // 全局分享的路径 path: '', // 全局分享的路径 留空则默认截取当前页面
imageUrl: 'https://sbc.itanzhu.com/uploads/logo.png', // 全局分享的图片(可本地可网络) imageUrl: '', // 全局分享的图片(可本地可网络) 留空则默认截取当前页面
} }
} }
}, },
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
const userInfo = uni.getStorageSync('userInfo') const userInfo = uni.getStorageSync('userInfo')
return { return {
title: this.share.title, title: this.share.title,
path: this.share.path + '?userId=' + userInfo.userid, path: this.share.path,
imageUrl: this.share.imageUrl, imageUrl: this.share.imageUrl,
} }
}, },
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
const userInfo = uni.getStorageSync('userInfo') const userInfo = uni.getStorageSync('userInfo')
return { return {
title: this.share.title, title: this.share.title,
path: this.share.path + '?userId=' + userInfo.userid, path: this.share.path,
imageUrl: this.share.imageUrl, imageUrl: this.share.imageUrl,
} }
}, },
......
{ {
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages "pages": [
// {
// "path": "pages/cd",
// "style": {
// "navigationBarTitleText": "测试"
// }
// },
{ {
"path": "pages/login/wechatlogin", "path": "pages/homeOne",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"disableScroll": true
} }
}, },
{ {
"path": "pages/xieyi", "path": "pages/homeTwo",
"style": { "style": {
"navigationBarTitleText": "协议" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/my/feedback", "path": "pages/homeThree",
"style": { "style": {
"navigationBarTitleText": "协议" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/wy-home", "path": "pages/homeFour",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/wy-bmfw", "path": "pages/xieyi",
"style": { "style": {
"navigationStyle": "custom" "navigationBarTitleText": "关于我们"
} }
}, },
{ {
"path": "pages/wy-mine", "path": "pages/wechatlogin",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} },
{
], "path": "pages/yuyue",
"subPackages": [{
"root": "pagesMain",
"pages": [{
"path": "pages/fkdj",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/shjf", "path": "pages/order",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/bxbs", "path": "pages/photoDetails",
"style": { "style": {
"navigationBarTitleText": "报修报事" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/bxbs_submit", "path": "pages/shop",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, }
{
"path": "pages/bxbs_lsgd", ],
"subPackages": [{
"root": "pagesMain",
"pages": [{
"path": "pages/lb_kc",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/tjsq", "path": "pages/lb_hd",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/bxxq", "path": "pages/lb_ybj",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, }, {
{ "path": "pages/lb_sryy",
"path": "pages/fwgz",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/cydh", "path": "pages/hdzx_xq",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/tsby", "path": "pages/hdzx_bm",
"style": { "style": {
"navigationBarTitleText": "投诉表扬" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/tsby_submit", "path": "pages/kczx",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/tsby_xq", "path": "pages/kczx_xq",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/tsby_lsgd", "path": "pages/kczx_bm",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/jnzd", "path": "pages/qbhx",
"style": { "style": {
"navigationBarTitleText": "缴纳账单" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/jnzd_czf", "path": "pages/yy_kt",
"style": { "style": {
"navigationBarTitleText": "缴纳账单" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/jnzd_tcf", "path": "pages/yy_kc",
"style": { "style": {
"navigationBarTitleText": "缴纳账单" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/jnzd_ccs", "path": "pages/yy_hd",
"style": { "style": {
"navigationBarTitleText": "缴纳账单" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/jnzd_qt", "path": "pages/yy_ybj",
"style": { "style": {
"navigationBarTitleText": "缴纳账单" "navigationStyle": "custom"
} }
}, }, {
{ "path": "pages/bt_cd",
"path": "pages/jnzd_wyf",
"style": { "style": {
"navigationBarTitleText": "缴纳账单" "navigationStyle": "custom"
} }
}, }, {
{ "path": "pages/bt_xd",
"path": "pages/jnzd_wyfmx",
"style": { "style": {
"navigationBarTitleText": "缴纳账单" "navigationStyle": "custom"
} }
}, }, {
{ "path": "pages/yy_cd",
"path": "pages/jnzd_tcfmx",
"style": { "style": {
"navigationBarTitleText": "缴纳账单" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/jfjl", "path": "pages/lb_qps",
"style": { "style": {
"navigationBarTitleText": "缴费记录" "navigationStyle": "custom"
}
} }
]
}, },
{ {
"root": "pagesMine", "path": "pages/lb_cs",
"pages": [{
"path": "pages/fwxx",
"style": { "style": {
"navigationBarTitleText": "房屋信息" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/wdfw", "path": "pages/yy_qps",
"style": { "style": {
"navigationBarTitleText": "我的房屋" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/zlbj", "path": "pages/yy_cs",
"style": { "style": {
"navigationBarTitleText": "资料编辑" "navigationStyle": "custom"
} }
}
]
}, },
{ {
"path": "pages/jtcy", "root": "pageswriteoff",
"pages": [
{
"path": "pages/hxd/hxd",
"style": { "style": {
"navigationBarTitleText": "家庭成员" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/yg_login", "path": "pages/writeoff/writeoff",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/ygzy", "path": "pages/hxRecord/hxRecord",
"style": { "style": {
"navigationBarTitleText": "员工入口" "navigationStyle": "custom"
}
} }
]
}, },
{ {
"path": "pages/dk_submit", "root": "pagesMine",
"pages": [{
"path": "pages/bmxx",
"style": { "style": {
"navigationBarTitleText": "打卡" "navigationStyle": "custom"
} }
}, }, {
{ "path": "pages/yyxx",
"path": "pages/dkjl",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, }, {
{ "path": "pages/setting",
"path": "pages/dkpz",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, }, {
{ "path": "pages/jfxx",
"path": "pages/wx_xq",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, }, {
{ "path": "pages/hyzd",
"path": "pages/wx_lsgd",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, {
"path": "pages/sbtdd",
"style": {
"navigationStyle": "custom"
} }
] }]
} }
], ],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app", "navigationBarTitleText": "小神仙妆造预约预约",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF",
"app-plus": { "app-plus": {
...@@ -257,25 +265,25 @@ ...@@ -257,25 +265,25 @@
}, },
/* 底部菜单 */ /* 底部菜单 */
"tabBar": { "tabBar": {
"color": "#BFBFBF", //菜单上的文字默认颜色 "color": "#999999", //菜单上的文字默认颜色
"selectedColor": "#1FCA7B", //菜单上的文字选中时的颜色 "selectedColor": "#333333", //菜单上的文字选中时的颜色
"borderStyle": "white", //菜单上边框的颜色,仅支持 black/white "backgroundColor": "#FFFFFF",
"list": [{ "list": [{
"pagePath": "pages/wy-home", //页面路径,必须在 pages 中先定义 "pagePath": "pages/homeOne", //页面路径,必须在 pages 中先定义
"iconPath": "static/tabbar/home.png", //建议尺寸为 81px * 81px "iconPath": "/static/tabbar/icon_tab_one.png", //建议尺寸为 81px * 81px
"selectedIconPath": "static/tabbar/homeHL.png", //建议尺寸为 81px * 81px "selectedIconPath": "static/tabbar/icon_tab_one_s.png", //建议尺寸为 81px * 81px
"text": "首页" //菜单上按钮文字,在 5+APP 和 H5 平台为非必填。例如中间可放一个没有文字的+号图标 "text": "首页" //菜单上按钮文字,在 5+APP 和 H5 平台为非必填。例如中间可放一个没有文字的+号图标
}, },
{ {
"pagePath": "pages/wy-bmfw", "pagePath": "pages/homeTwo",
"iconPath": "static/tabbar/bmfw.png", "iconPath": "/static/tabbar/icon_tab_two.png",
"selectedIconPath": "static/tabbar/bmfwHL.png", "selectedIconPath": "/static/tabbar/icon_tab_two_s.png",
"text": "便民服务" "text": "客片展示"
}, },
{ {
"pagePath": "pages/wy-mine", "pagePath": "pages/homeThree",
"iconPath": "static/tabbar/my.png", "iconPath": "/static/tabbar/icon_tab_three.png",
"selectedIconPath": "static/tabbar/myHL.png", "selectedIconPath": "/static/tabbar/icon_tab_three_s.png",
"text": "个人中心" "text": "个人中心"
} }
] ]
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<template>
<view class='container'>
<view class="wapper">
<view class="left-box">
<view class="left">
<scroll-view scroll-y style="height: 100%;">
<view v-for="(item, index) in 8" :key="index" @click="onClickLeftIfy(index)" :class="{'active': currentIfy === index}" class="left-item">
<text>分类</text>
</view>
</scroll-view>
</view>
</view>
<!-- 一级分类 -->
<view v-if="true" class="right-box">
<view id="right" class="right">
<scroll-view scroll-y class="children-scroll" @scrolltolower="scrolltolower">
<view class="goods-box-yiji">
<view
@click="$wskj.to('/pages/home/twolevelclassify?pid=' + item.id)"
class="good-item-yiji"
v-for="(item, index) in 20"
:key="index"
>
<image src="@/static/logo.png"></image>
<view style="flex:1;" class="fs-28 ptb-10 flex flex-column flex-row-between">
<text>男士多口袋后宫嘻哈流行裤长裤街头服装运动裤休闲</text>
<view class="flex-between-center">
<view class="flex-column-center">
<text style="color: #FE2C24;" class="fs-36"><text class="fs-24">¥</text>200</text>
<text class="fs-24 ml-15" style="text-decoration: line-through;color: #999999;">¥180</text>
</view>
<text class="fs-24" style="color: #999999;">销量:200</text>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
</view>
<!-- 二级分类 -->
<view v-if="false" class="right-box">
<view id="right" class="right">
<scroll-view scroll-y class="children-scroll" @scrolltolower="scrolltolower">
<view class="goods-box">
<view
@click="$wskj.to('/pages/home/twolevelclassify?pid=' + item.id)"
class="good-item"
v-for="(item, index) in 20"
:key="index"
:style="{'margin-right': (index + 1) % 3 === 0? '0' : '20rpx'}"
>
<image src="@/static/logo.png"></image>
<view class="center fs-28" style="color: #666;">
<text>二级</text>
</view>
</view>
</view>
</scroll-view>
</view>
</view>
<!-- 三级分类 -->
<view v-if="false" class="right-box">
<view id="right" class="right">
<scroll-view scroll-y class="children-scroll" @scrolltolower="scrolltolower">
<view v-for="(item, index) in 3" class="goods-box-sanji">
<view class="mb-24 flex flex-column-center fw-600">
<text>二级分类名称</text>
<image class="ml-8 w-24 h-24" src="@/static/right.png"></image>
</view>
<view class="sanji-box">
<view
@click="$wskj.to('/pages/home/twolevelclassify?pid=' + item.id)"
class="good-item"
v-for="(item, index) in 10"
:key="index"
:style="{'margin-right': (index + 1) % 3 === 0? '0' : '20rpx'}"
>
<image src="@/static/logo.png"></image>
<view class="center fs-24" style="color: #999999;">
<text>三级</text>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
</view>
</template>
<script>
import {
mapState
} from "vuex"
export default {
data() {
return {
classIfyList: [],
cartLen: 0,
currentIfy: 0,
currentPid: '',
secondClassIfyList: [],
currentPage: 1,
isEmpty: false
};
},
onLoad() {
},
computed:{
...mapState(['cart'])
},
// 监听切换上级门店或返回我的门店重新获取数据
onShow(){
this.currentIfy = 0
this.currentPid = ''
this.secondClassIfyList = []
this.currentPage = 1
this.isEmpty = false
this.getClassIfy()
this.getCartList()
},
methods: {
getClassIfy(){
const params = {
url: '/api/index/getcatelist',
data: {
pid: 'all'
}
}
this.$request(params).then(res => {
// console.log(res)
this.classIfyList = res.data.catelist
this.currentPid = this.classIfyList[0].id
this.getSecondClassIfyList()
}).catch(err => {
})
},
// 获取二级分类列表
getSecondClassIfyList(){
const params = {
url: '/api/index/getcatelist',
data: {
pid: this.currentPid, // 一级分类的ID
page: this.currentPage,
// pid: 'all'
}
}
this.$request(params).then(res => {
// console.log(res)
this.secondClassIfyList = this.secondClassIfyList.concat(res.data.ercate)
if(res.data.ercate.length === 0) {
this.isEmpty = false
}
}).catch(err => {
})
},
getCartList(){
const params = {
url: '/api/userinfo/carlist',
data: {
page: 1
}
}
this.$request(params).then(res => {
this.cartLen = res.data.list.length
}).catch(err => {
})
},
scrolltolower(){
if(!this.isEmpty) {
this.currentPage += 1
this.getSecondClassIfyList()
}
},
// 点击左侧分类
onClickLeftIfy(index){
// console.log(index)
this.currentIfy = index
this.currentPid = this.classIfyList[index].id
this.secondClassIfyList = []
this.currentPage = 1
this.isEmpty = false
this.getSecondClassIfyList()
},
toCart(){
uni.switchTab({
url: '/pages/cart'
})
}
},
};
</script>
<style scoped>
.container {
height: 100%;
padding: 0 0;
}
.wapper {
height: 100%;
display: flex;
justify-content: space-between;
}
.left-box {
width: 180rpx;
}
.left {
width: 100%;
height: 100%;
background-color: #F7F8FA;
}
.left-item {
width: 100%;
height: 100rpx;
display: flex;
justify-content: center;
align-items: center;
background-color: #F5F5F5;
color: #000000;
word-break: break-all;
word-wrap: break-word;
position: relative;
}
.active {
color: #FF0000;
font-weight: 600;
background-color: #FFF;
position: relative;
}
.active::before {
content: '';
background-color: #FF0000;
width: 6rpx;
height: 48rpx;
border-radius: 4rpx;
position: absolute;
left: 0;
}
.right-box {
width: calc(100% - 180rpx);
height: calc(100% - 24rpx);
background-color: #FFF;
padding: 24rpx 24rpx 0;
}
.right {
width: 100%;
height: 100%
}
.right-item {
height: 100%;
padding: 0 20rpx;
background-color: #FFF;
}
.children-scroll {
height: 100%;
}
.goods-box {
display: flex;
flex-wrap: wrap;
align-content : flex-start;
}
.good-item {
width: calc((100% - 40rpx) / 3);
text-align: center;
margin-bottom: 24rpx;
font-size: 28rpx;
}
.good-item > image {
width: 100%;
height: 160rpx;
margin-bottom: 8rpx;
border-radius: 16rpx;
}
/* 一级分类 */
.good-item-yiji:first-child {
padding-top: 0;
}
.good-item-yiji {
display: flex;
/* margin-bottom: 24rpx; */
padding: 24rpx 0;
border-bottom: 2rpx solid #F5F5F5;
}
.good-item-yiji > image {
width: 160rpx;
height: 160rpx;
border-radius: 10rpx;
margin-right: 20rpx;
}
/* 三级分类 */
.goods-box-sanji {
margin-bottom: 48rpx;
}
.sanji-box {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
}
</style>
<template>
<view class="container">
<view class="item">
<view class="title">
日期时间段选择
</view>
<dateTimeQuantum
@onConfirmStartTime="onConfirmStartTime"
@onConfirmEndTime="onConfirmEndTime"
></dateTimeQuantum>
</view>
<view class="item">
<view class="title">
下拉选择
</view>
<drapdown
:tabList="tabList"
:activeStyle="{'color': '#3c9cff'}"
:inactiveStyle="{'color': '#000'}"
@click="onSelect"
></drapdown>
</view>
<view class="item">
<view class="title">
<text>图片选择</text>
</view>
<view>
<upload-image
v-model="images"
maxCount="3"
width="100"
height="100"
type="fullurl"
></upload-image>
<button @click="submit">提交</button>
</view>
</view>
<view class="item">
<view @click="show = true" class="title">
<text>打开带关闭按钮的弹窗组件</text>
</view>
<wskj-model-close :show="show" @close="show = false">
<view>123</view>
</wskj-model-close>
</view>
<view class="item">
<view @click="showAddressSelector = true" class="title">
打开地址选择(使用后端数据)
</view>
<addressModal v-if="showAddressSelector" :areaInfoSelected="areaInfoObj" @cancel="showAddressSelector = false"
@confirm="handleConfirm">
</addressModal>
</view>
<view class="item">
<view @click="selectAddressShow = true" class="title">
打开地址选择(使用前端自定义数据)
</view>
<address-picker :show="selectAddressShow" @confirm="onConfirmAddress" @close="selectAddressShow = false" @cancel="selectAddressShow = false" :closeOnClickOverlay="true" confirmText="确定"></address-picker>
</view>
</view>
</template>
<script>
import dateTimeQuantum from "@/components/dateTimeQuantum"
import drapdown from "@/components/drapdown"
import addressModal from '@/components/address-modal.vue';
export default {
data() {
return {
show: false,
images: '',
tabList:[{
label: '选项一',
children: [
{
label: '111'
}
]
},
{
label: '选项二',
children: [
{
label: '222'
}
]
},
{
label: '选项三',
children: [
{
label: '333'
}
]
}],
showAddressSelector: false,
areaInfoObj: {
provinceObj: {
id: '',
name: '',
},
cityObj: {
id: '',
name: '',
},
cityObj: {
id: '',
name: '',
},
areaObj: {
id: '',
name: '',
}
},
selectAddressShow: false,
}
},
components:{
dateTimeQuantum,
drapdown,
addressModal
},
onLoad() {
this.images = this.$config.domain + '/assets/img/qrcode.png'
},
methods: {
onConfirmStartTime(e){
console.log(e)
},
onConfirmEndTime(e){
console.log(e)
},
submit(){
console.log(this.images)
},
handleConfirm(areaInfoObj) {
console.log(areaInfoObj)
this.showAddressSelector = false;
},
onConfirmAddress(e){
// console.log(e)
this.selectAddressShow = false
},
onSelect(item, index){
uni.showModal({
content: '点击了:' + JSON.stringify(item) + '第' + index + '个'
})
}
}
}
</script>
<style scoped>
.container {
height: 100%;
padding: 24rpx 24rpx;
}
.item {
margin-bottom: 60rpx;
}
.title {
font-weight: 600;
}
</style>
\ No newline at end of file
pages/copy.png

869 Bytes

<template>
<view class='page'>
<view class='top'>
<u-navbar :placeholder="true" bgColor="#fdb62a">
<view slot="left" class="flex align-center">
<u-icon name="map-fill" color="#000" size="19"></u-icon>
<text class="fs-30 u-line-1" style="margin:0 5rpx;width: 100rpx;">北京</text>
</view>
<view slot="center">
<u--text text="首页" size="20"></u--text>
</view>
<view slot="right"
style="position: relative;width: 60rpx;height: 60rpx;display: flex;justify-content: center;">
<u-icon name="/static/home/icon_home_xx.png" size="25"></u-icon>
<u-badge max="99" :absolute="true" :offset="[0,0]" :value="1"></u-badge>
</view>
</u-navbar>
</view>
<view class='top-search'>
<u-search placeholder="搜索" :showAction="false" :disabled='true' bgColor="#fff" height="45"></u-search>
</view>
<scroll-view scroll-y="true" class="scroll-Y">
<view style="margin: 20rpx;">
<u-swiper :list="swiperList" height="146"></u-swiper>
</view>
<!-- 厂家入选区 -->
<view class="cjq">
<u-cell size="large" title="厂家入选区" value="查看全部" isLink :border="false"></u-cell>
<view style="padding:0 20rpx 20rpx 20rpx;">
<u-grid :border="false" col="3">
<u-grid-item v-for="(listItem,listIndex) in cqList" :key="listIndex">
<view class="cj">
<image
style="width: 100%; height: 110px;background-color: aqua;border-radius:10rpx 10rpx 0 0;"
:src="listItem.url"></image>
<view style="padding: 10rpx;">
<u--text :text="listItem.title" size="12" color="#000000" lines="2"></u--text>
<view style="display: flex;">
<u--text mode="price" :text="listItem.price" size="14"
color="#FE2C24"></u--text>
<u--text mode="price" :text="listItem.oldPrice" size="12" color="#999999"
decoration="line-through"></u--text>
</view>
</view>
</view>
</u-grid-item>
</u-grid>
</view>
</view>
<!-- 医院专区 -->
<view class="cjq">
<u-cell size="large" title="医院专区" value="查看全部" isLink :border="false"></u-cell>
<view style="padding:0 20rpx 20rpx 20rpx;">
<u-grid :border="false" col="3">
<u-grid-item v-for="(listItem,listIndex) in cqList" :key="listIndex">
<view class="cj">
<image
style="width: 100%; height: 110px;background-color: aqua;border-radius:10rpx 10rpx 0 0;"
:src="listItem.url"></image>
<view style="padding: 10rpx;">
<u--text :text="listItem.title" size="12" color="#000000" lines="2"></u--text>
<view style="display: flex;">
<u--text mode="price" :text="listItem.price" size="14"
color="#FE2C24"></u--text>
<u--text mode="price" :text="listItem.oldPrice" size="12" color="#999999"
decoration="line-through"></u--text>
</view>
</view>
</view>
</u-grid-item>
</u-grid>
</view>
</view>
<!-- 筛选 -->
<view style="display: flex;padding:20rpx 0;" class="flex-between-center">
<view style="display: flex;flex: 1; justify-content: center;align-items: center;">
<u-icon index="1" :labelColor="labelColorOne==true?'#FE2C24':'#000000'" size="14" label="综合排序"
labelPos="left" @click="clickOne"></u-icon>
</view>
<view style="display: flex;flex: 1; justify-content: center;">
<u-icon index="2" :name="iconTwo" width="8" :labelColor="labelColorTwo==true?'#FE2C24':'#000000'"
size="14" label="销量" labelPos="left" @click="clickTwo"></u-icon>
</view>
<view style="display: flex;flex: 1; justify-content: center;">
<u-icon index="3" :name="iconThree" width="8"
:labelColor="labelColorThree==true?'#FE2C24':'#000000'" size="14" label="价格" labelPos="left"
@click="clickThree"></u-icon>
</view>
</view>
<view>
<u-list @scrolltolower="scrolltolower" style="background-color:#f5f5f5;">
<u-list-item v-for="(item, index) in list" :key="index">
<view class="goods">
<u--image :src="item.url" width="100" height="100" radius="8"></u--image>
<view style="padding:0 10rpx;display: flex;flex-direction: column;">
<u--text :text="item.title" size="12" color="#000000" lines="2"
style="align-items: baseline;"></u--text>
<text
style="font-size: 20rpx;color: #999999;margin-bottom: 10rpx;">销量:{{item.price}}</text>
<view style="display: flex;">
<u--text style="flex: 0;" mode="price" :text="item.price" size="14"
color="#FE2C24"></u--text>
<u--text style="flex: 0;" mode="price" :text="item.oldPrice" size="12"
color="#999999" decoration="line-through"></u--text>
</view>
</view>
</view>
</u-list-item>
</u-list>
</view>
</scroll-view>
</view>
</template>
<script>
export default {
data() {
return {
labelColorOne: true,
labelColorTwo: false,
labelColorThree: false,
iconTwo: '/static/icon_sx_cg.png',
iconThree: '/static/icon_sx_cg.png',
swiperList: [
'https://cdn.uviewui.com/uview/swiper/swiper1.png',
'https://cdn.uviewui.com/uview/swiper/swiper2.png',
'https://cdn.uviewui.com/uview/swiper/swiper3.png',
],
cqList: [{
price: '100',
oldPrice: '200',
url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
title: '创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌'
},
{
price: '100',
oldPrice: '200',
url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
title: '创意桌面石狮子一对茶桌'
},
{
price: '100',
oldPrice: '200',
url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
title: '创意桌面石狮子一对茶桌'
}
],
list: [{
price: '100',
oldPrice: '200',
url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
title: '创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌'
},
{
price: '100',
oldPrice: '200',
url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
title: '创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌'
},
{
price: '100',
oldPrice: '200',
url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
title: '创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌'
},
{
price: '100',
oldPrice: '200',
url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
title: '创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌'
},
{
price: '100',
oldPrice: '200',
url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
title: '创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌创意桌面石狮子一对茶桌'
},
]
};
},
onLoad() {
},
methods: {
clickOne(e) {
//console.log()
this.labelColorOne = true
this.labelColorTwo = false
this.labelColorThree = false
this.iconTwo = '/static/icon_sx_cg.png'
this.iconThree = '/static/icon_sx_cg.png'
},
clickTwo(e) {
this.labelColorOne = false
this.labelColorTwo = true
this.labelColorThree = false
this.iconThree = '/static/icon_sx_cg.png'
if (this.iconTwo == '/static/icon_sx_x.png') {
this.iconTwo = '/static/icon_sx_s.png'
} else {
this.iconTwo = '/static/icon_sx_x.png'
}
},
clickThree(e) {
this.labelColorOne = false
this.labelColorTwo = false
this.labelColorThree = true
this.iconTwo = '/static/icon_sx_cg.png'
if (this.iconThree == '/static/icon_sx_x.png') {
this.iconThree = '/static/icon_sx_s.png'
} else {
this.iconThree = '/static/icon_sx_x.png'
}
}
},
};
</script>
<style scoped>
.page {
width: 100%;
height: 100%;
background: #f5f5f5;
background-color: ;
}
.top {
background-color: #fdb62a;
height: 245rpx;
}
.top-search {
margin-top: -40rpx;
margin-left: 20rpx;
margin-right: 20rpx;
}
.cjq {
height: 240px;
background: linear-gradient(180deg, #ffffff, #ffffff 19%, #f5f5f5);
border-radius: 22px 22px 0px 0px;
}
.cj {
background: #ffffff;
border-radius: 8px;
margin: 0 10rpx;
}
.goods {
background: #ffffff;
border-radius: 15px;
margin: 10rpx;
display: flex;
padding: 20rpx;
}
</style>
\ No newline at end of file
<template>
<view class="list">
<comment></comment>
</view>
</template>
<script>
export default {
data() {
return {
score: '',
goodsId: '',
commentList: [],
currentPage: 1,
isEmpty: false,
};
},
onLoad(options) {
this.goodsId = options.goodsId
this.score = options.score
// this.getCommentList()
},
methods: {
// 获取评价列表
getCommentList() {
const params = {
url: '/api/order/comment_list',
data: {
page: this.currentPage,
goods_id: this.goodsId
}
}
this.$request(params).then(res => {
// console.log(res)
this.commentList = this.commentList.concat(res.data.data)
if (this.commentList.length >= res.data.total) {
this.isEmpty = true
}
}).catch(err => {
})
},
scrolltolower(e) {
if (!this.isEmpty) {
this.currentPage += 1
this.getCommentList()
}
},
onPreviewImage(imgList, index) {
let imgData = []
imgList.map(item => {
imgData.push(this.$config.domain + item)
})
uni.previewImage({
current: index,
urls: imgData
})
}
},
};
</script>
<style scoped>
.list {
padding: 20rpx;
}
</style>
\ No newline at end of file
<template>
<view class='container'>
<view class="list">
<view @click="$wskj.to('/pages/home/msg/systemmsg')" class="item">
<view class="left">
<image src="@/static/home/system.svg"></image>
<view>
<text class="fs-36">系统消息</text>
</view>
</view>
<view class="right">
<view class="dot">
<text>9</text>
</view>
<image src="@/static/right.png"></image>
</view>
</view>
</view>
</view>
</template>
<script>
import { mapState } from "vuex"
export default {
data() {
return {
tongzhi: {},
sysmnews: {}
};
},
onLoad() {
this.getnewslist()
},
computed: {
...mapState(['home'])
},
methods: {
getnewslist(){
const params = {
url: '/api/index/newslist',
data: {
}
}
this.$request(params).then(res => {
// console.log(res)
this.tongzhi = res.data.tongzhi
this.sysmnews = res.data.sysmnews
}).catch(err => {
})
},
},
};
</script>
<style scoped>
.list {
}
.item {
padding: 30rpx;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2rpx solid #f5f5f5;
}
.left {
display: flex;
align-items: center;
}
.left > image {
width: 88rpx;
height: 88rpx;
margin-right: 20rpx;
}
.left > view {
display: flex;
flex-direction: column;
}
.left > view>text:nth-child(2) {
margin-top: 10rpx;
}
.right {
display: flex;
align-items: center;
}
.dot {
padding: 5rpx 10rpx;
background-color: #FE2C24;
border-radius: 50%;
color: #FFF;
font-size: 16rpx;
}
.right > image {
width: 24rpx;
height: 24rpx;
margin-left: 10rpx;
}
</style>
<template>
<view class='container'>
<view class="wapper">
<scroll-view style="height: 100%;" scroll-y @scrolltolower="scrolltolower">
<view class="msg-list">
<view @click="$wskj.to('/pages/home/msg/systemmsgdetails?msgId=' + item.id)" v-for="(item, index) in 2" :key="index" class="item">
<image src="@/static/logo.png"></image>
<view class="bottom">
<text class="fs-36 fw-600">标题</text>
<text class="fs-28 mt-30" style="color: #999;">描述</text>
</view>
</view>
</view>
</scroll-view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
currentPage: 1,
msgList: [],
isEmpty: false
};
},
onLoad() {
this.getMsgList()
},
methods: {
getMsgList(){
const params = {
url: '/api/index/newslist',
data: {
page: this.currentPage
}
}
this.$request(params).then(res => {
// console.log(res)
this.msgList = this.msgList.concat(res.data)
if(res.data.length === 0) {
this.isEmpty = true
}
}).catch(err => {
})
},
scrolltolower(){
if(!this.isEmpty) {
this.currentPage += 1
this.getMsgList()
}
}
},
};
</script>
<style scoped>
.container {
height: 100%;
}
.wapper {
padding: 40rpx 40rpx;
height: 100%;
background-color: #F5F5F5;
}
.msg-list {
height: 100%;
}
.item {
display: flex;
flex-direction: column;
margin-bottom: 40rpx;
background-color: #FFF;
border-radius: 20rpx;
}
.item:last-child {
margin-bottom: 0;
}
.item > image {
width: 100%;
height: 340rpx;
border-radius: 15rpx;
}
.bottom {
padding: 30rpx;
display: flex;
flex-direction: column;
}
.time {
text-align: center;
margin-top: 50rpx;
color: #999999;
font-size: 24rpx;
}
</style>
<template>
<view class='container'>
<view class="center mb-30 fw-600">
<text>标题</text>
</view>
<view class="bottom">
<view v-html="details.content"></view>
</view>
<view style="text-align: center;">
<image class="h-280" style="width: 100%;" src="@/static/logo.png"></image>
</view>
</view>
</template>
<script>
export default {
data() {
return {
msgId: '',
details: {}
};
},
onLoad(options) {
this.msgId = options.msgId
this.getMsgDetails()
},
methods: {
getMsgDetails(){
const params = {
url: '/api/index/newsdetail',
data: {
id: this.msgId
}
}
this.$request(params).then(res => {
// console.log(res)
this.details = res.data
}).catch(err => {
})
},
},
};
</script>
<style scoped>
.container {
height: 100%;
padding: 20rpx 20rpx;
}
.bottom {
margin-top: 30rpx;
line-height: 40rpx;
}
</style>
<template>
<view class="container">
<view class="search-box">
<u-search v-model="searchText" height="80rpx" shape="square" :showAction="false" bgColor="#F5F5F5" borderColor="#FFF" @change="onChange" @custom="onCustom"
placeholder="输入关键词" @search="onSearch"></u-search>
</view>
<!-- 搜索前 -->
<!-- v-if="!isSearch" -->
<view class="search-record">
<view class="title">
<text>搜索历史</text>
<image @click="delShow = true" src="@/static/home/del.png"></image>
</view>
<view class="tag-list">
<view @click="onSearchRecordClick(item)" v-for="(item, index) in 10" :key="index"
class="item">
<text>标签</text>
<image @click.stop="onDelOnly()" class="close" src="@/static/home/close.png"></image>
</view>
</view>
</view>
<!-- v-if="!isSearch" -->
<view class="recommend-box">
<view class="title">
<text>热门推荐</text>
</view>
<view class="recommend-list-box">
<view @click="onSearchRecordClick(item)" v-for="(item, index) in 5" :key="index"
class="item">
<text>热门推荐</text>
</view>
</view>
</view>
<!-- 搜索后的结果 -->
<!-- v-if="isSearch" -->
<view class="search-result">
<!-- 列表 -->
<view class="goods-list-box">
<!-- <scroll-view style="height: 100%;" scroll-y @scrolltolower="onScrolltolower">
<goodslist :goodsDataList="dataList"></goodslist>
</scroll-view> -->
<emptydata emptyText="没找到相关的商品,换个词儿试试?"></emptydata>
</view>
</view>
<!-- 清空弹窗 -->
<wskj-modal :show="delShow" :showCancelButton="true" confirmText="确定" confirmColor="#FE2C24"
@close="delShow = false" @confirm="onConfirmDelAll" @cancel="delShow = false">
<view style="padding: 40rpx 0;">
<view>
<text class="fs-28">确定删除全部历史记录?</text>
</view>
</view>
</wskj-modal>
<!-- 删除单个搜索记录弹窗 -->
<wskj-modal :show="delOnlyShow" :showCancelButton="true" confirmText="确定" confirmColor="#FE2C24"
@close="delOnlyShow = false" @confirm="onConfirmDelOnly"
@cancel="delOnlyShow = false">
<view style="padding: 40rpx 0;">
<view>
<text class="fs-28">确认要删除吗?</text>
</view>
</view>
</wskj-modal>
</view>
</template>
<script>
export default {
data() {
return {
searchText: '',
delShow: false,
isSearch: true, // 是否展示搜索结果
searchRecordList: [],
hotRecordList: [],
delOnlyShow: true,
currentTagId: '',
dataList: [],
currentPage: 1,
isEmpty: false
}
},
onLoad() {
// this.getSearchKeyResult()
},
methods: {
// 获取搜索记录 和 热门推荐
getSearchKeyResult() {
},
// 获取数据
getGoodsList() {
},
// 切换排序方式
onChangeSort(index) {
},
// 点击搜索记录标签
onSearchRecordClick(item) {
},
onChange(e) {
},
onSearch(e) {
},
onCustom(e) {
},
onScrolltolower() {
},
// 删除单个记录
onDelOnly(item) {
},
onConfirmDelOnly() {
},
// 确认删除所有搜索记录
onConfirmDelAll() {
}
}
}
</script>
<style scoped>
.container {
height: 100%;
background-color: #FFF;
padding: 20rpx;
}
.search-box {
height: 80rpx;
background-color: #FFF;
display: flex;
align-items: center;
}
.search-btn {
width: 140rpx;
height: 60rpx;
background: #FE2C24;
text-align: center;
border-radius: 8rpx;
line-height: 60rpx;
color: #FFF;
position: absolute;
top: 8rpx;
right: 8rpx;
}
.search-record {
background-color: #FFF;
padding: 20rpx 0;
border-top-left-radius: 30rpx;
border-top-right-radius: 30rpx;
}
.search-record>.title {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 32rpx;
font-weight: bold;
}
.search-record>.title>image {
width: 32rpx;
height: 32rpx;
}
.tag-list {
margin-top: 30rpx;
display: flex;
flex-wrap: wrap;
}
.tag-list>.item {
padding: 10rpx 35rpx;
font-size: 28rpx;
border-radius: 30rpx;
margin-right: 30rpx;
margin-bottom: 30rpx;
background-color: #F5F5F5;
color: #000;
position: relative;
}
.close {
width: 20rpx;
height: 20rpx;
position: absolute;
top: 20%;
right: 5rpx;
}
.recommend-box {
margin-top: 20rpx;
padding: 0 0;
}
.recommend-box>.title {
font-size: 32rpx;
font-weight: bold;
}
.recommend-list-box {
margin-top: 40rpx;
}
.recommend-list-box>.item {
margin-bottom: 30rpx;
font-weight: 400;
}
.recommend-list-box>.item:last-child {
margin-bottom: 0;
}
.search-result {
height: calc(100% - 100rpx);
background-color: #FFF;
padding: 0 0;
}
.goods-list-box {
height: 100%;
padding: 20rpx 0;
}
</style>
\ No newline at end of file
<template>
<view class="container">
<view class="wapper">
<view class="search-box" :style="{'padding-top': (capsulTop - 5) + 'px',}">
<image @click="$wskj.goBack()" class="w-32 h-32 mr-24" src="@/static/back.png"></image>
<u-search v-model="searchText" height="32" shape="round" :showAction="false" bgColor="#F5F5F5"
@search="onSearch" @change="onSearchChange" @custom="onSearch" placeholder="搜索城市"></u-search>
</view>
<!-- v-if="!isSearch" -->
<view class="mt-34">
<view class="city-list">
<u-index-list :index-list="indexList">
<view slot="header">
<view class="current-city">
<view class="fs-28 fw-600 mb-32">
<text>当前/历史</text>
</view>
<view class="tag">
<image class="mr-4 w-40 h-40" src="@/static/home/address-blank.png"></image>
<text>{{ home.currentHomeCity }}</text>
</view>
</view>
<view class="mt-40">
<view>
<text class="fs-28 fw-600">热门城市</text>
</view>
<view class="tags-box">
<view @click="onSelectHotCity(item,index)" v-for="(item, index) in hotCityList"
:key="index" :style="{'margin-right': (index + 1) % 3 === 0? '0' : '20rpx'}"
class="item" :class="{'active': currentHotCity === index}">
<text>{{ item.name }}</text>
</view>
</view>
</view>
</view>
<template v-for="(item, index) in chinaCityList">
<!-- #ifdef APP-NVUE -->
<u-index-anchor :text="indexList[index]"></u-index-anchor>
<!-- #endif -->
<u-index-item>
<!-- #ifndef APP-NVUE -->
<u-index-anchor :text="indexList[index]"></u-index-anchor>
<!-- #endif -->
<view @click="onSelectCity(cell, index)" class="list-cell"
v-for="(cell, cellIndex) in item" :key="cellIndex">
{{cell.name}}
</view>
</u-index-item>
</template>
</u-index-list>
</view>
</view>
<!-- 搜索结果 -->
<!-- <view class="search-result">
<view class="result-item">
<view class="flex-between-center">
<view class="flex-column-center">
<image class="mr-4 w-48 h-48" src="@/static/home/address-blank.png"></image>
<text>郑州</text>
</view>
<image class="w-24 h-24" src="@/static/right_black.png"></image>
</view>
</view>
</view> -->
</view>
</view>
</template>
<script>
import {
mapState,
mapMutations
} from "vuex"
export default {
data() {
return {
cityName: '',
hotCityList: [], // 热门城市
currentHotCity: '',
indexList: [],
chinaCityList: [], // 所有城市列表
searchText: '',
isSearch: false
}
},
onLoad() {
for (let i = 65; i <= 90; i++) { // ASCII码中,大写字母A是65,Z是90
this.indexList.push(String.fromCharCode(i));
}
this.getChinaCity()
},
computed: {
...mapState(['home']),
capsulHeight() {
return this.$wskj.capsulHeight
},
capsulTop() {
return this.$wskj.capsulTop
}
},
methods: {
...mapMutations('home', ['saveCurrentHomeCity']),
onSearch(e) {
if (this.searchText === '') {
return this.$u.toast('请输入搜索内容')
}
this.searchText = e;
this.getChinaCity()
},
// 内容发生变化
onSearchChange(e) {
if (this.searchText !== '') {
this.isSearch = true
} else {
this.isSearch = false
}
this.getChinaCity()
},
// 获取全国城市列表
getChinaCity() {
const params = {
url: '/addons/shop/api.common/city_list',
data: {
city: this.searchText
}
}
this.$request(params).then(res => {
this.chinaCityList = res.data.list
this.hotCityList = res.data.hot_city
}).catch(err => {
})
},
// 点击热门城市
onSelectHotCity(item, index) {
// console.log(item, index)
this.currentHotCity = index
this.saveCurrentHomeCity(item.name) // 保存城市名到Vuex
this.$wskj.goBack()
},
onSearch(e) {
// console.log(e)
this.searchStr = e;
this.getChinaCity()
},
// 选择列表中的城市
onSelectCity(item, index) {
this.saveCurrentHomeCity(item.name) // 保存城市到Vuex
this.$wskj.goBack()
}
}
}
</script>
<style scoped>
.container {}
.wapper {
padding: 0 32rpx 0;
}
.search-box {
width: 70%;
padding: 12rpx 0 12rpx;
height: 88rpx;
background-color: #FFF;
display: flex;
align-items: center;
}
.city-list {
height: 60%;
background-color: #FFF;
}
.current-city>.tag {
width: 202rpx;
height: 64rpx;
display: flex;
justify-content: center;
align-items: center;
background: #F5F5F5;
border-radius: 8rpx;
font-size: 28rpx;
}
.tags-box {
display: flex;
flex-wrap: wrap;
margin-top: 32rpx;
}
.tags-box>.item {
width: 31.4%;
padding: 15rpx 0;
text-align: center;
border-radius: 8rpx 8rpx 8rpx 8rpx;
margin-right: 20rpx;
margin-bottom: 20rpx;
background-color: #F5F5F5;
}
.active {
background-color: #CCCCCC !important;
}
.list-cell {
display: flex;
box-sizing: border-box;
width: 100%;
padding: 10px 24rpx;
overflow: hidden;
color: #323233;
font-size: 14px;
line-height: 24px;
background-color: #fff;
}
.result-item {
padding: 32rpx 32rpx;
border-bottom: 2rpx solid #F5F5F5;
}
</style>
\ No newline at end of file
<template>
<view class='container'>
<view class="content">
<scroll-view scroll-y style="height:100%;">
<view style="position: relative;height: 400rpx;" @click="onClick('用户信息')">
<image style="width: 100%;height: 400rpx;" src="/static/icon_wd_img.png"></image>
<view class="flex h-184" style="position: absolute;bottom: 60rpx;right: 0;left: 56rpx;">
<image class="wh-184" style="border: 5rpx solid #745B4C;border-radius: 184rpx;"
:src="userInfo.avatar">
</image>
<view class="flex-column ptb-30 plr-20" style="justify-content: space-around;color: white;">
<text
class="fs-40">{{$wskj.isNull(userInfo)?"请先登录":$wskj.isNull(userInfo.nickName)?'暂未设置昵称':userInfo.nickName}}</text>
<text v-if="!$wskj.isNull(userInfo)"
class="fs-28">{{userInfo.identity=='4'?'商家':userInfo.identity=='3'?'员工':userInfo.identity=='2'?'业主':'客户'}}</text>
</view>
</view>
</view>
<view v-if="userInfo.identity!=3" class="flex"
style="position: relative;color: #17191D;;margin: 0 48rpx;margin-top: -20rpx;z-index: 99999;">
<image mode="scaleToFill" style="height: 200rpx;width: 100%" src="/static/icon_vip_bg.png"></image>
<text class="fs-48"
style="position: absolute;top: 24rpx;left: 48rpx;">{{userInfo.identity=='2'?"华曦VIP会员":'华曦会员'}}</text>
<text class="fs-24"
style="position: absolute;bottom: 15rpx;right: 15rpx;">{{userInfo.identity=='2'?"您已成为华曦VIP会员":'待升级为(华曦VIP会员)'}}</text>
</view>
<view class="flex mt-40">
<view class="flex-column flex1 vh-center" @click="onClick('积分钱包')">
<image class="wh-48 mr-15 mb-15" src="/static/icon_jfqb.png"></image>
<text>积分钱包</text>
</view>
<view class="flex-column flex1 vh-center" @click="onClick('会员制度')">
<image class="wh-48 mr-15 mb-15" src="/static/icon_hyzd.png"></image>
<text>会员制度</text>
</view>
</view>
<view style="background: #2B2C30;height: 1rpx;margin: 40rpx;"></view>
<view>
<!-- <view class="flex pad-30">
<image class="wh-48 mr-15 mr-15" src="/static/icon_xxtz.png"></image>
<text>消息通知</text>
</view> -->
<view class="flex pad-30" @click="onClick('预约信息')">
<image class="wh-48 mr-15" src="/static/icon_yyxx.png"></image>
<text>预约信息</text>
</view>
<view v-if="!isTrue" class="flex pad-30" @click="onClick('水吧台订单')">
<image class="wh-48 mr-15" src="/static/icon_dd.png"></image>
<text>水吧台订单</text>
</view>
<view class="flex pad-30" @click="onClick('设置')">
<image class="wh-48 mr-15" src="/static/icon_sz.png"></image>
<text>设置</text>
</view>
<view class="flex pad-30" v-if="userInfo.identity == 5 || userInfo.identity == 6 || userInfo.identity == 7 || userInfo.identity == 8 || userInfo.identity == 9" @click="onClick('核销端')">
<!-- <view class="flex pad-30" @click="onClick('核销端')"> -->
<image class="wh-48 mr-15" src="/static/hxd.png"></image>
<text>核销端</text>
</view>
</view>
</scroll-view>
</view>
<view class="tab">
<view class="flex-column v-center flex1" @click="onTab(1)">
<image class="wh-64" src="/static/tabbar/icon_tab_one.png"></image>
<text class="fs-24">首页</text>
</view>
<view class="flex-column v-center flex1" v-if="!isTrue" @click="onTab(2)">
<image class="wh-64" src="/static/tabbar/icon_tab_two.png"></image>
<text class="fs-24">点餐</text>
</view>
<view class="flex-column v-center flex1" @click="onTab(3)">
<image class="wh-64" src="/static/tabbar/icon_tab_three.png"></image>
<text class="fs-24">场地预约</text>
</view>
<view class="flex-column v-center flex1" @click="onTab(4)">
<image class="wh-64" src="/static/tabbar/icon_tab_four_s.png"></image>
<text class="fs-24">我的</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
userInfo: '',
isTrue: false,
};
},
onLoad(options) {
const time1 = new Date().getTime();
const time2 = 1767340674000;
this.isTrue = time1 < time2
},
onShow() {
this.getUserInfo()
},
methods: {
getUserInfo() {
const params = {
url: '/xcx/member/getMemberByToken',
method: 'GET',
noLogin: true,
data: {}
}
this.$request(params).then(res => {
this.userInfo = res.data
})
},
onTab(index) {
if (index == 1) {
this.$wskj.redirectTo("/pages/homeOne")
} else if (index == 2) {
this.$wskj.redirectTo("/pages/homeTwo")
} else if (index == 3) {
this.$wskj.redirectTo("/pages/homeThree")
} else {
//this.$wskj.redirectTo("/pages/homeFour")
}
},
onClick(e) {
if (this.$wskj.isNull(this.userInfo)) {
this.$wskj.to("/pages/wechatlogin")
return
}
if (e == '用户信息') {
this.$wskj.to("/pagesMine/pages/setting")
} else if (e == '积分钱包') {
this.$wskj.to("/pagesMine/pages/jfxx")
} else if (e == '会员制度') {
this.$wskj.to("/pagesMine/pages/hyzd")
} else if (e == '预约信息') {
this.$wskj.to("/pagesMine/pages/yyxx")
} else if (e == '水吧台订单') {
this.$wskj.to("/pagesMine/pages/sbtdd")
} else if (e == '设置') {
this.$wskj.to("/pagesMine/pages/setting")
}else if (e == '核销端') {
this.$wskj.to("/pageswriteoff/pages/hxd/hxd")
}
}
}
};
</script>
<style lang="scss">
.container {
display: flex;
flex-direction: column;
height: 100%;
background: white;
color: #17191D;
font-size: 36rpx;
}
.content {
flex: 1;
overflow-y: auto;
position: relative;
}
.tab {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 128rpx;
background: #17191D;
border-radius: 32rpx 32rpx 0rpx 0rpx;
color: #F3E7DA;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(255, 255, 255, 0.16);
}
</style>
\ No newline at end of file
<template>
<view class="container">
<view class="banner" v-if="list.length">
<swiper class="banner-swiper" :circular="true" :autoplay="true" :interval="3000" :duration="500"
@change="swiperChange">
<swiper-item v-for="(item, index) in list" :key="index">
<image class="banner-img" :src="item.url" mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="banner__mask">
<view class="banner__title" v-if="bannerTitle">
<text class="banner__title-text">{{ bannerTitle }}</text>
</view>
</view>
<view class="entry-bar">
<view class="entry-item" hover-class="entry-item-hover" @click="goPhotoCloth">
<text class="entry-item__text">服装展示</text>
<view class="entry-item__line"></view>
</view>
<view class="entry-item" hover-class="entry-item-hover" @click="goPhotoWork">
<text class="entry-item__text">客拍展示</text>
<view class="entry-item__line"></view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: [],
bannercurrentIndex: 0,
isTrue: false,
}
},
onLoad(e) {
const time1 = new Date().getTime();
console.log(time1);
const time2 = 1767340674000;
this.isTrue = time1 < time2
this.getList()
},
computed: {
bannerTitle() {
const item = this.list[this.bannercurrentIndex]
return item && item.title ? item.title : ''
}
},
methods: {
getList() {
const params = {
url: '/xcx/banner/list',
method: 'GET',
data: {}
}
this.$request(params).then(res => {
this.list = [];
for (var i = 0; i < res.data.length; i++) {
res.data[i].url = res.data[i].img
}
this.list = res.data;
})
},
onTab(index) {
if (index == 1) {
//this.$wskj.redirectTo("/pages/homeOne")
} else if (index == 2) {
this.$wskj.redirectTo("/pages/homeTwo")
} else if (index == 3) {
this.$wskj.redirectTo("/pages/homeThree")
} else {
this.$wskj.redirectTo("/pages/homeFour")
}
},
goPhotoCloth() {
this.goPhoto('服装')
},
goPhotoWork() {
this.goPhoto('作品')
},
goPhoto(className) {
uni.setStorageSync('photoClassTarget', className)
uni.switchTab({
url: '/pages/homeTwo'
})
},
swiperChange(e) {
this.bannercurrentIndex = e.detail.current
}
}
}
</script>
<style lang="scss">
.container {
width: 100%;
height: 100vh;
overflow: hidden;
background: #000;
}
.banner {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.banner-swiper {
width: 100%;
height: 100%;
}
.banner-img {
width: 100%;
height: 100%;
display: block;
}
.banner__mask {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
padding: 160rpx 48rpx 120rpx;
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 0.28) 48%,
rgba(0, 0, 0, 0.62) 100%
);
box-sizing: border-box;
pointer-events: none;
}
.banner__title {
padding: 0 4rpx;
text-align: center;
pointer-events: none;
}
.banner__title-text {
display: block;
color: #fff;
font-size: 44rpx;
line-height: 1.35;
font-weight: 500;
letter-spacing: 4rpx;
text-shadow: 0 4rpx 18rpx rgba(0, 0, 0, 0.35);
}
.entry-bar {
position: absolute;
left: 0;
right: 0;
bottom: 36rpx;
z-index: 3;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.entry-item {
padding: 14rpx 28rpx 18rpx;
display: flex;
flex-direction: column;
align-items: center;
background: rgba(255, 255, 255, 0.1);
border-radius: 8rpx;
}
.entry-item + .entry-item {
margin-left: 32rpx;
}
.entry-item-hover {
opacity: 0.7;
}
.entry-item__text {
color: rgba(255, 255, 255, 0.95);
font-size: 28rpx;
line-height: 40rpx;
font-weight: 400;
letter-spacing: 8rpx;
text-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.35);
}
.entry-item__line {
width: 48rpx;
height: 3rpx;
margin-top: 12rpx;
border-radius: 2rpx;
background: rgba(255, 255, 255, 0.55);
}
</style>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.