Commit 7bcf767b by 李伟康

修复BUG&修改样式

1 parent 0001f32a
...@@ -51,5 +51,6 @@ const getMockData = async () => { ...@@ -51,5 +51,6 @@ const getMockData = async () => {
} }
module.exports={ module.exports={
getImageVersion getImageVersion,
getMockData
} }
\ No newline at end of file \ No newline at end of file
@import "assets/style/common.wxss"; @import "assets/style/common.wxss";
page { page {
background-color: #F9F7F7; background-color: #F9F7F7 !important;
color: #282829; color: #282829;
font-size: 28rpx; font-size: 28rpx;
--themeColor: #8A303A; --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({ module.exports = Behavior({
data: {}, data: {},
methods: { methods: {
...@@ -35,20 +22,27 @@ module.exports = Behavior({ ...@@ -35,20 +22,27 @@ module.exports = Behavior({
customerlist customerlist
}) })
}, },
openKF(e) { async openKF(e) {
let { kfUrl, widgetStatus } = this.data let {
kfUrl,
widgetStatus
} = this.data, {
corpId
} = await wx.p.api.systemApi.getMockData()
if (kfUrl) if (kfUrl)
wx.openCustomerServiceChat({ wx.openCustomerServiceChat({
extInfo: { extInfo: {
url: kfUrl url: kfUrl
}, },
corpId: 'wx51bda2e574d24a91', corpId,
success(res) { success(res) {
console.log(res) console.log(res)
}, },
fail({ errMsg }) { fail({
errMsg
}) {
console.log(errMsg) console.log(errMsg)
wx.p.wxApi.showToast(errMsg) wx.p.wxApi.showToast(errMsg)
} }
}) })
else else
...@@ -57,4 +51,4 @@ module.exports = Behavior({ ...@@ -57,4 +51,4 @@ module.exports = Behavior({
}) })
} }
} }
}) })
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/allEquity/allEquity.wxss */ /* packageEquity/pages/allEquity/allEquity.wxss */
page { page {
background: #F7F8FA; background: #F9F7F7;
} }
.allEquity-container { .allEquity-container {
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
.sku-box .sku-item .item { .sku-box .sku-item .item {
height: 52rpx; height: 52rpx;
background: #F7F8FA; background: #F9F7F7;
padding: 0 20rpx; padding: 0 20rpx;
margin: 20rpx 20rpx 0 0; margin: 20rpx 20rpx 0 0;
font-size: 24rpx; font-size: 24rpx;
......
...@@ -141,34 +141,38 @@ ...@@ -141,34 +141,38 @@
<view class="liness" wx:if="{{index < list.length - 1}}"></view> <view class="liness" wx:if="{{index < list.length - 1}}"></view>
</block> </block>
</view> </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="storeTitle">适用门店</view> <view class="qr-box box" style="margin-bottom: 32rpx;">
<view wx:for="{{couponDetail.suitMerchantLists}}" wx:key="index" class="store-box"> <view class="storeTitle">适用门店</view>
<view class="storeName">{{item.merchantName}}</view> <view wx:for="{{couponDetail.suitMerchantLists}}" wx:key="index" class="store-box">
<view wx:if="{{item.bussinessBegintime}}" class="businessTime">营业时间:{{item.bussinessBegintime}}-{{item.bussinessEndtime}}</view> <view class="storeName">{{item.merchantName}}</view>
<view wx:else class="businessTime">营业时间:无</view> <view wx:if="{{item.bussinessBegintime}}" class="businessTime">营业时间:{{item.bussinessBegintime}}-{{item.bussinessEndtime}}</view>
<view class="line" wx:if="{{item.merchantAddress}}"></view> <view wx:else class="businessTime">营业时间:无</view>
<view class="addressBox" wx:if="{{item.merchantAddress}}"> <view class="line" wx:if="{{item.merchantAddress}}"></view>
<view style="width: 552rpx;padding-right: 24rpx;">{{item.merchantAddress}}</view> <view class="addressBox" wx:if="{{item.merchantAddress}}">
<view class="navigation" catchtap="jump" data-item="{{item}}"> <view style="width: 552rpx;padding-right: 24rpx;">{{item.merchantAddress}}</view>
<glsx-image webp src="mine/icon-go.png"></glsx-image> <view class="navigation" catchtap="jump" data-item="{{item}}">
<glsx-image webp src="mine/icon-go.png"></glsx-image>
</view>
</view> </view>
</view> </view>
</view> </view>
</view> </block>
<view wx:else class="qr-box box" style="margin-bottom: 32rpx;"> <block wx:else>
<view class="storeTitle">适用门店</view> <view class="qr-box box" style="margin-bottom: 32rpx;">
<view class="storeName">{{couponDetail.merchantName}}</view> <view class="storeTitle">适用门店</view>
<view wx:if="{{couponDetail.bussinessBegintime}}" class="businessTime">营业时间:{{couponDetail.bussinessBegintime}}-{{couponDetail.bussinessEndtime}}</view> <view class="storeName">{{couponDetail.merchantName}}</view>
<view wx:else class="businessTime">营业时间:无</view> <view wx:if="{{couponDetail.bussinessBegintime}}" class="businessTime">营业时间:{{couponDetail.bussinessBegintime}}-{{couponDetail.bussinessEndtime}}</view>
<view class="line" wx:if="{{couponDetail.merchantAddress}}"></view> <view wx:else class="businessTime">营业时间:无</view>
<view class="addressBox" wx:if="{{couponDetail.merchantAddress}}"> <view class="line" wx:if="{{couponDetail.merchantAddress}}"></view>
<view style="width: 552rpx;padding-right: 24rpx;">{{couponDetail.merchantAddress}}</view> <view class="addressBox" wx:if="{{couponDetail.merchantAddress}}">
<view class="navigation-X" catchtap="jumpMap"> <view style="width: 552rpx;padding-right: 24rpx;">{{couponDetail.merchantAddress}}</view>
<glsx-image webp src="mine/{{useMemberType == 0?'navigation':'unNavigation'}}.png"></glsx-image> <view class="navigation-X" catchtap="jumpMap">
<glsx-image webp src="mine/{{useMemberType == 0?'navigation':'unNavigation'}}.png"></glsx-image>
</view>
</view> </view>
</view> </view>
</view> </block>
<view class="associationBox" wx:if="{{couponDetail.relatedGoodsId}}"> <view class="associationBox" wx:if="{{couponDetail.relatedGoodsId}}">
<view class="box-X"> <view class="box-X">
<view class="title">关联商品</view> <view class="title">关联商品</view>
......
...@@ -50,7 +50,7 @@ Page({ ...@@ -50,7 +50,7 @@ Page({
}) })
} }
}, },
getUserAddressList() { getUserAddressList(showTips = '') {
wx.showLoading() wx.showLoading()
this.setData({ this.setData({
addressList: [] addressList: []
...@@ -60,6 +60,7 @@ Page({ ...@@ -60,6 +60,7 @@ Page({
addressList: data addressList: data
}) })
wx.hideLoading() wx.hideLoading()
if(showTips) wx.p.wxApi.showToast(showTips)
}) })
}, },
chooseDefault(e) { chooseDefault(e) {
...@@ -92,7 +93,7 @@ Page({ ...@@ -92,7 +93,7 @@ Page({
}) })
}) })
} else { } else {
this.getUserAddressList() this.getUserAddressList('默认地址更新成功')
} }
}) })
}, },
......
page { page {
background: #F7F8FA; background: #F9F7F7;
} }
.center-page { .center-page {
......
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
} }
page { page {
background: #F7F8FA; background: #F9F7F7;
} }
.tab_widget { .tab_widget {
width: 100%; width: 100%;
height: 92rpx; height: 92rpx;
background: #FFFFFF; background: #F9F7F7;
} }
.tab_element { .tab_element {
......
page { page {
background: #F7F8FA; background: #F9F7F7;
} }
.success_page { .success_page {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
} }
page { page {
background: #F7F8FA; background: #F9F7F7;
} }
.tab_widget { .tab_widget {
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
left: 80rpx; left: 80rpx;
width: 420rpx; width: 420rpx;
height: 72rpx; height: 72rpx;
background: #f7f8fa; background: #F9F7F7;
border-radius: 36rpx; border-radius: 36rpx;
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
bottom: 0; bottom: 0;
z-index: 999998; z-index: 999998;
display: flex; display: flex;
background: #F7F8FA; background: #F9F7F7;
border-radius: 0 0 10px 10px; border-radius: 0 0 10px 10px;
padding: 0 40rpx; padding: 0 40rpx;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
height: 104rpx; height: 104rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 0 var(--margin); padding: 0 var(--margin);
background-color: #fff; background-color: #F9F7F7;
} }
.box-center { .box-center {
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
align-items: center; align-items: center;
width: 592rpx; width: 592rpx;
height: 100%; height: 100%;
background: #F8F8F8; background: #fff;
border-radius: 38rpx; 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;"> <view class="mall-layout" style="margin-top: {{navHeight}}px;">
<search-box search-type="2" bindsearch="search" model:value="{{searchVal}}"></search-box> <search-box search-type="2" bindsearch="search" model:value="{{searchVal}}"></search-box>
<block wx:if="{{flag}}"> <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!