Browse Source

文化配送开启,用户隐私

master
caichunsheng 4 years ago
parent
commit
d81786bbd0
  1. 6
      app.json
  2. 4
      pages/list/activitynew/index.wxml
  3. 4
      pages/pbService/index.wxml
  4. 228
      pages/user/personalInfo/index.js
  5. 5
      pages/user/personalInfo/index.json
  6. 37
      pages/user/personalInfo/index.wxml
  7. 73
      pages/user/personalInfo/index.wxss
  8. 1
      pages/user/service/list/index.js
  9. 3
      pages/user/service/list/index.wxml
  10. 4
      pages/user/service/list/index.wxss
  11. 15
      pages/user/user.wxml
  12. 71
      pages/user/userPrivacy/index.js
  13. 5
      pages/user/userPrivacy/index.json
  14. 11
      pages/user/userPrivacy/index.wxml
  15. 9
      pages/user/userPrivacy/index.wxss

6
app.json

@ -179,7 +179,11 @@
"pages/order/orderList/index",
"pages/user/linkman/add/index",
"pages/user/address/add/index",
"pages/user/linkman/index"
"pages/user/linkman/index",
"pages/user/userPrivacy/index",
"pages/user/personalInfo/index"
],
"plugins": {
"live-player-plugin": {

4
pages/list/activitynew/index.wxml

@ -27,10 +27,10 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon1{{type==1?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==1?'color:#FFB423':''}}">演出</view>
</view>
<view class="type-item" bindtap="changeType" data-type="5">
<!-- <view class="type-item" bindtap="changeType" data-type="5">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon5{{type==5?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==5?'color:#0B898E':''}}">讲座</view>
</view>
</view> -->
<view class="type-item" bindtap="changeType" data-type="4">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon4{{type==4?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==4?'color:#63B71F':''}}">电影</view>

4
pages/pbService/index.wxml

@ -38,6 +38,10 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/index/pb4New.png" mode="widthFix"></image>
<view>12348</view>
</view>
<view class="pb-item" data-title="文化配送" bindtap="gotoPath" data-path="/pages/culture/index">
<image src="https://static.ticket.sz-trip.com/xcxImages/pbservice/pb20.png" mode="widthFix"></image>
<view>文化配送</view>
</view>
</view>
</view>
<image class="title-img" src="https://static.ticket.sz-trip.com/uploads/20211115/335a42385c9e15ece075980209b0643a.png"

228
pages/user/personalInfo/index.js

@ -0,0 +1,228 @@
// /pages/user/address/index.js
import user from "../../../utils/https/user.js"
import commonApi from "../../../utils/https/common"
import util from "../../../utils/util.js"
import http from "../../../utils/https.js"
let app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
baseList: [],
title: "为提供相应的产品和服务,并保障系统的安全稳定运行,我们可能会收集你的以下个人信息",
childList: [],
flag: true,
nowTitle: ""
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.getInfo()
},
getInfo: function () {
let that = this
wx.request({
url: http.baseUrl + 'pbservice/Other/getUserInformation', // 仅为示例,并非真实的接口地址
method: 'post',
header: {
'content-type': 'application/x-www-form-urlencoded', // 默认值
token: wx.getStorageSync('jstrip_token')
},
success(res) {
that.setData({
baseList: res.data.data
})
}
})
},
goDetail: function (e) {
let item = e.currentTarget.dataset.item;
this.setData({
nowTitle: item.title
})
for (let i = 0; i < item.child.length; i++) {
switch (item.child[i].information) {
case 'user':
item.child[i]['jump'] = true
break;
case 'address':
item.child[i]['jump'] = true
break;
case 'travel_user':
item.child[i]['jump'] = true
break;
case 'cart':
item.child[i]['jump'] = true
break;
case 'orders':
item.child[i]['jump'] = true
break;
case 'search_history':
item.child[i]['jump'] = true
break;
case 'my_collection':
item.child[i]['jump'] = true
break;
default:
item.child[i]['jump'] = false
break;
}
switch (item.child[i].information) {
case 'user':
item.child[i].information = "个人信息"
break;
case 'address':
item.child[i].information = "收货地址"
break;
case 'travel_user':
item.child[i].information = "出游人信息"
break;
case 'cart':
item.child[i].information = "购物车"
break;
case 'orders':
item.child[i].information = "我的订单"
break;
case 'search_history':
item.child[i].information = "搜索历史"
break;
case 'my_collection':
item.child[i].information = "我的收藏"
break;
default:
break;
}
}
this.setData({
childList: item.child,
flag: false
})
},
goRouter: function (e) {
let item = e.currentTarget.dataset.item
if (!item.jump) return
let name = item.information
switch (name) {
case '个人信息':
wx.navigateTo({
url: '/pages/user/profile/index',
})
break;
case '收货地址':
wx.navigateTo({
url: "/pages/user/address/index"
})
break;
case '出游人信息':
wx.navigateTo({
url: "/pages/user/linkman/index"
})
break;
case '购物车':
wx.navigateTo({
url: "/pages/user/cartlist/list"
})
break;
case '我的订单':
wx.navigateTo({
url: "/pages/user/order/list"
})
break;
case '搜索历史':
wx.navigateTo({
url: "/pages/search/index"
})
break;
case '我的收藏':
wx.navigateTo({
url: "/pages/user/likes/index"
})
break;
default:
break;
}
},
getName: function () {
let name = item.information
switch (name) {
case 'user':
name = "个人信息"
break;
case 'address':
name = "收货地址"
break;
case 'travel_user':
name = "出游人信息"
break;
case 'cart':
name = "购物车"
break;
case 'orders':
name = "我的订单"
break;
case 'search_history':
name = "搜索历史"
break;
case 'my_collection':
name = "我的收藏"
break;
default:
break;
}
return name
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
}
})

5
pages/user/personalInfo/index.json

@ -0,0 +1,5 @@
{
"usingComponents": {
"title-header": "/pages/component/TitleHeader"
}
}

37
pages/user/personalInfo/index.wxml

@ -0,0 +1,37 @@
<!--pages/user/address/index.wxml-->
<view class="info">
<title-header title="{{nowTitle}}"></title-header>
<view class="content" wx:if="{{flag}}">
<view class="title">{{ title }}</view>
<view class="list">
<view class="item" wx:for="{{baseList}}" wx:key="index" data-item="{{item}}" bindtap="goDetail">
<view class="item-title">{{ item.title }}</view>
<view class="item-info">{{ item.des }}</view>
<view class="item-icon"> > </view>
</view>
</view>
</view>
<view class="info-content" wx:if="{{!flag}}">
<view class="info-list" wx:for="{{childList}}">
<view class="title">{{ item.title }}</view>
<view class="info-column">
<view class="column-title">使用目的</view>
<view class="column-info">{{ item.purpose }}</view>
</view>
<view class="info-column">
<view class="column-title">使用场景</view>
<view class="column-info">{{ item.usage_scenarios }}</view>
</view>
<view class="info-column">
<view class="column-title">收集情况</view>
<view class="column-info">{{ item.collect }}</view>
</view>
<view class="info-column" data-item="{{item}}" bindtap="goRouter">
<view class="column-title">信息内容</view>
<view class="column-info" style="color: {{item.jump?'#0B898E':'#000'}};">{{item.information}}</view>
</view>
</view>
</view>
</view>

73
pages/user/personalInfo/index.wxss

@ -0,0 +1,73 @@
page{
background-color: rgb(242,242,242);
}
.info{
font-size: .6rem;
padding: 1.4rem .6rem 0 .6rem;
}
.title-header{
background-color:#fff !important;
}
.title-box{
background-color:transparent !important;
}
.title {
color: #000;
font-size: .8rem;
margin: .4rem 0;
}
.item {
background: #fff;
font-size: .7rem;
padding: .8rem .8rem .4rem .8rem;
margin-top: .6rem;
position: relative;
border-radius: .6rem;
min-height: 4rem;
}
.item-info {
color: #666;
margin: .4rem 0 .2rem 0;
}
.item-icon {
position: absolute;
right: .2rem;
top: 50%;
font-family: cursive;
transform: translate(-.2rem, -.2rem);
}
.info-content {
font-size: .7rem;
}
.info-list {
background: #fff;
font-size: .7rem;
padding: .2rem .8rem .4rem .8rem;
margin-top: .6rem;
border-radius: .6rem;
min-height: 4rem;
}
.info-column {
display: flex;
align-items: flex-start;
margin-top: .4rem;
}
.column-title {
color: #666;
white-space: nowrap;
margin-right: .2rem;
}
.green {
color: #0B898E;
}

1
pages/user/service/list/index.js

@ -86,7 +86,6 @@ Page({
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

3
pages/user/service/list/index.wxml

@ -9,4 +9,5 @@
<view class="ques-name textOver">{{item.question_name}}</view>
<view class="iconfont icon-you"></view>
</navigator>
<navigator url="list/index?typeid={{typeId}}" class="more-btn" bindtap="showService">没找到想要的答案?一键呼唤<text>人工客服</text></navigator>
<!-- <navigator url="list/index?typeid={{typeId}}" class="more-btn" bindtap="showService">没找到想要的答案?一键呼唤<text>人工客服</text></navigator> -->
<button class="more-btn" open-type="contact" bindcontact="handleContact">没找到想要的答案?一键呼唤<text>人工客服</text></button>

4
pages/user/service/list/index.wxss

@ -47,8 +47,8 @@
}
.more-btn {
text-align: center;
width: 520rpx;
line-height: 60rpx;
width: 550rpx !important;
/* line-height: 60rpx; */
background: rgba(11, 137, 142, 0);
border: 1rpx solid #D8D8D8;
border-radius: 30rpx;

15
pages/user/user.wxml

@ -88,5 +88,20 @@
收货地址
</navigator>
</view>
<view class="user-box" style="margin-bottom:0;margin-top: 18rpx;">
<navigator url="userPrivacy/index?id=9" class="user-box-line" catchtap="pagePoint" data-event="mine_travelinfo">
用户协议
</navigator>
<navigator url="userPrivacy/index?id=12" class="user-box-line" catchtap="pagePoint" data-event="mine_receiveinfo">
隐私政策
</navigator>
<navigator url="personalInfo/index" class="user-box-line" catchtap="pagePoint" data-event="mine_receiveinfo">
个人信息收集清单
</navigator>
<navigator url="userPrivacy/index?id=14" class="user-box-line" catchtap="pagePoint" data-event="mine_receiveinfo">
第三方共享信息清单
</navigator>
</view>
</view>
<view style="height:20rpx"></view>

71
pages/user/userPrivacy/index.js

@ -0,0 +1,71 @@
// pages/user/address/index.js
import user from "../../../utils/https/user.js"
import commonApi from "../../../utils/https/common"
import util from "../../../utils/util.js"
let app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
id:null,
info:"",
title:"",
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
id:options.id
})
this.getInfo()
},
getInfo:function(){
commonApi._post("pbservice/Other/getDictionary", { id: this.data.id }).then(res => {
console.log(res);
res=res.data
this.setData({
info:res[0].content,
title:res[0].type_name
})
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
}
})

5
pages/user/userPrivacy/index.json

@ -0,0 +1,5 @@
{
"usingComponents": {
"title-header": "/pages/component/TitleHeader"
}
}

11
pages/user/userPrivacy/index.wxml

@ -0,0 +1,11 @@
<!--pages/user/address/index.wxml-->
<view>
<title-header title="{{title}}"></title-header>
<view class="title">{{title}}</view>
<view class="text">
<rich-text >
{{info}}
</rich-text>
</view>
</view>

9
pages/user/userPrivacy/index.wxss

@ -0,0 +1,9 @@
.title{
padding: 10rpx 20rpx 0rpx 20rpx;
font-size: 28rpx;
}
.text{
padding: 10rpx 20rpx 0rpx 20rpx;
font-size: 24rpx;
}
Loading…
Cancel
Save