Commit 9a99d539 by 赵雅纹

Merge branch 'dev_7.1.0' into feature-zyw-sc

parents a5b6d782 33bbcb9f
...@@ -13,11 +13,11 @@ Component({ ...@@ -13,11 +13,11 @@ Component({
type: Object, type: Object,
value: null value: null
} }
}, },
attached () { attached() {
this.setData({ this.setData({
baseImgUrl: app.globalData.imageUrl baseImgUrl: app.globalData.imageUrl
}) })
}, },
/** /**
* 组件的初始数据 * 组件的初始数据
...@@ -29,10 +29,18 @@ Component({ ...@@ -29,10 +29,18 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
// 组件加载成功时触发
handelLoad(e) {
console.log('成功', e)
},
// 组件加载失败时触发
handelErr(e) {
console.log('失败', e)
},
handelTo(e) { handelTo(e) {
const ev = e.currentTarget.dataset; const ev = e.currentTarget.dataset;
let redirectId = ev.redirectId let redirectId = ev.redirectId
console.log('redirectid', redirectId) console.log('redirectid', redirectId)
} }
} }
}) })
<!--component/attention/attention.wxml--> <!--component/attention/attention.wxml-->
<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo"> <!--<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<view class="attention-left"> <view class="attention-left">
<view class="left-title">关注舞象公众号</view> <view class="left-title">关注舞象公众号</view>
<view class="left-tips">福利不错过!</view> <view class="left-tips">福利不错过!</view>
</view> </view>
<view class="attention-right">关注</view> <view class="attention-right">关注</view>
</view> </view>-->
<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<official-account style="width:100%;height:168rpx;" bindload="handelLoad" binderror="handelErr">
</official-account>
</view>
\ No newline at end of file
/* component/attention/attention.wxss */ /* component/attention/attention.wxss */
/* .banner-ad {
margin: 0 auto;
width: 710rpx;
height: 155rpx;
border-radius: 10rpx;
background-color: rgba(246, 243, 242, 1);
box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.05);
} */
.attention { .attention {
margin: 0 auto; margin: 0 auto;
width: 710rpx; width: 710rpx;
...@@ -18,7 +10,6 @@ ...@@ -18,7 +10,6 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 60rpx;
box-sizing: border-box; box-sizing: border-box;
color: #fff; color: #fff;
background-repeat: no-repeat; background-repeat: no-repeat;
......
...@@ -9,7 +9,10 @@ Component({ ...@@ -9,7 +9,10 @@ Component({
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
tabBar:{
type: Object,
value: null
}
}, },
attached () { attached () {
......
<!--component/bottomTabs/bottomTabs.wxml--> <!--component/bottomTabs/bottomTabs.wxml-->
<view class='bgc fixed-bottom0' style="background-image:url('/assets/imgs/7_1_0/bg.png')" wx:if="{{type == 1}}"> <view class='bgc fixed-bottom0' style="background-color:#FFF;background-image:url({{tabBar.num == 4 ? '': '/assets/imgs/7_1_0/bg.png'}});{{tabBar.num == 4 ? 'height: 108rpx':'height: 144rpx'}}" wx:if="{{tabBar.num == 4}}">
<!--
activeImageUrl: "http://testimg3.bigaka.com/group3/M00/00/1C/Cv6CBF1mT1OAERvZAAAE9OdIB14989.png"
desc: ""
imageUrl: "http://testimg3.bigaka.com/group3/M00/00/1C/Cv6CBF1mTzmAL7sKAAADJzlh7Tk417.png"
number: 0
redirectId: ""
type: 0
-->
<block wx:for="{{tabBar.images}}" wx:key="{{index}}" wx:for-item="tab">
<view
class="tab"
data-route="{{tab.route}}"
bindtap="handelToPage"
>
<image class='tab-img' wx:if="{{currentRoute == tab.route}}" src='{{tab.activeImageUrl}}' />
<image class='tab-img' wx:else src='{{tab.imageUrl}}' />
</view>
</block>
</view>
<view class="bottom-tab fixed-bottom0" style="height: 108rpx;" wx:if="{{tabBar.num == 5}}">
<block wx:for="{{tabs}}" wx:key="{{index}}" wx:for-item="tab"> <block wx:for="{{tabs}}" wx:key="{{index}}" wx:for-item="tab">
<view class="tab" data-route="{{tab.route}}" bindtap="handelToPage">
<image class='tab-img' wx:if="{{currentRoute == tab.route}}" src='{{tab.activeImageUrl}}' />
<image class='tab-img' wx:else src='{{tab.imageUrl}}' />
</view>
</block>
<!-- <block wx:for="{{tabs}}" wx:key="{{index}}" wx:for-item="tab">
<view <view
class="tab" class="tab"
data-route="{{tab.route}}" data-route="{{tab.route}}"
...@@ -17,5 +46,5 @@ ...@@ -17,5 +46,5 @@
<image class='tab-img' wx:if="{{currentRoute == tab.route}}" src='{{tab.active}}' /> <image class='tab-img' wx:if="{{currentRoute == tab.route}}" src='{{tab.active}}' />
<image class='tab-img' wx:else src='{{tab.inactive}}' /> <image class='tab-img' wx:else src='{{tab.inactive}}' />
</view> </view>
</block> </block>-->
</view> </view>
/* component/bottomTabs/bottomTabs.wxss */ /* component/bottomTabs/bottomTabs.wxss */
@import './../../base/base.wxss'; @import './../../base/base.wxss';
.bottom-tab { .bottom-tab {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.tab-img { .tab-img {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
} }
.tab { .tab {
flex: 1; flex: 1;
text-align: center; text-align: center;
} }
.bgc { .bgc {
height: 144rpx; background-size: 100% 100%;
background-size: 100% 100%; background-repeat: no-repeat;
background-repeat: no-repeat; display: flex;
display: flex; align-items: center;
align-items: center; justify-content: center;
justify-content: center; background-color: rgba(255, 255, 255, 1);
box-shadow: 0px -4px 10px 0px rgba(232, 232, 232, 0.95);
} }
.pdt { .pdt {
padding-top: 50rpx; padding-top: 50rpx;
} }
\ No newline at end of file
...@@ -3,7 +3,6 @@ var app = getApp() ...@@ -3,7 +3,6 @@ var app = getApp()
const wxService = require('../../utils/wxService') const wxService = require('../../utils/wxService')
const utils = require('../../utils/util') const utils = require('../../utils/util')
const envInfo = require('../../config/index').envInfo const envInfo = require('../../config/index').envInfo
var order = ['red', 'yellow', 'blue', 'green', 'red']
Component({ Component({
/** /**
...@@ -28,6 +27,9 @@ Component({ ...@@ -28,6 +27,9 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
handelToVipCode() {
wxService.router(`/pages/memberOfOwn/memberOfOwn`)
},
// 设置tab active // 设置tab active
switchNav(event) { switchNav(event) {
const ev = event.currentTarget.dataset; const ev = event.currentTarget.dataset;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</view> </view>
</block> </block>
</scroll-view> </scroll-view>
<view class="scroll-view-right"> <view class="scroll-view-right" bindtap="handelToVipCode">
<image class="right-img" src="./../../assets/imgs/7_1_0/scancode.png" mode="widthFix" lazy-load="false" binderror="" bindload="" /> <image class="right-img" src="./../../assets/imgs/7_1_0/scancode.png" mode="widthFix" lazy-load="false" binderror="" bindload="" />
<text class="active vip-text" selectable="false" space="false" decode="false">会员码</text> <text class="active vip-text" selectable="false" space="false" decode="false">会员码</text>
</view> </view>
......
...@@ -86,9 +86,9 @@ wxService.page({ ...@@ -86,9 +86,9 @@ wxService.page({
isAuthorization: false isAuthorization: false
},()=>{ },()=>{
// 积分数量 // 积分数量
this.getMemberPointInfo() // this.getMemberPointInfo()
// 优惠券数量 // 优惠券数量
this.getMemberCouponInfo() // this.getMemberCouponInfo()
}) })
} }
else if(!baseUserInfo && reLoginErrFlag){ else if(!baseUserInfo && reLoginErrFlag){
...@@ -154,6 +154,9 @@ wxService.page({ ...@@ -154,6 +154,9 @@ wxService.page({
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: data.page.title title: data.page.title
}) })
// tabBar
const currentTabBar = data.paragraphs.filter(item=> item.type == 5)
console.log('---', currentTabBar)
// 段落 // 段落
const products = data.paragraphs const products = data.paragraphs
const filterResult = products.map((res,index)=>{ const filterResult = products.map((res,index)=>{
......
...@@ -2,38 +2,39 @@ ...@@ -2,38 +2,39 @@
<view class='user-center' style="background: {{pageBackgroundColor == 1? '#eee': '#fff'}};min-height: {{outoHeigth}}px"> <view class='user-center' style="background: {{pageBackgroundColor == 1? '#eee': '#fff'}};min-height: {{outoHeigth}}px">
<!-- 1 轮播 2 个人中心 3 图片导航 4 底部左划 5 底部 Tab 6 公告 7 分类 8 关注公众号 9 plus(9/5-权重高)--> <!-- 1 轮播 2 个人中心 3 图片导航 4 底部左划 5 底部 Tab 6 公告 7 分类 8 关注公众号 9 plus(9/5-权重高)-->
<block wx:for="{{pages}}" wx:key="{{index}}" wx:for-item="pItem"> <block wx:for="{{pages}}" wx:key="{{index}}" wx:for-item="pItem">
{{pItem.type}}
<view wx:if="{{pItem.type == 1}}"> <view wx:if="{{pItem.type == 1}}">
<image-swiper image-data="{{pItem.rotationchart.images}}"/> <image-swiper image-data="{{pItem.rotationchart.images}}" />
</view> </view>
<view class="" wx:if="{{pItem.type == 2}}"> <view class="" wx:if="{{pItem.type == 2}}">
<person-center person-data="{{pItem.customer}}"/> <person-center person-data="{{pItem.customer}}" />
</view> </view>
<view class="" wx:if="{{pItem.type == 3}}"> <view class="" wx:if="{{pItem.type == 3}}">
<pic-nav pic-nav="{{pItem.navigation.images}}"/> <pic-nav pic-nav="{{pItem.navigation.images}}" />
</view> </view>
<view class="" wx:if="{{pItem.type == 4}}"> <view class="" wx:if="{{pItem.type == 4}}">
<bottom bottom="{{pItem.bottom}}" /> <bottom bottom="{{pItem.bottom}}" />
</view> </view>
<view class="" wx:if="{{pItem.type == 5}}"> <!--<view class="" wx:if="{{pItem.type == 5}}">
<bottom-tabs tabBar="{{pItem.tabBar}}"/> <bottom-tabs tab-bar="{{pItem.tabBar}}" />
</view>-->
<view class="" wx:if="{{ pItem.type == 9 ? pItem.type == 9 : pItem.type == 5}}">
<attention wx:if="{{pItem.type == 9}}" />
<bottom-tabs wx:else tab-bar="{{pItem.tabBar}}" />
</view> </view>
<view class="" wx:if="{{pItem.type == 6}}"> <view class="" wx:if="{{pItem.type == 6}}">
<announcement notice="{{pItem.notice}}"/> <announcement notice="{{pItem.notice}}" />
</view> </view>
<view class="" wx:if="{{pItem.type == 7}}"> <view class="" wx:if="{{pItem.type == 7}}">
<tab-sort categorys="{{pItem.categoryType.categorys}}"/> <tab-sort categorys="{{pItem.categoryType.categorys}}" />
</view> </view>
<view class="" wx:if="{{pItem.type == 8}}"> <view class="" wx:if="{{pItem.type == 8}}">
<attention focus-wx="{{pItem.focusWx}}"/> <attention focus-wx="{{pItem.focusWx}}" />
</view> </view>
<view class="" wx:if="{{pItem.type == 9}}"> <!-- <view class="" wx:if="{{pItem.type == 9}}">
<attention/> <attention/>
</view> </view>-->
</block> </block>
<!-- <!--
<tab-sort/> <tab-sort/>
<view class="page-bgc"> <view class="page-bgc">
...@@ -84,4 +85,3 @@ ...@@ -84,4 +85,3 @@
<!--<authorization-modal isAuthorization='{{isAuthorization}}' />--> <!--<authorization-modal isAuthorization='{{isAuthorization}}' />-->
<guide-page-modal show="{{guidePageModalShow}}" /> <guide-page-modal show="{{guidePageModalShow}}" />
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"autoAudits": false "autoAudits": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.6.6", "libVersion": "2.8.1",
"appid": "wxc3b64b09b1d3dfc2", "appid": "wxc3b64b09b1d3dfc2",
"projectname": "%E5%BE%AE%E5%95%86%E5%9F%8E", "projectname": "%E5%BE%AE%E5%95%86%E5%9F%8E",
"debugOptions": { "debugOptions": {
......
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