Commit 7bcf767b by 李伟康

修复BUG&修改样式

1 parent 0001f32a
......@@ -51,5 +51,6 @@ const getMockData = async () => {
}
module.exports={
getImageVersion
getImageVersion,
getMockData
}
\ No newline at end of file
@import "assets/style/common.wxss";
page {
background-color: #F9F7F7;
background-color: #F9F7F7 !important;
color: #282829;
font-size: 28rpx;
--themeColor: #8A303A;
......
// const kf_list = [{
// sapCode: 5036,
// url: 'https://work.weixin.qq.com/kfid/kfc82ffd378b8649621'
// },
// {
// sapCode: 5028,
// url: 'https://work.weixin.qq.com/kfid/kfcd636da4134201fbb'
// },
// {
// sapCode: 5016,
// url: 'https://work.weixin.qq.com/kfid/kfcdef92056fc8ef091'
// },
// ]
module.exports = Behavior({
data: {},
methods: {
......@@ -35,18 +22,25 @@ module.exports = Behavior({
customerlist
})
},
openKF(e) {
let { kfUrl, widgetStatus } = this.data
async openKF(e) {
let {
kfUrl,
widgetStatus
} = this.data, {
corpId
} = await wx.p.api.systemApi.getMockData()
if (kfUrl)
wx.openCustomerServiceChat({
extInfo: {
url: kfUrl
},
corpId: 'wx51bda2e574d24a91',
corpId,
success(res) {
console.log(res)
},
fail({ errMsg }) {
fail({
errMsg
}) {
console.log(errMsg)
wx.p.wxApi.showToast(errMsg)
}
......
/* packageEquity/pages/allEquity/allEquity.wxss */
page {
background: #F7F8FA;
background: #F9F7F7;
}
.allEquity-container {
......
......@@ -138,7 +138,7 @@
.sku-box .sku-item .item {
height: 52rpx;
background: #F7F8FA;
background: #F9F7F7;
padding: 0 20rpx;
margin: 20rpx 20rpx 0 0;
font-size: 24rpx;
......
......@@ -141,7 +141,8 @@
<view class="liness" wx:if="{{index < list.length - 1}}"></view>
</block>
</view>
<view class="qr-box box" style="margin-bottom: 32rpx;" wx:if="{{couponDetail.suitMerchantLists && couponDetail.suitMerchantLists.length}}">
<block wx:if="{{couponDetail.suitMerchantLists && couponDetail.suitMerchantLists.length}}">
<view class="qr-box box" style="margin-bottom: 32rpx;">
<view class="storeTitle">适用门店</view>
<view wx:for="{{couponDetail.suitMerchantLists}}" wx:key="index" class="store-box">
<view class="storeName">{{item.merchantName}}</view>
......@@ -156,7 +157,9 @@
</view>
</view>
</view>
<view wx:else class="qr-box box" style="margin-bottom: 32rpx;">
</block>
<block wx:else>
<view class="qr-box box" style="margin-bottom: 32rpx;">
<view class="storeTitle">适用门店</view>
<view class="storeName">{{couponDetail.merchantName}}</view>
<view wx:if="{{couponDetail.bussinessBegintime}}" class="businessTime">营业时间:{{couponDetail.bussinessBegintime}}-{{couponDetail.bussinessEndtime}}</view>
......@@ -169,6 +172,7 @@
</view>
</view>
</view>
</block>
<view class="associationBox" wx:if="{{couponDetail.relatedGoodsId}}">
<view class="box-X">
<view class="title">关联商品</view>
......
......@@ -50,7 +50,7 @@ Page({
})
}
},
getUserAddressList() {
getUserAddressList(showTips = '') {
wx.showLoading()
this.setData({
addressList: []
......@@ -60,6 +60,7 @@ Page({
addressList: data
})
wx.hideLoading()
if(showTips) wx.p.wxApi.showToast(showTips)
})
},
chooseDefault(e) {
......@@ -92,7 +93,7 @@ Page({
})
})
} else {
this.getUserAddressList()
this.getUserAddressList('默认地址更新成功')
}
})
},
......
page {
background: #F7F8FA;
background: #F9F7F7;
}
.center-page {
......
......@@ -10,13 +10,13 @@
}
page {
background: #F7F8FA;
background: #F9F7F7;
}
.tab_widget {
width: 100%;
height: 92rpx;
background: #FFFFFF;
background: #F9F7F7;
}
.tab_element {
......
page {
background: #F7F8FA;
background: #F9F7F7;
}
.success_page {
......
......@@ -10,7 +10,7 @@
}
page {
background: #F7F8FA;
background: #F9F7F7;
}
.tab_widget {
......
......@@ -38,7 +38,7 @@
left: 80rpx;
width: 420rpx;
height: 72rpx;
background: #f7f8fa;
background: #F9F7F7;
border-radius: 36rpx;
display: flex;
align-items: center;
......
......@@ -119,7 +119,7 @@
bottom: 0;
z-index: 999998;
display: flex;
background: #F7F8FA;
background: #F9F7F7;
border-radius: 0 0 10px 10px;
padding: 0 40rpx;
box-sizing: border-box;
......
......@@ -3,7 +3,7 @@
height: 104rpx;
box-sizing: border-box;
padding: 0 var(--margin);
background-color: #fff;
background-color: #F9F7F7;
}
.box-center {
......@@ -69,7 +69,7 @@
align-items: center;
width: 592rpx;
height: 100%;
background: #F8F8F8;
background: #fff;
border-radius: 38rpx;
}
......
<navigation-bar bindnavbarReady="navbarReady">商城</navigation-bar>
<navigation-bar bindnavbarReady="navbarReady" navStyle="background-color:#F9F7F7;">商城</navigation-bar>
<view class="mall-layout" style="margin-top: {{navHeight}}px;">
<search-box search-type="2" bindsearch="search" model:value="{{searchVal}}"></search-box>
<block wx:if="{{flag}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!