shish 4 лет назад
Родитель
Сommit
35c1a7f1be
2 измененных файлов с 26 добавлено и 5 удалено
  1. 9 3
      ghsApp/src/admin/clear/customInfo.vue
  2. 17 2
      ghsApp/src/pagesArrears/clearResult.vue

+ 9 - 3
ghsApp/src/admin/clear/customInfo.vue

@@ -136,16 +136,16 @@ export default {
 			stepActive: 0,
 			form: { name: "" },
 			detailInfo: {},
-			loading: false
+			loading: false,
+			title:'点击查账和结账'
 		};
 	},
 	computed: {
 		...mapGetters({ dictInfo:"getDictionariesInfo" })
 	},
   	onShareAppMessage(res) {
-		
 		return {
-			title: '点击查账和结账',
+			title: this.title,
 			desc: "",
 			imageUrl: IMGHOST+'/custom/hit_me_clear.jpg',
 			path: "admin/clear/showBill?id="+this.detailInfo.id,
@@ -232,6 +232,12 @@ export default {
 			}
 			const { data } = await getCustomDetail(id);
 			this.detailInfo = data;
+
+			let name = data.ghsShopName ? data.ghsShopName : '';
+			let num = data.num ? data.num : 0
+			let price = data.actPrice ? parseFloat(data.actPrice) : 0
+			this.title = name+' '+num+'笔 ¥'+price
+
 		}
 	}
 };

+ 17 - 2
ghsApp/src/pagesArrears/clearResult.vue

@@ -19,14 +19,19 @@
 	</view>
 </template>
 <script>
-import { confirmClear } from "@/api/clear/index";
+import { confirmClear,getCustomDetail } from "@/api/clear/index";
 import { IMGHOST } from '@/config'
 import { mapGetters } from "vuex"
 export default {
     name: "success",
+	data() {
+		return {
+			title:'点击查账和结账'
+		}
+	},
 	onShareAppMessage(res) {
 		return {
-			title: '点击查账和结账',
+			title: this.title,
 			desc: "",
 			imageUrl: IMGHOST+'/custom/hit_me_clear.jpg',
 			path: "admin/clear/showBill?id="+this.option.id,
@@ -35,6 +40,16 @@ export default {
 	computed: {
 		...mapGetters({ dictInfo:"getDictionariesInfo" })
 	},
+	onLoad(option) {
+		getCustomDetail(this.option.id).then(res=>{
+			if(res.code == 1){
+				let name = res.data && res.data.ghsShopName ? res.data.ghsShopName : '';
+				let num = res.data && res.data.num ? res.data.num : 0
+				let price = res.data.actPrice ? parseFloat(res.data.actPrice) : 0
+				this.title = name+' '+num+'笔 ¥'+price
+			}
+		})
+	},
 	methods: {
 		inviteClear(){
 			let that = this