diff --git a/src/api/market/orders.js b/src/api/market/orders.js
index 97669c5..8504717 100644
--- a/src/api/market/orders.js
+++ b/src/api/market/orders.js
@@ -72,7 +72,7 @@ export function getOut(){
export function updateByordersState1(data){
return request({
url:"/market/orders/updateByordersState1",
- method: "POST",
+ method: "GET",
data: data
})}
diff --git a/src/views/market/apitest/index.vue b/src/views/market/apitest/index.vue
index 008fd34..76491e9 100644
--- a/src/views/market/apitest/index.vue
+++ b/src/views/market/apitest/index.vue
@@ -130,20 +130,38 @@
-
-
-
+ {{myapi.productContent}}
-
+
+ {{myapi}}
-
- 错误码参照
+
+ 错误码参照
+
+
+
+
+
+
+
+
+
数据统计
@@ -286,7 +304,7 @@
@@ -337,8 +355,37 @@ export default {
//请求头部
heanderData:[],
//请求参数
- requestData:[]
+ requestData:[],
+ errCode:[
+ {
+ code:'10000',
+ message:'服务调用成功',
+ mesg:'服务调用成功,不返回 subCode 和 subMessage'
+ }, {
+ code:'20000',
+ message:'服务不可用',
+ mesg:'错误信息详情查看错误码'
+ }, {
+ code:'40002',
+ message:'提示无效签名,isv.invalid-signature等字样',
+ mesg:'可查看 自助排查签名验签问题。'
+ }, {
+ code:'40006',
+ message:'isv.insufficient-isv-permissions',
+ mesg:'1.请联系IoT开放平台技术支持,并提供 IoT 开放平台上应用的 APPID。\n' +
+ '2.请联系IoT开放平台技术支持添加白名单。'
+ }, {
+ code:'E70201',
+ message:'system error',
+ mesg:'系统错误,请联系IoT开放平台技术支持协助解决。'
+ }, {
+ code:'E70202',
+ message:'invalid parameter',
+ mesg:'\t\n' +
+ '系统入参检查失败,请联系IoT开放平台技术支持。'
+ }, ]
};
+
},
//计算属性 类似于data概念",
computed: {},
@@ -430,6 +477,7 @@ export default {
productPrice: row.middlePrice,
productContent:this.myapi.productContent,
}
+
},
//测试发送请求 无参数
noForm(ruleForm){
diff --git a/src/views/market/orders/index.vue b/src/views/market/orders/index.vue
index 75eded5..a9dd107 100644
--- a/src/views/market/orders/index.vue
+++ b/src/views/market/orders/index.vue
@@ -162,12 +162,14 @@ import {
ordersDelete,
pay,
getOut,
- updateByeExist, updateByordersState1
+ updateByeExist,
+ updateByordersState1
} from '@/api/market/orders'
import { diGui } from "@/api/market/orders";
import axios from 'axios'
import item from '@/layout/components/Sidebar/Item.vue'
import { showByproductId } from '@/api/market/product'
+import product from '@/views/market/product/index.vue'
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
@@ -317,13 +319,13 @@ export default {
pay(row){
console.log(row)
-
- updateByordersState1(ordersForm).then(response=>{
- if (response.code==200){}
- })
- window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice)
- this.$message.success('付款成功')
-
+ updateByordersState1(row).then(
+ res =>{
+ this.$message.success(res.msg)
+ }
+ )
+ window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice)
+ this.$message.success('付款成功')
},
diff --git a/src/views/market/product/index.vue b/src/views/market/product/index.vue
index ba66ab7..32e5baf 100644
--- a/src/views/market/product/index.vue
+++ b/src/views/market/product/index.vue
@@ -61,10 +61,6 @@
-
-
-
-