Commit 97e7a4f8 by 杨明

fixed

1 parent f0f69e14
......@@ -10,9 +10,9 @@
"integrity": "sha512-swM4k3pVwt/6Tnijvq86paLiKE1CzbrBQ4lR7+9uRhwKOM0HS3ooK1Q4IjSEyxQ59ZFKmYYvZln77RZcnSDqmA=="
},
"glsx-applet-component": {
"version": "1.1.15",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.15.tgz",
"integrity": "sha512-9GD/zvrkTnsQ+sjfGE7BDZXqeLbW7/PBTHnK2PcBnnCAd5VFw9KNe3XdvS/HKZkDEZBFk013Su8sIOtDs0HraA=="
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.16.tgz",
"integrity": "sha512-XlBqP5ja4TqGB0nTW4dW6fdSQ9m/hAspbBKTJZ9CNUGVCKorkyjv/RfY85ta4OU5PiQCKTFZBbTELtz5MoxaVQ=="
}
}
}
......@@ -5,7 +5,7 @@
"main": "app.js",
"dependencies": {
"@vant/weapp": "^1.10.7",
"glsx-applet-component": "^1.1.15"
"glsx-applet-component": "^1.1.16"
},
"devDependencies": {},
"scripts": {
......
......@@ -81,15 +81,15 @@ Component({
}],
todayOutiqueOutputValue: [{
label: '发券量/张',
name: 'sendCouponCountToday',
name: 'sendCouponCountTotal',
unit: ''
}, {
label: '升级订单/单',
name: 'upgradeCountToday',
name: 'upgradeCountTotal',
unit: ''
}, {
label: '营业额(总)/元',
name: 'orderMoneyTotalToday',
name: 'orderMoneyTotal',
unit: ''
}],
todayOutputValue: [{
......@@ -224,15 +224,21 @@ Component({
const {
type,
} = this.data
let apiName = 'boutiquecouponOutputValue'
console.log(type)
let apiName = 'merchantsOutput'
let params = {
merchantId: thisPage.data.merchantId
merchantIds: [thisPage.data.merchantId]
}
if ([2].includes(type)) {
apiName = 'merchantsOutput'
if ([1].includes(type)) {
apiName = 'boutiquecouponOutputValue'
params = {
merchantIds: [thisPage.data.merchantId]
merchantId: thisPage.data.merchantId
}
ActivityApi.boutiquecouponOutputValue({merchantId: thisPage.data.merchantId,startDate: new Date().format('yyyy-MM-dd'),endDate:new Date().format('yyyy-MM-dd')}).then(res => {
this.setData({
outputTodayData: res
})
})
}
ActivityApi[apiName](params).then(res => {
thisPage.setData({ loading: false })
......
......@@ -11,7 +11,7 @@
<view class="output-title">当日新增</view>
<view class="output-value today">
<view class="output-item" wx:key="index" wx:for="{{outputView[entranceType ==2 ?'todayOutputValue':'todayOutiqueOutputValue']}}">
<view class="output-num">{{outputData[item.name]|| 0}} </view>
<view class="output-num">{{entranceType ==2?(outputData[item.name]|| 0):(outputTodayData[item.name]|| 0)}} </view>
<view class="output-label">{{item.label}}</view>
</view>
</view>
......
......@@ -76,7 +76,7 @@ Component({
},
// 价格格式化
priceFormat(num, point = 2) {
let numStr = (num / 100).toString().split('.')[0]
let numStr = (num / 100).toString()
return numStr;
},
// priceFormat(num, point = 2) {
......
......@@ -27,7 +27,7 @@
}
.number{
color: #2D2D33;
font-size: 44rpx;
font-size: 36rpx;
font-weight: 600;
text {
font-size: 28rpx;
......
......@@ -20,7 +20,7 @@ Component({
},
behaviors: [imgUrlMixin],
data: {
navList: ["增值服务", "客户数字化"],
// navList: ["增值服务", "客户数字化"],
// myTabIdx: 0,
IMG_URL,
// subscriptionBannerUrl: Object.freeze(subscriptionBannerUrl),
......@@ -98,7 +98,12 @@ Component({
// 获取场景
let systemItem = this.data.systemData.find(item => item.sceneCode == e.detail.sceneCode)
let productItem = this.data.productData.find(item => item.sceneCode == e.detail.sceneCode)
const id = systemItem?.productList[0].id || productItem?.productList[0].id
let id = ''
if (systemItem) {
id = systemItem.subList.length ? systemItem.subList[0].productList[0]?.id : systemItem.productList[0].id
} else {
id = productItem.subList.length ? productItem.subList[0].productList[0]?.id : productItem.productList[0].id
}
if (!id) return
wx.$router.go('/packagesList/packageDiscovery/pages/productDetail/productDetail', {
hasPhoneNumber,
......@@ -161,7 +166,7 @@ Component({
systemDataId: res[1].id,
productData,
productDataId: res[0].id,
})
})
})
},
emitUserInfo(options) {
......
......@@ -61,7 +61,7 @@ page{
}
.tab-item-active{
font-weight: 600;
font-size: 36rpx;
font-size: 34rpx;
color: #323436;
}
}
......
<view class="container" style="padding-bottom: calc(100rpx + {{isFullSucreen ? '34' : 0}}px);">
<navigation-bar bindnavbarReady="navbarReady">
<view class="my-tab">
<view wx:for="{{navList}}" wx:key="index" bindtap="changeMyTab" data-id="{{index}}" class='my-tab-item {{myTabIdx==index ? "tab-item-active": ""}}'>{{item}}</view>
<view wx:for="{{tabList}}" wx:key="index" bindtap="changeMyTab" data-id="{{index}}" class='my-tab-item {{myTabIdx==index ? "tab-item-active": ""}}'>{{item.name}}</view>
</view>
</navigation-bar>
<view class="topBg" style="height:{{headerHeight}}px; background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/mine_center_bg.png?v=1.0.3')"></view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!