Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5d845190
authored
Oct 24, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:添加图片下载
1 parent
d6dff14e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
pages/apply/apply.wxml
pages/checkProduct/checkProduct.js
pages/tab/index/constant/data.js
pages/tab/index/index.js
utils/request/environment.js
pages/apply/apply.wxml
View file @
5d84519
...
@@ -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" />
...
...
pages/checkProduct/checkProduct.js
View file @
5d84519
...
@@ -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),
...
...
pages/tab/index/constant/data.js
View file @
5d84519
...
@@ -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
:
'
216
0000'
,
profit
:
'
18
0000'
,
type
:
'membrane'
,
type
:
'membrane'
,
productType
:
'protectMembrane'
,
productType
:
'protectMembrane'
,
path
:
'paintProtect'
,
path
:
'paintProtect'
,
...
...
pages/tab/index/index.js
View file @
5d84519
...
@@ -317,7 +317,7 @@ Page({
...
@@ -317,7 +317,7 @@ Page({
break
break
case
'protectMembrane'
:
case
'protectMembrane'
:
// 漆面保护膜
// 漆面保护膜
profit
=
(
flow
*
0.
15
*
12
000
*
12
).
toFixed
(
0
)
profit
=
(
flow
*
0.
05
*
3
000
*
12
).
toFixed
(
0
)
break
break
case
'colorMembrane'
:
case
'colorMembrane'
:
// 改色膜
// 改色膜
...
...
utils/request/environment.js
View file @
5d84519
...
@@ -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
:
{},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment