21da2d2a by 华明祺

国电接口改造

1 parent 57a97faf
Showing 114 changed files with 508 additions and 337 deletions
1 .DS_Store 1 .DS_Store
2 node_modules/ 2 node_modules/
3 unpackage/ 3 unpackage/
4 dist/
4 5
5 package-lock.json 6 package-lock.json
6 yarn.lock 7 yarn.lock
......
...@@ -12,14 +12,9 @@ ...@@ -12,14 +12,9 @@
12 <title></title> 12 <title></title>
13 <!--preload-links--> 13 <!--preload-links-->
14 <!--app-context--> 14 <!--app-context-->
15 <style>
16 * {
17 box-sizing: border-box;
18 }
19 </style>
20 </head> 15 </head>
21 <body> 16 <body>
22 <div id="app"><!--app-html--></div> 17 <div id="app"><!--app-html--></div>
23 <script type="module" src="/main.js"></script> 18 <script type="module" src="/src/main.js"></script>
24 </body> 19 </body>
25 </html> 20 </html>
......
1 {
2 "name" : "miniP",
3 "appid" : "__UNI__580BCB0",
4 "description" : "",
5 "versionName" : "1.0.1",
6 "versionCode" : "100",
7 "transformPx" : false,
8 /* 5+App特有相关 */
9 "app-plus" : {
10 "usingComponents" : true,
11 "nvueStyleCompiler" : "uni-app",
12 "compilerVersion" : 3,
13 "splashscreen" : {
14 "alwaysShowBeforeRender" : true,
15 "waiting" : true,
16 "autoclose" : true,
17 "delay" : 0
18 },
19 /* 模块配置 */
20 "modules" : {},
21 /* 应用发布信息 */
22 "distribute" : {
23 /* android打包配置 */
24 "android" : {
25 "permissions" : [],
26 "autoSdkPermissions" : true
27 },
28 /* ios打包配置 */
29 "ios" : {
30 "permissions" : [],
31 "autoSdkPermissions" : true
32 },
33 /* SDK配置 */
34 "sdkConfigs" : {}
35 }
36 },
37 /* 快应用特有相关 */
38 "quickapp" : {},
39 /* 小程序特有相关 */
40 "mp-weixin" : {
41 "appid" : "wx5d51e8ed31bbdbb7", //J系统
42
43 // "appid" : "wx70f16625f10de4fe",//新跆联
44 // "appid" : "wx5e2471ed6210c3a6",
45 "setting" : {
46 "urlCheck" : false,
47 "minified" : false,
48 "es6" : true
49 },
50 "usingComponents" : true,
51 "permission" : {},
52 "optimization" : {
53 "subPackages" : true
54 }
55 },
56 "mp-alipay" : {
57 "usingComponents" : true
58 },
59 "mp-baidu" : {
60 "usingComponents" : true
61 },
62 "mp-toutiao" : {
63 "usingComponents" : true
64 },
65 "uniStatistics" : {
66 "enable" : false
67 },
68 "vueVersion" : "3",
69 "h5" : {
70 "router" : {
71 "mode" : "history"
72 }
73 }
74 }
1 { 1 {
2 "dependencies": { 2 "name": "uni-preset-vue",
3 "dayjs": "^1.11.6", 3 "version": "0.0.0",
4 "lodash": "^4.17.21" 4 "scripts": {
5 }, 5 "dev:custom": "uni -p",
6 "devDependencies": { 6 "dev:h5": "uni",
7 "@rollup/plugin-commonjs": "^22.0.0" 7 "dev:h5:ssr": "uni --ssr",
8 } 8 "dev:mp-alipay": "uni -p mp-alipay",
9 } 9 "dev:mp-baidu": "uni -p mp-baidu",
10 "dev:mp-jd": "uni -p mp-jd",
11 "dev:mp-kuaishou": "uni -p mp-kuaishou",
12 "dev:mp-lark": "uni -p mp-lark",
13 "dev:mp-qq": "uni -p mp-qq",
14 "dev:mp-toutiao": "uni -p mp-toutiao",
15 "dev:mp-weixin": "uni -p mp-weixin",
16 "dev:mp-xhs": "uni -p mp-xhs",
17 "dev:quickapp-webview": "uni -p quickapp-webview",
18 "dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
19 "dev:quickapp-webview-union": "uni -p quickapp-webview-union",
20 "build:custom": "uni build -p",
21 "build:h5": "uni build",
22 "build:h5:ssr": "uni build --ssr",
23 "build:mp-alipay": "uni build -p mp-alipay",
24 "build:mp-baidu": "uni build -p mp-baidu",
25 "build:mp-jd": "uni build -p mp-jd",
26 "build:mp-kuaishou": "uni build -p mp-kuaishou",
27 "build:mp-lark": "uni build -p mp-lark",
28 "build:mp-qq": "uni build -p mp-qq",
29 "build:mp-toutiao": "uni build -p mp-toutiao",
30 "build:mp-weixin": "uni build -p mp-weixin",
31 "build:mp-xhs": "uni build -p mp-xhs",
32 "build:quickapp-webview": "uni build -p quickapp-webview",
33 "build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
34 "build:quickapp-webview-union": "uni build -p quickapp-webview-union"
35 },
36 "dependencies": {
37 "@dcloudio/uni-app": "3.0.0-4020920240930001",
38 "@dcloudio/uni-app-harmony": "3.0.0-4020920240930001",
39 "@dcloudio/uni-app-plus": "3.0.0-4020920240930001",
40 "@dcloudio/uni-components": "3.0.0-4020920240930001",
41 "@dcloudio/uni-h5": "3.0.0-4020920240930001",
42 "@dcloudio/uni-mp-alipay": "3.0.0-4020920240930001",
43 "@dcloudio/uni-mp-baidu": "3.0.0-4020920240930001",
44 "@dcloudio/uni-mp-jd": "3.0.0-4020920240930001",
45 "@dcloudio/uni-mp-kuaishou": "3.0.0-4020920240930001",
46 "@dcloudio/uni-mp-lark": "3.0.0-4020920240930001",
47 "@dcloudio/uni-mp-qq": "3.0.0-4020920240930001",
48 "@dcloudio/uni-mp-toutiao": "3.0.0-4020920240930001",
49 "@dcloudio/uni-mp-weixin": "3.0.0-4020920240930001",
50 "@dcloudio/uni-mp-xhs": "3.0.0-4020920240930001",
51 "@dcloudio/uni-quickapp-webview": "3.0.0-4020920240930001",
52 "@vitejs/plugin-legacy": "^5.4.3",
53 "dayjs": "^1.11.6",
54 "lodash": "^4.17.21",
55 "sass": "^1.81.0",
56 "vue": "^3.4.21",
57 "vue-i18n": "^9.1.9"
58 },
59 "devDependencies": {
60 "@dcloudio/types": "^3.4.8",
61 "@dcloudio/uni-automator": "3.0.0-4020920240930001",
62 "@dcloudio/uni-cli-shared": "3.0.0-4020920240930001",
63 "@dcloudio/uni-stacktracey": "3.0.0-4020920240930001",
64 "@dcloudio/vite-plugin-uni": "3.0.0-4020920240930001",
65 "@vue/runtime-core": "^3.4.21",
66 "vite": "5.2.8"
67 }
68 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -55,8 +55,11 @@ ...@@ -55,8 +55,11 @@
55 55
56 <style lang="scss"> 56 <style lang="scss">
57 /*每个页面公共css */ 57 /*每个页面公共css */
58 @import '/common/uni.css'; 58 @import './common/uni.css';
59 @import '/common/mystyle.scss'; 59 @import './common/mystyle.scss';
60 @import '@/static/font/iconfont.css'; 60 @import '@/static/font/iconfont.css';
61 .uni-modal__textarea{height: 50px;} 61
62 .uni-modal__textarea {
63 height: 50px;
64 }
62 </style> 65 </style>
...\ No newline at end of file ...\ No newline at end of file
......
1 import request from './request.js' 1 import request from './request.js'
2 import config from '@/config.js' 2 import config from '@/config.js'
3 3
4 function getTrainList(params) { 4 function getTrainList(params) {
5 return request({ 5 return request({
6 url: `/train/info/h5List`, 6 url: `/train/info/h5List`,
7 method: 'get', 7 method: 'get',
8 params: params 8 params: params
9 }) 9 })
10 } 10 }
11 function getComanyList(params) { 11
12 return request({ 12 function getComanyList(params) {
13 url: `/system/billing/list`, 13 return request({
14 method: 'get', 14 url: `/system/billing/list`,
15 params: params 15 method: 'get',
16 }) 16 params: params
17 } 17 })
18 function getTrainDetail(id) { 18 }
19 return request({ 19
20 url: `/train/info/getTrainByUser/${id}`, 20 function getTrainDetail(id) {
21 method: 'get', 21 return request({
22 params: id 22 url: `/train/info/getTrainByUser/${id}`,
23 }) 23 method: 'get',
24 } 24 params: id
25 function submitOrder(params) { 25 })
26 }
27
28 function submitOrder(params) {
26 return request({ 29 return request({
27 url: `/train/order/submitOrder`, 30 url: `/train/order/submitOrder`,
28 method: 'post', 31 method: 'post',
29 params: params 32 params: params
30 }) 33 })
31 } 34 }
32 function getOrderInfoByOrderId(orderId) { 35
33 return request({ 36 function getOrderInfoByOrderId(orderId) {
34 url: `/train/orderInfo/getOrderInfoByOrderId?orderId=${orderId}`, 37 return request({
35 method: 'get' 38 url: `/train/orderInfo/getOrderInfoByOrderId?orderId=${orderId}`,
36 }) 39 method: 'get'
37 } 40 })
38 function newbilllist() { 41 }
39 return request({ 42
40 url: `/train/order/getOrderbyUser `, 43 function newbilllist() {
41 method: 'get' 44 return request({
42 }) 45 url: `/train/order/getOrderbyUser `,
43 } 46 method: 'get'
44 function getInvoiceByActiveId(trainId) { 47 })
45 return request({ 48 }
46 url: `/train/invoice/list?trainId=${trainId}`, 49
47 method: 'get' 50 function getInvoiceByActiveId(trainId) {
48 }) 51 return request({
49 } 52 url: `/train/invoice/list?trainId=${trainId}`,
50 function getCanInvoiceBills(trainId) { 53 method: 'get'
51 return request({ 54 })
52 url: `/train/orderInfo/getOrderInfoByKp?isInvoice=0&trainId=${trainId}`, 55 }
53 method: 'get' 56
54 }) 57 function getCanInvoiceBills(trainId) {
55 } 58 return request({
56 function addAddress(form) { 59 url: `/train/orderInfo/getOrderInfoByKp?isInvoice=0&trainId=${trainId}`,
57 return request({ 60 method: 'get'
58 url: `/train/invoiceInfo`, 61 })
59 method: 'post', 62 }
60 params: form 63
61 }) 64 function addAddress(form) {
62 } 65 return request({
63 function delAddress(ids) { 66 url: `/train/invoiceInfo`,
64 return request({ 67 method: 'post',
65 url: `/train/invoiceInfo/${ids}`, 68 params: form
66 method: 'delete' 69 })
67 }) 70 }
68 } 71
69 function regionsList() { 72 function delAddress(ids) {
70 return request({ 73 return request({
71 url: `/systemj/region/regionsList`, 74 url: `/train/invoiceInfo/${ids}`,
72 method: 'get' 75 method: 'delete'
73 }) 76 })
74 } 77 }
75 function addressList() { 78
76 return request({ 79 function regionsList() {
77 url: `/train/invoiceInfo/list`, 80 return request({
78 method: 'get' 81 url: `/systemj/region/regionsList`,
79 }) 82 method: 'get'
80 } 83 })
81 function submitInvoice(form) { 84 }
82 return request({ 85
83 url: `/train/invoice`, 86 function addressList() {
84 method: 'post', 87 return request({
85 params: form 88 url: `/train/invoiceInfo/list`,
86 }) 89 method: 'get'
87 } 90 })
88 function editInvoice(form) { 91 }
89 return request({ 92
90 url: `/train/invoice`, 93 function submitInvoice(form) {
91 method: 'put', 94 return request({
92 params: form 95 url: `/train/invoice`,
93 }) 96 method: 'post',
94 } 97 params: form
95 function getInvoiceDetailBills(invoiceId) { 98 })
96 return request({ 99 }
97 url: `/train/orderInfo/getOrderInfoByKp?invoiceId=${invoiceId}`, 100
98 method: 'get' 101 function editInvoice(form) {
99 }) 102 return request({
100 } 103 url: `/train/invoice/edit`,
101 function getInvoiceDetail(invoiceId) { 104 method: 'post',
102 return request({ 105 params: form
103 url: `/train/invoice/${invoiceId}`, 106 })
104 method: 'get' 107 }
105 }) 108
106 } 109 function getInvoiceDetailBills(invoiceId) {
107 110 return request({
108 function getInvoiceByUserId() { 111 url: `/train/orderInfo/getOrderInfoByKp?invoiceId=${invoiceId}`,
109 return request({ 112 method: 'get'
110 url: `/train/invoice/list`, 113 })
111 method: 'get' 114 }
112 }) 115
113 } 116 function getInvoiceDetail(invoiceId) {
114 // /-sss--sss--sssssss---ssssssssss-----//// 117 return request({
115 118 url: `/train/invoice/${invoiceId}`,
116 119 method: 'get'
117 120 })
118 121 }
119 function getbilllist(userId,venueId) { 122
120 return request({ 123 function getInvoiceByUserId() {
121 url: `/logex/order/list?createById=${userId}&venueId=${venueId}`, 124 return request({
122 method: 'get', 125 url: `/train/invoice/list`,
123 params: userId 126 method: 'get'
124 }) 127 })
125 } 128 }
126 129 // /-sss--sss--sssssss---ssssssssss-----////
127 130
128 function getbilldetailbyId(orderId) { 131
129 return request({ 132
130 // url: `/logex/order/${orderId}`, 133
131 url: `/logex/norder/${orderId}`, 134 function getbilllist(userId, venueId) {
132 method: 'get', 135 return request({
133 params: orderId 136 url: `/logex/order/list?createById=${userId}&venueId=${venueId}`,
134 }) 137 method: 'get',
135 } 138 params: userId
136 function getFoodBilldetailbyId(orderId) { 139 })
137 return request({ 140 }
138 url: `/logex/orderFood/getFoodOrderInfoByOrder?orderId=${orderId}`, 141
139 method: 'get' 142
140 }) 143 function getbilldetailbyId(orderId) {
141 } 144 return request({
142 145 // url: `/logex/order/${orderId}`,
143 function getCarBilldetailbyId(orderId) { 146 url: `/logex/norder/${orderId}`,
144 return request({ 147 method: 'get',
145 url: `/logex/norder/getOrderByOrderId?orderId=${orderId}`, 148 params: orderId
146 method: 'get' 149 })
147 }) 150 }
148 } 151
149 152 function getFoodBilldetailbyId(orderId) {
150 153 return request({
151 154 url: `/logex/orderFood/getFoodOrderInfoByOrder?orderId=${orderId}`,
152 155 method: 'get'
153 156 })
154 // 退ding 157 }
155 function cancelOrder() { 158
156 return request({ 159 function getCarBilldetailbyId(orderId) {
157 url: `/train/info/getUnReg`, 160 return request({
158 method: 'get' 161 url: `/logex/norder/getOrderByOrderId?orderId=${orderId}`,
159 }) 162 method: 'get'
160 } 163 })
161 // 取消 164 }
162 function cancelOrder2(orderId) { 165
163 return request({ 166
164 url: `/logex/norder/cancelOrderBack//${orderId}`, 167
165 method: 'post', 168
166 params: orderId 169
167 }) 170 // 退ding
168 } 171 function cancelOrder() {
169 172 return request({
170 function payForOrder(orderId) { 173 url: `/train/info/getUnReg`,
171 // const nowOpenId = uni.getStorageSync('nowOpenId'); 174 method: 'get'
172 return request({ 175 })
173 // url: `/logex/order/payForOrder?orderId=${orderId}&openId=${nowOpenId}`, 176 }
174 url: `/train/order/payForOrder?orderId=${orderId}`, 177 // 取消
175 method: 'post', 178 function cancelOrder2(orderId) {
176 params: orderId 179 return request({
177 }) 180 url: `/logex/norder/cancelOrderBack//${orderId}`,
178 } 181 method: 'post',
179 182 params: orderId
180 function checkResidueRoom(form) { 183 })
181 return request({ 184 }
182 url: `/logex/orderRoom/checkResidueRoom`, 185
183 method: 'post', 186 function payForOrder(orderId) {
184 params: form 187 // const nowOpenId = uni.getStorageSync('nowOpenId');
185 }) 188 return request({
186 } 189 // url: `/logex/order/payForOrder?orderId=${orderId}&openId=${nowOpenId}`,
187 190 url: `/train/order/payForOrder?orderId=${orderId}`,
188 function getActivityRestaurantList(params) { 191 method: 'post',
189 return request({ 192 params: orderId
190 url: `/logex/activityRestaurant/list`, 193 })
191 method: 'get', 194 }
192 params: params 195
193 }) 196 function checkResidueRoom(form) {
194 } 197 return request({
195 function getActivityCarList(params) { 198 url: `/logex/orderRoom/checkResidueRoom`,
196 return request({ 199 method: 'post',
197 url: `/logex/activityVehicle/wxList`, 200 params: form
198 method: 'get', 201 })
199 params: params 202 }
200 }) 203
201 } 204 function getActivityRestaurantList(params) {
202 function getMenuById(id) { 205 return request({
203 return request({ 206 url: `/logex/activityRestaurant/list`,
204 url: `/logex/activityFood/list?larId=${id}`, 207 method: 'get',
205 method: 'get' 208 params: params
206 }) 209 })
207 } 210 }
208 function submitOrderFood(form) { 211
209 return request({ 212 function getActivityCarList(params) {
210 url: `/logex/norder/submitOrderFood`, 213 return request({
211 method: 'post', 214 url: `/logex/activityVehicle/wxList`,
212 params: form 215 method: 'get',
213 }) 216 params: params
214 } 217 })
215 function submitOrderCar(form) { 218 }
216 return request({ 219
217 url: `/logex/norder/submitOrderCar`, 220 function getMenuById(id) {
218 method: 'post', 221 return request({
219 params: form 222 url: `/logex/activityFood/list?larId=${id}`,
220 }) 223 method: 'get'
221 } 224 })
222 function newsSubmitOrderHotel(form) { 225 }
223 return request({ 226
224 url: `/logex/norder/submitOrderRoom`, 227 function submitOrderFood(form) {
225 method: 'post', 228 return request({
226 params: form 229 url: `/logex/norder/submitOrderFood`,
227 }) 230 method: 'post',
228 } 231 params: form
229 export {getTrainList,getOrderInfoByOrderId 232 })
230 ,getTrainDetail,submitOrder,getbilllist,getbilldetailbyId, 233 }
231 payForOrder,cancelOrder,getCanInvoiceBills,submitInvoice,getInvoiceByActiveId,getInvoiceDetailBills, 234
232 getInvoiceDetail,getInvoiceByUserId,editInvoice,addAddress,regionsList,addressList,delAddress, 235 function submitOrderCar(form) {
233 checkResidueRoom,getActivityRestaurantList,getMenuById, 236 return request({
234 submitOrderFood,getActivityCarList,submitOrderCar,newsSubmitOrderHotel,newbilllist, 237 url: `/logex/norder/submitOrderCar`,
235 getFoodBilldetailbyId,getCarBilldetailbyId, 238 method: 'post',
236 cancelOrder2,getComanyList 239 params: form
240 })
241 }
242
243 function newsSubmitOrderHotel(form) {
244 return request({
245 url: `/logex/norder/submitOrderRoom`,
246 method: 'post',
247 params: form
248 })
249 }
250 export {
251 getTrainList,
252 getOrderInfoByOrderId,
253 getTrainDetail,
254 submitOrder,
255 getbilllist,
256 getbilldetailbyId,
257 payForOrder,
258 cancelOrder,
259 getCanInvoiceBills,
260 submitInvoice,
261 getInvoiceByActiveId,
262 getInvoiceDetailBills,
263 getInvoiceDetail,
264 getInvoiceByUserId,
265 editInvoice,
266 addAddress,
267 regionsList,
268 addressList,
269 delAddress,
270 checkResidueRoom,
271 getActivityRestaurantList,
272 getMenuById,
273 submitOrderFood,
274 getActivityCarList,
275 submitOrderCar,
276 newsSubmitOrderHotel,
277 newbilllist,
278 getFoodBilldetailbyId,
279 getCarBilldetailbyId,
280 cancelOrder2,
281 getComanyList
237 } 282 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -251,8 +251,7 @@ function h5LoginAuto() { ...@@ -251,8 +251,7 @@ function h5LoginAuto() {
251 } 251 }
252 } 252 }
253 253
254 function initData() { 254 function initData() {}
255 }
256 255
257 export { 256 export {
258 getNowOpenId, 257 getNowOpenId,
......
...@@ -25,18 +25,28 @@ function getToken() { ...@@ -25,18 +25,28 @@ function getToken() {
25 25
26 // 获取请求头 26 // 获取请求头
27 function getHeaders() { 27 function getHeaders() {
28 let token = getToken() 28 const token = getToken()
29 let header = { 29 const header = {
30 "Authorization": token, 30 "Authorization": token,
31 "Content-Type": "application/json", //根据自己的数据类型 31 "Content-Type": "application/json",
32 // "Content-Type":"application/x-www-form-urlencoded", 32 }
33 return header
34 }
35
36 function getHeaders2() {
37 const token = getToken()
38 const header = {
39 "isToken": false,
40 "Authorization": token,
41 'content-type': 'application/x-www-form-urlencoded'
33 } 42 }
34 return header 43 return header
35 } 44 }
36 45
37 let request = function(req) { 46 let request = function(req) {
38 req.method = req.method.toUpperCase() 47 req.method = req.method.toUpperCase()
39 if (!['GET', 'POST', 'PUT', 'DELETE'].includes(req.method)) { 48 // if (!['GET', 'POST', 'PUT', 'DELETE'].includes(req.method)) {
49 if (!['GET', 'POST'].includes(req.method)) {
40 uni.showToast({ 50 uni.showToast({
41 title: `暂不支持的请求方式: ${req.method}`, 51 title: `暂不支持的请求方式: ${req.method}`,
42 icon: 'none' 52 icon: 'none'
...@@ -50,16 +60,33 @@ let request = function(req) { ...@@ -50,16 +60,33 @@ let request = function(req) {
50 // }) 60 // })
51 // } 61 // }
52 62
63 const baseUrl = config.localPort + '/jsintszxd/request'
64 let url, data
65 if (req.method === 'POST') {
66 url = baseUrl
67 data = {
68 appSecretId: config.appSecretId,
69 restApi: req.url,
70 params: 'jsonBody=' + JSON.stringify(req.params)
71 }
72 } else {
73 url = `${baseUrl}?appSecretId=${config.appSecretId}&restApi=${encodeURIComponent(req.url)}`
74 }
75
53 return new Promise((resolve, reject) => { 76 return new Promise((resolve, reject) => {
54 uni.request({ 77 uni.request({
55 url: config.baseUrl_api + req.url, 78 // url: config.baseUrl_api + req.url,
79 url: url,
56 method: req.method, 80 method: req.method,
57 data: req.params, 81 // data: req.params,
58 header: getHeaders(), 82 // header: getHeaders(),
83 data: data,
84 header: getHeaders2()
59 }).then(res => { 85 }).then(res => {
60 switch (res.statusCode) { 86 switch (res.statusCode) {
61 case 200: 87 case 200:
62 const data = res.data || {}; 88 // const data = res.data || {};
89 const data = res.data.data || {};
63 if (data.code == 200) { 90 if (data.code == 200) {
64 resolve(data) 91 resolve(data)
65 } else { 92 } else {
......
...@@ -3,9 +3,14 @@ ...@@ -3,9 +3,14 @@
3 3
4 4
5 // staging 5 // staging
6 const baseUrl_api = "http://192.168.1.118:6688"; 6 const baseUrl_api = "http://192.168.1.118:6688";
7 // const baseUrl_api = "http://123.60.96.243:6688"; 7 // const baseUrl_api = "http://123.60.96.243:6688";
8 // const baseUrl_api = "http://121.4.115.48:27001/jsintszxd/request";
9 const appSecretId = 'af14ef3f-ebec-446c-8d1f-c4afa60dd095';
10 const localPort = localStorage.getItem('localPort')
8 11
9 export default { 12 export default {
10 baseUrl_api 13 localPort,
14 baseUrl_api,
15 appSecretId
11 } 16 }
...\ No newline at end of file ...\ No newline at end of file
......
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <script>
6 var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
7 CSS.supports('top: constant(a)'))
8 document.write(
9 '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
10 (coverSupport ? ', viewport-fit=cover' : '') + '" />')
11 </script>
12 <title></title>
13 <!--preload-links-->
14 <!--app-context-->
15 <style>
16 * {
17 box-sizing: border-box;
18 }
19 </style>
20 </head>
21 <body>
22 <div id="app"><!--app-html--></div>
23 <script type="module" src="/main.js"></script>
24 </body>
25 </html>
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "name": "miniP",
3 "appid": "__UNI__580BCB0",
4 "description": "",
5 "versionName": "1.0.1",
6 "versionCode": "100",
7 "transformPx": false,
8 /* 5+App特有相关 */
9 "app-plus": {
10 "usingComponents": true,
11 "nvueStyleCompiler": "uni-app",
12 "compilerVersion": 3,
13 "splashscreen": {
14 "alwaysShowBeforeRender": true,
15 "waiting": true,
16 "autoclose": true,
17 "delay": 0
18 },
19 /* 模块配置 */
20 "modules": {},
21 /* 应用发布信息 */
22 "distribute": {
23 /* android打包配置 */
24 "android": {
25 "permissions": [],
26 "autoSdkPermissions": true
27 },
28 /* ios打包配置 */
29 "ios": {
30 "permissions": [],
31 "autoSdkPermissions": true
32 },
33 /* SDK配置 */
34 "sdkConfigs": {}
35 }
36 },
37 /* 快应用特有相关 */
38 "quickapp": {},
39 /* 小程序特有相关 */
40 "mp-weixin": {
41 "appid": "wx5d51e8ed31bbdbb7", //J系统
42
43 // "appid" : "wx70f16625f10de4fe",//新跆联
44 // "appid" : "wx5e2471ed6210c3a6",
45 "setting": {
46 "urlCheck": false,
47 "minified": false,
48 "es6": true
49 },
50 "usingComponents": true,
51 "permission": {},
52 "optimization": {
53 "subPackages": true
54 }
55 },
56 "mp-alipay": {
57 "usingComponents": true
58 },
59 "mp-baidu": {
60 "usingComponents": true
61 },
62 "mp-toutiao": {
63 "usingComponents": true
64 },
65 "uniStatistics": {
66 "enable": false
67 },
68 "vueVersion": "3",
69 "h5": {
70 "router": {
71 "mode": "hash",
72 "base": "./"
73 },
74 "template": ""
75 }
76 }
...\ No newline at end of file ...\ No newline at end of file
1 /// <reference types='@dcloudio/types' />
2 import 'vue'
3
4 declare module '@vue/runtime-core' {
5 type Hooks = App.AppInstance & Page.PageInstance;
6
7 interface ComponentCustomOptions extends Hooks {
8
9 }
10 }
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!