Commit 5d845190 by luyt

fix:添加图片下载

1 parent d6dff14e
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
</navigation-bar> </navigation-bar>
<view class="apply"> <view class="apply">
<image class="head" src="{{IMG_URL}}index/apply-title.png" style="height:{{tabBarStyle}}px;" /> <image class="head" src="{{IMG_URL}}index/apply-title.png" style="height:{{tabBarStyle}}px;" />
<image class="introduce" src="{{IMG_URL}}index/apply-title.png" /> <image class="introduce" src="{{IMG_URL}}index/apply-bg.png" />
<view class="content" hover-class="none" hover-stop-propagation> <view class="content" hover-class="none" hover-stop-propagation>
<view class="top"> <view class="top">
<view class="line" hover-class="none" hover-stop-propagation="false" /> <view class="line" hover-class="none" hover-stop-propagation="false" />
......
...@@ -198,7 +198,8 @@ Page({ ...@@ -198,7 +198,8 @@ Page({
// 下载海报 // 下载海报
async download() { async download() {
let { actNum, activeNavIdx, imgHeightArr ,imgPath} = this.data; let { actNum, activeNavIdx, imgHeightArr ,imgPath} = this.data;
let wx_user_info = wx.$storage.get("wx_user_info"); const { appId } = wx.getAccountInfoSync().miniProgram
// let wx_user_info = wx.$storage.get("wx_user_info");
// console.log('wx_user_info: ', wx_user_info.appId); // console.log('wx_user_info: ', wx_user_info.appId);
let params = { let params = {
actNum, actNum,
...@@ -206,9 +207,9 @@ Page({ ...@@ -206,9 +207,9 @@ Page({
isShare: true, isShare: true,
}; };
console.log(' wx_user_info.appId', wx_user_info) // console.log(' wx_user_info.appId', wx_user_info)
let res = await createQrCodeApi({ let res = await createQrCodeApi({
appId: wx_user_info.appId, appId: appId,
// appId:'wx2c28337db96364d2', // appId:'wx2c28337db96364d2',
path: "pages/checkProduct/checkProduct", path: "pages/checkProduct/checkProduct",
scene: JSON.stringify(params), scene: JSON.stringify(params),
......
...@@ -99,7 +99,7 @@ var senceData = [ ...@@ -99,7 +99,7 @@ var senceData = [
img: 'product-img3', img: 'product-img3',
proName: '漆面保护膜', proName: '漆面保护膜',
price: '100', price: '100',
profit: '2160000', profit: '180000',
type: 'membrane', type: 'membrane',
productType: 'protectMembrane', productType: 'protectMembrane',
path: 'paintProtect', path: 'paintProtect',
......
...@@ -317,7 +317,7 @@ Page({ ...@@ -317,7 +317,7 @@ Page({
break break
case 'protectMembrane': case 'protectMembrane':
// 漆面保护膜 // 漆面保护膜
profit = (flow * 0.15 * 12000 * 12).toFixed(0) profit = (flow * 0.05 * 3000 * 12).toFixed(0)
break break
case 'colorMembrane': case 'colorMembrane':
// 改色膜 // 改色膜
......
...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod'] ...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试 2测试
3生产 3生产
*/ */
const index = 2 const index = 1
const secretKey = { const secretKey = {
ip: {}, ip: {},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!