正在显示
3 个修改的文件
包含
31 行增加
和
8 行删除
@@ -307,9 +307,25 @@ Page({ | @@ -307,9 +307,25 @@ Page({ | ||
307 | shouyulan(e) { | 307 | shouyulan(e) { |
308 | let that = this; | 308 | let that = this; |
309 | let url = e.currentTarget.dataset.url; | 309 | let url = e.currentTarget.dataset.url; |
310 | - wx.navigateTo({ | ||
311 | - url: '/pages/sucai/sucai' | 310 | + wx.downloadFile({ |
311 | + url: url , | ||
312 | + success: function (res) { | ||
313 | + console.log(res) | ||
314 | + var Path = res.tempFilePath //返回的文件临时地址,用于后面打开本地预览所用 | ||
315 | + wx.openDocument({ | ||
316 | + filePath: Path, | ||
317 | + success: function (res) { | ||
318 | + console.log('打开成功'); | ||
319 | + } | ||
320 | + }) | ||
321 | + }, | ||
322 | + fail: function (res) { | ||
323 | + console.log(res); | ||
324 | + } | ||
312 | }) | 325 | }) |
326 | + // wx.navigateTo({ | ||
327 | + // url: '/pages/sucai/sucai' | ||
328 | + // }) | ||
313 | //let url='http://qiniu.winesbook.cn/admin/20190704/cb3e97cd4af2fb5aa5b544a9e3fde917.jpg' | 329 | //let url='http://qiniu.winesbook.cn/admin/20190704/cb3e97cd4af2fb5aa5b544a9e3fde917.jpg' |
314 | // let url='http://areial.w.brotop.cn/uploads/20191118/ceshi.jpg' | 330 | // let url='http://areial.w.brotop.cn/uploads/20191118/ceshi.jpg' |
315 | 331 |
@@ -113,7 +113,7 @@ page{ | @@ -113,7 +113,7 @@ page{ | ||
113 | .addcar { | 113 | .addcar { |
114 | width: 180rpx; | 114 | width: 180rpx; |
115 | height: 77rpx; | 115 | height: 77rpx; |
116 | - background: rgba(251, 99, 36, 1); | 116 | + background: #409FFE; |
117 | opacity: 1; | 117 | opacity: 1; |
118 | border-radius: 20rpx 4rpx 4rpx 20rpx; | 118 | border-radius: 20rpx 4rpx 4rpx 20rpx; |
119 | color: #fff; | 119 | color: #fff; |
@@ -126,7 +126,7 @@ page{ | @@ -126,7 +126,7 @@ page{ | ||
126 | .lijimai { | 126 | .lijimai { |
127 | width: 180rpx; | 127 | width: 180rpx; |
128 | height: 77rpx; | 128 | height: 77rpx; |
129 | - background: rgba(251, 99, 36, 1); | 129 | + background: #409FFE; |
130 | opacity: 1; | 130 | opacity: 1; |
131 | border-radius: 4rpx 20rpx 20rpx 4rpx; | 131 | border-radius: 4rpx 20rpx 20rpx 4rpx; |
132 | color: #fff; | 132 | color: #fff; |
@@ -5,18 +5,25 @@ | @@ -5,18 +5,25 @@ | ||
5 | }, | 5 | }, |
6 | "setting": { | 6 | "setting": { |
7 | "urlCheck": false, | 7 | "urlCheck": false, |
8 | + "scopeDataCheck": false, | ||
9 | + "coverView": true, | ||
8 | "es6": true, | 10 | "es6": true, |
9 | "postcss": true, | 11 | "postcss": true, |
12 | + "compileHotReLoad": false, | ||
10 | "preloadBackgroundData": false, | 13 | "preloadBackgroundData": false, |
11 | "minified": true, | 14 | "minified": true, |
12 | - "newFeature": true, | ||
13 | - "coverView": true, | ||
14 | "autoAudits": false, | 15 | "autoAudits": false, |
16 | + "newFeature": true, | ||
17 | + "uglifyFileName": false, | ||
18 | + "uploadWithSourceMap": true, | ||
19 | + "useIsolateContext": true, | ||
20 | + "nodeModules": false, | ||
21 | + "enhance": false, | ||
22 | + "useCompilerModule": false, | ||
23 | + "userConfirmedUseCompilerModuleSwitch": false, | ||
15 | "showShadowRootInWxmlPanel": true, | 24 | "showShadowRootInWxmlPanel": true, |
16 | - "scopeDataCheck": false, | ||
17 | "checkInvalidKey": true, | 25 | "checkInvalidKey": true, |
18 | "checkSiteMap": true, | 26 | "checkSiteMap": true, |
19 | - "uploadWithSourceMap": true, | ||
20 | "babelSetting": { | 27 | "babelSetting": { |
21 | "ignore": [], | 28 | "ignore": [], |
22 | "disablePlugins": [], | 29 | "disablePlugins": [], |
-
请 注册 或 登录 后发表评论