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