Browse Source

feat: h5;

fox
Fox-33 4 hours ago
parent
commit
30891f6171
6 changed files with 51 additions and 14 deletions
  1. +4
    -1
      pages.json
  2. +2
    -1
      pages_order/growing/activity/applyEmail.vue
  3. +5
    -5
      pages_order/growing/activity/export.vue
  4. +40
    -7
      pages_order/growing/activity/index.vue
  5. BIN
      pages_order/static/activity/icon-double-arrow-left.png
  6. BIN
      pages_order/static/activity/icon-double-arrow-right.png

+ 4
- 1
pages.json View File

@ -148,7 +148,10 @@
"style": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "行后报告",
"navigationBarBackgroundColor": "#DAF3FF"
"navigationBarBackgroundColor": "#DAF3FF",
"mp-weixin": {
"pageOrientation":"landscape"
}
}
},
{


+ 2
- 1
pages_order/growing/activity/applyEmail.vue View File

@ -95,8 +95,9 @@
}
},
onLoad(arg) {
const { id } = arg
const { id, pdfUrl } = arg
this.id = id
console.log('pdfUrl', pdfUrl)
},
methods: {
async onSubmit() {


+ 5
- 5
pages_order/growing/activity/export.vue View File

@ -13,20 +13,20 @@
imageData: '',
}
},
onLoad({ id }) {
onLoad({ id, mode}) {
this.id = id
// this.h5Url = `https://adminh5.kjetax.com/#/?id=${id}&token=${uni.getStorageSync('token')}`
this.h5Url = `https://192.168.10.100:8080/#/?id=${id}&token=${uni.getStorageSync('token')}`
this.h5Url = `https://192.168.10.100:8080/#/?id=${id}&mode=${mode}&token=${uni.getStorageSync('token')}`
console.log('url', this.h5Url)
console.log('...')
console.log('mode', mode)
},
methods: {
message(e) {
const url = e.detail.data[0]
console.log('pdf', url)
this.downloadFile(url)
console.log('pdfUrl', url)
// this.downloadFile(url)
},
downloadFile(url) {
console.log('downloadFile', url)


+ 40
- 7
pages_order/growing/activity/index.vue View File

@ -67,9 +67,13 @@
<view class="section report" id="report">
<view class="section-header">行后报告</view>
<view class="section-content report">
<!-- todo -->
<button class="btn" @click="jumpToExport">点击查看详情</button>
<view class="section-content report report-card">
<image class="report-cover" :src="configList.report_page_01" mode="widthFix" />
<view class="report-btn flex" @click="jumpToExport">
<image class="icon" src="@/pages_order/static/activity/icon-double-arrow-left.png" mode="widthFix"></image>
<view>点击查看详情</view>
<image class="icon" src="@/pages_order/static/activity/icon-double-arrow-right.png" mode="widthFix"></image>
</view>
</view>
</view>
@ -84,7 +88,7 @@
<posterPopup ref="posterPopup"></posterPopup>
<view class="flex bottom">
<button class="flex btn btn-palin" @click="openPosterPopup">生成海报</button>
<!-- <button class="flex btn btn-palin" @click="openPosterPopup">生成海报</button> -->
<button class="flex btn btn-primary" @click="onApplyEmail">申请邮件</button>
</view>
</view>
@ -170,7 +174,10 @@
this.$refs.posterPopup.open(path)
},
onApplyEmail() {
this.$utils.navigateTo(`/pages_order/growing/activity/applyEmail?id=${this.id}`)
uni.navigateTo({
url: `/pages_order/growing/activity/export?id=${this.id}&mode=export`
})
// this.$utils.navigateTo(`/pages_order/growing/activity/applyEmail?id=${this.id}`)
},
jumpToExport() {
uni.navigateTo({
@ -292,6 +299,32 @@
.report {
margin-top: 24rpx;
&-card {
width: 100%;
border-radius: 64rpx;
overflow: hidden;
font-size: 0;
}
&-cover {
width: 100%;
height: auto;
}
&-btn {
width: 100%;
padding: 32rpx 0;
column-gap: 16rpx;
color: #252545;
font-size: 28rpx;
background: #E5E4EB;
.icon {
width: 40rpx;
height: auto;
}
}
}
.bottom {
@ -299,8 +332,8 @@
left: 0;
bottom: 0;
z-index: 999;
justify-content: space-between;
column-gap: 32rpx;
// justify-content: space-between;
// column-gap: 32rpx;
width: 100vw;
padding: 32rpx 40rpx;
padding-bottom: calc(env(safe-area-inset-bottom) + 32rpx);


BIN
pages_order/static/activity/icon-double-arrow-left.png View File

Before After
Width: 60  |  Height: 60  |  Size: 483 B

BIN
pages_order/static/activity/icon-double-arrow-right.png View File

Before After
Width: 60  |  Height: 60  |  Size: 498 B

Loading…
Cancel
Save