|
@@ -19,14 +19,19 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
-import { confirmClear } from "@/api/clear/index";
|
|
|
|
|
|
|
+import { confirmClear,getCustomDetail } from "@/api/clear/index";
|
|
|
import { IMGHOST } from '@/config'
|
|
import { IMGHOST } from '@/config'
|
|
|
import { mapGetters } from "vuex"
|
|
import { mapGetters } from "vuex"
|
|
|
export default {
|
|
export default {
|
|
|
name: "success",
|
|
name: "success",
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ title:'点击查账和结账'
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
onShareAppMessage(res) {
|
|
onShareAppMessage(res) {
|
|
|
return {
|
|
return {
|
|
|
- title: '点击查账和结账',
|
|
|
|
|
|
|
+ title: this.title,
|
|
|
desc: "",
|
|
desc: "",
|
|
|
imageUrl: IMGHOST+'/custom/hit_me_clear.jpg',
|
|
imageUrl: IMGHOST+'/custom/hit_me_clear.jpg',
|
|
|
path: "admin/clear/showBill?id="+this.option.id,
|
|
path: "admin/clear/showBill?id="+this.option.id,
|
|
@@ -35,6 +40,16 @@ export default {
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters({ dictInfo:"getDictionariesInfo" })
|
|
...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: {
|
|
methods: {
|
|
|
inviteClear(){
|
|
inviteClear(){
|
|
|
let that = this
|
|
let that = this
|