初始化
parent
5cd630aa03
commit
ca44237c59
|
@ -1,6 +1,11 @@
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
export function getAirQuality(query) {
|
||||||
|
return request({
|
||||||
|
url: '/pay/third/getAirQuality/'+query,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
export function pay(query) {
|
export function pay(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/pay/alipay/pay',
|
url: '/pay/alipay/pay',
|
||||||
|
|
|
@ -80,6 +80,7 @@
|
||||||
<i class="el-icon-user"> </i>备注</template>
|
<i class="el-icon-user"> </i>备注</template>
|
||||||
{{customer.sysBeihzu}}
|
{{customer.sysBeihzu}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<button @click="test(customer)">测试</button>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -102,7 +103,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listApitype, getApitype, delApitype, addApitype, updateApitype } from "@/api/market/apitype";
|
import { listApitype, getApitype, delApitype, addApitype, updateApitype } from "@/api/market/apitype";
|
||||||
import {pay} from "../../../api/market/apitype";
|
import {getAirQuality, pay} from "../../../api/market/apitype";
|
||||||
import * as url from "url";
|
import * as url from "url";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -156,6 +157,13 @@ export default {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
test(customer){
|
||||||
|
if(customer.sysId==1){
|
||||||
|
getAirQuality(1).then(response =>{
|
||||||
|
console.log(response)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
async gotoMaintained(customer){
|
async gotoMaintained(customer){
|
||||||
this.pay.subject=customer.sysIntro
|
this.pay.subject=customer.sysIntro
|
||||||
this.pay.totalAmount=customer.sysNumber
|
this.pay.totalAmount=customer.sysNumber
|
||||||
|
|
Loading…
Reference in New Issue