Commit a193f4aa by 高淑倩

modify: 样式

parent 6f56e39b
...@@ -103,6 +103,7 @@ App({ ...@@ -103,6 +103,7 @@ App({
loginFirst: false, loginFirst: false,
imageUrl:"", //图片地址 imageUrl:"", //图片地址
isFullSucreen: false, // 当前设备是否为 FullSucreen isFullSucreen: false, // 当前设备是否为 FullSucreen
brandId:2005 brandId: 2005,
// brandId: 1001,
} }
}) })
var CHAR_TILDE = 126; var CHAR_TILDE = 126;
var CODE_FNC1 = 102; var CODE_FNC1 = 102;
var SET_STARTA = 103; var SET_STARTA = 103;
var SET_STARTB = 104; var SET_STARTB = 104;
var SET_STARTC = 105; var SET_STARTC = 105;
......
/* component/imageSwiper/imageSwiper.wxss */ /* component/imageSwiper/imageSwiper.wxss */
swiper{ swiper{
height: 374rpx; height: 420rpx;
} }
swiper image{ swiper image{
width: 100%; width: 100%;
......
...@@ -27,7 +27,7 @@ Component({ ...@@ -27,7 +27,7 @@ Component({
memberActivateStatus: false, memberActivateStatus: false,
integralNum: 0, integralNum: 0,
couponNum: 0, couponNum: 0,
baseUrl:'/assets/imgs/user-bg.png', baseUrl: '/assets/imgs/0606.png',
isAuthorization: false isAuthorization: false
}, },
attached () { attached () {
......
<!--component/personCenter/personCenter.wxml--> <!--component/personCenter/personCenter.wxml-->
<view class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(' + baseUrl + ');'}}"> <view wx:if='{{!memberActivateStatus}}' class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{'background-image: url(../../assets/imgs/user-bg.png)'}}">
<button type="primary" plain='false' wx:if='{{!memberActivateStatus}}' bindtap="handleTtoActiveMemebr">激活立享会员特权</button> <button type="primary" plain='false' bindtap="handleTtoActiveMemebr">激活立享会员特权</button>
</view>
<view wx:if='{{memberActivateStatus}}' class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(' + baseUrl + ');'}}">
<!-- <button type="primary" plain='false' wx:if='{{!memberActivateStatus}}' bindtap="handleTtoActiveMemebr">激活立享会员特权</button>-->
<view class='user-info' wx:if='{{memberActivateStatus}}'> <view class='user-info' wx:if='{{memberActivateStatus}}'>
<view class="user-avatar"> <view class="user-avatar">
<open-data type="userAvatarUrl"></open-data> <open-data type="userAvatarUrl"></open-data>
...@@ -9,13 +13,13 @@ ...@@ -9,13 +13,13 @@
<view class='user-name'> <view class='user-name'>
<open-data type="userNickName" class="userinfo-nickname" lang="zh_CN"></open-data> <open-data type="userNickName" class="userinfo-nickname" lang="zh_CN"></open-data>
<navigator url='/pages/memberOfOwn/memberOfOwn' style='display:inline-block' hover-class="none"> <navigator url='/pages/memberOfOwn/memberOfOwn' style='display:inline-block' hover-class="none">
<image class='icon-edit' src='/assets/imgs/icon-edit.png'></image> <image class='icon-edit' src='/assets/imgs/711_12.png'></image>
</navigator> </navigator>
</view> </view>
<view class='user-id'>{{memberCardNo}}</view> <view class='user-id'>{{memberCardNo}}</view>
</view> </view>
<view class='qr-code pr'> <view class='qr-code pr'>
<image src='/assets/imgs/qr-code.png' bindtap="handleGoWxCard"></image> <image src='/assets/imgs/711_11.png' bindtap="handleGoWxCard"></image>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.user-content{ .user-content{
height: 92rpx; height: 92rpx;
/* width: 598rpx; */ /* width: 598rpx; */
padding: 37rpx 46rpx; padding: 28rpx 35rpx 0 50rpx;
box-sizing: border-box; box-sizing: border-box;
} }
.activation-content{ .activation-content{
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
box-shadow: 0 0 40rpx 1rpx #ccc; box-shadow: 0 0 40rpx 1rpx #ccc;
} }
.point{ .point{
padding:36rpx 0 25rpx 0; padding: 0 0 25rpx 0;
} }
.person-detail { .person-detail {
margin-top: 10rpx; margin-top: 10rpx;
...@@ -61,13 +61,14 @@ ...@@ -61,13 +61,14 @@
} }
.user-name{ .user-name{
margin-bottom: 25rpx; margin-bottom: 12rpx;
} }
.icon-edit{ .icon-edit{
width: 28rpx; width: 28rpx;
height: 28rpx; height: 28rpx;
vertical-align: middle; vertical-align: middle;
margin-left: 8rpx; margin-left: 34rpx;
color: #fff;
} }
.user-id{ .user-id{
color: #666666; color: #666666;
...@@ -81,4 +82,15 @@ ...@@ -81,4 +82,15 @@
border-right: 1px solid #c8c9c9; border-right: 1px solid #c8c9c9;
padding: 0 0 5rpx 0; padding: 0 0 5rpx 0;
box-sizing: border-box; box-sizing: border-box;
}
.userinfo-nickname,.user-id {
color: #fff;
}
.user-info {
position: relative;
}
.user-name-content {
position: absolute;
top: 7rpx;
} }
\ No newline at end of file
...@@ -44,7 +44,6 @@ wxService.page({ ...@@ -44,7 +44,6 @@ wxService.page({
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}) })
// brandId dev_1002 711_2005
wxService.get(`/sale/order/findByOrderNo?orderNo=${orderNo}&brandId=${app.globalData.brandId}`).then(res => { wxService.get(`/sale/order/findByOrderNo?orderNo=${orderNo}&brandId=${app.globalData.brandId}`).then(res => {
const {result,data} = res.data const {result,data} = res.data
if(result == 0){ if(result == 0){
......
...@@ -23,8 +23,6 @@ wxService.page({ ...@@ -23,8 +23,6 @@ wxService.page({
cardno cardno
}) })
this.getCouponDetail(cardno) this.getCouponDetail(cardno)
// 条形码
wxbarcode.barcode('barcode', cardno, 600, 180);
}, },
// 查询单个优惠券 // 查询单个优惠券
...@@ -35,10 +33,12 @@ wxService.page({ ...@@ -35,10 +33,12 @@ wxService.page({
wxService.post(`/coupon/coupon/get?cardNo=${cardno}`).then(res => { wxService.post(`/coupon/coupon/get?cardNo=${cardno}`).then(res => {
const {result,data} = res.data const {result,data} = res.data
if(result == 0){ if(result == 0){
wx.hideLoading() wx.hideLoading()
this.setData({ this.setData({
codeDetail: data codeDetail: data
}) })
// 条形码
wxbarcode.barcode('barcode', cardno, 600, 180);
} else { } else {
wx.hideLoading() wx.hideLoading()
wx.showToast({ wx.showToast({
......
...@@ -113,7 +113,8 @@ wxService.page({ ...@@ -113,7 +113,8 @@ wxService.page({
if(result == 0){ if(result == 0){
wx.hideLoading() wx.hideLoading()
// 处理时间显示 // 处理时间显示
data.content.forEach(item=> { if(!data.content) return false
data.content.forEach(item=> {
item.startTime = item.startTime.substring(0,10) item.startTime = item.startTime.substring(0,10)
item.endTime = item.endTime.substring(0,10) item.endTime = item.endTime.substring(0,10)
}) })
......
...@@ -54,7 +54,6 @@ wxService.page({ ...@@ -54,7 +54,6 @@ wxService.page({
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}) })
// brandId 1001 2005
wxService.post(`/merchant/modelPage/getDetailById?pageId=4&brandId=${app.globalData.brandId}`).then(res => { wxService.post(`/merchant/modelPage/getDetailById?pageId=4&brandId=${app.globalData.brandId}`).then(res => {
const {result,data} = res.data const {result,data} = res.data
if(result == 0){ if(result == 0){
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class='page-memberOfOwn'> <view class='page-memberOfOwn'>
<view class='own-content'> <view class='own-content'>
<view class='user-info'> <view class='user-info'>
<image class='own-bg' src='/assets/imgs/seven-bg.png'></image> <image class='own-bg' src='/assets/imgs/711_08.png'></image>
<view class="user-avatar"> <view class="user-avatar">
<open-data type="userAvatarUrl"></open-data> <open-data type="userAvatarUrl"></open-data>
</view> </view>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<view class='user-id'>{{memberCardNo}}</view> <view class='user-id'>{{memberCardNo}}</view>
</view> </view>
<view class='qr-code pr'> <view class='qr-code pr'>
<image src='/assets/imgs/qr-code.png' bindtap='handleGoWxCard'></image> <image src='/assets/imgs/711_11.png' bindtap='handleGoWxCard'></image>
</view> </view>
</view> </view>
<view class='user-qr-code'> <view class='user-qr-code'>
......
...@@ -9,17 +9,18 @@ ...@@ -9,17 +9,18 @@
.user-info{ .user-info{
position: relative; position: relative;
width: 650rpx; width: 650rpx;
height: 260rpx; height: 298rpx;
box-shadow: 0 0 40rpx 1rpx #ccc; box-shadow: 0 0 40rpx 1rpx #ccc;
border-radius: 7rpx; border-radius: 7rpx;
padding-top: 30rpx; padding-top: 30rpx;
box-sizing:border-box;
} }
.picker { .picker {
color: rgb(119, 119, 119); color: rgb(119, 119, 119);
} }
.own-bg{ .own-bg{
width: 650rpx; width: 100%;
height: 290rpx; height: 100%;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
...@@ -38,16 +39,17 @@ ...@@ -38,16 +39,17 @@
display: inline-block; display: inline-block;
margin-right: 18rpx; margin-right: 18rpx;
margin-left: 30rpx; margin-left: 30rpx;
/* margin-top:-6rpx; */
} }
.userinfo-nickname { .userinfo-nickname {
font-size: 28rpx; font-size: 28rpx;
color:#333; color:#FFF;
} }
.user-name-content{ .user-name-content{
display: inline-block; display: inline-block;
} }
.user-name{ .user-name{
margin-bottom: 11rpx; margin-bottom: 10rpx;
} }
.icon-edit{ .icon-edit{
width: 28rpx; width: 28rpx;
...@@ -56,13 +58,14 @@ ...@@ -56,13 +58,14 @@
margin-left: 8rpx; margin-left: 8rpx;
} }
.user-id{ .user-id{
color: #666666; color: #FFF;
font-size: 24rpx; font-size: 24rpx;
} }
.qr-code image{ .qr-code image{
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
margin-right: 36rpx margin-right: 31rpx;
margin-top:15rpx;
} }
.user-qr-code{ .user-qr-code{
background-color: #ffffff; background-color: #ffffff;
......
...@@ -137,7 +137,6 @@ wxService.page({ ...@@ -137,7 +137,6 @@ wxService.page({
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}) })
// 1001 2005
wxService.post(`/merchant/modelPage/getDetailById?pageId=3&brandId=${app.globalData.brandId}`).then(res => { wxService.post(`/merchant/modelPage/getDetailById?pageId=3&brandId=${app.globalData.brandId}`).then(res => {
const {result,data} = res.data const {result,data} = res.data
if(result == 0){ if(result == 0){
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": 3, "current": -1,
"list": [ "list": [
{ {
"id": -1, "id": -1,
...@@ -82,12 +82,6 @@ ...@@ -82,12 +82,6 @@
"query": "id=585873719780577280" "query": "id=585873719780577280"
}, },
{ {
"id": 7,
"name": "welcome",
"pathName": "pages/welcome/welcome",
"query": ""
},
{
"id": 8, "id": 8,
"name": "我的卡券", "name": "我的卡券",
"pathName": "pages/coupons/coupons", "pathName": "pages/coupons/coupons",
......
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 to comment