Commit 612d808f by 张立顺

Merge branch 'dev_v3.1' of 192.168.3.233:saas_plus/business-assistant into dev_v3.1

2 parents 1fd3e5c1 bc4173be
project.config.json project.config.json
project.private.config.json project.private.config.json
sitemap.json sitemap.json
miniprogram_npm
node_modules
# local env files # local env files
.env.local .env.local
......
...@@ -73,7 +73,6 @@ ...@@ -73,7 +73,6 @@
"crowdfund-poster": "/components/CrowdfundPoster/CrowdfundPoster", "crowdfund-poster": "/components/CrowdfundPoster/CrowdfundPoster",
"glsx-image": "/components/image/index" "glsx-image": "/components/image/index"
}, },
"style": "v2",
"resolveAlias": { "resolveAlias": {
"~/*": "/*" "~/*": "/*"
}, },
......
{
"name": "business-assistant",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@vant/weapp": {
"version": "1.10.7",
"resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.10.7.tgz",
"integrity": "sha512-R2FyCk0mK2xvUX2dMgVZjVG512RKBj7ELMDxjRJjhQWtw4495WBgbl5Yb4v2A6d4vWJe6z9toKgDJTciN0Bo9A=="
}
}
}
{
"name": "business-assistant",
"version": "1.0.0",
"description": "",
"main": "app.js",
"dependencies": {
"@vant/weapp": "^1.10.5"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://luyt@192.168.3.233:8090/saas_plus/business-assistant.git"
},
"author": "",
"license": "ISC"
}
...@@ -228,7 +228,7 @@ Component({ ...@@ -228,7 +228,7 @@ Component({
wx.$api.showLoading("战报生成中") wx.$api.showLoading("战报生成中")
outputApi.getNewReportUrl({ activityId: item.activityId }).then(res => { outputApi.getNewReportUrl({ activityId: item.activityId }).then(res => {
// console.log(res) // console.log(res)
if(!res.url) { if (!res.url) {
wx.$api.showToast('战报生成失败') wx.$api.showToast('战报生成失败')
return true return true
} }
...@@ -253,7 +253,7 @@ Component({ ...@@ -253,7 +253,7 @@ Component({
const { const {
item item
} = e.currentTarget.dataset } = e.currentTarget.dataset
if(!item.goodUrl) { if (!item.goodUrl) {
wx.$api.showToast('喜报生成失败') wx.$api.showToast('喜报生成失败')
return true return true
} }
......
...@@ -200,11 +200,38 @@ ...@@ -200,11 +200,38 @@
font-size: 20rpx; font-size: 20rpx;
.rank-row { .rank-row {
position: relative;
display: flex; display: flex;
height: 32rpx; height: 32rpx;
line-height: 32rpx; line-height: 32rpx;
margin-bottom: 8rpx; margin-bottom: 8rpx;
.down-tips {
position: absolute;
left: -116rpx;
top: -60rpx;
height: 52rpx;
line-height: 52rpx;
font-size: 20rpx;
color: #FFFFFF;
background: rgba(0, 0, 0, 0.60);
padding: 0 16rpx;
border-radius: 12rpx;
font-weight: 500;
&::after {
display: inline-block;
content: '';
position: absolute;
bottom: -27rpx;
right: 67rpx;
width: 0;
height: 0;
border: 18rpx solid;
border-color: #686868 transparent transparent;
}
}
&-name { &-name {
font-size: 24rpx; font-size: 24rpx;
color: #3666FE; color: #3666FE;
......
...@@ -39,14 +39,15 @@ ...@@ -39,14 +39,15 @@
<view class="rank-left"> <view class="rank-left">
<view class="rank-num">{{idx + 1}}</view> <view class="rank-num">{{idx + 1}}</view>
<view class="rank-head"> <view class="rank-head">
<!-- <glsx-image class="icon-wechat" src="output/icon-wechat.webp"></glsx-image> --> <glsx-image wx:if="{{subItem.shareType == 1}}" class="icon-wechat" src="output/icon-wechat.webp"></glsx-image>
<image wx:if="{{subItem.imageUrl}}" src="{{subItem.imageUrl}}"></image> <image wx:if="{{subItem.imageUrl}}" src="{{subItem.imageUrl}}"></image>
<glsx-image wx:else src="output/icon-head.webp"></glsx-image> <glsx-image wx:else src="output/icon-head.webp"></glsx-image>
</view> </view>
<view class="rank-content"> <view class="rank-content">
<view class="rank-row"> <view class="rank-row">
<text wx:if="{{subItem.goodUrl}}" class="rank-row-name" bindtap="handleXiReport" data-item="{{subItem}}">{{subItem.shareName}}</text> <text wx:if="{{subItem.goodUrl}}" class="rank-row-name" bindtap="handleXiReport" data-item="{{subItem}}">{{subItem.shareName}}{{}}</text>
<text wx:else class="name-disabled">{{subItem.shareName}}</text> <text wx:else class="name-disabled">{{subItem.shareName}}</text>
<view class="down-tips" wx:if="{{orderObj.staffIdx == index && idx == 0}}">点击员工姓名看喜报</view>
<text class="rank-row-dept">{{subItem.departmentName || ''}}</text> <text class="rank-row-dept">{{subItem.departmentName || ''}}</text>
</view> </view>
<view class="rank-row"> <view class="rank-row">
......
...@@ -36,7 +36,6 @@ Page({ ...@@ -36,7 +36,6 @@ Page({
outputApi.getSceneProStatus(params).then(res => { outputApi.getSceneProStatus(params).then(res => {
var proList = res.find(item => item.sceneCode == sceneCode) var proList = res.find(item => item.sceneCode == sceneCode)
this.setData({ this.setData({
// ['sceneActivityObj.scene' + this.data.sceneActive]: proList.productList.filter(item => item.openFlag == 0)
['sceneActivityObj.scene' + this.data.sceneActive]: proList.productList ['sceneActivityObj.scene' + this.data.sceneActive]: proList.productList
}) })
this.setCurActivity() this.setCurActivity()
......
...@@ -302,8 +302,13 @@ Page({ ...@@ -302,8 +302,13 @@ Page({
if (curItem) { if (curItem) {
curItem.totalNum = curItem.activityList.length curItem.totalNum = curItem.activityList.length
curItem.shareBtnIdx = -1 curItem.shareBtnIdx = -1
curItem.staffIdx = -1
let shareFlag = false let shareFlag = false
curItem.activityList.forEach((k, kIdx) => { curItem.activityList.forEach((k, kIdx) => {
// 员工喜报
if(curItem.staffIdx == -1 && k.staffList?.length && k.staffList[0].imageUrl) {
curItem.staffIdx = kIdx
}
// 分享按钮判断shareStatus:活动分享状态 0:未分享 1:已分享 // 分享按钮判断shareStatus:活动分享状态 0:未分享 1:已分享
if (k.activityStatus == 2 && k.shareStatus == 0) { if (k.activityStatus == 2 && k.shareStatus == 0) {
curItem.shareBtnIdx = shareFlag ? -1 : (kIdx + '') curItem.shareBtnIdx = shareFlag ? -1 : (kIdx + '')
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<view class="p-rl-20 bg-white"> <view class="p-rl-20 bg-white">
<scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}"> <scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
<view class="flex"> <view class="flex">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{isShowData ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}"> <view class="activity-item {{ activityActive == index ? 'active' : ''}} {{(item.productStatus == 2 || item.productStatus == 3) ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">
{{item.productName}} {{item.productName}}
</view> </view>
</view> </view>
......
...@@ -70,7 +70,13 @@ ...@@ -70,7 +70,13 @@
"useIsolateContext": false, "useIsolateContext": false,
"enhance": true, "enhance": true,
"showShadowRootInWxmlPanel": true, "showShadowRootInWxmlPanel": true,
"packNpmRelationList": [], "packNpmManually": true,
"packNpmRelationList": [
{
"packageJsonPath": "./package.json",
"miniprogramNpmDistDir": "./"
}
],
"useStaticServer": true, "useStaticServer": true,
"ignoreUploadUnusedFiles": true, "ignoreUploadUnusedFiles": true,
"babelSetting": { "babelSetting": {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!