Commit 59afe212 by 匡雅琴

3.11.1上线封版

1 parent 00f383e8
...@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"]; ...@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布 3预发布
4生产 4生产
*/ */
const index = 2; const index = 4;
const secretKey = { const secretKey = {
ip: {}, ip: {},
dev: { dev: {
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
"integrity": "sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ==" "integrity": "sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
}, },
"glsx-applet-component": { "glsx-applet-component": {
"version": "1.1.13", "version": "1.1.16",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.13.tgz", "resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.16.tgz",
"integrity": "sha512-erZj/7TIXcckvf2h+Mlr5rMt6YHQLUq9LysgkgbbYA/u6OCVY6pQcT70HBl0WwsoFT4CMbPZ+4gqUKWOP2RocA==" "integrity": "sha512-XlBqP5ja4TqGB0nTW4dW6fdSQ9m/hAspbBKTJZ9CNUGVCKorkyjv/RfY85ta4OU5PiQCKTFZBbTELtz5MoxaVQ=="
} }
} }
} }
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"main": "app.js", "main": "app.js",
"dependencies": { "dependencies": {
"@vant/weapp": "^1.10.9", "@vant/weapp": "^1.10.9",
"glsx-applet-component": "^1.1.13" "glsx-applet-component": "^1.1.16"
}, },
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {
......
...@@ -184,13 +184,19 @@ Page({ ...@@ -184,13 +184,19 @@ Page({
// 获取场景 // 获取场景
let systemItem = this.data.systemData.find(item => item.sceneCode == e.detail.sceneCode) let systemItem = this.data.systemData.find(item => item.sceneCode == e.detail.sceneCode)
let productItem = this.data.productData.find(item => item.sceneCode == e.detail.sceneCode) let productItem = this.data.productData.find(item => item.sceneCode == e.detail.sceneCode)
const id = systemItem?.productList[0].id || productItem?.productList[0].id // let id = ''
// const itemList = systemItem ? systemItem : productItem
// const subList = itemList.subList.length ? itemList.subList[0] : null
// const productList = subList ? subList.productList : itemList.productList
// id = productList.length ? productList[0]?.id : ''
let obj = systemItem || productItem
const id = obj?.subList.length ? obj?.subList[0]?.productList[0]?.id : obj?.productList[0]?.id
if (!id) return if (!id) return
wx.$router.go('/packagesList/pages/productDetail/productDetail', { hasPhoneNumber, id }) wx.$router.go('/packagesList/pages/productDetail/productDetail', { hasPhoneNumber, id })
}, },
// 获取全部活动列表 // 获取全部活动列表
getActivityRecord() { getActivityRecord() {
entmicroApi.getActivityRecord({}).then(({ data, code, message }) => { entmicroApi.getActivityRecord({}).then(({ data, code, message }) => {meifaxi
if (code == -1) { if (code == -1) {
wx.showToast({ wx.showToast({
title: message, title: message,
...@@ -209,6 +215,18 @@ Page({ ...@@ -209,6 +215,18 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
const app = getApp() const app = getApp()
app.getBaseData().then(res => {
const productData = res[0].subList
const systemData = res[1].subList
this.setData({
[`tabList[0].name`]: res[0].name,
[`tabList[1]name`]: res[1].name,
systemData,
systemDataId: res[1].id,
productData,
productDataId: res[0].id,
})
})
app.login() app.login()
.then(({ data }) => { .then(({ data }) => {
if (data && data.phone) { if (data && data.phone) {
...@@ -281,18 +299,18 @@ Page({ ...@@ -281,18 +299,18 @@ Page({
*/ */
onShow() { onShow() {
const app = getApp() const app = getApp()
app.getBaseData().then(res => { // app.getBaseData().then(res => {
const productData = res[0].list // const productData = res[0].subList
const systemData = res[1].list // const systemData = res[1].subList
this.setData({ // this.setData({
[`tabList[0].name`]: res[0].name, // [`tabList[0].name`]: res[0].name,
[`tabList[1]name`]: res[1].name, // [`tabList[1]name`]: res[1].name,
systemData, // systemData,
systemDataId: res[1].id, // systemDataId: res[1].id,
productData, // productData,
productDataId: res[0].id, // productDataId: res[0].id,
}) // })
}) // })
const userInfo = wx.$util.getUserInfo() const userInfo = wx.$util.getUserInfo()
this.setData({ this.setData({
hasPhoneNumber: !!(userInfo && userInfo.phone) hasPhoneNumber: !!(userInfo && userInfo.phone)
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<view class="main-content"> <view class="main-content">
<block wx:if="{{curTabIndex == 0}}"> <block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 --> <!-- 增值转化 -->
<!-- <gl-scenario currentScenIndex="{{1}}" productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" /> -->
<gl-scenario list="{{productData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" bindleftClick="leftClick" bindcurrentScen="getCurrentScen"></gl-scenario> <gl-scenario list="{{productData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" bindleftClick="leftClick" bindcurrentScen="getCurrentScen"></gl-scenario>
</block> </block>
<block wx:if="{{curTabIndex == 1}}"> <block wx:if="{{curTabIndex == 1}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!