diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..15a15b2
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..28a804d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..e904b98
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/shuinishop.iml b/.idea/shuinishop.iml
new file mode 100644
index 0000000..24643cc
--- /dev/null
+++ b/.idea/shuinishop.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..0666e95
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ vuex_user
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1639965828906
+
+
+ 1639965828906
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/common/http.api.js b/common/http.api.js
index 7485bf8..4f70481 100644
--- a/common/http.api.js
+++ b/common/http.api.js
@@ -34,7 +34,7 @@ const install = (Vue, vm) => {
let removeFromCart = (id) => vm.$u.get(`/index.php/api/car/delete_one/id/${id}/`);//
let addtoCart =(id, num)=> vm.$u.get(`index.php/api/car/add/id/${id}/num/${num}`);//加入购物车
let addOrder = (params={})=>vm.$u.post('/index.php/api/car/submit', params);
- let getFreight = (id)=>vm.$u.get(`/index.php/api/car/get_freight/shop_uid/${id}`);//获取商家免运费价格
+ let getFreight = (params={})=>vm.$u.post(`/index.php/api/car/get_freight/shop_uid`,params);//获取商家免运费价格
let getOrders = (params={})=>vm.$u.get('index.php/api/order/index', params);//我的订单
let qxdd = (id)=>vm.$u.get(`index.php/api/order/cancel_order/id/${id}`);//取消订单
let qrsh = (id)=>vm.$u.get(`/index.php/api/order/confirm/id/${id}`);//收货确认
diff --git a/pages.json b/pages.json
index 17ad990..1931ff6 100644
--- a/pages.json
+++ b/pages.json
@@ -313,6 +313,24 @@
"enablePullDownRefresh": false
}
+ },{
+ "path" : "pages/protocol/index",
+ "style" : {
+ "enablePullDownRefresh": true,
+ "navigationBarTitleText":"用户服务协议",
+ "navigationBarBackgroundColor":"#f8f8f8",
+ "backgroundColorTop":"#f3f3f3",
+ "backgroundColorBottom":"#ffffff"
+ }
+ },{
+ "path" : "pages/protocol/Privacy",
+ "style" : {
+ "enablePullDownRefresh": true,
+ "navigationBarTitleText":"隐私政策",
+ "navigationBarBackgroundColor":"#f8f8f8",
+ "backgroundColorTop":"#f3f3f3",
+ "backgroundColorBottom":"#ffffff"
+ }
}
],
"globalStyle": {
@@ -353,5 +371,10 @@
"text": "我的"
}
]
- }
+ },
+ "permission": {
+ "scope.userLocation": {
+ "desc": "获取信息为了页面更好的展示,请确认授权"
+ }
+ }
}
diff --git a/pages/order/confirmation.vue b/pages/order/confirmation.vue
index eafb40d..60140a1 100644
--- a/pages/order/confirmation.vue
+++ b/pages/order/confirmation.vue
@@ -162,7 +162,7 @@
};
},
- async onLoad(){
+ onLoad(){
//页面显示时,加载订单信息
try {
const value = uni.getStorageSync('buylist');
@@ -179,11 +179,9 @@
}
this.freights['shop'+this.buylist[i].shopId].total = this.freights['shop'+this.buylist[i].shopId].total + thisprice;
}
- let ret = await this.getFreights(); //获取运费计算规则
-
- // this.deduction = this.int / 100;
- //console.log(this.freights)
- this.calFreight() //计算运费
+ // let ret = await this.getFreights(); //获取运费计算规则
+ // this.calFreight() //计算运费
+ this.getFreights(); //2021/12/20更改获取运费
this.sumPrice = this.goodsPrice - this.deduction + parseFloat(this.freight);
}
@@ -197,7 +195,7 @@
key: 'selectAddress',
success: (e) => {
this.recinfo = e.data;
- debugger;
+ // debugger;
console.log(this.recinfo)
}
})
@@ -223,24 +221,35 @@
methods: {
calFreight(){
for(let key in this.freights){
- var base_l = this.freights[key].base.split('|')
+ /* var base_l = this.freights[key].base.split('|')
if(this.freights[key].total>=base_l[0]){
this.freights[key].freight = 0
}else{
this.freights[key].freight=base_l[1]
- }
- this.freight = this.freight + this.freights[key].freight
+ } */
+ debugger;
+ this.freight = this.freight + this.freights[key].freight;
}
},
async getFreights() {
- var that = this
-
- for(let key in that.freights){
- let shopId = key.replace('shop','')
- let ret = await that.$u.api.getFreight(shopId);
- that.freights[key].base = ret.data
-
- }
+ var that = this;
+ /*// that.calFreight() */
+ let goods = []
+ for(let i=0;i{
+ that.freight = res.data;
+ that.sumPrice = that.goodsPrice - that.deduction + parseFloat(that.freight);
+ });
},
clearOrder() {
uni.removeStorage({
diff --git a/pages/pay/payment/uppayment.vue b/pages/pay/payment/uppayment.vue
index 1a1e75d..45b60c7 100644
--- a/pages/pay/payment/uppayment.vue
+++ b/pages/pay/payment/uppayment.vue
@@ -29,7 +29,7 @@
汇款信息:
请通过电汇的方式支付货款,将汇款凭证拍照上传
- 账户名称: 中国建材检验认证集团股份有限公司
+ 账户名称: 中国国检测试控股集团股份有限公司
开户行: 工商银行北京管庄支行
@@ -49,9 +49,28 @@
:limit="5" ref="files" :auto-upload="false" @select="select" />
-
- 提交
+
+
+
+
+
+ 我已阅读并同意《用户服务协议》和《隐私政策》
+
+
+
+
+
+
+ 提交
+
+
+ 提交
+
+
+
@@ -68,7 +87,8 @@
name: 'file',
url: '',
filepath: [],
- rpath:[]
+ rpath:[],
+ portocol:false
};
},
onLoad(e) {
@@ -89,6 +109,19 @@
})
},
methods: {
+ selected(){
+ this.portocol = !this.portocol;
+ },
+ protocolIndex(){
+ uni.navigateTo({
+ url:"../../protocol/index"
+ })
+ },
+ protocolPrivacy(){
+ uni.navigateTo({
+ url:"../../protocol/Privacy"
+ })
+ },
doDeposit() {
//模板模拟支付,实际应用请调起微信/支付宝
uni.showLoading({
@@ -311,7 +344,39 @@
}
}
}
-
+ .protocol{
+ font-size: 26upx;
+ .checkbox-box{
+ display: flex;
+ align-items: center;
+ padding-bottom: 20upx;
+ justify-content: center;
+ .checkbox{
+ width: 35upx;
+ height: 35upx;
+ border-radius: 100%;
+ border: solid 2upx #f06c7a;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ .on{
+ width: 25upx;
+ height: 25upx;
+ border-radius: 100%;
+ background-color: #f06c7a;
+ }
+ }
+ .text{
+ display: flex;
+ margin-left: 10upx;
+ .linkText{
+ color: #007AFF;
+ }
+ }
+ }
+
+ }
+
.pay {
margin-top: 20upx;
width: 100%;
@@ -327,10 +392,12 @@
justify-content: center;
align-items: center;
color: #fff;
- background-color: #f06c7a;
+ background-color: #CCCCCC;
box-shadow: 0upx 5upx 10upx rgba(0, 0, 0, 0.2);
}
-
+ .on{
+ background-color: #f06c7a;
+ }
.tis {
margin-top: 10upx;
width: 100%;
diff --git a/pages/protocol/Privacy.vue b/pages/protocol/Privacy.vue
new file mode 100644
index 0000000..10fcb72
--- /dev/null
+++ b/pages/protocol/Privacy.vue
@@ -0,0 +1,58 @@
+
+
+ 本指引是小程序开发者(以下简称“开发者”)为处理你的个人信息而制定。
+
+ 开发者处理的信息
+ 根据法律规定,开发者仅处理实现小程序功能所必要的信息。
+ 为了注册、登录小程序以及页面的展示,开发者收集你的用户信息(微信昵称、头像、性别、地区)。
+ 开发者收集你的上传的图片,用于核实对应订单流程。
+ 开发者收集你的发票相关信息,用于提供发票回执。
+
+
+ 你的权益
+ 开发者承诺,除法律法规另有规定外,开发者对你的信息的保存期限应当为实现处理目的所必要的最短时间。
+ 关于授权问题,你可以通过以下路径:小程序主页右上角“…”—“设置”—点击特定信息—点击“不允许”,撤回对开发者的授权。
+ 关于你的个人信息,你可以通过以下方式与开发者联系,行使查阅、复制、更正、删除等法定权利。
+
+
+ 开发者对信息的存储
+ 开发者承诺,除法律法规另有规定外,开发者对你的信息的保存期限应当为实现处理目的所必要的最短时间。
+
+
+ 信息的使用规则
+ 开发者将会在本指引所明示的用途内使用收集的信息
+ 如开发者使用你的信息超出本指引目的或合理范围,开发者必须在变更使用目的或范围前,再次以微信方式告知并征得你的明示同意。
+
+
+ 信息对外提供
+ 开发者承诺,不会主动共享或转让你的信息至任何第三方,如存在确需共享或转让时,开发者应当直接征得或确认第三方征得你的单独同意。
+ 开发者承诺,不会对外公开披露你的信息,如必须公开披露时,开发者应当向你告知公开披露的目的、披露信息的类型及可能涉及的信息,并征得你的单独同意。
+ 你认为开发者未遵守上述约定,或有其他的投诉建议、或未成年人个人信息保护相关问题,可通过以下方式与开发者联系;或者向微信进行投诉。
+ 微信号: wcharles_6003
+
+
+
+
+
+
+
+
diff --git a/pages/protocol/index.vue b/pages/protocol/index.vue
new file mode 100644
index 0000000..fd4cc8f
--- /dev/null
+++ b/pages/protocol/index.vue
@@ -0,0 +1,50 @@
+
+
+
+ 1、用户在本小程序注册后。用户应当妥善保存其账户信息和密码,由于用户泄密所导致如用户发现他人冒用或盗用其账户或密码,或其账户存在其他未经合法授权使用之情形,应立即以有效方式通知本公司。用户理解并同意本公司有权根据用户的通知、请求或依据判断,采取相应的行动或措施,包括但不限于冻结账户、限制账户功能等,本公司对采取上述行动所导致的损失不承担除法律有明确规定外的责任。
+
+
+ 2、用户在使用本服务时须遵守法律法规,不得利用本服务从事违法违规行为,包括但不限于:
+
+ (1)发布、传送、传播、储存危害国家安全统一、破坏社会稳定、违反公序良俗、侮辱、诽谤、淫秽、暴力以及任何违反国家法律法规的内容;
+
+
+ (2)发布、传送、传播、储存侵害他人知识产权、商业秘密等合法权利的内容;
+
+
+ (3)恶意虚构事实、隐瞒真相以误导、欺骗他人;
+
+
+ (4)发布、传送、传播广告信息及垃圾信息;
+
+
+ (5)其他法律法规禁止的行为。
+
+
+
+
+
+ 3、用户不得利用本服务进行任何有损本公司及其关联企业之权利、利益及商誉,或其他用户合法权利之行为。
+
+
+ 4、用户不得从事任何利用本公司平台系统漏洞进行有损其他用户、本公司或互联网安全的行为。
+
+
+
+
+
+
+
+
diff --git a/pages/tabBar/cart/cart.vue b/pages/tabBar/cart/cart.vue
index a804dc1..5dbd116 100644
--- a/pages/tabBar/cart/cart.vue
+++ b/pages/tabBar/cart/cart.vue
@@ -67,7 +67,7 @@
- 合计:¥{{sumPrice}}
+ 总计(不含运费):¥{{sumPrice}}
结算
@@ -607,12 +607,12 @@
align-items: center;
}
.settlement{
- width: 60%;
+ width: 75%;
display: flex;
justify-content: flex-end;
align-items: center;
.sum{
- width: 60%;
+ width: 75%;
font-size: 28upx;
margin-right: 10upx;
display: flex;
diff --git a/pages/user/address/edit/edit.vue b/pages/user/address/edit/edit.vue
index 69292d5..775242d 100644
--- a/pages/user/address/edit/edit.vue
+++ b/pages/user/address/edit/edit.vue
@@ -48,8 +48,20 @@
-
-
+
+
+
+
+
+ 我已阅读并同意《用户服务协议》和《隐私政策》
+
+
+
+
+
+ 保存地址
+
+
保存地址
@@ -74,10 +86,24 @@
often: false,
cityPickerValue: [0, 0, 1],
themeColor: '#007AFF',
+ portocol:false
// region:{label:"请点击选择地址",value:[],cityCode:""}
};
},
methods: {
+ selected(){
+ this.portocol = !this.portocol;
+ },
+ protocolIndex(){
+ uni.navigateTo({
+ url:"../../../protocol/index"
+ })
+ },
+ protocolPrivacy(){
+ uni.navigateTo({
+ url:"../../../protocol/Privacy"
+ })
+ },
onCancel(e) {
console.log(e)
},
@@ -236,6 +262,39 @@
};