Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
外包仓库
外包-热狐
提交
694323b8
外包-热狐
项目概览
外包仓库
/
外包-热狐
通知
0
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
外包-热狐
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
694323b8
编写于
12月 27, 2022
作者:
乄&失落迷迭ヅ
🎨
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交
上级
0dde27d2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
123 addition
and
108 deletion
+123
-108
pages/rhsjcf/rhsjcf.vue
pages/rhsjcf/rhsjcf.vue
+123
-108
未找到文件。
pages/rhsjcf/rhsjcf.vue
浏览文件 @
694323b8
...
...
@@ -293,117 +293,132 @@ export default {
}
});
},
go
(){},
paymoney
()
{
let
money
=
0
if
(
this
.
num
==
1
)
{
money
=
19
}
if
(
this
.
num
==
2
)
{
money
=
35
}
if
(
this
.
num
==
3
)
{
money
=
57
}
if
(
this
.
num
==
4
)
{
money
=
69
}
console
.
log
(
'
当前价格
'
,
money
);
uni
.
request
({
url
:
'
http://www.gyuantecdg.cn:1515/data/test/insert/numtest
'
,
method
:
'
POST
'
,
data
:
{
paymuch
:
18
,
province
:
this
.
chosesf
},
success
:
res
=>
{
console
.
log
(
'
提交信息成功
'
,
this
.
getimg
);
}
});
let
useridgo
=
uni
.
getStorageSync
(
'
userid
'
);
console
.
log
(
'
提交的
'
,
this
.
imageValues
);
for
(
var
i
=
0
;
i
<
this
.
imageValues
.
length
;
i
++
)
{
console
.
log
(
i
,
'
当前
'
);
const
uploadTask
=
uni
.
uploadFile
({
url
:
'
http://www.gyuantecdg.cn:1515/data/test/file/upload/remix/
'
+
useridgo
,
//仅为示例,非真实的接口地址
filePath
:
this
.
imageValues
[
i
],
name
:
'
file
'
,
success
:
uploadFileRes
=>
{
uni
.
showToast
({
title
:
'
成功提交第
'
+
i
+
'
张
'
})
this
.
lookimg
()
uni
.
hideLoading
();
this
.
ispost
=
true
;
setTimeout
(()
=>
{
this
.
ispost
=
false
;
this
.
current
=
1
;
console
.
log
(
this
.
current
);
},
2000
);
},
fail
:
error
=>
{
console
.
log
(
'
失败啦
'
,
error
);
}
});
}
uni
.
showToast
({
title
:
'
支付成功
'
,
icon
:
'
success
'
,
duration
:
1000
});
// uni.request({
// url: 'http://www.gyuantecdg.cn:1515/payment/createorder?amount='+3+'&desc='+'灰机',
// method: 'POST',
// data:{
// "amount": 3,
// "desc": "灰机",
// },
// header: {
// 'contentType': 'application/x-www-form-urlencoded' //自定义请求头信息
// },
// method: 'POST',
// success: res => {
// console.log('付费啦A', res);
// this.paymoneys=res.data
// console.log('付费啦Art', this.paymoneys);
// console.log(this.imageValues);
// let order=[
// {
// "appid": "wx1773a03e19c7f1ad", // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
// "noncestr": this.paymoneys.noncestr, // 随机字符串
// "package": "Sign=WXPay", // 固定值
// "partnerid": "1605853086", // 微信支付商户号
// "prepayid": 'wx2717170354460316eb340c50471c4d0000', // 统一下单订单号
// "timestamp": this.paymoneys.timestamp, // 时间戳(单位:秒)
// "sign": this.paymoneys.sign // 签名,这里用的 MD5/RSA 签名
// },
// ]
// console.log('看看准备的',order);
// uni.requestPayment({
// "provider": "wxpay",
// "orderInfo": {
// "appid": "wx1773a03e19c7f1ad", // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
// "noncestr": this.paymoneys.noncestr, // 随机字符串
// "package": "Sign=WXPay", // 固定值
// "partnerid": "1605853086", // 微信支付商户号
// "prepayid": 'wx2717170354460316eb340c50471c4d0000', // 统一下单订单号
// "timestamp": this.paymoneys.timestamp, // 时间戳(单位:秒)
// "sign": '39C979719391482BB4B6798CC6F74C155D183B99' // 签名,这里用的 MD5/RSA 签名
// },
// success(res) {
// console.log('成功',res);
// },
// fail(e) {
// console.log('失败',e);
// }
// })
if
(
this
.
num
!=
0
)
{
if
(
this
.
chosesf
!=
'
请选择所属的省份
'
)
{
let
money
=
0
if
(
this
.
num
==
1
)
{
money
=
19
}
if
(
this
.
num
==
2
)
{
money
=
35
}
if
(
this
.
num
==
3
)
{
money
=
57
}
if
(
this
.
num
==
4
)
{
money
=
69
}
console
.
log
(
'
当前价格
'
,
money
);
uni
.
request
({
url
:
'
http://www.gyuantecdg.cn:1515/data/test/insert/numtest
'
,
method
:
'
POST
'
,
data
:
{
paymuch
:
18
,
province
:
this
.
chosesf
},
success
:
res
=>
{
}
});
let
useridgo
=
uni
.
getStorageSync
(
'
userid
'
);
console
.
log
(
'
提交的
'
,
this
.
imageValues
);
uni
.
showToast
({
title
:
'
成功提交!
'
})
for
(
var
i
=
0
;
i
<
this
.
imageValues
.
length
;
i
++
)
{
const
uploadTask
=
uni
.
uploadFile
({
url
:
'
http://www.gyuantecdg.cn:1515/data/test/file/upload/remix/
'
+
useridgo
,
//仅为示例,非真实的接口地址
filePath
:
this
.
imageValues
[
i
],
name
:
'
file
'
,
success
:
uploadFileRes
=>
{
this
.
lookimg
()
uni
.
hideLoading
();
this
.
ispost
=
true
;
setTimeout
(()
=>
{
this
.
ispost
=
false
;
this
.
current
=
1
;
},
2000
);
},
fail
:
error
=>
{
console
.
log
(
'
失败啦
'
,
error
);
}
});
}
uni
.
showToast
({
title
:
'
支付成功
'
,
icon
:
'
success
'
,
duration
:
1000
});
// uni.request({
// url: 'http://www.gyuantecdg.cn:1515/payment/createorder?amount='+3+'&desc='+'灰机',
// method: 'POST',
// data:{
// "amount": 3,
// "desc": "灰机",
// },
// header: {
// 'contentType': 'application/x-www-form-urlencoded' //自定义请求头信息
// },
// method: 'POST',
// success: res => {
// console.log('付费啦A', res);
// this.paymoneys=res.data
// console.log('付费啦Art', this.paymoneys);
// console.log(this.imageValues);
// let order=[
// {
// "appid": "wx1773a03e19c7f1ad", // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
// "noncestr": this.paymoneys.noncestr, // 随机字符串
// "package": "Sign=WXPay", // 固定值
// "partnerid": "1605853086", // 微信支付商户号
// "prepayid": 'wx2717170354460316eb340c50471c4d0000', // 统一下单订单号
// "timestamp": this.paymoneys.timestamp, // 时间戳(单位:秒)
// "sign": this.paymoneys.sign // 签名,这里用的 MD5/RSA 签名
// },
// ]
// console.log('看看准备的',order);
// uni.requestPayment({
// "provider": "wxpay",
// "orderInfo": {
// "appid": "wx1773a03e19c7f1ad", // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
// "noncestr": this.paymoneys.noncestr, // 随机字符串
// "package": "Sign=WXPay", // 固定值
// "partnerid": "1605853086", // 微信支付商户号
// "prepayid": 'wx2717170354460316eb340c50471c4d0000', // 统一下单订单号
// "timestamp": this.paymoneys.timestamp, // 时间戳(单位:秒)
// "sign": '39C979719391482BB4B6798CC6F74C155D183B99' // 签名,这里用的 MD5/RSA 签名
// },
// success(res) {
// console.log('成功',res);
// },
// fail(e) {
// console.log('失败',e);
// }
// })
// setTimeout(() => {}, 1000);
// setTimeout(() => {}, 2000);
// }
// });
// setTimeout(() => {}, 1000);
// setTimeout(() => {}, 2000);
// }
// });
}
else
{
uni
.
showToast
({
title
:
'
请选择城市!
'
})
}
}
else
{
uni
.
showToast
({
title
:
'
请选择图片!
'
})
}
},
// 选中
chose
(
index
)
{},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录