瀏覽代碼

轮播图订单金额

caojunjie 1 年之前
父節點
當前提交
0fe5b563ae
共有 5 個文件被更改,包括 128 次插入25 次删除
  1. 3 1
      manifest.json
  2. 9 3
      pages.json
  3. 31 11
      pages/login/login.vue
  4. 75 0
      pages/login/xieyi.vue
  5. 10 10
      pages/views/salesSlip/obligation.vue

+ 3 - 1
manifest.json

@@ -127,7 +127,9 @@
     "mp-weixin" : {
         "appid" : "wx7a875fc287f41c3a",
         "setting" : {
-            "urlCheck" : false
+            "urlCheck" : false,
+            "postcss" : true,
+            "minified" : true
         },
         "usingComponents" : true
     },

+ 9 - 3
pages.json

@@ -15,6 +15,12 @@
 			"navigationBarTitleText": "登录"
 		}
 	}, {
+		"path": "pages/login/xieyi",
+		"style": {
+			"navigationStyle": "custom",
+			"navigationBarTitleText": "用户协议"
+		}
+	}, {
 		"path": "pages/tabBar/home",
 		"style": {
 			"navigationBarTitleText": "首页"
@@ -99,8 +105,8 @@
                 "navigationBarTitleText": "快递详情"
             }
         }]
-	}, 
-	
+	},
+
 	{
 		"root": "pages/views",
 		"pages": [{
@@ -160,4 +166,4 @@
 			"text": "我的"
 		}]
 	}
-}
+}

+ 31 - 11
pages/login/login.vue

@@ -10,6 +10,17 @@
 				</u-button>
 			</view>
 		</view>
+		<div style="margin-top: 20rpx;display: flex;justify-content: center;">
+			<view>
+				<u-checkbox-group v-model="checkboxValue1" placement="column">
+				    <u-checkbox :customStyle="{marginBottom: '8px'}" ></u-checkbox>
+				</u-checkbox-group>
+			</view>
+			<view>
+				<text>我已阅读</text>
+				<text style="color: #73a8fc;" @click="tiaozhuanxieyi">《 用户协议 》</text>
+			</view>
+		</div>
 		<view style="position:absolute; bottom:20rpx;font-size: 20rpx;width: 100%;text-align: center;z-index: -1;">
 			<image src="/static/images/login/bottom.png" style="
 				display: block;
@@ -31,17 +42,26 @@
 				// pwd: '123456', //密码
 				checked: false,
 				lifeData: {},
-				logo: "/static/images/logo/logo.png"
+				logo: "/static/images/logo/logo.png",
+				checkboxValue1:[]
 			}
 		},
 		onShow() {},
 		methods: {
+			// 协议跳转
+			tiaozhuanxieyi(){
+				uni.$u.route('pages/login/xieyi')
+			},
+			zhuangtao(type){
+				this.checkboxValue1 = [""]
+			},
 			change(e) {
 				this.checked = !this.checked
 			},
 			//当前登录按钮操作
 			getPhoneNumber(e) {
 				let this_ = this
+				if(this.checkboxValue1.length == 0) return uni.showToast({icon: 'none',title: '请勾选用户协议',position: "bottom",mask: true})
 				if (e.detail.errMsg == 'getPhoneNumber:ok') {
 					wx.login({
 						success(res) {
@@ -70,20 +90,20 @@
 												uni.showToast({
 													icon: 'none',
 													title: '登录成功',
-													position: "bottom",
+													position: "bottom",
 													mask: true
 												})
 												setTimeout(function() {
 													this_.$u.func.login(data)
 												}, 1000);
-											}).catch(err=>{
-												uni.hideLoading();
-												uni.showToast({
-													icon: 'none',
-													title: err.error_description,
-													position: "bottom",
-													mask: true
-												})
+											}).catch(err=>{
+												uni.hideLoading();
+												uni.showToast({
+													icon: 'none',
+													title: err.error_description,
+													position: "bottom",
+													mask: true
+												})
 											})
 										})
 									},
@@ -263,4 +283,4 @@
 		height: 0;
 		content: '\20';
 	}
-</style>
+</style>

+ 75 - 0
pages/login/xieyi.vue

@@ -0,0 +1,75 @@
+<template>
+	<div style="padding: 30rpx;box-sizing: border-box;">
+		<p>微信用户授权须知</p>
+		<p>尊敬的用户,欢迎使用微信!在您开始使用微信之前,请仔细阅读并理解本授权须知。本须知将明确告知您授权微信所涉及的信息的范围、用途以及保护措施。请您在点击同意前仔细阅读,并在同意授权之前问询相关问题。</p>
+		<p>一、信息收集范围</p>
+		<p>为了正常运行和提供优质的服务,微信可能需要收集您的个人信息,包括但不限于以下几个方面:
+		1.1 基础信息:为了注册并使用微信,您需要提供手机号码、昵称、头像等基本信息。
+		1.2 隐私信息:当您使用微信的特定功能和服务时,例如发送语音消息、定位共享、小程序等,微信需要获得您的设备信息、通讯录、位置信息等。
+		注意:微信会严格遵守相关法律法规,尊重用户隐私,不会擅自窃取、篡改或泄露您的个人信息。</p>
+		<p>二、信息使用目的</p>
+		<p>微信收集您的个人信息的目的是为了向您提供更好的服务,并不会超出以下范围:</p>
+		<p>2.1 账户管理:包括但不限于账号注册、登陆验证、账号安全等功能。
+		2.2 信息展示:例如头像、昵称等信息将会展示在您的个人资料页面,这些信息将有助于您与好友互相识别。
+		2.3 社交互动:您通过微信可以进行一对一或群聊天、语音通话、视频通话等交流互动。
+		2.4 位置共享:当您使用地理位置共享功能时,微信将获取您的位置信息用于展示、查询附近的用户或服务。
+		2.5 推荐服务:微信可能根据您的信息和使用习惯,向您提供相关的内容、广告或推荐服务。</p>
+		<p>三、信息保护措施</p>
+		<p>微信将采取必要的技术和管理措施来保护您的个人信息安全:</p>
+		<p>3.1 数据加密:微信将通过加密技术,对您的个人信息进行传输和存储的保护,确保数据的安全性。
+		3.2 访问权限控制:微信将采取严格的权限管理制度,限制用户信息的访问范围,确保信息仅在授权使用的情况下接触。
+		3.3 安全审计:微信将定期进行安全审计,发现并修复相关安全问题,确保系统的稳定性和安全性。
+		3.4 信息存储:微信将对您的个人信息进行合理的存储期限,并在超过存储期限后进行匿名化处理。</p>
+		<p>四、用户权利和选择</p>
+		<p>按照相关法律法规,用户拥有以下权利和选择:</p>
+		<p>4.1 取消授权:您有权取消授权,即停止使用微信服务并删除您的个人信息。
+		4.2 访问、更正和删除:您有权访问或更正您的个人信息,并有权申请删除或更正不准确的信息。
+		4.3 投诉和举报:如您发现微信在数据使用过程中存在问题,您有权投诉和举报,并由相关部门进行调查处理。
+		4.4 隐私设置:微信将不断优化隐私设置功能,您可以根据自己的需求,设置个人信息的可见范围和共享权限。</p>
+		<p>五、其他事项</p>
+		<p>5.1 未成年人授权:如果您是未成年人,请在监护人的陪同下使用微信。</p>
+		
+		<div style="margin: 30rpx 0 40rpx;display: flex;justify-content: space-around;">
+			<div class="button quxiao" @click="quxiao">取消</div>
+			<div class="button" @click="queding">确认</div>
+		</div>
+	</div>
+</template>
+
+<script>
+	export default {
+		data(){
+			return {}
+		},
+		methods:{
+			quxiao(){
+				uni.$u.route('pages/login/login')
+			},
+			queding(){
+				let pages = getCurrentPages() // 获取当前页面栈的实例,以数组形式按栈的顺序给出,第一个元素为首页,最后一个元素为当前页面。
+				let prevPage = pages[pages.length - 2] //上一页页面实例
+				prevPage.$vm.zhuangtao(true)
+				uni.navigateBack()
+			}
+		}
+	}
+</script>
+
+<style scoped lang="scss">
+	.button {
+		width: 200rpx;
+		height: 80rpx;
+		background: #67a1fc;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		color: #fff;
+		border-radius: 10rpx;
+	}
+	.quxiao {
+		color: #67a1fc;
+		border-radius: 10rpx;
+		border: 1rpx solid #67a1fc;
+		background: #fff;
+	}
+</style>

+ 10 - 10
pages/views/salesSlip/obligation.vue

@@ -44,7 +44,7 @@
 			</view>
 		</u-checkbox-group>
 		<view style="height: 100rpx;"></view>
-		<view class="submitBar">
+		<view class="submitBar" style="padding-bottom: env(safe-area-inset-bottom);">
 			<view class="bar_view">
 				<view v-if="!editDel" style="margin-left: 300rpx;">
 					<view>总计:¥<text>{{totalPrice}}</text></view>
@@ -91,7 +91,7 @@ import { logo } from '../../../common/setting'
 		},
 		watch: {
 			companyValue() {
-				
+
 				if (this.companyValue.length != 0 || this.companyValueLength != 0) {
 					if (this.companyValue.length == this.companyValueLength) {
 						this.radiovalue = ["全选"]
@@ -114,7 +114,7 @@ import { logo } from '../../../common/setting'
 		onShow() {
 			this.editDel = false
 			this.companyValue = []
-			this.isLoading = true 
+			this.isLoading = true
 			obligationList().then(res => {
 				console.log(res);
 				this.dataList = res.data
@@ -128,7 +128,7 @@ import { logo } from '../../../common/setting'
 		methods: {
 			deleteGoods(val) {
 				console.log(val);
-				
+
 				uni.showLoading({
 					title: '加载中',
 					mask: true
@@ -167,7 +167,7 @@ import { logo } from '../../../common/setting'
 						}
 					}
 				};
-				
+
 				console.log(data.join(","));
 				uni.showLoading({
 					title: '加载中',
@@ -216,7 +216,7 @@ import { logo } from '../../../common/setting'
 					payPrepay({srcOrderNo:data[0].name}).then(res => {
 						console.log(res);
 						uni.requestPayment({
-								provider: "wxpay", 
+								provider: "wxpay",
 						       appId:res.data.appId,
 						       timeStamp: res.data.timeStamp,
 						       nonceStr: res.data.nonceStr,
@@ -246,8 +246,8 @@ import { logo } from '../../../common/setting'
 									// this_.refresh(res.data.id)
 								}, 1000);
 							}
-						})	
-									
+						})
+
 						uni.showToast({
 							title: "提交成功",
 							icon: 'none'
@@ -309,7 +309,7 @@ import { logo } from '../../../common/setting'
 							this.totalFreight += 5
 						}
 					}
-			
+
 				}
 				this.totalFreight = this.totalFreight.toFixed(2)
 				this.totalPrice = this.totalPrice.toFixed(2)
@@ -363,4 +363,4 @@ import { logo } from '../../../common/setting'
 			padding: 10rpx;
 		}
 	}
-</style>
+</style>