Commit eefaf1a1 by 张立顺

Merge branch 'hotfix_SAAS+V4.34.2-0228' into 'develop'

上线合并

See merge request !221
2 parents 5b45a692 befa27b1
...@@ -53,6 +53,14 @@ Component({ ...@@ -53,6 +53,14 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
jump(e) {
let { url } = e.currentTarget.dataset
const baseUrl = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/'
const path = `${baseUrl}${url}.html`
wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(path)}`
})
},
// 跳转到商学院 // 跳转到商学院
goCollegeScene() { goCollegeScene() {
wx.$router.go('packageEquity.collegeScene') wx.$router.go('packageEquity.collegeScene')
......
...@@ -45,4 +45,10 @@ ...@@ -45,4 +45,10 @@
</view> </view>
</view> </view>
<view class="logout text-center" bindtap="logout">退出账号</view> <view class="logout text-center" bindtap="logout">退出账号</view>
<view class="message-box">
<!-- <view class="message">为保障你的合法权益,请阅读并同意</view> -->
<text catchtap="jump" data-url="privacy">《隐私协议》</text>
和
<text catchtap="jump" data-url="agreement">《用户协议》</text>
</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -350,3 +350,31 @@ page { ...@@ -350,3 +350,31 @@ page {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.logout {
position: absolute;
bottom: 50rpx;
left: 50%;
transform: translateX(-50%);
width: 326rpx;
height: 80rpx;
background: #FFFFFF;
border: 2rpx solid #DCDEE0;
border-radius: 12rpx;
color: #6C6C70;
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
}
.message-box {
position: absolute;
bottom: 0rpx;
left: 50%;
transform: translateX(-50%);
}
.message-box text {
color: #5092FF;
}
\ No newline at end of file \ No newline at end of file
...@@ -60,11 +60,19 @@ Page({ ...@@ -60,11 +60,19 @@ Page({
selectedSceneDesc: '', selectedSceneDesc: '',
versionData: {} versionData: {}
}, },
jump(e) {
let { url } = e.currentTarget.dataset
const baseUrl = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/'
const path = `${baseUrl}${url}.html`
wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(path)}`
})
},
getByYqShop() { getByYqShop() {
let {sceneType,merchantId} = wx.$util.getUserInfo() let { sceneType, merchantId } = wx.$util.getUserInfo()
api.queryPartnersByYqShop({scene:sceneType,merchantId}).then(res=>{ api.queryPartnersByYqShop({ scene: sceneType, merchantId }).then(res => {
const merchantInfo = (res.data ||[]).slice(0,3) const merchantInfo = (res.data || []).slice(0, 3)
console.log(merchantInfo,'merchantInfo') console.log(merchantInfo, 'merchantInfo')
this.setData({ this.setData({
merchantInfo merchantInfo
}) })
...@@ -97,7 +105,7 @@ Page({ ...@@ -97,7 +105,7 @@ Page({
navBarHeight navBarHeight
}) })
}, },
noScroll() {}, noScroll() { },
showWork() { showWork() {
let { let {
showWorkBox showWorkBox
...@@ -335,12 +343,12 @@ Page({ ...@@ -335,12 +343,12 @@ Page({
this.getByYqShop() this.getByYqShop()
// console.log(app.globalData.isYqdSuper) // console.log(app.globalData.isYqdSuper)
}, },
jump: e => wx.$router.jump(e), // jump: e => wx.$router.jump(e),
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {}, onReady: function () { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -352,22 +360,22 @@ Page({ ...@@ -352,22 +360,22 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 查看我的种草 * 查看我的种草
......
...@@ -147,6 +147,12 @@ ...@@ -147,6 +147,12 @@
</view> </view>
<view class="logout-box"> <view class="logout-box">
<view class="logout text-center" bindtap="logout">退出账号</view> <view class="logout text-center" bindtap="logout">退出账号</view>
<view class="message-box">
<!-- <view class="message">为保障你的合法权益,请阅读并同意</view> -->
<text catchtap="jump" data-url="privacy">《隐私协议》</text>
和
<text catchtap="jump" data-url="agreement">《用户协议》</text>
</view>
</view> </view>
</view> </view>
......
...@@ -429,6 +429,7 @@ page { ...@@ -429,6 +429,7 @@ page {
} }
.logout-box { .logout-box {
position: relative;
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
...@@ -458,3 +459,16 @@ page { ...@@ -458,3 +459,16 @@ page {
.m-t-0 { .m-t-0 {
margin-top: 20rpx; margin-top: 20rpx;
} }
.message-box {
font-size: 24rpx;
position: absolute;
bottom: -55rpx;
left: 50%;
transform: translateX(-50%);
}
.message-box text {
color: #5092FF;
}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!