商品列表增加销量

master
chen 2022-02-28 14:46:40 +08:00
parent 08639988cf
commit fb2e99a6be
27 changed files with 108 additions and 71 deletions

View File

@ -4,9 +4,9 @@
export default {
onLaunch: function() {
//
// uni.setStorageSync('hostapi','https://hengmei.scdxtc.cn/api/');
uni.setStorageSync('hostapi','https://hm.hmzfyy.cn/api/');
toolAll.tools.clearClog();//
uni.setStorageSync('hostapi','https://hengmei.scdxtc.cn/api/');
// uni.setStorageSync('hostapi','https://hm.hmzfyy.cn/api/');
// toolAll.tools.clearClog();//
//
// toolAll.tools.zhuColorT();
uni.request({

View File

@ -331,6 +331,7 @@ swiper-item view:last-child .duan-xian{border-bottom: none;}
.bottoc{margin-top: 6rpx;color: #414141;}
.text2 {text-indent: 2rem;}
.opc{opacity: 0.7;}
.width100{width: 100%;}
.width55{width: 55%;}

View File

@ -3,14 +3,15 @@
{
"path" : "pages/tabbar/pagehome/pagehome",
"style" :{}
},{
"path" : "pages/tabbar/my/staffDuan",
"style" :{}
},{
},
{
"path" : "pages/login/login",
"style" :{
"navigationBarTextStyle":"black" //
}
},{
"path" : "pages/tabbar/my/staffDuan",
"style" :{}
},{
"path" : "pages/tabbar/my/my",
"style" :{}

View File

@ -1,8 +1,31 @@
<template>
<view>
<status-nav :titleVal="'协议'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="mar20">
<rich-text :nodes="content"></rich-text>
<status-nav :titleVal="'用户协议及隐私声明'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="mar20 line-h50 fon30">
<!-- <rich-text :nodes="content"></rich-text> -->
<view class="text2">本协议为您与本小程序管理者之间所订立的契约具有合同的法律效力请您仔细阅读</view>
<view>本协议内容生效变更本协议内容包括协议正文及所有本小程序已经发布的或将来可能发布的各类规则所有规则为本协议不可分割的组成部分与协议正文具有同等法律效力如您对协议有任何疑问应向本小程序咨询您在同意所有协议条款并完成注册程序才能成为本站的正式用户您登录即代表同意用户服务协议本协议即生效对双方产生约束力只要您使用本小程序平台服务则本协议即对您产生约束届时您不应以未阅读本协议的内容或者未获得本小程序对您问询的解答等理由主张本协议无效或要求撤销本协议您确认本协议条款是处理双方权利义务的契约始终有效法律另有强制性规定或双方另有特别约定的依其规定 您承诺接受并遵守本协议的约定如果您不同意本协议的约定您应立即停止注册程序或停止使用本小程序平台服务本小程序有权根据需要不定期地制订修改本协议及/或各类规则并在本小程序平台公示不再另行单独通知用户变更后的协议和规则一经在网站公布立即生效如您不同意相关变更应当立即停止使用本小程序平台服务您继续使用本小程序平台服务的即表明您接受修订后的协议和规则</view>
<view>注册资格用户须具有法定的相应权利能力和行为能力的自然人法人或其他组织能够独立承担法律责任您完成注册程序或其他本小程序平台同意的方式实际使用本平台服务时即视为您确认自己具备主体资格能够独立承担法律责任若因您不具备主体资格而导致的一切后果由您及您的监护人自行承担</view>
<view class="text2">
<view class="text2">2.1用户应自行诚信向本站提供注册资料用户同意其提供的注册资料真实准确完整合法有效用户注册资料如有变动的应及时更新其注册资料如果用户提供的注册资料不合法不真实不准确不详尽的用户需承担因此引起的相应责任及后果并且本小程序保留终止用户使用本平台各项服务的权利</view>
<view class="text2">2.2用户在本站进行浏览等活动时涉及用户真实姓名/名称通信地址联系电话电子邮箱等隐私信息的本站将予以严格保密除非得到用户的授权或法律另有规定本站不会向外界披露用户隐私信息为完成创建账号用户需提供以下信息用户的微信昵称性别姓名手机号等信息用户提供的上述信息将在用户使用本服务期间持续授权我们使用在用户注销账号时我们将停止使用并删除上述信息上述信息将存储于中华人民共和国境内如需跨境传输我们将会单独征得用户的授权同意</view>
</view>
<view>账户</view>
<view>
<view class="text2">3.1您注册成功后即成为本小程序平台的用户将持有本小程序平台唯一编号的账户信息</view>
<view class="text2">3.2您设置的姓名为真实姓名不得侵犯或涉嫌侵犯他人合法权益否则本小程序有权终止向您提供服务注销您的账户</view>
<view class="text2">3.3您应谨慎合理的保存使用您的会员名和密码应对通过您的会员名和密码实施的行为负责除非有法律规定或司法裁定且征得本小程序的同意否则会员名和密码不得以任何方式转让赠与或继承与账户相关的财产权益除外</view>
<view class="text2">3.4用户不得将在本站注册获得的账户借给他人使用否则用户应承担由此产生的全部责任并与实际使用人承担连带责任</view>
<view class="text2">3.5如果发现任何非法使用等可能危及您的账户安全的情形时您应当立即以有效方式通知本小程序要求暂停相关服务并向公安机关报案您理解本小程序对您的请求采取行动需要合理时间本小程序对在采取行动前已经产生的后果包括但不限于您的任何损失不承担任何责任</view>
</view>
<view>用户信息的合理使用</view>
<view>
<view class="text2">4.1您同意本小程序平台拥有通过短信电话微信消息提醒等形式向在本站注册用户发送信息等告知信息的权利</view>
<view class="text2">4.2您了解并同意本小程序有权应国家司法行政等主管部门的要求向其提供您在本小程序平台填写的注册信息和交易记录等必要信息如您涉嫌侵犯他人知识产权则本小程序亦有权在初步判断涉嫌侵权行为存在的情况下向权利人提供您必要的身份信息</view>
<view class="text2">4.3用户同意本小程序有权使用用户的注册信息用户名密码等信息登陆进入用户的注册账户进行证据保全包括但不限于公证见证等</view>
</view>
<view>免责条款</view>
<view class="text2">5.1 本平台仅提供信息对接发生一切纠纷问题皆与本平台无关请通过仲裁部门维护各自权益</view>
</view>
</view>
</template>
@ -11,12 +34,11 @@
export default {
data(){
return {
statusHNH:uni.getStorageSync('statusHNH'),
content:'<p>1.用户协议谢谢洗诶诶黑货币的宁波</p>'
statusHNH:uni.getStorageSync('statusHNH')
}
},
onLoad() {
this.$toolAll.tools.escape2Html(this.content)
// this.$toolAll.tools.escape2Html(this.content)
}
}
</script>

View File

@ -510,6 +510,7 @@
// console.log('',res);
if(res.code==0 && res.data.length!=0) {
this.userInfo = res.data;
console.log(this.userInfo,513);
uni.setStorageSync('userId',res.data.id);
uni.setStorageSync('phone',this.userInfo.mobile);
this.userPhone = this.$toolAll.tools.hideMPhone(this.userInfo.mobile)

View File

@ -67,23 +67,26 @@
<view class="radius10 colf" v-if="item1.isPing" style="padding: 6rpx 10rpx;background: #F85050;"></view>
<view class="radius10 colf" v-if="item1.isXian" style="padding: 6rpx 10rpx;background: #F85050;"></view>
</view>
<view class="disac">
<view class="fon28 bold" style="color: #F85050;margin-right: 8rpx;">
<view v-if="item1.isIntegral" class="mar-s20">
<view>积分:{{item1.integral}}</view>
<view class="disac mar-s20" v-if="item1.grade!=0">
<image src="/static/public/huiy.png" style="width: 40rpx;height: 33rpx;" mode=""></image>
<view class="fon24 col3 mar-z10">{{item1.level_text}}</view>
<view class="disjbac">
<view class="disac">
<view class="fon28 bold" style="color: #F85050;margin-right: 8rpx;">
<view v-if="item1.isIntegral" class="mar-s20">
<view>积分:{{item1.integral}}</view>
<view class="disac mar-s20" v-if="item1.grade!=0">
<image src="/static/public/huiy.png" style="width: 40rpx;height: 33rpx;" mode=""></image>
<view class="fon24 col3 mar-z10">{{item1.level_text}}</view>
</view>
</view>
<view v-else>
<span v-if="item1.isPing"></span>
<span v-if="item1.isXian"></span>
{{item1.zhePrice}}
</view>
</view>
<view v-else>
<span v-if="item1.isPing"></span>
<span v-if="item1.isXian"></span>
{{item1.zhePrice}}
</view>
<!-- <view v-if="item1.isXian || item1.isPing || item1.isTuan" class="fon24" style="text-decoration: line-through;color: #C7C7C7;">{{item1.yuanPrice}}</view> -->
<view class="fon24" style="text-decoration: line-through;color: #C7C7C7;">{{item1.yuanPrice}}</view>
</view>
<!-- <view v-if="item1.isXian || item1.isPing || item1.isTuan" class="fon24" style="text-decoration: line-through;color: #C7C7C7;">{{item1.yuanPrice}}</view> -->
<view class="fon24" style="text-decoration: line-through;color: #C7C7C7;">{{item1.yuanPrice}}</view>
<view class="fon24" style="color: #C7C7C7;">销量{{item1.amount}}</view>
</view>
<view v-if="item1.isPing" class="disjbac mar-s20">
<view class="fon24 col80">已拼团{{item1.activity_group_num}}</view>
@ -106,23 +109,26 @@
<view class="radius10 colf" v-if="item1.isPing" style="padding: 6rpx 10rpx;background: #F85050;"></view>
<view class="radius10 colf" v-if="item1.isXian" style="padding: 6rpx 10rpx;background: #F85050;"></view>
</view>
<view class="disac">
<view class="fon28 bold" style="color: #F85050;margin-right: 8rpx;">
<view v-if="item1.isIntegral" class="mar-s20">
<view>积分:{{item1.integral}}</view>
<view class="disac mar-s20" v-if="item1.grade!=0">
<image src="/static/public/huiy.png" style="width: 40rpx;height: 33rpx;" mode=""></image>
<view class="fon24 col3 mar-z10">{{item1.level_text}}</view>
<view class="disjbac">
<view class="disac">
<view class="fon28 bold" style="color: #F85050;margin-right: 8rpx;">
<view v-if="item1.isIntegral" class="mar-s20">
<view>积分:{{item1.integral}}</view>
<view class="disac mar-s20" v-if="item1.grade!=0">
<image src="/static/public/huiy.png" style="width: 40rpx;height: 33rpx;" mode=""></image>
<view class="fon24 col3 mar-z10">{{item1.level_text}}</view>
</view>
</view>
<view v-else>
<span v-if="item1.isPing"></span>
<span v-if="item1.isXian"></span>
{{item1.zhePrice}}
</view>
</view>
<view v-else>
<span v-if="item1.isPing"></span>
<span v-if="item1.isXian"></span>
{{item1.zhePrice}}
</view>
<!-- <view v-if="item1.isXian || item1.isPing || item1.isTuan" class="fon24" style="text-decoration: line-through;color: #C7C7C7;">{{item1.yuanPrice}}</view> -->
<view class="fon24" style="text-decoration: line-through;color: #C7C7C7;">{{item1.yuanPrice}}</view>
</view>
<!-- <view v-if="item1.isTuan || item1.isPing || item1.isXian" class="fon24" style="text-decoration: line-through;color: #C7C7C7;">{{item1.yuanPrice}}</view> -->
<view class="fon24" style="text-decoration: line-through;color: #C7C7C7;">{{item1.yuanPrice}}</view>
<view class="fon24" style="color: #C7C7C7;">销量{{item1.amount}}</view>
</view>
<view v-if="item1.isPing" class="disjbac mar-s20">
<view class="fon24 col80">已拼团{{item1.activity_group_num}}</view>
@ -315,15 +321,20 @@
this.showDoctor = false;
},
chooseEv(){//
this.$requst.post('user/doctor-list',{page:1,size:1000}).then(res=>{
if(res.code==0){
this.doctor_name = '';
if(res.data.list.length!=0){
this.showDoctor = true;
this.doctorList = res.data.list;
} else this.$toolAll.tools.showToast('暂无医生可选');
} else this.$toolAll.tools.showToast(res.msg);
})
console.log(this.dataList.length);
if(this.dataList.length){
this.showDoctor = false;
} else {
this.$requst.post('user/doctor-list',{page:1,size:1000}).then(res=>{
if(res.code==0){
this.doctor_name = '';
if(res.data.list.length!=0){
this.showDoctor = true;
this.doctorList = res.data.list;
} else this.$toolAll.tools.showToast('暂无医生可选');
} else this.$toolAll.tools.showToast(res.msg);
})
}
},
cartNumEv(){//
this.$requst.post('order/shopping-cart-count',{type:'spu'}).then(res=>{
@ -444,6 +455,7 @@
zhePrice:item.price/100,
yuanPrice:item.original_price/100,
integral:'',
amount:item.amount,//
isTuan:tuan,//
isPing:ping,//
isXian:xian,//

View File

@ -16,7 +16,7 @@
<view class="fon24 col3 mar-s50" style="margin-top: 30%;">暂无内容</view>
</view>
<!-- 预览弹框 -->
<view v-if="showBtn" @tap.stop="showBtn=false" class="posAll disjcac fc pad-zy50" style="z-index: 3;">
<view v-if="showBtn" @tap.stop="showBtn=false" class="posAll disjcac fc pad-zy50" style="z-index: 11;">
<image :src="imgSrc" @tap.stop="showBtn=true" class="radius20" style="width: 80%;" mode="widthFix"></image>
<!-- 分享按钮 -->
<view v-if="haved" @tap.stop="shareEv" class="disjcac radius20 posixzy" style="height: 90rpx;margin: 20rpx 80rpx;background-color: #38CE51;line-height: 90rpx;bottom: 40rpx;">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long