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({
* 组件的方法列表
*/
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() {
wx.$router.go('packageEquity.collegeScene')
......
......@@ -45,4 +45,10 @@
</view>
</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>
\ No newline at end of file
......@@ -349,4 +349,32 @@ page {
display: flex;
align-items: 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
......@@ -12,35 +12,35 @@ Page({
navStyle: 'background-color: rgba(0,0,0,0);box-shadow:none;',
workCount: 0,
workItem: [{
label: '上午 09:00-10:30',
startTime: '09:00',
endTime: '10:30',
maxCount: 0
},
{
label: '上午 10:30-12:00',
startTime: '10:30',
endTime: '12:00',
maxCount: 0
},
{
label: '下午 13:00-14:30',
startTime: '13:00',
endTime: '14:30',
maxCount: 0
},
{
label: '下午 14:30-16:00',
startTime: '14:30',
endTime: '16:00',
maxCount: 0
},
{
label: '下午 16:00-17:30',
startTime: '16:00',
endTime: '17:30',
maxCount: 0
}
label: '上午 09:00-10:30',
startTime: '09:00',
endTime: '10:30',
maxCount: 0
},
{
label: '上午 10:30-12:00',
startTime: '10:30',
endTime: '12:00',
maxCount: 0
},
{
label: '下午 13:00-14:30',
startTime: '13:00',
endTime: '14:30',
maxCount: 0
},
{
label: '下午 14:30-16:00',
startTime: '14:30',
endTime: '16:00',
maxCount: 0
},
{
label: '下午 16:00-17:30',
startTime: '16:00',
endTime: '17:30',
maxCount: 0
}
],
grassNum: '',
showMerchantPop: false,
......@@ -60,14 +60,22 @@ Page({
selectedSceneDesc: '',
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() {
let {sceneType,merchantId} = wx.$util.getUserInfo()
api.queryPartnersByYqShop({scene:sceneType,merchantId}).then(res=>{
const merchantInfo = (res.data ||[]).slice(0,3)
console.log(merchantInfo,'merchantInfo')
this.setData({
merchantInfo
})
let { sceneType, merchantId } = wx.$util.getUserInfo()
api.queryPartnersByYqShop({ scene: sceneType, merchantId }).then(res => {
const merchantInfo = (res.data || []).slice(0, 3)
console.log(merchantInfo, 'merchantInfo')
this.setData({
merchantInfo
})
})
},
goReservationCouponPage() {
......@@ -97,7 +105,7 @@ Page({
navBarHeight
})
},
noScroll() {},
noScroll() { },
showWork() {
let {
showWorkBox
......@@ -335,12 +343,12 @@ Page({
this.getByYqShop()
// 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({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
onHide: function () { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
onUnload: function () { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
onPullDownRefresh: function () { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
onReachBottom: function () { },
/**
* 查看我的种草
......
......@@ -147,6 +147,12 @@
</view>
<view class="logout-box">
<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>
......
......@@ -429,6 +429,7 @@ page {
}
.logout-box {
position: relative;
display: flex;
justify-content: center;
}
......@@ -457,4 +458,17 @@ page {
.m-t-0 {
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!