jwyu 3 年之前
父节点
当前提交
de90ef0947

+ 1 - 1
pages-approve/contract/list.vue

@@ -39,7 +39,7 @@
 			}
 		},
 		onLoad(options) {
-			this.status=options.status
+			this.status=options.status||'待审批'
 			this.initTabs()//初始化tab 栏
 			if(this.status==='待提交'){
 				this.getContractList()

+ 1 - 1
pages-approve/custome/list.vue

@@ -38,7 +38,7 @@
 			}
 		},
 		onLoad(options){
-			this.status=options.status
+			this.status=options.status||'待审批'
 			this.getList()
 			uni.$on('customeApproveListUpdate',(e)=>{
 				console.log('监听customeApproveListUpdate,携带参数为:' + e.CompanyApprovalId);

+ 1 - 1
pages-approve/seal/list.vue

@@ -52,7 +52,7 @@
 			}
 		},
 		onLoad(options) {
-			this.status=options.status
+			this.status=options.status||'待审批'
 			// this.initTabs()
 			this.getList()
 			// 更新列表

+ 2 - 3
pages/index/index.vue

@@ -14,6 +14,7 @@
 
 <script>
 	import {apiMessageCount} from '@/api/message.js'
+	import {shareData} from '@/utils/config.js'
 	export default {
 		data() {
 			return {
@@ -31,9 +32,7 @@
 			}, 500);
 		},
 		onShareAppMessage() {
-			return {
-				title:"弘则移动CRM"
-			}
+			return shareData
 		},
 		
 		methods: {

+ 2 - 3
pages/mine/index.vue

@@ -37,6 +37,7 @@
 </template>
 
 <script>
+	import {shareData} from '@/utils/config.js'
 	export default{
 		onShow() {
 			if(!this.$store.state.token||!this.$store.state.userInfo.ProductName){
@@ -51,9 +52,7 @@
 			}
 		},
 		onShareAppMessage() {
-			return {
-				title:"弘则移动CRM"
-			}
+			return shareData
 		},
 		methods: {
 			handleLoginOut() {

+ 2 - 3
pages/workbench/index.vue

@@ -16,6 +16,7 @@
 </template>
 
 <script>
+	import {shareData} from '@/utils/config.js'
 	export default{
 		data() {
 			return {
@@ -23,9 +24,7 @@
 			}
 		},
 		onShareAppMessage() {
-			return {
-				title:"弘则移动CRM"
-			}
+			return shareData
 		},
 		methods: {
 			handleGoNext(type) {

+ 7 - 1
utils/config.js

@@ -3,4 +3,10 @@
 // 请求根路径
 // 线上:https://ficc.hzinsights.com/h5adminapi
 // 测试:http://8.136.199.33:8607/h5adminapi
-export const baseUrl='http://8.136.199.33:8607/h5adminapi'
+export const baseUrl='http://8.136.199.33:8607/h5adminapi'
+
+// 公共分享
+export const shareData={
+    title:'弘则移动CRM  办公随心所欲',
+    imageUrl:'https://hongze.oss-cn-shanghai.aliyuncs.com/banner/crm_wxapp_share.jpg'
+}