Commit b98b5dd9 by 赵雅纹

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

parents ebe9d5be 0c2bad3b
/**app.wxss**/
page {
width: 100%;
box-sizing: border-box;
/* background-color: #f2f4f7; */
font-size: 30rpx;
font-family:"iconfont-711" !important;
}
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
/* 主题色 */
.theme-color{
background-color: #CB3C3C;
.theme-color {
background-color: #cb3c3c;
}
.theme-text-color{
color: #CB3C3C;
.theme-text-color {
color: #cb3c3c;
}
/* 按钮样式 */
.btn{
width: 100%;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
border-radius: 0;
}
.btn:active{
opacity: 0.5;
}
.btn-default{
background: none;
color: #808080;
border: 1px solid #808080;
.btn {
width: 100%;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
border-radius: 0;
}
.btn:active {
opacity: 0.5;
}
.btn-default {
background: none;
color: #808080;
border: 1px solid #808080;
}
.btn-primary{
background-color: #CB3C3C;
color: #ffffff;
border: 1px solid #CB3C3C;
font-size: 25rpx;
}
.btn-gray{
background-color: #959595;
color: #ffffff;
border: 1px solid #959595;
font-size: 25rpx;
}
.btn-outline{
background: none;
color: #CB3C3C;
.btn-primary {
background-color: #cb3c3c;
color: #ffffff;
border: 1px solid #cb3c3c;
font-size: 25rpx;
}
.btn-gray {
background-color: #959595;
color: #ffffff;
border: 1px solid #959595;
font-size: 25rpx;
}
.btn-outline {
background: none;
color: #cb3c3c;
}
/* 按钮大小 */
.btn-xs{
height: 39rpx;
line-height: 39rpx;
.btn-xs {
height: 39rpx;
line-height: 39rpx;
}
.btn-sm{
height: 46rpx;
line-height: 46rpx;
.btn-sm {
height: 46rpx;
line-height: 46rpx;
}
.btn-lg{
height: 88rpx;
line-height: 88rpx;
.btn-lg {
height: 88rpx;
line-height: 88rpx;
}
.fixed-bottom0 {
position: fixed;
bottom: 0;
width: 100%;
z-index: 9999;
}
.pr {
float: right;
}
.df {
display: flex;
align-items: center;
justify-content: center;
}
/*文字居中*/
.tc {
text-align: center;
}
.df-1 {
flex: 1;
}
<!--component/announcement/announcement.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<view class="announcement df" style="background-color:{{notice.backgroundColor}}" data-redirectId="{{notice.redirectId}}" bindtap="handelToAnn">
<view class="announcement" style="background-color:{{notice.backgroundColor}}" data-redirectId="{{notice.redirectId}}" bindtap="handelToAnn">
<view class="horn">
<image class="img" src="{{notice.iconImageUrl? utils.formateUrl(notice.iconImageUrl,baseImgUrl) : '/assets/imgs/7_1_0/notice.png'}}" mode="widthFix" />
<!--<image class="img" src="{{notice.iconImageUrl? 'notice.iconImageUrl': '/assets/imgs/7_1_0/notice.png'}}" mode="widthFix" />-->
......
/* component/announcement/announcement.wxss */
@import './../../base/base.wxss';
.announcement {
height: 58rpx;
margin: 20rpx;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
}
.text {
overflow: hidden;
......@@ -15,7 +18,6 @@
color: rgba(102, 102, 102, 1);
font-size: 22rpx;
text-align: left;
font-family: PingFangSC-Regular;
}
.horn {
width: 50rpx;
......
/* component/bottomTabs/bottomTabs.wxss */
@import './../../base/base.wxss';
/* @import './../../base/base.wxss'; */
@import "/app.wxss";
.bottom-tab {
display: flex;
align-items: center;
justify-content: center;
}
.tab-img {
/* width: 50rpx;
height: 50rpx; */
width: 70rpx;
height: 70rpx;
}
.tab {
flex: 1;
}
.btn-tab,.tab {
.btn-tab .tab {
height: 100%;
}
.bgc {
......@@ -30,7 +29,3 @@
.pdt {
padding-top: 50rpx;
}
/* .btn-tab {
display: flex;
justify-content: center;
} */
\ No newline at end of file
<!--component/goHome/goHome.wxml-->
<view class="bottom-img df" bindtap="handelGoHome">
<view class="bottom-img" bindtap="handelGoHome">
<text>首页</text>
<!--<image class="img-top" mode="widthFix" src="/assets/imgs/7_1_0/go-top.png"></image>-->
</view>
\ No newline at end of file
/* component/goHome/goHome.wxss */
@import './../../base/base.wxss';
.bottom-img{
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 143rpx;
right: 25rpx;
......
// component/hotItem/hotItem.js
var app = getApp()
const wxService = require('../../utils/wxService')
const utils = require('../../utils/util')
const envInfo = require('../../config/index').envInfo
Component({
/**
* 组件的属性列表
*/
properties: {
},
attached () {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!--component/hotItem/hotItem.wxml-->
<view class="hot-item border_box">
<view class="hot-img-box">
<image class="hot-img" src="./../../assets/imgs/7_1_0/scancode.png" mode="widthFix" lazy-load="false" binderror="" bindload="" />
</view>
<view class="hot-item-desc border_box">
<view class="item-name">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="item-vip-price weui-flex">
<view class="">
<image
class="item-vip"
src="./../../assets/imgs/7_1_0/vip.png"
mode="widthFix"
lazy-load="false"
binderror=""
bindload=""
/>
</view>
<text class="vip-sale-price border_box">¥189</text>
<text class="vip-original-price">¥189</text>
</view>
<view class="item-plus-price weui-flex">
<view class="">
<image
class="item-plus"
src="./../../assets/imgs/7_1_0/plus.png"
mode="widthFix"
lazy-load="false"
binderror=""
bindload=""
/>
</view>
<text class="vip-plus-price vip-sale-price border_box">¥158</text>
</view>
<view class="buy-btn">
<button class="buy">立即购买</button>
</view>
<view/>
</view>
</view>
/* component/hotItem/hotItem.wxss */
@import './../../base/base.wxss';
.hot-item {
display: flex;
padding: 28rpx;
width: 710rpx;
height: 236rpx;
border-radius: 10px;
margin: 0 auto;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.05);
}
.hot-img {
width: 180rpx;
height: 180rpx;
}
.hot-item-desc {
margin-left: 28rpx;
}
.item-name {
overflow: hidden;
white-space: nowrap;
width: 440rpx;
height: 30rpx;
color: rgba(0, 0, 0, 1);
font-size: 22rpx;
text-align: left;
font-family: PingFangSC-Light;
padding: 10rpx 0 20rpx 0;
}
.item-vip,
.item-plus {
width: 88rpx;
height: 30rpx;
border-radius: 3rpx;
background-color: #fff;
}
.item-plus-price,
.item-vip-price{
display: flex;
height: 45rpx;
color: rgba(51, 51, 51, 1);
font-size: 32rpx;
font-family: PingFangSC-Medium;
flex-direction: row;
align-items: baseline;
}
.vip-sale-price {
padding: 0 10rpx;
}
.vip-original-price {
width: 62rpx;
color: rgba(170, 170, 170, 1);
font-size: 22rpx;
font-family: PingFangSC-Regular;
text-decoration: line-through;
}
.vip-plus-price {
color: rgba(203, 60, 60, 1);
}
.buy-btn {
text-align: right;
}
.buy {
display: inline-block;
width: 125rpx;
height: 39rpx;
line-height: 35rpx;
border-radius: 19rpx;
text-align: center;
background-color: rgba(203, 60, 60, 1);
border: 2rpx solid rgba(151, 151, 151, 1);
color: rgba(255, 255, 255, 1);
font-size: 18rpx;
font-family: PingFangSC-Regular;
}
/* component/html2wxml/wxHtml.wxss */
@import '../../wxParser/index.wxss';
.wxParser image {
/* .wxParser image {
width:100%;
}
\ No newline at end of file
} */
\ No newline at end of file
<!--component/iconSwiper/iconSwiper.wxml-->
<view class="df">
<view class="icon-swiper">
<block wx:for="{{icons}}" wx:key="{{item}}">
<view class="icon-box border_box">
<view class="">
......
/* component/iconSwiper/iconSwiper.wxss */
@import './../../base/base.wxss';
/* @import './../../base/base.wxss'; */
.icon-swiper {
display: flex;
align-items: center;
justify-content: center;
}
.icon-box {
width: 25%;
text-align: center;
......
<!--component/personCenter/personCenter.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<view wx:if='{{!currentMobile}}' class="member-unActive {{personCenter.noactiveBackgroundImageUrl ?'':'member-unActive-bgc'}}" bindtap="handleTtoActiveMemebr">
<image src="{{utils.formateUrl(personCenter.noactiveBackgroundImageUrl,baseImgUrl)}}" class="no-active-img" mode="widthFix"></image>
<image src="{{utils.formateUrl(personCenter.noactiveBackgroundImageUrl,baseImgUrl)}}" class="no-active-img" mode="widthFix" />
</view>
<view wx:if='{{currentMobile}}' catchtap="handleToMemberOfOwn" class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ baseImgUrl +''+ personData.backgroundImageUrl +');' : 'background-color: ' + baseUrl + ';'}}">
<view class='user-info' wx:if='{{currentMobile}}'>
<view class="user-avatar">
<open-data type="userAvatarUrl"></open-data>
</view>
<view class='user-name-content'>
<view class='user-name'>
<!-- 1 浅色 2 黑色-->
<open-data type="userNickName" style="color:{{personCenter.fontColor == 2? '#000' : '#fff'}};" class="userinfo-nickname" lang="zh_CN"></open-data>
</view>
<view class='user-id' style="color:{{personCenter.fontColor == 2? '#000' : '#fff'}};">{{memberCardNo}}</view>
</view>
<view
wx:if='{{currentMobile}}'
catchtap="handleToMemberOfOwn"
class="activation-content activation-bg {{true ? 'user-content' : ''}}"
style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-color: ' + baseUrl + ';'}}"
>
<view class='user-info' wx:if='{{currentMobile}}'>
<view class="user-avatar">
<open-data type="userAvatarUrl" />
</view>
<view class='user-name-content'>
<view class='user-name'>
<!-- 1 浅色 2 黑色-->
<open-data
type="userNickName"
style="color:{{personCenter.fontColor == 2? '#000' : '#fff'}};"
class="userinfo-nickname"
lang="zh_CN"
/>
</view>
<view class='user-id' style="color:{{personCenter.fontColor == 2? '#000' : '#fff'}};">{{memberCardNo}}</view>
</view>
<view class='qr-code pr'>
<image class="qr-code-img" src='/assets/imgs/711_11.png' />
</view>
</view>
</view>
<view class='df tc person-num' wx:if='{{currentMobile}}'>
<view class='df-1 point person-right' bindtap="toBonusDetails" wx:if="{{personCenter.bonus == 0}}">
<view class='point-number' style="color:{{personCenter.fontColor}};">{{integralNum}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view>
</view>
<view class='df-1 point' bindtap="toCouponList" wx:if="{{personCenter.coupon == 0}}">
<view class='point-number' style="color:{{personCenter.fontColor}};">{{couponNum}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
</view>
</view>
<!--plus-->
<view class='df tc person-num' wx:if='{{currentMobile}}'>
<!--plus-->
</view>
<authorization-modal isAuthorization='{{isAuthorization}}' />
<view class='qr-code pr'>
<image src='/assets/imgs/711_11.png'></image>
</view>
</view>
</view>
<view class='df tc person-num' wx:if='{{currentMobile}}'>
<view class='df-1 point person-right' bindtap="toBonusDetails" wx:if="{{personCenter.bonus == 0}}">
<view class='point-number' style="color:{{personCenter.fontColor}};">{{integralNum}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view>
</view>
<view class='df-1 point' bindtap="toCouponList" wx:if="{{personCenter.coupon == 0}}">
<view class='point-number' style="color:{{personCenter.fontColor}};">{{couponNum}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
</view>
</view>
<authorization-modal isAuthorization='{{isAuthorization}}'/>
/* component/personCenter/personCenter.wxss */
@import './../../base/base.wxss';
/* @import './../../base/base.wxss'; */
@import "/app.wxss";
.user-content{
height: 92rpx;
padding: 28rpx 35rpx 0 50rpx;
......@@ -12,9 +14,10 @@
margin: 18rpx 0;
border-radius: 7rpx;
box-shadow: 0 0 40rpx 1rpx #ccc;
margin: 0 auto;
}
.person-num {
margin-bottom: 20rpx;
margin: 20rpx 0;
}
.person-detail {
margin-top: 10rpx;
......@@ -117,7 +120,7 @@
right: 0;
top: 6rpx;
}
.qr-code>image{
.qr-code .qr-code-img{
width: 100rpx;
height: 100rpx;
}
\ No newline at end of file
// component/plus/plus.js
const app = getApp()
const wxService = require('../../utils/wxService')
const utils = require('../../utils/util')
......@@ -11,34 +12,58 @@ Component({
type: Array,
value: [],
},
plusBgi:{
plusBgi: {
type: Object,
value: null
},
currentHasUserInfo:{
currentHasUserInfo: {
type: Boolean,
type: false
}
},
ready() {
this.getPlusPurchase()
},
/**
* 组件的初始数据
*/
data: {
currentTab:'999',
currentPrice:0
currentTab: '999',
currentPrice: 0
},
/**
* 组件的方法列表
*/
methods: {
// 获取plus购买信息
getPlusPurchase() {
wx.showLoading({
title: '加载中'
})
wxService.request({
url: app.globalData.ctx + '/sale/premium/query',
header: {
'tunnel-token' : 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
},
success: (res) => {
const { result, data } = res.data
if (result == 0) {
this.setData({
skuVOList: data
})
}
wx.hideLoading()
}
})
},
_getUserInfo(res = {}) {
const userInfo = res.detail || {}
console.log('userInfo',userInfo)
console.log('userInfo', userInfo)
// 先授权再领卡
if (res.detail.userInfo) {
utils.getUserInfoByBtn(userInfo).then( (data = {} ) => {
const {token} = data
utils.getUserInfoByBtn(userInfo).then((data = {}) => {
const { token } = data
wx.setStorageSync('_accreditUserInfo', userInfo)
wx.hideNavigationBarLoading()
if (token) {
......@@ -48,7 +73,7 @@ Component({
}
wx.setStorageSync('_baseUserInfo', data) // 缓存用户信息
this.setUserInfo() // 判断有无开卡
}).catch(err=> {
}).catch(err => {
if (err) {
wx.showToast({
title: `会员系统异常请稍后重试!`,
......@@ -58,14 +83,14 @@ Component({
})
}
},
setUserInfo () {
setUserInfo() {
const userInfo = wx.getStorageSync('_baseUserInfo')
// 新用户去激活领卡
if (userInfo && userInfo.member && !userInfo.member.mobile) {
console.log('去开')
wxService.openCard()
return false
}else {
} else {
console.log('已开')
}
// 跳转
......@@ -84,7 +109,7 @@ Component({
}
}, 200)
},
switchNav(e){
switchNav(e) {
console.log(e)
this.setData({
currentTab: e.currentTarget.dataset.current,
......@@ -93,7 +118,7 @@ Component({
})
},
payPlus() {
if (!this.data.id){
if (!this.data.id) {
wx.showToast({
title: '请先选择会员卡',
icon: 'none',
......@@ -137,6 +162,6 @@ Component({
}
})
},
}
})
<!--component/plus/plus.wxml-->
<view class="plus-wrap" wx:if="{{skuList}}">
<view class="plus-wrap" wx:if="{{skuVOList}}">
<scroll-view scroll-x class="scroll-view_H" scroll-with-animation="{{true}}">
<block
wx:for="{{skuList}}"
wx:for="{{skuVOList}}"
wx:for-index="idx"
wx:for-item="navItem"
wx:key="idx"
......@@ -45,7 +45,7 @@
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn btn-primary'
class='btn btn-primary pay-btn'
hover-class="btn-hover"
>
<text>立即支付</text>
......@@ -53,7 +53,7 @@
</button>
</block>
<block wx:else>
<button class="btn btn-primary" bindtap="payPlus">
<button class="btn btn-primary pay-btn" bindtap="payPlus">
<text>立即支付</text>
<text>¥{{currentPrice}}</text>
</button>
......
/* component/plus/plus.wxss */
@import '../../base/base.wxss';
/* @import '../../base/base.wxss'; */
@import "/app.wxss";
.plus-wrap {
width: 100%;
display: flex;
......@@ -28,14 +29,14 @@
background-repeat: no-repeat;
position: relative;
}
.poster-tips{
/* .poster-tips{
position: fixed;
bottom: 220rpx;
left: 33rpx;
}
.poster-tips image{
width: 362rpx;
}
} */
.pay{
height: 88rpx;
line-height: 88rpx;
......@@ -44,7 +45,7 @@
flex-direction: row-reverse;
margin-right: 30rpx;
}
.pay button{
.pay .pay-btn{
width: 280rpx;
height: 52rpx;
line-height: 52rpx;
......
......@@ -27,14 +27,14 @@
padding-top: 20rpx;
padding-bottom: 30rpx;
}
.codeImg{
/* .codeImg{
text-align: center;
margin-top: 35px;
}
.codeImg image{
width: 200rpx;
height: 200rpx;
}
} */
.shareCode{
text-align: center;
font-size: 16px;
......@@ -58,7 +58,7 @@
font-size: 32rpx;
padding-left: 50rpx;
}
.content_product{
/* .content_product{
width: 93%;
margin-left: auto;
margin-right:auto;
......@@ -68,7 +68,7 @@
.content_product image{
width: 630rpx;
height: 630rpx;
}
} */
.footer-desc{
width: 93%;
margin-top: 30rpx;
......@@ -123,13 +123,13 @@
font-size: 18rpx;
color: #5D5D5D;
}
.border-code image{
/* .border-code image{
width: 200rpx;
height: 200rpx;
left: 70rpx;
z-index: 999;
position:absolute;
}
} */
.product-price{
padding-top: 50rpx;
color: #D80122;
......@@ -161,7 +161,7 @@
width: 100%;
border-top: 1rpx solid #ddd;
}
.saveposte image{
/* .saveposte image{
width: 100%;
}
.close-poste{
......@@ -177,8 +177,8 @@
height: 50rpx;
z-index: 9999;
border-radius: 50%;
}
.showImages{
}*/
.showImages{
position: absolute;
top: 0;
width: 56rpx;
......
......@@ -63,7 +63,7 @@
<view class="spec-name">数量</view>
<view class="num-panel">
<button bindtap="minusNum">-</button>
<input value="{{proNum}}" type="number" bindblur="inputNum" />
<input class="num-panel-ipt" value="{{proNum}}" type="number" bindblur="inputNum" />
<button bindtap="addNum">+</button>
</view>
</view>
......
......@@ -154,7 +154,7 @@
border:none;
}
.num-panel input {
.num-panel .num-panel-ipt {
line-height: 44rpx;
text-align: center;
font-size: 32rpx;
......
......@@ -17,7 +17,7 @@
font-family: PingFangSC-Medium;
}
.scroll-view-right {
width: 20%;
width: 18%;
display: flex;
align-items: center;
justify-content: center;
......
......@@ -8,7 +8,6 @@
"tab-sort": "/component/tabSort/tabSort",
"announcement": "/component/announcement/announcement",
"icon-swiper": "/component/iconSwiper/iconSwiper",
"hot-item": "/component/hotItem/hotItem",
"bannerAd": "/component/bannerAd/bannerAd",
"attention": "/component/attention/attention",
"guide-page-modal": "/component/guidePageModal/guidePageModal",
......
......@@ -90,9 +90,9 @@ wxService.page({
isAuthorization: false
}, () => {
// 积分数量
// this.getMemberPointInfo()
this.getMemberPointInfo()
// 优惠券数量
// this.getMemberCouponInfo()
this.getMemberCouponInfo()
})
}
else if (!baseUserInfo && reLoginErrFlag) {
......@@ -123,7 +123,7 @@ wxService.page({
// })
// }
// 获取plus购买信息
this.getPlusPurchase()
// this.getPlusPurchase()
// 获取手机信息
wxService.getSystemInfo().then(res => {
this.setData({
......@@ -138,7 +138,40 @@ wxService.page({
})
}
},
// 查询积分信息
getMemberPointInfo() {
wx.showLoading({
title: '加载中'
})
wxService.get(`/member/memberPoint/getMyPointInfo`).then(res => {
if (res) {
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
this.setData({
integralNum: data && data.point || 0
})
}
}
})
},
// 查询优惠券数量
getMemberCouponInfo() {
wx.showLoading({
title: '加载中'
})
wxService.post(`/coupon/coupon/memberCouponCount`).then(res => {
if (res) {
const { result, data } = res && res.data
if (result == 0) {
wx.hideLoading()
this.setData({
couponNum: data && data[1] || 0
})
}
}
})
},
// page 信息
initPage(pageId) {
this.setData({
......@@ -215,18 +248,18 @@ wxService.page({
},
// 获取plus购买信息
getPlusPurchase() {
wxService.get(`/sale/premium/query`).then(res => {
if(!res) return false
const { result, data } = res.data
if (result == 0) {
this.setData({
skuVOList: data
})
}
}).finally(() => {
})
},
// getPlusPurchase() {
// wxService.get(`/sale/premium/query`).then(res => {
// if(!res) return false
// const { result, data } = res.data
// if (result == 0) {
// this.setData({
// skuVOList: data
// })
// }
// }).finally(() => {
// })
// },
/**
* 用户点击右上角分享
*/
......
......@@ -8,7 +8,6 @@
"tab-sort": "/component/tabSort/tabSort",
"announcement": "/component/announcement/announcement",
"icon-swiper": "/component/iconSwiper/iconSwiper",
"hot-item": "/component/hotItem/hotItem",
"bannerAd": "/component/bannerAd/bannerAd",
"attention": "/component/attention/attention",
"guide-page-modal": "/component/guidePageModal/guidePageModal",
......
......@@ -6,7 +6,7 @@
<image-swiper image-data="{{pItem.rotationchart.images}}" />
</view>
<view class="" wx:if="{{pItem.type == 2}}">
<person-center person-data="{{pItem.customer}}" />
<person-center base-user-info="{{baseUserInfo}}" person-data="{{pItem.customer}}" integral-num="{{integralNum}}" coupon-num="{{couponNum}}" token="{{token}}"/>
</view>
<view class="" wx:if="{{pItem.type == 3}}">
<pic-nav pic-nav="{{pItem.navigation.images}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}"/>
......
......@@ -8,7 +8,6 @@
"tab-sort": "/component/tabSort/tabSort",
"announcement": "/component/announcement/announcement",
"icon-swiper": "/component/iconSwiper/iconSwiper",
"hot-item": "/component/hotItem/hotItem",
"bannerAd": "/component/bannerAd/bannerAd",
"attention": "/component/attention/attention",
"guide-page-modal": "/component/guidePageModal/guidePageModal",
......
......@@ -165,12 +165,14 @@ class WXService extends Http {
wechatInfo: null,
brandId: app.globalData.brandId,
}).then(response => {
let dataResp = response.data.data
wx.setStorageSync('token', dataResp.token)
wx.setStorageSync('_baseUserInfo', dataResp)
return Promise.resolve({
response
})
if (response) {
let dataResp = response.data.data
wx.setStorageSync('token', dataResp.token)
wx.setStorageSync('_baseUserInfo', dataResp)
return Promise.resolve({
response
})
}
}).catch(err => {
return Promise.reject(err)
})
......
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