Commit f2c58e81 by 张立顺

首页推送先打开

1 parent 58704443
## 正式版appid wx2c28337db96364d2
## 体验版appid wx24ebae5768e74138
\ No newline at end of file \ No newline at end of file
...@@ -50,9 +50,8 @@ ...@@ -50,9 +50,8 @@
<view class="num">{{item.completeRate}}</view> <view class="num">{{item.completeRate}}</view>
</view> </view>
</view> </view>
<view class="warReportLink"> <!-- <view class="warReportLink">
<view class="label">点击了解详情:</view> <view class="label">点击了解详情:</view>
<!-- bind:tap="preView" -->
<view <view
class="link" class="link"
wx:if="{{item.valueUrl}}" wx:if="{{item.valueUrl}}"
...@@ -61,7 +60,7 @@ ...@@ -61,7 +60,7 @@
bind:tap="downLoad"> bind:tap="downLoad">
战报详情 战报详情
</view> </view>
</view> </view> -->
</msg-box> </msg-box>
</scroll-view> </scroll-view>
</view> </view>
......
...@@ -682,7 +682,7 @@ Page({ ...@@ -682,7 +682,7 @@ Page({
.then(result => { .then(result => {
// console.log(result) // console.log(result)
// 为2是已经展示过了 // 为2是已经展示过了
if (result.status && result.status != 2) { // if (result.status && result.status != 2) {
this.setData({ this.setData({
posterItem: { posterItem: {
activityName: result.activityName, activityName: result.activityName,
...@@ -690,7 +690,7 @@ Page({ ...@@ -690,7 +690,7 @@ Page({
posterUrl: result.valueUrl posterUrl: result.valueUrl
} }
}) })
} // }
}) })
.catch(err => {}) .catch(err => {})
}, },
......
...@@ -136,9 +136,11 @@ page { ...@@ -136,9 +136,11 @@ page {
color: #3964fe; color: #3964fe;
} }
} }
.list-wrap{
.list-wrap {
height: calc(100% - 80rpx); height: calc(100% - 80rpx);
} }
.list { .list {
// overflow: scroll; // overflow: scroll;
box-sizing: border-box; box-sizing: border-box;
...@@ -238,7 +240,7 @@ page { ...@@ -238,7 +240,7 @@ page {
// margin-top: 4px; // margin-top: 4px;
// margin-bottom: 4px; // margin-bottom: 4px;
box-sizing: border-box; box-sizing: border-box;
height: 40rpx; // height: 40rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -400,7 +402,8 @@ page { ...@@ -400,7 +402,8 @@ page {
box-sizing: border-box; box-sizing: border-box;
// border: 1px solid #f7f8fc; // border: 1px solid #f7f8fc;
} }
.open-img{
.open-img {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
...@@ -430,6 +433,7 @@ page { ...@@ -430,6 +433,7 @@ page {
transform: rotate(45deg) translateX(-50%); transform: rotate(45deg) translateX(-50%);
background-color: #fff; background-color: #fff;
} }
// .open-img{ // .open-img{
// display: none; // display: none;
// } // }
......
const target = ['ip', 'dev', 'uat', 'prod'] const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
/** /**
* *
0本地 0本地
...@@ -12,7 +13,7 @@ const systemInfo = wx.getSystemInfoSync() ...@@ -12,7 +13,7 @@ const systemInfo = wx.getSystemInfoSync()
// console.log(systemInfo); // console.log(systemInfo);
// console.log(accountInfo.miniProgram.envVersion) // console.log(accountInfo.miniProgram.envVersion)
//手动控制体验版环境的请求 true就依据下面index false就默认为2 //手动控制体验版环境的请求 true就依据下面index false就默认为2
const manual = false const manual = true
const release = true const release = true
let index = 2 let index = 2
...@@ -59,6 +60,12 @@ const secretKey = { ...@@ -59,6 +60,12 @@ const secretKey = {
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89', appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b' secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
} }
},
preRelease: {
sso: {
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
} }
}[target[index]] }[target[index]]
...@@ -70,7 +77,7 @@ const domain = { ...@@ -70,7 +77,7 @@ const domain = {
商城: 192.168.2.3:8558 */ 商城: 192.168.2.3:8558 */
dev: 'https://scrm.dev.glsx.com.cn', dev: 'https://scrm.dev.glsx.com.cn',
uat: 'https://scrm.test.glsx.com.cn', uat: 'https://scrm.test.glsx.com.cn',
// uat: 'https://scrm.beta.glsx.com.cn', preRelease: 'https://scrm.beta.glsx.com.cn',
prod: 'https://scrm.cgacar.com' prod: 'https://scrm.cgacar.com'
}[target[index]] }[target[index]]
...@@ -94,6 +101,7 @@ const defaultMerchantId = { ...@@ -94,6 +101,7 @@ const defaultMerchantId = {
ip: '44184606', ip: '44184606',
dev: '44184606', dev: '44184606',
uat: '44184606', uat: '44184606',
preRelease: '44184606',
prod: '44189923' prod: '44189923'
}[target[index]] }[target[index]]
module.exports = { module.exports = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!