Commit c5299ab4 by 严立

LL - UI 问题

parent 9ae9ed54

5.41 KB | W: | H:

6.03 KB | W: | H:

image/icon/cart-4.png
image/icon/cart-4.png
image/icon/cart-4.png
image/icon/cart-4.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<l-popup l-class="popup-mask" show="{{winCommodityDetail}}" content-align="center" locked="{{true}}"> <l-popup l-class="popup-mask" show="{{winCommodityDetail}}" content-align="center" locked="{{true}}">
<view class="popup-wrap"> <view class="popup-wrap">
<view id="banner" class="banner"> <view id="banner" class="banner">
<swiper autoplay circular indicator-dots indicator-active-color="#fff" indicator-color="rgba(255, 255, 255, .4)" class="banner-swiper" interval="5000" duration="500"> <swiper autoplay circular indicator-dots="{{commodityDetail.banner.length > 1 ? true : false}}" indicator-active-color="#fff" indicator-color="rgba(255, 255, 255, .4)" class="banner-swiper" interval="5000" duration="500">
<block wx:for="{{commodityDetail.banner}}" wx:for-index="index" wx:for-item="item" wx:key="index"> <block wx:for="{{commodityDetail.banner}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<swiper-item class="banner-swiper-item"> <swiper-item class="banner-swiper-item">
<image class="banner-swiper-image" src="{{item}}"></image> <image class="banner-swiper-image" src="{{item}}"></image>
......
...@@ -208,16 +208,27 @@ Page({ ...@@ -208,16 +208,27 @@ Page({
name: this.data.formName, name: this.data.formName,
type: 1, type: 1,
}, },
success: (res) => { success: (response) => {
console.log(response)
let funcResponse = response.data
if (funcResponse.code === 500) {
wx.lin.hideToast()
wx.lin.showToast({
image: '/image/error.png',
title: funcResponse.msg,
})
return
}
this.setData({ this.setData({
appointmentComplete: true, appointmentComplete: true,
}) })
wx.lin.hideToast() wx.lin.hideToast()
}, },
fail: (err) => { fail: (response) => {
wx.lin.showToast({ wx.lin.showToast({
image: '/image/error.png', image: '/image/error.png',
title: err.msg, title: response.msg,
}) })
} }
}) })
......
...@@ -19,8 +19,7 @@ Page({ ...@@ -19,8 +19,7 @@ Page({
winToast: false, winToast: false,
sideBarTopPadding: 0,
allChecked: false, allChecked: false,
isFoodCart: true, isFoodCart: true,
...@@ -80,7 +79,8 @@ Page({ ...@@ -80,7 +79,8 @@ Page({
onLoad: function () { onLoad: function () {
this.setShopInfo() this.setShopInfo()
this.setData({ this.setData({
shoppingCart: wx.getStorageSync('shoppingCartBuffer') shoppingCart: wx.getStorageSync('shoppingCartBuffer'),
sideBarTopPadding: wx.getStorageSync('navigationStatusHeight') + wx.getStorageSync('navigationCapsuleHeight')
}) })
this.selectionTotal() this.selectionTotal()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<l-toast show="{{winToast}}" icon="error" title="请选购商品后结算"></l-toast> <l-toast show="{{winToast}}" icon="error" title="请选购商品后结算"></l-toast>
<view class="container" wx:if="{{shoppingCart.length > 0}}"> <view class="container" wx:if="{{shoppingCart.length > 0}}" style="{{'margin-top: ' + sideBarTopPadding + 'px;'}}">
<view class="shop-info row con-b align-c"> <view class="shop-info row con-b align-c">
<image wx:if="{{shopLogo}}" src="{{resourcesBase + shopLogo}}" mode="widthFix"></image> <image wx:if="{{shopLogo}}" src="{{resourcesBase + shopLogo}}" mode="widthFix"></image>
<text bindtap="onClearn">清空</text> <text bindtap="onClearn">清空</text>
......
...@@ -6,10 +6,6 @@ ...@@ -6,10 +6,6 @@
width: 750rpx; width: 750rpx;
} }
.container {
margin-top: 130rpx;
}
.shop-info { .shop-info {
width: 750rpx; width: 750rpx;
height: 110rpx; height: 110rpx;
...@@ -317,7 +313,7 @@ ...@@ -317,7 +313,7 @@
} }
.empty > image { .empty > image {
width: 176rpx; width: 190rpx;
height: 176rpx; height: 176rpx;
} }
......
...@@ -24,17 +24,31 @@ Page({ ...@@ -24,17 +24,31 @@ Page({
accumulateList: [], accumulateList: [],
selectedList: [], selectedList: [],
integral: '0', integral: '0',
type: '' type: '',
accumulateListHeight: 0,
}, },
onLoad: function (options) {
onLoad: function(options) {
let integral = options.integral let integral = options.integral
this.setData({ this.setData({
integral: integral integral: integral
}) })
this.setAccumulateListHeight()
this.getAccumulate() this.getAccumulate()
}, },
setAccumulateListHeight: function () {
let funcWindowHeight = wx.getSystemInfoSync().windowHeight
let funcAccumulateListHeight = funcWindowHeight - 410 * wx.getStorageSync('unitProportion')
this.setData({
accumulateListHeight: funcAccumulateListHeight
})
console.log(funcAccumulateListHeight)
},
// 获取积分列表 // 获取积分列表
getAccumulate: function () { getAccumulate: function() {
wx.showLoading({ wx.showLoading({
title: '加载中', title: '加载中',
}) })
...@@ -59,14 +73,14 @@ Page({ ...@@ -59,14 +73,14 @@ Page({
}) })
}, },
// 显示菜单 // 显示菜单
onShowMenu: function () { onShowMenu: function() {
this.setData({ this.setData({
showMenu: true showMenu: true
}) })
}, },
// 隐藏菜单 // 隐藏菜单
onHideMenu: function () { onHideMenu: function() {
this.setData({ this.setData({
showMenu: false showMenu: false
}) })
...@@ -77,7 +91,7 @@ Page({ ...@@ -77,7 +91,7 @@ Page({
* @param type 0全部 1获取 2已使用 * @param type 0全部 1获取 2已使用
* @returns * @returns
*/ */
onTabMenu: function (event) { onTabMenu: function(event) {
let { let {
index, index,
type type
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</view> </view>
<!-- 有积分 --> <!-- 有积分 -->
<view class="accumulate-wrapper col align-c" wx:else> <view class="accumulate-wrapper col align-c" wx:else style="{{'max-height:' + accumulateListHeight + 'px;'}}">
<block wx:for="{{accumulateList}}" wx:key="index"> <block wx:for="{{accumulateList}}" wx:key="index">
<view class="accumulate row con-b align-c"> <view class="accumulate row con-b align-c">
<view class="accumulate-left col con-b"> <view class="accumulate-left col con-b">
......
...@@ -104,6 +104,7 @@ page { ...@@ -104,6 +104,7 @@ page {
padding: 12rpx 0 14rpx; padding: 12rpx 0 14rpx;
background-color: #fff; background-color: #fff;
border-radius: 4rpx; border-radius: 4rpx;
overflow-y: scroll;
} }
.accumulate { .accumulate {
......
...@@ -744,4 +744,4 @@ image { ...@@ -744,4 +744,4 @@ image {
.logo-box image { .logo-box image {
max-width: 100% !important; max-width: 100% !important;
max-height: 100% !important; max-height: 100% !important;
} }
\ No newline at end of file
...@@ -25,7 +25,7 @@ Page({ ...@@ -25,7 +25,7 @@ Page({
onLoad: function (options) { onLoad: function (options) {
let funcUserInfo = wx.getStorageSync('userInfo') let funcUserInfo = wx.getStorageSync('userInfo')
funcUserInfo.phone = this.phoneEncryption(funcUserInfo.phone) funcUserInfo.phone = this.phoneEncryption(funcUserInfo.phone)
if (!funcUserInfo.birthday) funcUserInfo.birthday = birthdayLimit if (funcUserInfo.sex !== '') this.data.sexActive = funcUserInfo.sex - 1
this.setData({ this.setData({
userInfo: funcUserInfo userInfo: funcUserInfo
......
...@@ -15,22 +15,24 @@ ...@@ -15,22 +15,24 @@
</l-list> </l-list>
<l-list is-hover="{{false}}" l-content-class="menu-title" title="性别" is-link="{{false}}"> <l-list is-hover="{{false}}" l-content-class="menu-title" title="性别" is-link="{{false}}">
<picker slot="right-section" class="input-picker" mode="selector" value="{{sexActive}}" range-key="{{'name'}}" range="{{sexList}}" bindchange="onSelectionGender"> <picker slot="right-section" class="input-picker" mode="selector" value="{{sexActive}}" range-key="{{'name'}}" range="{{sexList}}" bindchange="onSelectionGender">
<view class="picker">{{sexList[sexActive].name}}</view> <view wx:if="{{sexActive === 0}}" class="picker" style="color: #959DA9;">请选择性别</view>
<view wx:if="{{sexActive !== 0}}" class="picker">{{sexList[sexActive].name}}</view>
</picker> </picker>
</l-list> </l-list>
<l-list is-hover="{{false}}" l-content-class="menu-title" title="生日" is-link="{{false}}"> <l-list is-hover="{{false}}" l-content-class="menu-title" title="生日" is-link="{{false}}">
<picker slot="right-section" class="input-picker" mode="date" value="{{userInfo.birthday}}" end="{{birthdayLimit}}" bindchange="onSelectionDate"> <picker slot="right-section" class="input-picker" mode="date" value="{{userInfo.birthday}}" end="{{birthdayLimit}}" bindchange="onSelectionDate">
<view class="picker">{{userInfo.birthday}}</view> <view wx:if="{{userInfo.birthday === ''}}" class="picker" style="color: #959DA9;">请选择生日</view>
<view wx:if="{{userInfo.birthday !== ''}}" class="picker">{{userInfo.birthday}}</view>
</picker> </picker>
</l-list> </l-list>
<l-list is-hover="{{false}}" l-content-class="menu-title" title="地址" is-link="{{false}}"> <l-list is-hover="{{false}}" l-content-class="menu-title" title="地址" is-link="{{false}}">
<view slot="right-section"> <view slot="right-section">
<input maxlength="30" style="text-align:right;" placeholder="请填写地址" placeholder-class="phone" value="{{userInfo.address}}" data-type="address" bindblur="onInputBlur" /> <input maxlength="30" style="text-align:right;" placeholder-style="color: #959DA9;" placeholder="请填写地址" value="{{userInfo.address}}" data-type="address" bindblur="onInputBlur" />
</view> </view>
</l-list> </l-list>
<l-list is-hover="{{false}}" l-content-class="menu-title" title="手机号" is-link="{{false}}"> <l-list is-hover="{{false}}" l-content-class="menu-title" title="手机号" is-link="{{false}}">
<view slot="right-section"> <view slot="right-section">
<view class="phone">{{userInfo.phone}}</view> <view class="phone" style="color: #959DA9;">{{userInfo.phone}}</view>
</view> </view>
</l-list> </l-list>
</view> </view>
......
...@@ -539,9 +539,16 @@ Page({ ...@@ -539,9 +539,16 @@ Page({
* @returns * @returns
*/ */
onEntryComplete: function () { onEntryComplete: function () {
wx.reLaunch({ // 一般活动跳转到我的预约,观影跳转到订单列表
url: '/pages/mine/appointment/appointment?fromPage=pay' if (logicData.option.type === 7) {
}) wx.reLaunch({
url: '/pages/mine/order/order?fromPage=pay'
})
} else {
wx.reLaunch({
url: '/pages/mine/appointment/appointment?fromPage=pay'
})
}
}, },
/** /**
......
...@@ -44,6 +44,12 @@ Page({ ...@@ -44,6 +44,12 @@ Page({
this.setData({ appStatus: App.globalData.appStatus }) this.setData({ appStatus: App.globalData.appStatus })
this.queryActivity() this.queryActivity()
this.queryMovie() this.queryMovie()
this.setData({
pageNo: 1,
pageSize: 10,
touristRouteList: [],
})
this.routeList() this.routeList()
}, },
......
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
background: #15191F; background: #15191F;
white-space: nowrap; white-space: nowrap;
font-size: 18rpx; font-size: 18.6rpx;
font-weight: 500; font-weight: 500;
line-height: 32rpx; line-height: 32rpx;
color: #FFFFFF; color: #FFFFFF;
......
...@@ -81,6 +81,8 @@ Page({ ...@@ -81,6 +81,8 @@ Page({
officeEnvironmental: 0, officeEnvironmental: 0,
officeEnvironmentalText: '5.0', // 门店环境评分 officeEnvironmentalText: '5.0', // 门店环境评分
cssDetail: '', // 详情底部边距
winActivity: false, // 近期活动 winActivity: false, // 近期活动
winCommodity: false, // 商品列表 winCommodity: false, // 商品列表
...@@ -96,6 +98,7 @@ Page({ ...@@ -96,6 +98,7 @@ Page({
}) })
this.queryDetail(Number(options.id)) this.queryDetail(Number(options.id))
console.log(Number(options.id))
// 根据商店查询相关订制内容 // 根据商店查询相关订制内容
switch (Number(options.id)) { switch (Number(options.id)) {
...@@ -104,6 +107,7 @@ Page({ ...@@ -104,6 +107,7 @@ Page({
this.queryActivity() this.queryActivity()
this.setData({ this.setData({
commodityTitle: '文创商品', commodityTitle: '文创商品',
cssDetail: 'padding-bottom: 160rpx;',
winHidden: true winHidden: true
}) })
break break
...@@ -111,7 +115,8 @@ Page({ ...@@ -111,7 +115,8 @@ Page({
case 2: case 2:
this.queryMovie() this.queryMovie()
this.setData({ this.setData({
navigationStyle: this.data.navigationStyleBlack navigationStyle: this.data.navigationStyleBlack,
cssDetail: 'padding-bottom: 0;',
}) })
break break
...@@ -119,6 +124,7 @@ Page({ ...@@ -119,6 +124,7 @@ Page({
this.queryActivity() this.queryActivity()
this.setData({ this.setData({
commodityTitle: '拾光花坊', commodityTitle: '拾光花坊',
cssDetail: 'padding-bottom: 0;',
winCommodityMenu: true winCommodityMenu: true
}) })
break break
...@@ -126,6 +132,7 @@ Page({ ...@@ -126,6 +132,7 @@ Page({
case 4: case 4:
this.setData({ this.setData({
commodityTitle: '原野MOJITO', commodityTitle: '原野MOJITO',
cssDetail: 'padding-bottom: 160rpx;',
}) })
break break
...@@ -133,6 +140,7 @@ Page({ ...@@ -133,6 +140,7 @@ Page({
this.queryActivity() this.queryActivity()
this.setData({ this.setData({
commodityTitle: '能量补给站', commodityTitle: '能量补给站',
cssDetail: 'padding-bottom: 0;',
winCommodityMenu: true winCommodityMenu: true
}) })
break break
...@@ -140,6 +148,7 @@ Page({ ...@@ -140,6 +148,7 @@ Page({
case 6: case 6:
this.setData({ this.setData({
commodityTitle: '原味舒食', commodityTitle: '原味舒食',
cssDetail: 'padding-bottom: 160rpx;',
}) })
break break
...@@ -147,12 +156,15 @@ Page({ ...@@ -147,12 +156,15 @@ Page({
this.queryCommodity() this.queryCommodity()
this.setData({ this.setData({
commodityTitle: 'SPA服务', commodityTitle: 'SPA服务',
cssDetail: 'padding-bottom: 0;',
}) })
break break
default: default:
this.queryCommodity() this.queryCommodity()
} }
console.log(this.data.cssDetail)
this.getOfficeAppraise() this.getOfficeAppraise()
this.getAppraise() this.getAppraise()
}, },
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
</view> </view>
<!-- 简介 --> <!-- 简介 -->
<view class="detail" wx:if="{{contentType === 'detail'}}"> <view class="detail" wx:if="{{contentType === 'detail'}}" style="{{cssDetail}}">
<block wx:for="{{info.describe}}" wx:for-index="index" wx:for-item="item" wx:key="index"> <block wx:for="{{info.describe}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<image src="{{item}}" mode="widthFix"></image> <image src="{{item}}" mode="widthFix"></image>
</block> </block>
...@@ -387,7 +387,7 @@ ...@@ -387,7 +387,7 @@
</view> </view>
<!-- 简介 --> <!-- 简介 -->
<view class="detail" wx:if="{{contentType === 'detail'}}"> <view class="detail" wx:if="{{contentType === 'detail'}}" style="{{cssDetail}}">
<block wx:for="{{info.describe}}" wx:for-index="index" wx:for-item="item" wx:key="index"> <block wx:for="{{info.describe}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<image src="{{item}}" mode="widthFix"></image> <image src="{{item}}" mode="widthFix"></image>
</block> </block>
...@@ -455,11 +455,6 @@ ...@@ -455,11 +455,6 @@
</view> </view>
</view> </view>
<!-- 操作 -->
<!-- <view class="operation">
<button class="button row con-c align-c" bindtap="onContact">电话预约</button>
</view> -->
<!-- 侧边返回顶部 --> <!-- 侧边返回顶部 -->
<view class="appointment-side col con-b align-c" hidden="{{winSide}}"> <view class="appointment-side col con-b align-c" hidden="{{winSide}}">
<button class="appointment-side-top" bindtap="onBackTop"> <button class="appointment-side-top" bindtap="onBackTop">
......
...@@ -304,6 +304,7 @@ ...@@ -304,6 +304,7 @@
margin-right: 24rpx; margin-right: 24rpx;
padding-bottom: 32rpx; padding-bottom: 32rpx;
border-radius: 4rpx; border-radius: 4rpx;
background: #F6F5F8;
} }
.movie-card-item { .movie-card-item {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment