Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-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 c848bccd
authored
Oct 31, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'zq_dev_3.0' into 'v3.0'
Zq dev 3.0 See merge request
!111
2 parents
1ba56c57
f8e7d2f7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
7 deletions
pages/authentication/login/login.wxml
pages/authentication/register/register.wxml
pages/checkProduct/checkProduct.js
pages/tab/discovery/components/product/product.js
pages/tab/discovery/components/product/product.wxml
pages/tab/discovery/discovery.js
utils/constantData.js
pages/authentication/login/login.wxml
View file @
c848bcc
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="门店助手">
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="门店助手">
<text class="bar-text">门店助手</text>
<text class="bar-text">门店助手</text>
</navigation-bar>
</navigation-bar>
<image class="login-bg" src="{{IMGURL}}login.png"></image>
<image
webp
class="login-bg" src="{{IMGURL}}login.png"></image>
<view class="container" style="padding-top: {{headerHeight}}px;">
<view class="container" style="padding-top: {{headerHeight}}px;">
<view class="salutation-wrap" wx:if="{{loginMethod==0}}">
<view class="salutation-wrap" wx:if="{{loginMethod==0}}">
<view class="salutation">您好</view>
<view class="salutation">您好</view>
<view class="welcome">欢迎登录门店助手</view>
<view class="welcome">欢迎登录门店助手</view>
<view class="logo">
<view class="logo">
<image class="logo-img" src="{{IMGURL}}login-logo.png"></image>
<image
webp
class="logo-img" src="{{IMGURL}}login-logo.png"></image>
</view>
</view>
</view>
</view>
<view class="footer">
<view class="footer">
...
...
pages/authentication/register/register.wxml
View file @
c848bcc
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="门店助手">
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="门店助手">
<text class="bar-text">门店助手</text>
<text class="bar-text">门店助手</text>
</navigation-bar>
</navigation-bar>
<image class="login-bg" src="{{IMGURL}}login.png"></image>
<image
webp
class="login-bg" src="{{IMGURL}}login.png"></image>
<view class="container" style="padding-top: {{headerHeight}}px;">
<view class="container" style="padding-top: {{headerHeight}}px;">
<view class="salutation-wrap">
<view class="salutation-wrap">
<view class="salutation">您好</view>
<view class="salutation">您好</view>
<view class="welcome">欢迎注册门店助手</view>
<view class="welcome">欢迎注册门店助手</view>
<view class="logo">
<view class="logo">
<image class="logo-img" src="{{IMGURL}}login-logo.png"></image>
<image
webp
class="logo-img" src="{{IMGURL}}login-logo.png"></image>
</view>
</view>
</view>
</view>
<view class="footer" style="background-image: url('{{IMGURL}}register.png');">
<view class="footer" style="background-image: url('{{IMGURL}}register.png');">
...
...
pages/checkProduct/checkProduct.js
View file @
c848bcc
const
navStyle
=
"background-color: #fff"
;
const
navStyle
=
"background-color: #fff"
;
import
{
senceData
}
from
"~/pages/tab/discovery/constant/data"
;
import
{
senceData
}
from
"~/pages/tab/discovery/constant/data"
;
import
Draw
from
"~/utils/Draw.js"
;
import
Draw
from
"~/utils/Draw.js"
;
import
{
IMG_URL
}
from
"~/utils/constantData.js"
;
import
{
IMG_URL
,
IMG_VERSION
}
from
"~/utils/constantData.js"
;
import
{
import
{
commonApi
commonApi
}
from
'~/api/api.js'
}
from
'~/api/api.js'
...
@@ -12,6 +12,7 @@ Page({
...
@@ -12,6 +12,7 @@ Page({
*/
*/
data
:
{
data
:
{
navStyle
,
navStyle
,
img_version
:
IMG_VERSION
(),
headerHeight
:
0
,
headerHeight
:
0
,
senceData
,
senceData
,
actNum
:
0
,
actNum
:
0
,
...
@@ -73,7 +74,7 @@ Page({
...
@@ -73,7 +74,7 @@ Page({
createImg
(){
createImg
(){
if
(
this
.
data
.
fromLocal
==
1
){
if
(
this
.
data
.
fromLocal
==
1
){
let
{
actNum
,
activeNavIdx
,
senceData
}
=
this
.
data
;
let
{
actNum
,
activeNavIdx
,
senceData
}
=
this
.
data
;
let
img
=
`
${
IMGURL
}
scene/longpic
${
actNum
+
1
}
.
pn
g`
let
img
=
`
${
IMGURL
}
scene/longpic
${
actNum
+
1
}
.
jp
g`
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'海报生成中...'
,
title
:
'海报生成中...'
,
})
})
...
@@ -176,6 +177,9 @@ Page({
...
@@ -176,6 +177,9 @@ Page({
wx
.
$api
.
showToast
(
'接口异常'
)
wx
.
$api
.
showToast
(
'接口异常'
)
}
}
})
})
},
fail
:(
err
)
=>
{
wx
.
$api
.
showToast
(
err
||
'接口异常'
)
}
}
})
})
}
}
...
...
pages/tab/discovery/components/product/product.js
View file @
c848bcc
import
{
imgUrlMixin
}
from
'~/mixins/index'
import
{
imgUrlMixin
}
from
'~/mixins/index'
const
videoBaseUrl
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/'
const
videoBaseUrl
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/'
import
{
IMG_VERSION
}
from
'~/utils/constantData'
Component
({
Component
({
behaviors
:
[
imgUrlMixin
],
behaviors
:
[
imgUrlMixin
],
...
@@ -16,6 +17,7 @@ Component({
...
@@ -16,6 +17,7 @@ Component({
data
:
{
data
:
{
videoBaseUrl
,
videoBaseUrl
,
img_version
:
IMG_VERSION
(),
navList
:[
'数字无忧权益卡'
],
navList
:[
'数字无忧权益卡'
],
activeNavIdx
:
0
,
//特色产品
activeNavIdx
:
0
,
//特色产品
tab
:[
'适用场景'
,
'营销链路'
,
'项目亮点'
,
'转化漏斗'
,
'合作流程'
,
'合作案例'
],
tab
:[
'适用场景'
,
'营销链路'
,
'项目亮点'
,
'转化漏斗'
,
'合作流程'
,
'合作案例'
],
...
...
pages/tab/discovery/components/product/product.wxml
View file @
c848bcc
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<view class="project-img">
<view class="project-img">
<block wx:for="{{tab}}" wx:key="index">
<block wx:for="{{tab}}" wx:key="index">
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}">
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}">
<image webp class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}
/scene/scene{{actNum+1}}{{index+1}}.png
" />
<image webp class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}
scene/scene{{actNum+1}}{{index+1}}.png?v={{img_version}}
" />
<view class="video-bg" wx:if="{{index==5 && senceData[actNum].videoList.length}}">
<view class="video-bg" wx:if="{{index==5 && senceData[actNum].videoList.length}}">
<view class="video-list">
<view class="video-list">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
...
...
pages/tab/discovery/discovery.js
View file @
c848bcc
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
const
navStyle
=
"background-color: transparent;"
;
const
navStyle
=
"background-color: transparent;"
;
import
{
senceData
}
from
"./constant/data"
;
import
{
senceData
}
from
"./constant/data"
;
import
ActivityApi
from
'~/api/activityApi/index'
import
ActivityApi
from
'~/api/activityApi/index'
import
{
IMG_VERSION
}
from
'~/utils/constantData'
Page
({
Page
({
/**
/**
...
@@ -9,6 +10,7 @@ Page({
...
@@ -9,6 +10,7 @@ Page({
*/
*/
data
:
{
data
:
{
senceData
,
senceData
,
img_version
:
IMG_VERSION
(),
headerHeight
:
0
,
headerHeight
:
0
,
actNum
:
0
,
actNum
:
0
,
navStyle
,
navStyle
,
...
...
utils/constantData.js
View file @
c848bcc
...
@@ -16,3 +16,8 @@ export const STORAGE_OBJECTkEY = {
...
@@ -16,3 +16,8 @@ export const STORAGE_OBJECTkEY = {
srcm_shopmall_merchant_id
:
'srcm_shopmall_merchant_id'
,
srcm_shopmall_merchant_id
:
'srcm_shopmall_merchant_id'
,
wx_user_info
:
'wx_user_info'
wx_user_info
:
'wx_user_info'
}
}
export
const
IMG_VERSION
=
()
=>
{
const
accountInfo
=
wx
.
getAccountInfoSync
()
return
accountInfo
?.
miniProgram
?.
version
||
'1.0.0'
}
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