Commit 97e7a4f8 by 杨明

fixed

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