Commit 40c99a7a by 张晓玮

Merge branch 'zhangxw_dev_3.0' into 'v3.0'

线上问题 样式优化

See merge request !123
2 parents fcc25d5b c22b0d67
...@@ -12,7 +12,7 @@ page { ...@@ -12,7 +12,7 @@ page {
// left: 50%; // left: 50%;
// transform: translateX(-50%); // transform: translateX(-50%);
width: 100%; width: 100%;
padding: 0 24rpx; padding: 0 10rpx;
box-sizing: border-box; box-sizing: border-box;
} }
...@@ -65,16 +65,14 @@ page { ...@@ -65,16 +65,14 @@ page {
box-sizing: border-box; box-sizing: border-box;
padding-left: 32rpx; padding-left: 32rpx;
} }
.widget { .widget {
box-sizing: border-box; box-sizing: border-box;
padding: 0 16rpx; display: flex;
display: flex; padding: 0 10rpx;
.element { .element {
flex: 0 0 23%; width: 25%;
// width: 154rpx;
height: 180rpx; height: 180rpx;
margin-right: 2%; margin-right: 4rpx;
background: #F7F8FA; background: #F7F8FA;
border-radius: 16rpx; border-radius: 16rpx;
display: flex; display: flex;
...@@ -97,14 +95,18 @@ page { ...@@ -97,14 +95,18 @@ page {
.tip { .tip {
font-size: 18rpx; font-size: 18rpx;
color: #8A8C90; color: #323436;
line-height: 24rpx; line-height: 24rpx;
font-weight: 500;
} }
.active_color { .active_color {
color: #4466F0; color: #4466F0;
} }
} }
:last-child{
margin: 0;
}
.active { .active {
background-image: linear-gradient(145deg, #E6E6FF 0%, #FFFFFF 73%); background-image: linear-gradient(145deg, #E6E6FF 0%, #FFFFFF 73%);
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<view class="label">开通门店活动产品/活动</view> <view class="label">开通门店活动产品/活动</view>
</view> </view>
<view class="sinceTitle">业务场景</view> <view class="sinceTitle">业务场景</view>
<view class="widget"> <view class="widget">
<block wx:for="{{list}}" wx:key="index"> <block wx:for="{{list}}" wx:key="index">
<view bind:tap="select" data-index="{{index}}" data-item="{{item}}" class="element {{currentIndex==index?'active':''}}"> <view bind:tap="select" data-index="{{index}}" data-item="{{item}}" class="element {{currentIndex==index?'active':''}}">
<image webp mode="widthFix" class="icon" src="{{IMGURL}}apply_activity_icon_{{index+1}}.png" /> <image webp mode="widthFix" class="icon" src="{{IMGURL}}apply_activity_icon_{{index+1}}.png" />
<view class="name {{currentIndex==index?'active_color':''}}"> <view class="name {{currentIndex==index?'active_color':''}}">
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<!-- <view class="triangle-down_temp"></view> --> <!-- <view class="triangle-down_temp"></view> -->
</view> </view>
</block> </block>
</view> </view>
<view class="title_tip"> <view class="title_tip">
产品/活动 产品/活动
<text class="tips">(可多选)</text> <text class="tips">(可多选)</text>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</block> </block>
<block wx:else> <block wx:else>
<view class="emptyData" style="margin-top: {{headerHeight+32}}px;"> <view class="emptyData" style="margin-top: {{headerHeight+32}}px;">
<image src="{{IMGURL}}toLink.png" style="height: 400rpx;width: 400rpx;"></image> <image webp src="{{IMGURL}}toLink.png" style="height: 400rpx;width: 400rpx;"></image>
<view class="tip"> <view class="tip">
<view>您的门店尚未开通业务场景,</view> <view>您的门店尚未开通业务场景,</view>
<view>请联系在线客服进行咨询,谢谢。</view> <view>请联系在线客服进行咨询,谢谢。</view>
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
.container{ .container{
background-color: #F6F8FA; background-color: #F6F8FA;
padding: 180rpx 32rpx; padding: 180rpx 32rpx;
height: 100vh;
.service-wrap{ .service-wrap{
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<view class="share-btn" wx:if="{{!isShare}}" bindtap="toSharePage"> <view class="share-btn" wx:if="{{!isShare}}" bindtap="toSharePage">
<image class="icon" src="{{IMGURL}}share.png"></image> <image class="icon" src="{{IMGURL}}share.png"></image>
<text>分享</text> <text>去分享</text>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -96,6 +96,12 @@ Component({ ...@@ -96,6 +96,12 @@ Component({
this.setData({ this.setData({
[itemVal]: val [itemVal]: val
}) })
}).catch(err => {
val.isloading = false
let itemVal = 'activeList['+idx+']'
this.setData({
[itemVal]: val
})
}) })
} else if (flag && val.missionList) { // 已请求数据 展开默认选中当天 } else if (flag && val.missionList) { // 已请求数据 展开默认选中当天
val.newtaskCalenderList = this.calenderFilter(JSON.parse(JSON.stringify(val.missionList)) || [], 7) val.newtaskCalenderList = this.calenderFilter(JSON.parse(JSON.stringify(val.missionList)) || [], 7)
......
...@@ -70,6 +70,12 @@ Component({ ...@@ -70,6 +70,12 @@ Component({
this.setData({ this.setData({
[itemVal]: val [itemVal]: val
}) })
}).catch(err => {
val.isloading = false
let itemVal = 'activityList['+ind+']'
this.setData({
[itemVal]: val
})
}) })
} else { } else {
val.isCollapse = !flag val.isCollapse = !flag
......
...@@ -39,7 +39,7 @@ const domain = { ...@@ -39,7 +39,7 @@ const domain = {
商城: 192.168.2.3:8558 */ 商城: 192.168.2.3:8558 */
dev: 'https://scrm.dev.glsx.com.cn', dev: 'https://scrm.dev.glsx.com.cn',
uat: 'https://scrm.test.glsx.com.cn', uat: 'https://scrm.test.glsx.com.cn',
// uat: 'https://scrm.beta.glsx.com.cn', // uat: 'https://scrm.beta.glsx.com.cn',
prod: 'https://scrm.glsx.com.cn' prod: 'https://scrm.glsx.com.cn'
}[target[index]] }[target[index]]
......
...@@ -68,11 +68,11 @@ class Request { ...@@ -68,11 +68,11 @@ class Request {
if (code == '0') { if (code == '0') {
resolve(data.data) resolve(data.data)
} else { } else {
console.log(data)
wx.showToast({ wx.showToast({
title: message || '系统异常', title: message || '系统异常',
icon: 'none' icon: 'none'
}) })
reject(data)
} }
} }
}, },
...@@ -87,7 +87,11 @@ class Request { ...@@ -87,7 +87,11 @@ class Request {
}, },
complete() { complete() {
requestTimes--; requestTimes--;
if (requestTimes == 0) wx.hideLoading(); if (requestTimes == 0) {
setTimeout(() => {
wx.hideLoading()
}, 1500)
}
wx.stopPullDownRefresh() wx.stopPullDownRefresh()
wx.hideNavigationBarLoading() wx.hideNavigationBarLoading()
} }
......
...@@ -51,7 +51,7 @@ pageLeaveProxy(page) { ...@@ -51,7 +51,7 @@ pageLeaveProxy(page) {
// path += that.setCommonShareQuery() // path += that.setCommonShareQuery()
if (shareQuery) path += `?${shareQuery}` if (shareQuery) path += `?${shareQuery}`
if (!noPageAuth) path = `/login/loading/loading?url=${encodeURIComponent(path)}` if (!noPageAuth) path = `/authentication/loading/loading?url=${encodeURIComponent(path)}`
if (shareFun) shareFun() if (shareFun) shareFun()
if (shareTrackData) that.reportShareData(shareTrackData) if (shareTrackData) that.reportShareData(shareTrackData)
console.log('::', path) console.log('::', path)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!