作者 lihongjuan

1

... ... @@ -307,9 +307,25 @@ Page({
shouyulan(e) {
let that = this;
let url = e.currentTarget.dataset.url;
wx.navigateTo({
url: '/pages/sucai/sucai'
wx.downloadFile({
url: url ,
success: function (res) {
console.log(res)
var Path = res.tempFilePath //返回的文件临时地址,用于后面打开本地预览所用
wx.openDocument({
filePath: Path,
success: function (res) {
console.log('打开成功');
}
})
},
fail: function (res) {
console.log(res);
}
})
// wx.navigateTo({
// url: '/pages/sucai/sucai'
// })
//let url='http://qiniu.winesbook.cn/admin/20190704/cb3e97cd4af2fb5aa5b544a9e3fde917.jpg'
// let url='http://areial.w.brotop.cn/uploads/20191118/ceshi.jpg'
... ...
... ... @@ -113,7 +113,7 @@ page{
.addcar {
width: 180rpx;
height: 77rpx;
background: rgba(251, 99, 36, 1);
background: #409FFE;
opacity: 1;
border-radius: 20rpx 4rpx 4rpx 20rpx;
color: #fff;
... ... @@ -126,7 +126,7 @@ page{
.lijimai {
width: 180rpx;
height: 77rpx;
background: rgba(251, 99, 36, 1);
background: #409FFE;
opacity: 1;
border-radius: 4rpx 20rpx 20rpx 4rpx;
color: #fff;
... ...
... ... @@ -5,18 +5,25 @@
},
"setting": {
"urlCheck": false,
"scopeDataCheck": false,
"coverView": true,
"es6": true,
"postcss": true,
"compileHotReLoad": false,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
"autoAudits": false,
"newFeature": true,
"uglifyFileName": false,
"uploadWithSourceMap": true,
"useIsolateContext": true,
"nodeModules": false,
"enhance": false,
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
... ...