Browse Source

feat: export;

fox
Fox-33 2 days ago
parent
commit
4381dd7160
6 changed files with 37 additions and 16 deletions
  1. +6
    -6
      config.js
  2. +9
    -3
      manifest.json
  3. +1
    -1
      pages.json
  4. +3
    -1
      pages_order/report/export.vue
  5. +4
    -4
      pages_order/report/index.vue
  6. +14
    -1
      pages_order/report/userInfo.vue

+ 6
- 6
config.js View File

@ -17,7 +17,7 @@ const config = {
baseUrl : 'http://augcl.natapp1.cc/assessment-admin/assessment',
},
prod : {
baseUrl : 'https://assessment.augcl.com/assessment-admin/assessment',
baseUrl : 'https://admin.kjetax.com/assessment-admin/assessment',
}
}
@ -26,17 +26,17 @@ const config = {
const defaultConfig = {
mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
aliOss: {
url: 'https://image.hhlm1688.com/',
url: 'https://image.kjetax.com/',
config: {
//桶的地址
region: 'oss-cn-guangzhou',
//id
accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9',
accessKeyId: 'LTAI5tSfSyNKzrvkyCn3Tmon',
//密钥
accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
accessKeySecret: '5Tax04eUSHBlYiDpCTBR5YsTwtPf2B',
//桶的名字
bucket: 'hanhaiimage',
endpoint: 'oss-cn-shenzhen.aliyuncs.com',
bucket: 'risk-assessment',
endpoint: 'oss-cn-guangzhou.aliyuncs.com',
}
},
}


+ 9
- 3
manifest.json View File

@ -1,6 +1,6 @@
{
"name" : "unapp模板",
"appid" : "__UNI__197A38F",
"appid" : "__UNI__40D2531",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
@ -89,7 +89,7 @@
}
},
"devServer" : {
"https" : false,
"https" : true,
"proxy" : {
"/ws/geocoder/v1/" : {
"target" : "https://apis.map.qq.com",
@ -100,6 +100,12 @@
"changeOrigin" : true
}
}
}
},
"optimization" : {
"treeShaking" : {
"enable" : true
}
},
"title" : "报告保存&分享"
}
}

+ 1
- 1
pages.json View File

@ -63,7 +63,7 @@
"path": "report/export",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "报告下载",
"navigationBarTitleText": "报告保存&分享",
"navigationBarBackgroundColor": "#014FA2"
}
},


+ 3
- 1
pages_order/report/export.vue View File

@ -15,7 +15,9 @@
},
onLoad({ batchNo }) {
this.batchNo = batchNo
this.h5Url = `https://assessmenth5.augcl.com/#/?batchNo=${batchNo}&token=${uni.getStorageSync('token')}`
this.h5Url = `https://adminh5.kjetax.com/#/?batchNo=${batchNo}&token=${uni.getStorageSync('token')}`
// this.h5Url = `https://192.168.10.100:8080/#/?batchNo=${batchNo}&token=${uni.getStorageSync('token')}`
console.log('url', this.h5Url)
},
}


+ 4
- 4
pages_order/report/index.vue View File

@ -34,21 +34,21 @@
</view>
</view>
<view class="flex flex-column contact">
<view class="flex flex-column contact" v-if="configList.company_qrcode">
<view>扫下方二维码联系我们给你1V1解决方案</view>
<image class="qr" :src="configList.company_qrcode" :show-menu-by-longpress="true" mode="widthFix"></image>
</view>
<view>
<image class="img" :src="configList.company_info" mode="widthFix"></image>
<view class="logo">
<image class="img" v-if="configList.company_info" :src="configList.company_info" mode="widthFix"></image>
<view class="logo" v-if="configList.company_logo">
<image class="img" :src="configList.company_logo" mode="widthFix"></image>
</view>
</view>
</template>
<view class="bottom">
<button class="btn" @click="onDownload">下载</button>
<button class="btn" @click="onDownload">保存&分享</button>
</view>
</view>


+ 14
- 1
pages_order/report/userInfo.vue View File

@ -81,6 +81,8 @@
</template>
<script>
import util from '@/utils/utils.js'
export default {
data() {
return {
@ -91,6 +93,14 @@
company: '',
},
rules: {
'phone': {
type: 'string',
required: true,
message: '请输入正确的手机号',
validator: (rule, value, callback) => {
return util.verificationPhone(value)
},
},
'company': {
type: 'string',
required: true,
@ -105,13 +115,16 @@
disabled() {
const { name, phone, company } = this.form
return !company
return !phone || !company
}
},
onLoad(arg) {
const { batchNo } = arg
this.batchNo = batchNo
},
onReady() {
this.$refs.form.setRules(this.rules);
},
methods: {
async onCreateReport() {


Loading…
Cancel
Save