Commit c848bccd by 前端

Merge branch 'zq_dev_3.0' into 'v3.0'

Zq dev 3.0

See merge request !111
2 parents 1ba56c57 f8e7d2f7
......@@ -2,13 +2,13 @@
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="门店助手">
<text class="bar-text">门店助手</text>
</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="salutation-wrap" wx:if="{{loginMethod==0}}">
<view class="salutation">您好</view>
<view class="welcome">欢迎登录门店助手</view>
<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 class="footer">
......
......@@ -2,13 +2,13 @@
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="门店助手">
<text class="bar-text">门店助手</text>
</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="salutation-wrap">
<view class="salutation">您好</view>
<view class="welcome">欢迎注册门店助手</view>
<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 class="footer" style="background-image: url('{{IMGURL}}register.png');">
......
const navStyle = "background-color: #fff";
import { senceData } from "~/pages/tab/discovery/constant/data";
import Draw from "~/utils/Draw.js";
import { IMG_URL } from "~/utils/constantData.js";
import { IMG_URL,IMG_VERSION } from "~/utils/constantData.js";
import {
commonApi
} from '~/api/api.js'
......@@ -12,6 +12,7 @@ Page({
*/
data: {
navStyle,
img_version:IMG_VERSION(),
headerHeight: 0,
senceData,
actNum: 0,
......@@ -73,7 +74,7 @@ Page({
createImg(){
if(this.data.fromLocal==1){
let { actNum,activeNavIdx,senceData } = this.data;
let img = `${IMGURL}scene/longpic${actNum + 1}.png`
let img = `${IMGURL}scene/longpic${actNum + 1}.jpg`
wx.showLoading({
title: '海报生成中...',
})
......@@ -176,6 +177,9 @@ Page({
wx.$api.showToast('接口异常')
}
})
},
fail:(err)=>{
wx.$api.showToast(err || '接口异常')
}
})
}
......
import {imgUrlMixin} from '~/mixins/index'
const videoBaseUrl = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/'
import {IMG_VERSION} from '~/utils/constantData'
Component({
behaviors: [imgUrlMixin],
......@@ -16,6 +17,7 @@ Component({
data: {
videoBaseUrl,
img_version:IMG_VERSION(),
navList:['数字无忧权益卡'],
activeNavIdx: 0, //特色产品
tab:['适用场景','营销链路','项目亮点','转化漏斗','合作流程','合作案例'],
......
......@@ -42,7 +42,7 @@
<view class="project-img">
<block wx:for="{{tab}}" wx:key="index">
<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-list">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
......
......@@ -2,6 +2,7 @@
const navStyle = "background-color: transparent;";
import {senceData} from "./constant/data";
import ActivityApi from '~/api/activityApi/index'
import {IMG_VERSION} from '~/utils/constantData'
Page({
/**
......@@ -9,6 +10,7 @@ Page({
*/
data: {
senceData,
img_version:IMG_VERSION(),
headerHeight: 0,
actNum: 0,
navStyle,
......@@ -46,14 +48,14 @@ Page({
let sceneCodeList = []
let senceData = [...this.data.senceData]
// let res = [
// {
// sceneCode: 'SC001',
// status: 0
// },
// {
// sceneCode: 'SC002',
// status: 1
// },
// {
// sceneCode: 'SC001',
// status: 0
// },
// {
// sceneCode: 'SC002',
// status: 1
// },
// {
// sceneCode: 'SC003',
// status: 1
......
......@@ -16,3 +16,8 @@ export const STORAGE_OBJECTkEY = {
srcm_shopmall_merchant_id: 'srcm_shopmall_merchant_id',
wx_user_info: 'wx_user_info'
}
export const IMG_VERSION = () => {
const accountInfo = wx.getAccountInfoSync()
return accountInfo?.miniProgram?.version || '1.0.0'
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!