Commit 94057f7d by wuwx

修复样式

2 parents 001a5f76 1a22e947
......@@ -13,6 +13,10 @@ Component({
type: Boolean,
value: true
},
hasLockIcon: {
type: Boolean,
value: true
},
formData: {
type: Object,
value: () => { }
......
......@@ -3,8 +3,11 @@
<view class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" wx:for="{{custSceneList}}" wx:key="index" bindtap="handleClick" data-idx="{{index + 1}}">
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)}}" class="open-icon">已开通</view>
<image wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
<view class="scene-title">{{item.title}}</view>
<view wx:else class="no-open-img">
<image wx:if="{{hasLockIcon}}" class="lock-img" src="{{IMGURL}}output/carlock0{{index + 1}}.png?v={{img_version}}" />
<image wx:else="" class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
</view>
<view class="scene-title {{formData['scene' + (index + 1)] ? '' : 'on-open'}}">{{item.title}}</view>
<view>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">¥ {{scenePriceList[index].total}}</view>
</view>
......
......@@ -19,7 +19,7 @@
color: #8A8C90;
padding: 32rpx 0 28rpx;
border-radius: 12rpx;
margin-bottom: 20rpx;
/* margin-bottom: 20rpx; */
}
.scene-item:last-child {
......@@ -62,14 +62,16 @@
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
}
.active::after {
position: absolute;
left: 50%;
bottom: -7px;
bottom: -18rpx;
display: block;
content: "";
width: 6px;
height: 6px;
width: 16rpx;
height: 16rpx;
/* border-radius: 4rpx; */
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
......@@ -80,7 +82,13 @@
.scene-title {
color: #323436;
font-weight: 600;
}
.scene-title.on-open {
color: #8A8C90;
}
.no-open-img {
position: relative;
}
.scene-img {
......@@ -88,6 +96,11 @@
height: 56rpx;
}
.lock-img {
width: 92rpx;
height: 64rpx;
}
.total-price {
height: 40rpx;
line-height: 40rpx;
......
......@@ -221,7 +221,10 @@ Component({
message
}) => {
if (code == '0') this.checkLoginUserInfo(data)
else wx.$api.showToast(message || '系统异常')
else {
wx.$api.showToast(message || '系统异常')
this.init()
}
this.setBtnLoading(false)
})
.catch(({
......@@ -229,6 +232,7 @@ Component({
}) => {
wx.$api.showToast(errMsg || '系统异常')
this.setBtnLoading(false)
this.init()
})
},
/**手机号&微信登录:是否跳转登录列表页 */
......
......@@ -51,7 +51,7 @@ page {
.box {
&-title {
font-weight: 600;
padding: 0 0 16rpx 12rpx;
padding: 32rpx 0 16rpx 12rpx;
}
.title-tip {
......@@ -85,28 +85,30 @@ page {
background: #F0F7FF;
border: 2rpx solid #3E71FE;
color: #3666FE;
border: 1rpx solid #3E71FE;
}
}
}
.btn {
position: fixed;
bottom: 0;
bottom: 16rpx;
left: 0;
width: 100%;
width: calc(100% - 64rpx);
height: 88rpx;
line-height: 88rpx;
font-size: 34rpx;
color: #FFFFFF;
text-align: center;
font-size: 28rpx;
color: #FFFFFF;
margin: 0 32rpx;
}
.btn-blue {
background: #3666FE;
border-radius: 8rpx;
}
.btn-disabled {
background: #CCCED1;
border-radius: 8rpx;
}
}
\ No newline at end of file
<!--packageOutput/pages/openBusiness/openBusiness.wxml-->
<view class="openBusiness">
<image class="bg-img" src="{{IMGURL}}output/open0{{sceneActive}}.png?v={{img_version}}"/>
<image class="bg-img" src="{{IMGURL}}output/open0{{sceneActive}}.png?v={{img_version}}" />
<view class="layout">
<view class="form m-b-32">
<text class="label">开通门店:</text>
......@@ -20,6 +20,8 @@
</view>
</view>
</view>
<view wx:if="{{sceneActive != 1}}" class="isFullSucreen btn btn-blue" bindtap="handleConfirm">申请开通</view>
<view wx:else class="btn btn-disabled">申请开通</view>
<view class="isFullSucreen btn">
<view wx:if="{{sceneActive != 1}}" class="btn-blue" bindtap="handleConfirm">申请开通</view>
<view wx:else class="btn-disabled">申请开通</view>
</view>
</view>
\ No newline at end of file
......@@ -10,7 +10,7 @@ Component({
type: Object,
value: () => { },
observer(n) {
this.dealStaffList()
n && this.dealStaffList()
}
},
},
......@@ -25,10 +25,10 @@ Component({
name: 'totalNum'
}, {
label: '总订单',
name: 'totalAmount'
name: 'totalOrderCount'
}, {
label: '成交金额',
name: 'totalOrderCount',
name: 'totalAmount',
prefix: '¥'
}],
merchantFormList: [{
......@@ -77,7 +77,7 @@ Component({
methods: {
dealStaffList() {
var list = this.data.orderObj
list && list.activityList.forEach(item => {
list && list.activityList?.forEach(item => {
// 0-未开始;1-活动中;2-已结束
let sliceNum = item.actStatus == 2 ? 3 : 10
item.showStaffList = item.staffList.length > sliceNum ? item.staffList.slice(0, sliceNum) : item.staffList
......
......@@ -74,7 +74,6 @@ Page({
},
setCurActivity() {
console.log(this.data.activityActive)
this.setData({
activityList: JSON.parse(JSON.stringify(this.data.sceneActivityObj['scene' + (this.data.sceneActive)]))
})
......@@ -94,8 +93,7 @@ Page({
this.setData({
['searchForm.scene' + this.data.sceneActive + 'Idx']: res.tapIndex
})
this.data.sceneActive != 4 ? this.getCustomerDetail() : this.getActivityRevenue()
console.log('调接口---')
this.data.sceneActive != 4 ? this.getCustomerDetail(false, false) : this.getActivityRevenue()
}
})
},
......@@ -110,24 +108,31 @@ Page({
wx.$router.go('packageOutput.openBusiness', params)
},
getSceneProStatus(sceneCode) {
getSceneProStatus(sceneCode, isFirst = false) {
var params = {
serviceMerchantId: this.data.merchantInfo.pMerchantId,
merchant4sId: this.data.merchantInfo.merchantId,
sceneCode: sceneCode
}
outputApi.getSceneProStatus(params).then(res => {
var proList = res.find(item => item.sceneCode == sceneCode)
// var proList = res.find(item => item.sceneCode == sceneCode)
// 删---
// proList.productList[1].productStatus = 2
this.setData({
['sceneActivityObj.scene' + this.data.sceneActive]: proList.productList
['sceneActivityObj.scene1']: res[0].productList,
['sceneActivityObj.scene2']: res[1].productList,
['sceneActivityObj.scene3']: res[2].productList,
['sceneActivityObj.scene4']: res[3].productList
})
if ([2, 3].includes(+this.data.sceneActive)) {
this.getCustomerDetail()
} else if (this.data.sceneActive == 4) {
this.getActivityRevenue()
} else {
if (isFirst) {
this.getCustomerDetail(isFirst)
this.getActivityRevenue(isFirst)
}
this.setCurActivity()
}
})
......@@ -157,15 +162,14 @@ Page({
/** 1.1和1.2场景产品数据处理
* 调同一个接口,返回两个服务下面的全部产品的数据
*/
getCustomerDetail() {
getCustomerDetail(isFirst = false, isChangeOtherTotal = true) {
var params = this.dealSearchTime()
outputApi.getCustomerDetail({ merchantId: this.data.merchantInfo.merchantId, ...params }).then(res => {
var actList = this.data.sceneActivityObj['scene' + this.data.sceneActive]
var actList = this.data.sceneActivityObj['scene' + (isFirst ? 2 : this.data.sceneActive)]
var actCodeList = actList.map(item => item.productCode)
console.log(actCodeList)
var curTotal = 0
var otherTotal = 0
var otherScene = this.data.sceneActive == 2 ? 3 : 2
var otherScene = isFirst ? 2 : (this.data.sceneActive == 2 ? 3 : 2)
res.forEach(item => {
var idx = actCodeList.findIndex(i => i == item.productCode)
if (idx != -1) {
......@@ -184,14 +188,21 @@ Page({
otherTotal = otherTotal + (item.orderTotal?.totalSubOrderOrderMoney || 0)
}
})
if (!isFirst) {
this.setData({
['sceneActivityObj.scene' + this.data.sceneActive]: actList
})
}
// 总金额
this.setData({
['sceneActivityObj.scene' + this.data.sceneActive]: actList,
['scenePriceList[' + (this.data.sceneActive - 1) + '].total']: curTotal,
['scenePriceList[' + (otherScene - 1) + '].total']: otherTotal
['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal
})
console.log(this.data.sceneActivityObj['scene' + this.data.sceneActive])
this.setCurActivity()
if(isChangeOtherTotal) {
this.setData({
['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal
})
}
!isFirst && this.setCurActivity()
})
},
......@@ -218,13 +229,17 @@ Page({
},
/** 查询场景4的产值 */
getActivityRevenue() {
wx.showLoading()
getActivityRevenue(isFirst = false) {
!isFirst && wx.showLoading()
var params = this.dealSearchStatus()
outputApi.getActivityRevenue({ merchantId: this.data.merchantInfo.merchantId, ...params }).then(res => {
// console.log(res)
// console.log(this.data.sceneActivityObj, '++++++')
var actList = this.data.sceneActivityObj['scene' + this.data.sceneActive]
var actList = this.data.sceneActivityObj['scene' + (isFirst ? 4 : this.data.sceneActive)]
var total = 0
res.forEach(item => {
total = total + item.totalAmount
})
actList.forEach((item, idx) => {
var curItem = res.find(k => k.goodsCategoryCode == item.productCode)
if (curItem) {
......@@ -270,12 +285,19 @@ Page({
}
})
actList[idx].outputData = curItem
} else {
actList[idx].outputData = []
}
})
if (!isFirst) {
this.setData({
['sceneActivityObj.scene' + this.data.sceneActive]: actList
})
}
this.setData({
['sceneActivityObj.scene' + this.data.sceneActive]: actList
['scenePriceList[3].total']: total
})
this.setCurActivity()
!isFirst && this.setCurActivity()
}).finally(() => {
wx.hideLoading()
})
......@@ -295,8 +317,8 @@ Page({
// },
// sceneCodeList: ['SC001', 'SC002', 'SC003', 'SC004']
// })
// this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
wx.$router.getData(obj => {
var scene = {}
Object.keys(this.data.sceneObj).forEach(item => {
......@@ -308,7 +330,7 @@ Page({
sceneCodeList: obj.sceneCodeList
})
this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1], true)
})
},
......
......@@ -42,8 +42,17 @@
padding: 27rpx 0 24rpx;
}
scroll-view ::-webkit-scrollbar {
display:none;
width:0;
height:0;
color:transparent;
}
.activity-box {
width: 100%;
height: 64rpx;
padding: 32rpx 0 28rpx;
.activity-item {
box-sizing: border-box;
......@@ -115,21 +124,24 @@
.btn {
position: fixed;
bottom: 0;
bottom: 16rpx;
left: 0;
width: 100%;
width: calc(100% - 64rpx);
height: 88rpx;
line-height: 88rpx;
text-align: center;
font-size: 28rpx;
color: #FFFFFF;
margin: 0 32rpx;
.btn-blue {
background: #3666FE;
border-radius: 8rpx;
}
.btn-disabled {
background: #CCCED1;
border-radius: 8rpx;
}
}
}
\ No newline at end of file
......@@ -11,7 +11,7 @@
</view>
<!-- 活动 -->
<view class="p-rl-20 bg-white">
<scroll-view scroll-x="{{true}}" class="activity-box" scroll-left="{{scrollLeft}}">
<scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
<view class="flex">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.productStatus == 2 ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">{{item.productName}}</view>
</view>
......
......@@ -35,7 +35,7 @@ Page({
console.log('name: ', name)
if (!name) {
wx.pro.showToast({
title: '请输入店名',
title: '请输入开店名称',
icon: 'error'
})
return
......
......@@ -27,11 +27,19 @@
</view>
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">门店联系人</view>
<<<<<<< HEAD
<input class="inp" placeholder-class="inp-placeholder" value="{{carObj.contact}}" bindinput="bindinputFn" data-name="contact" placeholder="请输入联系人" />
</view>
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">联系人手机号</view>
<input class="inp" placeholder-class="inp-placeholder" value="{{carObj.phone}}" bindinput="bindinputFn" data-name="phone" placeholder="请输入手机号" />
=======
<input class="inp" value="{{carObj.contact}}" bindinput="bindinputFn" data-name="contact" maxlength="{{30}}" placeholder="请输入30个字符以内" />
</view>
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">联系人手机号</view>
<input class="inp" value="{{carObj.phone}}" bindinput="bindinputFn" data-name="phone" maxlength="{{30}}" placeholder="请输入30个字符以内" />
>>>>>>> 1a22e94703873289917ce13d64d3958c8074005f
</view>
</view>
<button class="btn" bindtap="applyFn">提交开店信息</button>
......
......@@ -3,6 +3,7 @@
background-color: #f8fafb;
border-radius: 20rpx 20rpx 0 0;
}
.prod-wrap .big-title {
margin-left: 32rpx;
font-family: PingFangSC-Medium;
......@@ -11,6 +12,7 @@
color: #323436;
padding-top: 32rpx;
}
.prod-wrap .nav-wrap {
white-space: nowrap;
box-sizing: border-box;
......@@ -18,6 +20,7 @@
margin-bottom: 16rpx;
padding-left: 32rpx;
}
.prod-wrap .nav-wrap .nav {
display: inline-block;
height: 64rpx;
......@@ -33,6 +36,7 @@
color: #323436;
padding: 0 16rpx;
}
.prod-wrap .nav-wrap .active-nav {
color: #ffffff;
font-weight: 500;
......@@ -42,6 +46,7 @@
// border: 2rpx solid rgba(68,97,240,0.50);
// box-shadow: 0 8rpx 16rpx 0 rgba(175,187,219,0.35);
}
.prod-wrap .nav-wrap .nav:last-child {
margin-right: 0;
}
......@@ -71,6 +76,7 @@
flex-shrink: 0;
border-radius: 4rpx;
}
.img-desc {
position: absolute;
width: 104rpx;
......@@ -85,6 +91,7 @@
letter-spacing: 0;
text-align: center;
}
.prod-info {
display: flex;
flex-direction: column;
......@@ -92,33 +99,39 @@
padding: 12rpx 0;
margin-left: 24rpx;
}
.prod-info > text {
.prod-info>text {
display: block;
white-space: nowrap;
height: 40rpx;
line-height: 40rpx;
}
.prod-info .title {
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 28rpx;
color: #323436;
}
.prod-info .sale,
.prod-info .earnings {
font-size: 26rpx;
color: #7a8299;
}
.prod-info .sale-num {
font-size: 26rpx;
color: #323436;
}
.prod-info .earnings-num {
font-size: 28rpx;
font-family: DINAlternate-Bold;
// font-family: DINAlternate-Bold;
font-weight: Bold;
color: #f35251;
}
.share-btn {
height: 56rpx;
line-height: 56rpx;
......@@ -136,6 +149,7 @@
top: 50%;
transform: translateY(-50%);
}
.share-btn .icon {
width: 32rpx;
height: 32rpx;
......@@ -147,11 +161,13 @@
}
.project-img {
// height: 1600rpx;
// white-space: nowrap;
.img-item {
position: relative;
}
.more-btn {
position: absolute;
left: 50%;
......@@ -168,11 +184,13 @@
line-height: 64rpx;
}
}
.stickyTab {
position: sticky;
z-index: 2;
background-color: #f5f7fb;
}
// .out-tab{
// .out-text {
// // color: red !important;
......@@ -190,22 +208,27 @@
width: 100%;
height: 1110rpx;
}
.img-item12 {
width: 100%;
height: 1290rpx;
}
.img-item13 {
width: 100%;
height: 596rpx;
}
.img-item14 {
width: 100%;
height: 744rpx;
}
.img-item15 {
width: 100%;
height: 490rpx;
}
.img-item16 {
width: 100%;
height: 1532rpx;
......@@ -216,27 +239,34 @@
width: 100%;
height: 2168rpx;
}
.img-item22 {
width: 100%;
height: 1290rpx;
}
.img-item23 {
width: 100%;
height: 596rpx;
}
.img-item24 {
width: 100%;
height: 830rpx;
}
.img-item25 {
width: 100%;
height: 490rpx;
}
.img-item26 {
height: 752rpx;
.video-item{
.video-item {
width: 100%;
video{
video {
border-radius: 16rpx;
height: 348rpx;
}
......@@ -248,22 +278,27 @@
width: 100%;
height: 1110rpx;
}
.img-item32 {
width: 100%;
height: 1290rpx;
}
.img-item33 {
width: 100%;
height: 596rpx;
}
.img-item34 {
width: 100%;
height: 984rpx;
}
.img-item35 {
width: 100%;
height: 490rpx;
}
// .img-item26 {
// width: 100%;
// height: 752rpx;
......@@ -273,22 +308,27 @@
width: 100%;
height: 678rpx;
}
.img-item42 {
width: 100%;
height: 1266rpx;
}
.img-item43 {
width: 100%;
height: 1398rpx;
}
.img-item44 {
width: 100%;
height: 830rpx;
}
.img-item45 {
width: 100%;
height: 490rpx;
}
.img-item46 {
width: 100%;
height: 1666rpx;
......@@ -299,18 +339,22 @@
width: 100%;
height: 814rpx;
}
.img-item52 {
width: 100%;
height: 998rpx;
}
.img-item53 {
width: 100%;
height: 596rpx;
}
.img-item54 {
width: 100%;
height: 984rpx;
}
.img-item55 {
width: 100%;
height: 490rpx;
......@@ -324,6 +368,7 @@
position: absolute;
top: 280rpx;
}
.video-title {
position: relative;
padding: 96rpx 0 24rpx;
......@@ -334,6 +379,7 @@
letter-spacing: 0;
line-height: 64rpx;
}
.video-title::after {
content: '';
display: block;
......@@ -345,12 +391,14 @@
transform: translateX(-50%);
background-color: #ffffff;
}
.video-list {
display: flex;
flex-wrap: wrap;
padding: 0rpx 32rpx;
font-size: 0;
}
.check-prod .video-list{
padding-bottom: 140rpx;
}
......@@ -359,22 +407,26 @@
width: calc(50% - 12rpx);
margin-bottom: 32rpx;
}
.video-item video {
width: 100%;
height: 590rpx;
// border: 1rpx dashed #AFB0B2;
}
.video-item .download{
.video-item .download {
position: absolute;
top:0;
top: 0;
right: 2px;
font-size: 26rpx;
color: #666;
z-index: 1;
}
.video-item:nth-child(even) {
margin-left: 22rpx;
}
.video-text {
margin-top: 16rpx;
font-size: 24rpx;
......@@ -382,10 +434,11 @@
font-size: 24rpx;
color: #343456;
}
.video-tips {
width: 100%;
text-align: center;
font-size: 28rpx;
color: rgba(255,255,255,.6);
color: rgba(255, 255, 255, .6);
padding: 16rpx 0 92rpx;
}
\ No newline at end of file
......@@ -510,6 +510,7 @@ Page({
filterTypeFn(e) {
let { typeList } = this.data
let index = e.currentTarget.dataset.index
// console.log('index: ', index);
// let itemList = []
// let params = {
// clueSource: '',
......@@ -536,12 +537,20 @@ Page({
success(res) {
// 选中全部
let selectIndex = res.tapIndex
// console.log('selectIndex: ', selectIndex);
typeList[index].selectIndex = selectIndex
let params = typeList.reduce((obj, item, index) => {
console.log(' item: ', item);
if (item['key']) {
selectIndex = index == 2 ? selectIndex + 1 : selectIndex
// selectIndex = index == 2 ? selectIndex + 1 : selectIndex
// console.log('selectIndex: ', selectIndex);
let itemIndx = item.selectIndex
obj[item['key']] = itemIndx == 2 ? '' : itemIndx
// console.log('itemIndx: ', itemIndx);
if(index == 2){
itemIndx += 1
}
obj[item['key']] = (itemIndx == 2 || itemIndx == 3)? '' : itemIndx
}
return obj
}, {})
......
......@@ -26,7 +26,7 @@
<image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>
头像
</image>
<view class="name">{{userInfo.merchantId}}</view>
<view class="name">{{userInfo.merchantName}}</view>
<view class="id">账号:{{userInfo.merchantId}}</view>
<view class="createTime">创建时间:{{userInfo.createdDate}}</view>
</view>
......
......@@ -33,12 +33,18 @@
background-size: 100% 96rpx;
.price-txt {
font-size: 26rpx;
// font-family: 'test';
font-size: 28rpx;
font-weight: Bold;
// font-size: 26rpx;
}
}
.price-txt {
font-weight: 600;
// font-family: 'test';
font-weight: Bold;
// font-weight: 600;
font-size: 26rpx;
color: #F35251;
}
......@@ -75,7 +81,7 @@
}
.price-txt {
font-size: 22rpx;
font-size: 26rpx;
}
}
......@@ -110,6 +116,7 @@
.tip-link {
color: #3E71FE;
}
.time {
color: #8A8C90;
;
......@@ -124,4 +131,20 @@
text-align: center;
color: #CCCED1;
padding-bottom: 60rpx;
}
@font-face {
/* 是你封装的名字 */
font-family: "test";
/* 你字体包的位置 */
/* src: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf'); */
src: url('Gotham-Black.otf');
/* https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf */
/* format('opentype'); */
}
.test {
font-family: 'test';
}
\ No newline at end of file
<!--pages/tab/output/components/client/client.wxml-->
<scroll-view class="client" scroll-y="{{true}}" bindscrolltolower="onReachBottom" lower-threshold='50' scroll-top="{{scrollTop}}">
<view class="client-box">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text>
</view>
<view class="box" wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view class="head flex-between">
<view class="name text-hide">{{item.merchantName}}</view>
<view class="price-txt">¥{{item.totalMoney}}</view>
</view>
<!-- 场景内容 -->
<view class="box-content">
<scene-box formData="{{item}}"></scene-box>
<!-- 通知 -->
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view class="flex-between tip-row" wx:for="{{item.msgList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view>{{subItem.msg}}</view>
<view class="time">{{subItem.createTime}}</view>
</view>
</view>
</view>
<view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="tip-row">
<view>运营建议:您的门店尚未开展活动,暂无产值。建议<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>拓展营收范围。</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">到底啦!</view>
</view>
</scroll-view>
\ No newline at end of file
<!-- pages/tab/output/components/client/client.wxml -->
<scroll-view
class="client"
scroll-y="{{true}}"
bindscrolltolower="onReachBottom"
lower-threshold='50'
scroll-top="{{scrollTop}}">
<!-- <view class="test">1234567890</view> -->
<view class="client-box">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text>
</view>
<view
class="box"
wx:for="{{list}}"
wx:key="index"
bindtap="handleJump"
data-idx="{{index}}">
<view class="head flex-between">
<view class="name text-hide">{{item.merchantName}}</view>
<view class="price-txt ">¥{{item.totalMoney}}</view>
</view>
<!-- 场景内容 -->
<view class="box-content">
<scene-box formData="{{item}}" hasLockIcon="{{false}}" />
<!-- 通知 -->
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view
class="flex-between tip-row"
wx:for="{{item.msgList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view>{{subItem.msg}}</view>
<view class="time">{{subItem.createTime}}</view>
</view>
</view>
</view>
<view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="tip-row">
<view>
运营建议:您的门店尚未开展活动,暂无产值。建议
<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>
拓展营收范围。
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">
到底啦!
</view>
</view>
</scroll-view>
......@@ -9,7 +9,7 @@ Page({
navStyle: 'background-color: rgba(0,0,0,0);',
loginType: 0,
agree: true,
tabIndx: 1,
tabIndx: 0,
tabList: ['我的客户', '我的门店', '我的员工'],
popupShow: false,
subIndex: -1,
......
......@@ -26,7 +26,7 @@
width: 100%;
// height: 486rpx;
height: 264rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.bg') no-repeat;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.png') no-repeat;
background-size: 100% 264rpx;
background-color: #fff;
position: absolute;
......
......@@ -26,15 +26,15 @@ Page = function (options) {
const oldHide = options.onHide
options.onShow = function () {
routerBefore(() => {
oldShow.apply(this, arguments)
oldShow && oldShow.apply(this, arguments)
})
}
options.onHide = function () {
routerAfter(() => {
oldHide.apply(this, arguments)
oldHide && oldHide.apply(this, arguments)
})
}
OldPage(options)
}
export default routerBefore
export default routerBefore
\ No newline at end of file
/**app.wxss**/
/*每个页面公共css */
@font-face {
/* 是你封装的名字 */
font-family: "test";
/* 你字体包的位置 */
/* src: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf'); */
src: url('/static/style/font/Gotham-Black.otf');
/* https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf */
/* format('opentype'); */
}
.sticky {
position: sticky;
......
No preview for this file type
......@@ -24,22 +24,24 @@ class NetWork {
const thisPage = wx.$router.getPageInstance(),
options = Object.keys(thisPage.options)
this[ISCOMMECTED] = false
if (thisPage.noPageAuth) {
wx.showLoading()
this.refreshPage()
} else {
let url = `/${thisPage.route}`
if (options.length) {
let query = []
options.map(key => {
query.push(`${key}=${thisPage.options[key]}`)
})
url += `?${query.join('&')}`
}
wx.$router.redirectTo('login.loading', {
url
})
}
wx.showLoading()
wx.hideLoading()
// if (thisPage.noPageAuth) {
// wx.showLoading()
// this.refreshPage()
// } else {
// let url = `/${thisPage.route}`
// if (options.length) {
// let query = []
// options.map(key => {
// query.push(`${key}=${thisPage.options[key]}`)
// })
// url += `?${query.join('&')}`
// }
// wx.$router.redirectTo('login.loading', {
// url
// })
// }
}
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!