first commit
This commit is contained in:
15
common/index.scss
Normal file
15
common/index.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
view,
|
||||
image {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.mt30 {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
.p30 {
|
||||
padding: 30rpx;
|
||||
}
|
||||
37
common/js/user.js
Normal file
37
common/js/user.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import {
|
||||
getOssUploadParams
|
||||
} from "@/api/api.js"
|
||||
|
||||
|
||||
|
||||
export const uploadFiles = (urls) => {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
let res = await getOssUploadParams()
|
||||
const fd = {
|
||||
policy: res.policy,
|
||||
OSSAccessKeyId: res.accessId,
|
||||
success_action_status: 200,
|
||||
signature: res.signature,
|
||||
key: res.dir + Date.now() + Math.floor(100000 + Math.random() *
|
||||
900000) + '.' +
|
||||
urls.substring(urls.lastIndexOf(".") + 1),
|
||||
};
|
||||
uni.uploadFile({
|
||||
url: res.host, // Example, not a real endpoint
|
||||
filePath: urls,
|
||||
header: {
|
||||
"content-type": 'multipart/form-data'
|
||||
},
|
||||
name: 'file',
|
||||
formData: fd,
|
||||
success: (_res) => {
|
||||
resolve(fd.key);
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log(err);
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
console.log();
|
||||
});
|
||||
}
|
||||
105
common/money.json
Normal file
105
common/money.json
Normal file
@@ -0,0 +1,105 @@
|
||||
[{
|
||||
"name": "充值",
|
||||
"id": 1100
|
||||
},
|
||||
{
|
||||
"name": "后台充值",
|
||||
"id": 1200
|
||||
},
|
||||
{
|
||||
"name": "后台划扣",
|
||||
"id": 1201
|
||||
},
|
||||
{
|
||||
"name": "购买商品",
|
||||
"id": 2100
|
||||
},
|
||||
{
|
||||
"name": "商品推广",
|
||||
"id": 2110
|
||||
},
|
||||
{
|
||||
"name": "商品培育津贴",
|
||||
"id": 2120
|
||||
},
|
||||
{
|
||||
"name": "商品服务津贴",
|
||||
"id": 2130
|
||||
},
|
||||
{
|
||||
"name": "购买商品-退单",
|
||||
"id": 2200
|
||||
},
|
||||
{
|
||||
"name": "商品推广-退单",
|
||||
"id": 2210
|
||||
},
|
||||
{
|
||||
"name": "商品培育津贴-退单",
|
||||
"id": 2220
|
||||
},
|
||||
{
|
||||
"name": "商品服务津贴-退单",
|
||||
"id": 2230
|
||||
},
|
||||
{
|
||||
"name": "充电桩收益",
|
||||
"id": 3100
|
||||
},
|
||||
{
|
||||
"name": "充电桩推广",
|
||||
"id": 3110
|
||||
},
|
||||
{
|
||||
"name": "充电桩培育津贴",
|
||||
"id": 3120
|
||||
},
|
||||
{
|
||||
"name": "充电桩服务津贴",
|
||||
"id": 3130
|
||||
},
|
||||
{
|
||||
"name": "充电桩收益-退单",
|
||||
"id": 3200
|
||||
},
|
||||
{
|
||||
"name": "充电桩推广-退单",
|
||||
"id": 3210
|
||||
},
|
||||
{
|
||||
"name": "充电桩培育津贴-退单",
|
||||
"id": 3220
|
||||
},
|
||||
{
|
||||
"name": "充电桩服务津贴-退单",
|
||||
"id": 3230
|
||||
},
|
||||
{
|
||||
"name": "提现",
|
||||
"id": 4100
|
||||
},
|
||||
{
|
||||
"name": "提现失败",
|
||||
"id": 4200
|
||||
},
|
||||
{
|
||||
"name": "转赠付款",
|
||||
"id": 5100
|
||||
},
|
||||
{
|
||||
"name": "转赠收款",
|
||||
"id": 5200
|
||||
},
|
||||
{
|
||||
"name": "转换减少",
|
||||
"id": 6100
|
||||
},
|
||||
{
|
||||
"name": "转换增加",
|
||||
"id": 6200
|
||||
},
|
||||
{
|
||||
"name": "转账-星梦",
|
||||
"id": 7100
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user