Commit 0ef6c5c7 by 赵雅纹

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

parents 539872d4 7ea623ed
<!--component/bottomTabs/bottomTabs.wxml--> <!--component/bottomTabs/bottomTabs.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" /> <wxs src="../../wxs/utils.wxs" module="utils" />
<wxs src="./handlerData.wxs" module="tools" /> <wxs src="./handlerData.wxs" module="tools" />
<view class='bgc fixed-bottom0' style="background-color:#FFF;background-image:url({{tabBar.num == 4 ? '': '/assets/imgs/7_1_0/bg.png'}});" wx:if="{{tabBar.num == 4}}"> <view class='bgc fixed-bottom0' style="background-image:url({{tabBar.num == 4 ? '': '/assets/imgs/7_1_0/bg.png'}});" wx:if="{{tabBar.num == 4}}">
<!--<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}}">-->
<block wx:for="{{tabBar.images}}" wx:key="{{index}}" wx:for-item="tab"> <block wx:for="{{tabBar.images}}" wx:key="{{index}}" wx:for-item="tab">
<view class="tab"> <view class="tab">
<!--当前页面需要授权 切未授权--> <!--当前页面需要授权 切未授权-->
...@@ -12,21 +11,21 @@ ...@@ -12,21 +11,21 @@
bindgetuserinfo="_getUserInfo" bindgetuserinfo="_getUserInfo"
data-jflag="false" data-jflag="false"
open-type='getUserInfo' open-type='getUserInfo'
class='btn btn-primary df' class='btn btn-primary'
hover-class="btn-hover" hover-class="btn-hover"
style="height:100%" style="height: 100%;background-color: #eee;"
> >
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" /> <image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button> </button>
</view> </view>
<view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage"> <view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage">
<button class='btn btn-primary df' style="height:100%"> <button class='btn btn-primary' style="height: 100%;background-color: #eee;">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" /> <image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button> </button>
</view> </view>
</view> </view>
<view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage"> <view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage">
<button class='btn btn-primary df' style="height:100%"> <button class='btn btn-primary' style="height: 100%;background-color: #eee;">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" /> <image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button> </button>
</view> </view>
......
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
justify-content: center; justify-content: center;
} }
.tab-img { .tab-img {
width: 50rpx; /* width: 50rpx;
height: 50rpx; height: 50rpx; */
width: 70rpx;
height: 70rpx;
} }
.tab { .tab {
flex: 1; flex: 1;
...@@ -18,13 +20,17 @@ ...@@ -18,13 +20,17 @@
.bgc { .bgc {
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
height: 108rpx; height: 114rpx;
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); box-shadow: 0px -4px 10px 0px rgba(232, 232, 232, 0.95);
padding-top: 20rpx;
} }
.pdt { .pdt {
padding-top: 50rpx; padding-top: 50rpx;
} }
/* .btn-tab {
display: flex;
justify-content: center;
} */
\ No newline at end of file
...@@ -10,6 +10,10 @@ Component({ ...@@ -10,6 +10,10 @@ Component({
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
currentHasUserInfo:{
type: Boolean,
type: false
},
picNav: { picNav: {
type: Array, type: Array,
value: [], value: [],
...@@ -35,6 +39,11 @@ Component({ ...@@ -35,6 +39,11 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
_getUserInfo(res = {}) {
wxService.nextTick(() => {
this.triggerEvent('getAuth', res);
})
},
imageLoad(e) { imageLoad(e) {
let imageSize = utils.imageUtil(e) let imageSize = utils.imageUtil(e)
this.setData({ this.setData({
......
<!--component/picNav/picNav.wxml--> <!--component/picNav/picNav.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" /> <wxs src="../../wxs/utils.wxs" module="utils" />
<view class="pic-nav"> <view class="pic-nav">
<view <view
wx:for="{{picNav}}" wx:for="{{picNav}}"
wx:key="{{index}}" wx:key="{{index}}"
wx:for-item="item" wx:for-item="item"
class="nav-block" class="nav-block"
> >
<image <image
wx:if="{{baseImgUrl}}" wx:if="{{currentHasUserInfo}}"
class="pic-img" class="pic-img"
style="width: {{100}}%;height: {{100}}px;" style="width: {{100}}%;height: {{100}}px;"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}" src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
data-appid="{{item.link.appid}}" data-appid="{{item.link.appid}}"
data-path="{{item.link.url}}" data-path="{{item.link.url}}"
...@@ -19,6 +19,29 @@ ...@@ -19,6 +19,29 @@
bindload="imageLoad" bindload="imageLoad"
bindtap='preview' bindtap='preview'
/> />
<button
wx:if="{{!currentHasUserInfo}}"
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn btn-primary df'
hover-class="btn-hover"
style="height:100%"
>
<image
class="pic-img"
style="width: {{100}}%;height: {{100}}px;"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
data-appid="{{item.link.appid}}"
data-path="{{item.link.url}}"
data-link="{{item.link}}"
data-item="{{item}}"
bindload="imageLoad"
bindtap='preview'
/>
</button>
</view> </view>
</view> </view>
<authorization-modal <authorization-modal
...@@ -27,3 +50,4 @@ ...@@ -27,3 +50,4 @@
isAuthorizationType="{{isAuthorizationType}}" isAuthorizationType="{{isAuthorizationType}}"
isAuthorizationActiveText="{{isAuthorizationActiveText}}" isAuthorizationActiveText="{{isAuthorizationActiveText}}"
/> />
...@@ -9,6 +9,10 @@ Component({ ...@@ -9,6 +9,10 @@ Component({
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
currentHasUserInfo:{
type: Boolean,
type: false
},
categoryType: { categoryType: {
type: Object, type: Object,
value: null value: null
...@@ -45,6 +49,11 @@ Component({ ...@@ -45,6 +49,11 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
_getUserInfo(res = {}) {
wxService.nextTick(() => {
this.triggerEvent('getAuth', res);
})
},
handelToVipCode() { handelToVipCode() {
wxService.router(`/pages/memberOfOwn/memberOfOwn`) wxService.router(`/pages/memberOfOwn/memberOfOwn`)
}, },
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
style="width:{{navItemWidth}}%" style="width:{{navItemWidth}}%"
data-current="{{idx}}" data-current="{{idx}}"
data-redirectId="{{navItem.redirectId}}" data-redirectId="{{navItem.redirectId}}"
data-item ="{{navItem}}" data-item="{{navItem}}"
bindtap="switchNav" bindtap="switchNav"
> >
<view>{{navItem.title}}</view> <view>{{navItem.title}}</view>
...@@ -21,7 +21,26 @@ ...@@ -21,7 +21,26 @@
</scroll-view> </scroll-view>
<!-- showQrcode 2 购物车 1 会员码 0 隐藏 --> <!-- showQrcode 2 购物车 1 会员码 0 隐藏 -->
<view class="scroll-view-right" bindtap="handelToVipCode" wx:if="{{categoryType.showQrcode == 1}}"> <view class="scroll-view-right" bindtap="handelToVipCode" wx:if="{{categoryType.showQrcode == 1}}">
<button
wx:if="{{!currentHasUserInfo}}"
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn btn-primary df'
hover-class="btn-hover"
style="height:100%"
>
<image
class="right-img"
src="/assets/imgs/7_1_0/scancode.png"
mode="widthFix"
lazy-load="false"
binderror=""
bindload=""
/>
</button>
<image <image
wx:if="{{currentHasUserInfo}}"
class="right-img" class="right-img"
src="/assets/imgs/7_1_0/scancode.png" src="/assets/imgs/7_1_0/scancode.png"
mode="widthFix" mode="widthFix"
...@@ -29,10 +48,21 @@ ...@@ -29,10 +48,21 @@
binderror="" binderror=""
bindload="" 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>
<view class="scroll-view-right" bindtap="handelToCart" wx:if="{{categoryType.showQrcode == 2}}"> <view class="scroll-view-right" bindtap="handelToCart" wx:if="{{categoryType.showQrcode == 2}}">
<button
wx:if="{{!currentHasUserInfo}}"
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn btn-primary df'
hover-class="btn-hover"
style="height:100%"
/>
<image <image
wx:if="{{currentHasUserInfo}}"
class="right-img" class="right-img"
src="/assets/imgs/7_1_0/08_22/cart_point.png" src="/assets/imgs/7_1_0/08_22/cart_point.png"
mode="widthFix" mode="widthFix"
...@@ -43,4 +73,3 @@ ...@@ -43,4 +73,3 @@
</view> </view>
</view> </view>
...@@ -73,7 +73,6 @@ wxService.page({ ...@@ -73,7 +73,6 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
console.log('0this.data.currentHasUserInfo', this.data.currentHasUserInfo)
// 取会员卡号 // 取会员卡号
const baseUserInfo = wx.getStorageSync('_baseUserInfo') const baseUserInfo = wx.getStorageSync('_baseUserInfo')
const cardMember = wx.getStorageSync('_cardMember') const cardMember = wx.getStorageSync('_cardMember')
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
<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}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}"/>
</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 currHomePageId="{{currHomePageId}}" currentHasUserInfo="{{currentHasUserInfo}}" tab-bar="{{pItem.tabBar}}" bind:updatePage="updatePage"/> <bottom-tabs currHomePageId="{{currHomePageId}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" tab-bar="{{pItem.tabBar}}" bind:updatePage="updatePage"/>
</view> </view>
<view class="" wx:if="{{pItem.type == 6}}"> <view class="" wx:if="{{pItem.type == 6}}">
<announcement notice="{{pItem.notice}}" /> <announcement notice="{{pItem.notice}}" />
......
...@@ -36,8 +36,6 @@ wxService.page({ ...@@ -36,8 +36,6 @@ wxService.page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad() { onLoad() {
// 设置 导航栏背景颜色
// wxService.getNavBarBackGroundColor('#000000', '#ff0000')
this.setData( this.setData(
{ {
pages: [], pages: [],
...@@ -75,7 +73,6 @@ wxService.page({ ...@@ -75,7 +73,6 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
// 取会员卡号 // 取会员卡号
const baseUserInfo = wx.getStorageSync('_baseUserInfo') const baseUserInfo = wx.getStorageSync('_baseUserInfo')
const cardMember = wx.getStorageSync('_cardMember') const cardMember = wx.getStorageSync('_cardMember')
...@@ -216,6 +213,7 @@ wxService.page({ ...@@ -216,6 +213,7 @@ wxService.page({
// 获取plus购买信息 // 获取plus购买信息
getPlusPurchase() { getPlusPurchase() {
wxService.get(`/sale/premium/query`).then(res => { wxService.get(`/sale/premium/query`).then(res => {
if(!res) return false
const { result, data } = res.data const { result, data } = res.data
if (result == 0) { if (result == 0) {
this.setData({ this.setData({
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
<bottom-tabs currHomePageId="{{currHomePageId}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" tab-bar="{{pItem.tabBar}}" bind:updatePage="updatePage"/> <bottom-tabs currHomePageId="{{currHomePageId}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" tab-bar="{{pItem.tabBar}}" bind:updatePage="updatePage"/>
</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 category-type="{{pItem.categoryType}}" /> <tab-sort category-type="{{pItem.categoryType}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" />
</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}}" />
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"autoAudits": false "autoAudits": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.1", "libVersion": "2.8.2",
"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