Commit 73af0c8c by 赵雅纹

Merge branch 'dev' into feature-zyw

parents 3fe0e702 d6efa3aa
...@@ -28,7 +28,7 @@ App({ ...@@ -28,7 +28,7 @@ App({
if (res.windowHeight > 750) config.isAllScreen = true; if (res.windowHeight > 750) config.isAllScreen = true;
config.systemHeight = res.windowHeight; config.systemHeight = res.windowHeight;
console.log('config', config) // console.log('config', config)
} catch (e) { } catch (e) {
console.log(e); console.log(e);
} }
...@@ -62,8 +62,18 @@ App({ ...@@ -62,8 +62,18 @@ App({
baseUserInfo.wechatCardId = card_id baseUserInfo.wechatCardId = card_id
baseUserInfo.wechatCode = code baseUserInfo.wechatCode = code
wx.setStorageSync('_baseUserInfo',baseUserInfo) wx.setStorageSync('_baseUserInfo',baseUserInfo)
} }
// 711_授权字体
wx.loadFontFace({
family: 'iconfont-711',
source: 'url("https://crm-b.bigaka.com/static/font/FZY3JW.TTF")',
success: function (res) {
console.log(res.status) // loaded
},
fail: function (res) {
console.log(res.status) // error
}
})
}, },
onHide: function () { onHide: function () {
...@@ -103,6 +113,7 @@ App({ ...@@ -103,6 +113,7 @@ App({
loginFirst: false, loginFirst: false,
imageUrl:"", //图片地址 imageUrl:"", //图片地址
isFullSucreen: false, // 当前设备是否为 FullSucreen isFullSucreen: false, // 当前设备是否为 FullSucreen
brandId:2005 brandId: 2005,
// brandId: 1001,
} }
}) })
...@@ -7,4 +7,6 @@ ...@@ -7,4 +7,6 @@
justify-content: space-between; justify-content: space-between;
padding: 200rpx 0; padding: 200rpx 0;
box-sizing: border-box; box-sizing: border-box;
} }
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;
......
...@@ -21,7 +21,7 @@ Component({ ...@@ -21,7 +21,7 @@ Component({
*/ */
data: { data: {
imgUrls: [], imgUrls: [],
indicatorDots: true, indicatorDots: false,
autoplay: true, autoplay: true,
interval: 5000, interval: 5000,
duration: 1000, duration: 1000,
......
/* component/imageSwiper/imageSwiper.wxss */ /* component/imageSwiper/imageSwiper.wxss */
swiper{ swiper{
height: 374rpx; height: 420rpx;
} }
swiper image{ swiper image{
width: 100%; width: 100%;
height:100%;
border-radius:7rpx; border-radius:7rpx;
} }
swiper-item{ swiper-item{
......
...@@ -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="member-unActive">
<text class="un-active-btn" bindtap="handleTtoActiveMemebr">激活立享会员特权</text>
</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 +17,13 @@ ...@@ -9,13 +17,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,31 @@ ...@@ -81,4 +82,31 @@
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;
}
.member-unActive{
margin: 18rpx 0;
background-color: rgb(11, 170, 52);
color: #FFF;
text-align: center;
height: 100rpx;
line-height: 100rpx;
border-radius: 6rpx;
font-size: 30rpx;
font-weight: 700;
letter-spacing:2rpx;
}
.un-active-btn{
font-family:"iconfont-711" !important;
} }
\ No newline at end of file
...@@ -50,6 +50,19 @@ wxService.page({ ...@@ -50,6 +50,19 @@ wxService.page({
}).finally(() => { }).finally(() => {
wx.hideLoading(); wx.hideLoading();
}) })
// 查询所有生效中的活动
// wxService.get(`/coupon/pointsRedemptionCouponSetting/getAllValid`).then(res => {
// const {result,data} = res.data
// if(result == 0){
// wx.hideLoading()
// this.setData({
// })
// }
// }).finally(() => {
// wx.hideLoading();
// })
}, },
//立即兑换 //立即兑换
exchange(e){ exchange(e){
......
...@@ -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){
......
...@@ -10,23 +10,29 @@ wxService.page({ ...@@ -10,23 +10,29 @@ wxService.page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
sexArray:[
{
id:'1',
name:'女'
},{
id:'2',
name:'男'
}
],
sexIndex: 0,
date:'', date:'',
focus: false, focus: false,
memberCardNo: '', memberCardNo: '',
memberInfo: {}, memberInfo: {},
memberId: '' memberId: '',
array: ['男', '女'],
objectArray: [
{
id: 0,
name: '男'
},
{
id: 1,
name: '女'
}
],
index: 0,
},
bindPickerChange (e) {
this.setData({
index: e.detail.value
})
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
...@@ -50,21 +56,19 @@ wxService.page({ ...@@ -50,21 +56,19 @@ wxService.page({
}, },
formSubmit(e) { formSubmit(e) {
// 生日 0 女 1 男 // 生日 0 男 1 女
const { birthday } = this.data.memberInfo const { birthday } = this.data.memberInfo
if(birthday) { if(birthday) {
e.detail.value.birthday = birthday e.detail.value.birthday = birthday
} }
if(e.detail.value.sex == '0'){ if(this.data.index == 0){
e.detail.value.sex = '女'
} else {
e.detail.value.sex = '男' e.detail.value.sex = '男'
} else {
e.detail.value.sex = '女'
} }
// e.detail.value.sex = e.detail.value.sex == '0' ? '女': '男'
const params = e.detail.value const params = e.detail.value
// 保存接口
this.handelMemberUplate(params) this.handelMemberUplate(params)
console.log('form发生了submit事件,携带数据为:', e.detail.value, params)
}, },
// 会员详情 // 会员详情
getMemberFind(){ getMemberFind(){
...@@ -79,8 +83,10 @@ wxService.page({ ...@@ -79,8 +83,10 @@ wxService.page({
if (result == 0) { if (result == 0) {
wx.hideLoading() wx.hideLoading()
data.member.birthday = data.member.birthday.substring(0,10) data.member.birthday = data.member.birthday.substring(0,10)
data.member.sex = data.member.sex == '男'? 0 : 1
this.setData({ this.setData({
memberInfo: data.member memberInfo: data.member,
index: data.member.sex
}) })
} }
}) })
...@@ -110,12 +116,6 @@ wxService.page({ ...@@ -110,12 +116,6 @@ wxService.page({
bindTextAreaBlur: function(e) { bindTextAreaBlur: function(e) {
console.log(e.detail.value) console.log(e.detail.value)
}, },
//性别选择
bindSexChange(e){
this.setData({
sexIndex: e.detail.value
})
},
//日期选择 //日期选择
bindDateChange(e) { bindDateChange(e) {
......
...@@ -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'>
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
</view> </view>
<view class='form-section'> <view class='form-section'>
<label class='form-label'>性别</label> <label class='form-label'>性别</label>
<picker bindchange="bindSexChange" value="{{sexIndex}}" name="sex" range="{{sexArray}}" range-key="name" class='form-picker'> <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
<view class="picker"> <view class="picker">
{{memberInfo.sex ? memberInfo.sex : '请选择性别'}} {{array[index]}}
</view> </view>
</picker> </picker>
</view> </view>
<view class='form-picker-section'> <view class='form-picker-section'>
<label class='form-label'>生日</label> <label class='form-label'>生日</label>
......
...@@ -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){
......
...@@ -50,6 +50,9 @@ page { ...@@ -50,6 +50,9 @@ page {
.footer-text{ .footer-text{
color: #ffffff; color: #ffffff;
font-size: 32rpx; font-size: 32rpx;
font-weight: 700;
letter-spacing:2rpx;
font-family:"iconfont-711" !important;
} }
.footer-arrow { .footer-arrow {
......
...@@ -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