测试反馈修改-0804

master
Lee-1203 2022-08-04 13:38:20 +08:00
parent fede9f4949
commit e3f96b4d21
29 changed files with 100 additions and 92 deletions

View File

@ -35,8 +35,8 @@ page {background-color: #FFFFFF;}
}
.login-btn {
width: calc(100% - 40rpx);
line-height: 130rpx;
width: calc(100% - 60rpx);
line-height: 100rpx;
margin: 0 auto;
box-shadow: 0rpx 8rpx 20rpx rgba(254,191,0,.75);
}
@ -198,7 +198,6 @@ page {background-color: #FFFFFF;}
/* 搜索结果 */
.search-box{
width: 100%;
height: 100vh;
position: fixed;
left: 0;
top: 0;
@ -229,10 +228,18 @@ page {background-color: #FFFFFF;}
}
.keyword-txt{
line-height: 1.5;
padding-bottom: 10rpx;
text-align: center;
}
.search-list{
height: calc(100% - 140rpx);
height: calc(100% - 205rpx);
}
.search-list .item:nth-of-type(1),
.search-list .item:nth-of-type(2){
margin-top: 30rpx !important;
}
.search-list .item:last-child{
margin-bottom: 20rpx;
}
/* 商品详情 */

View File

@ -8,11 +8,12 @@ export function slidePosition(data) {
// 查询购物车信息
export function getCartInfo(){
return requst.get('/api/user/info').then(res=>{
return requst.post('/api/index/indexGetShoppingCartInformation').then(res=>{
if(res.code==0){
let cartObj = res.data.shopping_cart_info;
console.log(res,'首页购物车信息')
let cartObj = res.data;
store.commit('setNum', cartObj.count)
store.commit('setPrice', cartObj.total_price)
store.commit('setPrice', cartObj.price)
}
})
}

View File

@ -20,10 +20,12 @@ const refreshTokenPage = () => {
param += '?' + key + '=' + currentParam[key]
}
let localRoute = '/'+ currentRoute + param;
uni.setStorageSync('page-path-options',routeParam);
uni.navigateTo({
url: '/pages/login/login'
})
uni.setStorageSync('page-path-options',localRoute);
setTimeout(()=>{
uni.navigateTo({
url: '/pages/login/login'
})
},1200)
flag = true;
}
// 请求错误处理

View File

@ -267,9 +267,7 @@
confirmDel(){
this.$requst.post('/api/order/shopping-cart-del',{ids:this.delIds.toString()}).then(res=>{
if(res.code==0){
//
this.listData = [];
this.getList();
this.listData = this.listData.filter(item=>item.ifcheck==false)
this.$toolAll.tools.showToast('删除成功');
}else{
this.$toolAll.tools.showToast(res.msg)

View File

@ -1,12 +1,12 @@
<template>
<view>
<view class="index-page pad-x190 border-box" v-if="isLoading">
<view class="index-page pad-x190 border-box" v-if="isLoading">
<!-- 顶部背景 -->
<view class="index-top">
<image :src="indexBackground" mode="widthFix"></image>
</view>
<view class="index-content background-white">
<view class="index-statis-bg background-white" :style="{height:statusHeight+35+'px'}" v-if="!isShow"></view>
<view class="index-statis-bg background-white" :style="{height:statusHeight+50+'px'}" v-if="!isShow"></view>
<!-- 搜索 -->
<view class="pull-search-bg background-white radius20 pad-sx30 border-box" v-if="isShow">
<view class="pull-search radius20 flex">
@ -54,9 +54,9 @@
</view>
</view>
<!-- 搜索结果 -->
<view class="pull-bg" v-if="showSearch"></view>
<view class="search-box border-box" v-if="showSearch" @tap.stop="closeSearch">
<view class="close-box" :style="{height:statusHeight+50+'px'}" @tap="closeSearch"></view>
<view class="pull-bg" v-if="showSearch" @tap="closeSearch"></view>
<view class="search-box border-box" v-if="showSearch" :style="{height:screenHeight-statusHeight-50+'px',top:statusHeight+50+'px'}" >
<!-- <view class="close-box" :style="{height:statusHeight+50+'px'}"></view> -->
<!-- 搜索 -->
<view class="search-bg background-white pad-sx30 border-box">
<view class="search radius20 flex">
@ -83,7 +83,7 @@
</view>
</view>
<!-- 没有相关结果 -->
<view class="no-more font24" v-if="searchList.length==0"><text> 没有相关结果 </text></view>
<view class="no-more font24 pad-sx25" style="margin: 0;" v-if="searchList.length==0"><text> 没有相关结果 </text></view>
</scroll-view>
</view>
<!-- 尾部 -->
@ -99,7 +99,8 @@
tabbar
},
data() {
return {
return {
screenHeight:uni.getSystemInfoSync().screenHeight,
statusHeight:uni.getSystemInfoSync().statusBarHeight,
scrollTop:0, //
isShow: true, //
@ -123,7 +124,6 @@
searchList:[], //
showSearch:false, //
isLoading:false,
scollYes:true,
}
},
onLoad(op) {
@ -131,8 +131,6 @@
// invite_code
uni.setStorageSync('inviteCode',op.invite_code);
}
//
this.getUserInfo();
//
this.getTabbarEv();
//
@ -141,7 +139,6 @@
onShow() {
//
getCartInfo();
this.playTimer = setTimeout(()=>{
this.isplay = true;
},2000)
@ -155,8 +152,7 @@
this.isplay =false;
},
onPageScroll(object){
this.setTop();
if(object.scrollTop>this.scrollTop){
if(object.scrollTop >= this.statusHeight+35){
this.isShow = false;
}else{
this.isShow = true;
@ -201,15 +197,6 @@
}
},
methods: {
//
getUserInfo(){
this.$requst.get('/api/user/info').then(res=>{
if(res.code == 0){
console.log(res,'个人信息')
uni.setStorageSync('vip_level',res.data.vip_level);
}
})
},
//
getTabbarEv(){
this.$requst.get('/api/index/mini-program-setting').then(res=>{
@ -303,7 +290,8 @@
//
changeCateEv(index) {
if(this.currentIndex !== index){
if(index !== this.currentIndex){
this.isShow = true;
this.currentIndex = index;
//
this.commodityList = [];
@ -313,13 +301,15 @@
this.setTabList();
}
},
//
setTabList() {
this.$nextTick(() => {
if (this.cateList.length > 0) {
//
this.setLeft()
this.setLeft()
//
this.setTop();
}
})
},
@ -341,7 +331,12 @@
setTop(){
this.getElementData('#index-cate-bg', (res) => {
let el = res[0];
this.scrollTop = el.top + el.height/4;
this.scrollTop = el.top;
if(this.scrollTop==this.statusHeight+35){
this.isShow = false;
}else{
this.isShow = true;
}
})
},
@ -359,7 +354,8 @@
//
doSearch(){
this.showSearch = true;
this.showSearch = true;
this.searchList = [];
this.searchKeyword = this.keyword;
this.keyword = '';
this.$requst.get('/api/spu/list',{keyword:this.searchKeyword}).then(res=>{

View File

@ -122,7 +122,7 @@
uni.setStorageSync('expire',res.data.expire)//
uni.setStorageSync('phone_active',res.data.phone_active)//
uni.setStorageSync('is_active',res.data.is_active)//
uni.setStorageSync('business_code',res.data.business_code)//
uni.setStorageSync('invite_code',res.data.invite_code)//
if(uni.getStorageSync('page-path-options')) {
uni.reLaunch({ //
url:uni.getStorageSync('page-path-options')

View File

@ -58,7 +58,7 @@
</view>
<view class="vip-item mar-s40">
<view class="tips color-99">详细地址</view>
<input class="input" type="number" v-model="address" placeholder="请输入详细地址" placeholder-style="color:#000000">
<input class="input" type="text" v-model="address" placeholder="请输入详细地址" placeholder-style="color:#000000">
</view>
</view>
<view class="submit-btn font36 background-orange radius30 mar-s60 flex" @tap="editAddress(id)"></view>

View File

@ -120,7 +120,7 @@
onShareAppMessage(res) {
let shareObj = {
title:this.shopDetail.name,
path: uni.getStorageSync('page-path-options')+'?invite_code='+uni.getStorageSync('invite_code'),
path: uni.getStorageSync('page-path-options')+'&invite_code='+uni.getStorageSync('invite_code'),
imageUrl:this.shopDetail.images[0],
}
// shareObj

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

View File

@ -330,8 +330,8 @@ page {background-color: #FFFFFF;}
bottom: 120rpx;
}
.login-btn {
width: calc(100% - 40rpx);
line-height: 130rpx;
width: calc(100% - 60rpx);
line-height: 100rpx;
margin: 0 auto;
box-shadow: 0rpx 8rpx 20rpx rgba(254,191,0,.75);
}
@ -487,7 +487,6 @@ page {background-color: #FFFFFF;}
/* 搜索结果 */
.search-box{
width: 100%;
height: 100vh;
position: fixed;
left: 0;
top: 0;
@ -518,10 +517,18 @@ page {background-color: #FFFFFF;}
}
.keyword-txt{
line-height: 1.5;
padding-bottom: 10rpx;
text-align: center;
}
.search-list{
height: calc(100% - 140rpx);
height: calc(100% - 205rpx);
}
.search-list .item:nth-of-type(1),
.search-list .item:nth-of-type(2){
margin-top: 30rpx !important;
}
.search-list .item:last-child{
margin-bottom: 20rpx;
}
/* 商品详情 */
.scrool-top{

View File

@ -4760,10 +4760,12 @@ var refreshTokenPage = function refreshTokenPage() {
param += '?' + key + '=' + currentParam[key];
}
var localRoute = '/' + currentRoute + param;
uni.setStorageSync('page-path-options', routeParam);
uni.navigateTo({
url: '/pages/login/login' });
uni.setStorageSync('page-path-options', localRoute);
setTimeout(function () {
uni.navigateTo({
url: '/pages/login/login' });
}, 1200);
flag = true;
};
// 请求错误处理
@ -4965,11 +4967,12 @@ function slidePosition(data) {
// 查询购物车信息
function getCartInfo() {
return _requst.default.get('/api/user/info').then(function (res) {
return _requst.default.post('/api/index/indexGetShoppingCartInformation').then(function (res) {
if (res.code == 0) {
var cartObj = res.data.shopping_cart_info;
console.log(res, '首页购物车信息');
var cartObj = res.data;
_index.default.commit('setNum', cartObj.count);
_index.default.commit('setPrice', cartObj.total_price);
_index.default.commit('setPrice', cartObj.price);
}
});
}

View File

@ -424,9 +424,7 @@ var _default = { data: function data() {return { statusHeight: uni.getSystemInfo
confirmDel: function confirmDel() {var _this5 = this;
this.$requst.post('/api/order/shopping-cart-del', { ids: this.delIds.toString() }).then(function (res) {
if (res.code == 0) {
// 查询购物车列表
_this5.listData = [];
_this5.getList();
_this5.listData = _this5.listData.filter(function (item) {return item.ifcheck == false;});
_this5.$toolAll.tools.showToast('删除成功');
} else {
_this5.$toolAll.tools.showToast(res.msg);

View File

@ -255,6 +255,7 @@ var _default = {
data: function data() {var _ref;
return _ref = {
screenHeight: uni.getSystemInfoSync().screenHeight,
statusHeight: uni.getSystemInfoSync().statusBarHeight,
scrollTop: 0, //分类距离顶部距离
isShow: true, //显示
@ -277,8 +278,7 @@ var _default = {
''), _defineProperty(_ref, "searchList",
[]), _defineProperty(_ref, "showSearch",
false), _defineProperty(_ref, "isLoading",
false), _defineProperty(_ref, "scollYes",
true), _ref;
false), _ref;
},
onLoad: function onLoad(op) {
@ -286,8 +286,6 @@ var _default = {
// 缓存invite_code
uni.setStorageSync('inviteCode', op.invite_code);
}
// 获取用户信息
this.getUserInfo();
// 获取头部背景
this.getTabbarEv();
// 获取分类列表
@ -296,7 +294,6 @@ var _default = {
onShow: function onShow() {var _this = this;
// 刷新购物车信息
(0, _publicApi.getCartInfo)();
this.playTimer = setTimeout(function () {
_this.isplay = true;
}, 2000);
@ -310,8 +307,7 @@ var _default = {
this.isplay = false;
},
onPageScroll: function onPageScroll(object) {
this.setTop();
if (object.scrollTop > this.scrollTop) {
if (object.scrollTop >= this.statusHeight + 35) {
this.isShow = false;
} else {
this.isShow = true;
@ -356,15 +352,6 @@ var _default = {
} },
methods: {
// 获取个人信息
getUserInfo: function getUserInfo() {
this.$requst.get('/api/user/info').then(function (res) {
if (res.code == 0) {
console.log(res, '个人信息');
uni.setStorageSync('vip_level', res.data.vip_level);
}
});
},
// 获取头部背景
getTabbarEv: function getTabbarEv() {var _this2 = this;
this.$requst.get('/api/index/mini-program-setting').then(function (res) {
@ -458,7 +445,8 @@ var _default = {
// 分类选择事件
changeCateEv: function changeCateEv(index) {
if (this.currentIndex !== index) {
if (index !== this.currentIndex) {
this.isShow = true;
this.currentIndex = index;
// 获取商品列表
this.commodityList = [];
@ -475,6 +463,8 @@ var _default = {
if (_this6.cateList.length > 0) {
//计算左滑距离
_this6.setLeft();
// 计算顶部距离
_this6.setTop();
}
});
},
@ -496,7 +486,12 @@ var _default = {
setTop: function setTop() {var _this8 = this;
this.getElementData('#index-cate-bg', function (res) {
var el = res[0];
_this8.scrollTop = el.top + el.height / 4;
_this8.scrollTop = el.top;
if (_this8.scrollTop == _this8.statusHeight + 35) {
_this8.isShow = false;
} else {
_this8.isShow = true;
}
});
},
@ -515,6 +510,7 @@ var _default = {
// 搜索结果
doSearch: function doSearch() {var _this9 = this;
this.showSearch = true;
this.searchList = [];
this.searchKeyword = this.keyword;
this.keyword = '';
this.$requst.get('/api/spu/list', { keyword: this.searchKeyword }).then(function (res) {

View File

@ -1 +1 @@
<view><block wx:if="{{isLoading}}"><view class="index-page pad-x190 border-box"><view class="index-top"><image src="{{indexBackground}}" mode="widthFix"></image></view><view class="index-content background-white"><block wx:if="{{!isShow}}"><view class="index-statis-bg background-white" style="{{'height:'+(statusHeight+35+'px')+';'}}"></view></block><block wx:if="{{isShow}}"><view class="pull-search-bg background-white radius20 pad-sx30 border-box"><view class="pull-search radius20 flex"><image class="img" src="/static/icon/icon-search.png" mode="widthFix"></image><input class="input pad-zy15 border-box font30" type="text" placeholder="搜索" confirm-type="search" placeholder-style="color: #666666" data-event-opts="{{[['confirm',[['doSearch',['$event']]]],['input',[['__set_model',['','keyword','$event',[]]]]]]}}" value="{{keyword}}" bindconfirm="__e" bindinput="__e"/></view></view></block><view class="{{['index-cate-bg','pad-zy20','background-white',!isShow?'show':'']}}" style="{{'top:'+(statusHeight+35+'px')+';'}}" id="index-cate-bg"><view class="{{['index-cate','pad-zy20','border-box',!isShow?'show':'']}}"><block wx:if="{{isShow}}"><view class="pull-title"><view class="txt font32 pad-sx10">商品</view><view class="line background-orange"></view></view></block><view class="cate-list-bg"><scroll-view scroll-x="true" scroll-left="{{tabsScrollLeft}}" data-event-opts="{{[['scroll',[['scroll',['$event']]]]]}}" bindscroll="__e"><view class="cate-list flex" style="{{'width:'+(cateWidth)+';'}}" id="tab_list"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['cate-item',index==currentIndex?'color-orange':'']}}" id="tab_item" data-event-opts="{{[['tap',[['changeCateEv',[index]]]]]}}" bindtap="__e"><view class="img mar-sx20"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="txt font24">{{item.title}}</view></view></block></view></scroll-view></view></view></view><view class="commodity pad-zy20 border-box flex"><block wx:for="{{commodityList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['commodityList','',index,'id']]]]]]]}}" class="item mar-s40 radius20" catchtap="__e"><view class="img"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="txt pad-all20"><view class="title fon30 clips2">{{item.name}}</view><view class="price font30 mar-sx10">{{"¥"+item.price}}</view><view class="bottom flex"><view class="sold font24 color-99">{{(item.amount>=100?'99+':item.amount)+"件已售"}}</view><view data-event-opts="{{[['tap',[['joinCart',[index]]]]]}}" class="btn font24 background-orange flex" catchtap="__e">加入购物车</view></view></view></view></block></view><block wx:if="{{noMore}}"><view class="no-more font24"><text>—— 到底啦 ——</text></view></block></view></view></block><block wx:if="{{showSearch}}"><view class="pull-bg"></view></block><block wx:if="{{showSearch}}"><view data-event-opts="{{[['tap',[['closeSearch',['$event']]]]]}}" class="search-box border-box" catchtap="__e"><view data-event-opts="{{[['tap',[['closeSearch',['$event']]]]]}}" class="close-box" style="{{'height:'+(statusHeight+50+'px')+';'}}" bindtap="__e"></view><view class="search-bg background-white pad-sx30 border-box"><view class="search radius20 flex"><image class="img" src="/static/icon/icon-search.png" mode="widthFix"></image><input class="input pad-zy15 border-box font30" type="text" placeholder="搜索" confirm-type="search" placeholder-style="color: #666666" data-event-opts="{{[['confirm',[['doSearch',['$event']]]],['input',[['__set_model',['','keyword','$event',[]]]]]]}}" value="{{keyword}}" bindconfirm="__e" bindinput="__e"/></view></view><view class="keyword-txt background-white font30">{{"关键词:"+searchKeyword}}</view><scroll-view class="search-list background-white" scroll-y="true"><view class="commodity pad-zy20 border-box flex"><block wx:for="{{searchList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['searchList','',index,'id']]]]]]]}}" class="item mar-s40 radius20" catchtap="__e"><view class="img"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="txt pad-all20"><view class="title fon30 clips2">{{item.name}}</view><view class="price font30 mar-sx10">{{"¥"+item.price}}</view><view class="bottom flex"><view class="sold font24 color-99">{{(item.stock>=100?'99+':item.stock)+"件已售"}}</view><view data-event-opts="{{[['tap',[['joinCart',[index]]]]]}}" class="btn font24 background-orange flex" catchtap="__e">加入购物车</view></view></view></view></block></view><block wx:if="{{searchList.length==0}}"><view class="no-more font24"><text>—— 没有相关结果 ——</text></view></block></scroll-view></view></block><block wx:if="{{isLoading}}"><tabbar vue-id="8dd740cc-1" bind:__l="__l"></tabbar></block></view>
<view><block wx:if="{{isLoading}}"><view class="index-page pad-x190 border-box"><view class="index-top"><image src="{{indexBackground}}" mode="widthFix"></image></view><view class="index-content background-white"><block wx:if="{{!isShow}}"><view class="index-statis-bg background-white" style="{{'height:'+(statusHeight+50+'px')+';'}}"></view></block><block wx:if="{{isShow}}"><view class="pull-search-bg background-white radius20 pad-sx30 border-box"><view class="pull-search radius20 flex"><image class="img" src="/static/icon/icon-search.png" mode="widthFix"></image><input class="input pad-zy15 border-box font30" type="text" placeholder="搜索" confirm-type="search" placeholder-style="color: #666666" data-event-opts="{{[['confirm',[['doSearch',['$event']]]],['input',[['__set_model',['','keyword','$event',[]]]]]]}}" value="{{keyword}}" bindconfirm="__e" bindinput="__e"/></view></view></block><view class="{{['index-cate-bg','pad-zy20','background-white',!isShow?'show':'']}}" style="{{'top:'+(statusHeight+35+'px')+';'}}" id="index-cate-bg"><view class="{{['index-cate','pad-zy20','border-box',!isShow?'show':'']}}"><block wx:if="{{isShow}}"><view class="pull-title"><view class="txt font32 pad-sx10">商品</view><view class="line background-orange"></view></view></block><view class="cate-list-bg"><scroll-view scroll-x="true" scroll-left="{{tabsScrollLeft}}" data-event-opts="{{[['scroll',[['scroll',['$event']]]]]}}" bindscroll="__e"><view class="cate-list flex" style="{{'width:'+(cateWidth)+';'}}" id="tab_list"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['cate-item',index==currentIndex?'color-orange':'']}}" id="tab_item" data-event-opts="{{[['tap',[['changeCateEv',[index]]]]]}}" bindtap="__e"><view class="img mar-sx20"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="txt font24">{{item.title}}</view></view></block></view></scroll-view></view></view></view><view class="commodity pad-zy20 border-box flex"><block wx:for="{{commodityList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['commodityList','',index,'id']]]]]]]}}" class="item mar-s40 radius20" catchtap="__e"><view class="img"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="txt pad-all20"><view class="title fon30 clips2">{{item.name}}</view><view class="price font30 mar-sx10">{{"¥"+item.price}}</view><view class="bottom flex"><view class="sold font24 color-99">{{(item.amount>=100?'99+':item.amount)+"件已售"}}</view><view data-event-opts="{{[['tap',[['joinCart',[index]]]]]}}" class="btn font24 background-orange flex" catchtap="__e">加入购物车</view></view></view></view></block></view><block wx:if="{{noMore}}"><view class="no-more font24"><text>—— 到底啦 ——</text></view></block></view></view></block><block wx:if="{{showSearch}}"><view data-event-opts="{{[['tap',[['closeSearch',['$event']]]]]}}" class="pull-bg" bindtap="__e"></view></block><block wx:if="{{showSearch}}"><view class="search-box border-box" style="{{'height:'+(screenHeight-statusHeight-50+'px')+';'+('top:'+(statusHeight+50+'px')+';')}}"><view class="search-bg background-white pad-sx30 border-box"><view class="search radius20 flex"><image class="img" src="/static/icon/icon-search.png" mode="widthFix"></image><input class="input pad-zy15 border-box font30" type="text" placeholder="搜索" confirm-type="search" placeholder-style="color: #666666" data-event-opts="{{[['confirm',[['doSearch',['$event']]]],['input',[['__set_model',['','keyword','$event',[]]]]]]}}" value="{{keyword}}" bindconfirm="__e" bindinput="__e"/></view></view><view class="keyword-txt background-white font30">{{"关键词:"+searchKeyword}}</view><scroll-view class="search-list background-white" scroll-y="true"><view class="commodity pad-zy20 border-box flex"><block wx:for="{{searchList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['searchList','',index,'id']]]]]]]}}" class="item mar-s40 radius20" catchtap="__e"><view class="img"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="txt pad-all20"><view class="title fon30 clips2">{{item.name}}</view><view class="price font30 mar-sx10">{{"¥"+item.price}}</view><view class="bottom flex"><view class="sold font24 color-99">{{(item.stock>=100?'99+':item.stock)+"件已售"}}</view><view data-event-opts="{{[['tap',[['joinCart',[index]]]]]}}" class="btn font24 background-orange flex" catchtap="__e">加入购物车</view></view></view></view></block></view><block wx:if="{{searchList.length==0}}"><view class="no-more font24 pad-sx25" style="margin:0;"><text>—— 没有相关结果 ——</text></view></block></scroll-view></view></block><block wx:if="{{isLoading}}"><tabbar vue-id="8dd740cc-1" bind:__l="__l"></tabbar></block></view>

View File

@ -254,7 +254,7 @@ var _default =
uni.setStorageSync('expire', res.data.expire); //缓存失效时间(时间戳格式)
uni.setStorageSync('phone_active', res.data.phone_active); //是否授权手机号
uni.setStorageSync('is_active', res.data.is_active); //是否授权头像和昵称
uni.setStorageSync('business_code', res.data.business_code); //缓存邀请码
uni.setStorageSync('invite_code', res.data.invite_code); //缓存邀请码
if (uni.getStorageSync('page-path-options')) {
uni.reLaunch({ // 重新进入当前页面
url: uni.getStorageSync('page-path-options') });

View File

@ -1 +1 @@
<block wx:if="{{isLoading}}"><view class="pad-x170"><status-nav vue-id="85f8b75e-1" ifReturn="{{true}}" navBarTitle="地址管理" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="settlement-content pad-zy20 border-box"><block wx:for="{{addressList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="section background-white radius30 mar-x40 pad-all25 border-box font30"><view data-event-opts="{{[['tap',[['changeAddr',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="addr-info mar-s20" catchtap="__e"><view class="txt mar-x20"><view class="font30 mar-x10">{{item.name}}<text style="margin-left:30rpx;">{{item.phone}}</text></view><text class="font24 color-8c">{{item.addressMsg}}</text></view><view class="addr-bottom font28 flex"><label class="radio flex"><radio checked="{{item.is_default}}" color="#febf00" data-event-opts="{{[['tap',[['chooseEv',['$0'],[[['addressList','',index,'id']]]]]]]}}" catchtap="__e"></radio>设为默认地址</label><view class="btns flex"><view data-event-opts="{{[['tap',[['openEdit',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="btn" bindtap="__e">编辑</view><view data-event-opts="{{[['tap',[['delAddress',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="btn" bindtap="__e">删除</view></view></view></view></view></block></view><view class="pull-btn background-white border-box"><view data-event-opts="{{[['tap',[['openAdd',['$event']]]]]}}" class="btn background-orange font36 radius30 flex" bindtap="__e">新增地址</view></view><view hidden="{{!(isShow)}}" class="pull-bg" style="background-color:rgba(0,0,0,.3);"></view><block wx:if="{{isShow}}"><view class="vip-box-bg border-box"><view class="vip-box radius20 background-white font30"><view class="title">收件人地址</view><view class="vip-list"><view class="vip-item mar-s20"><view class="tips color-99">姓名</view><input class="input" type="text" placeholder="请输入姓名" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindinput="__e"/></view><view class="vip-item mar-s40"><view class="tips color-99">电话</view><input class="input" type="number" placeholder="请输入联系电话" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/></view><view class="vip-item mar-s40"><view class="tips color-99">地址</view><picker mode="region" data-event-opts="{{[['change',[['change',['$event']]]]]}}" bindchange="__e"><view class="addr-input flex"><view class="input-box flex"><input class="input-flex clips1" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','province','$event',[]]]]]]}}" value="{{province}}" bindinput="__e"/><image src="/static/icon/icon-shop.png" mode="widthFix"></image></view><view class="input-box flex"><input class="input-flex clips1" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','city','$event',[]]]]]]}}" value="{{city}}" bindinput="__e"/><image src="/static/icon/icon-shop.png" mode="widthFix"></image></view><view class="input-box flex"><input class="input-flex clips1" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','county','$event',[]]]]]]}}" value="{{county}}" bindinput="__e"/><image src="/static/icon/icon-shop.png" mode="widthFix"></image></view></view></picker></view><view class="vip-item mar-s40"><view class="tips color-99">详细地址</view><input class="input" type="number" placeholder="请输入详细地址" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','address','$event',[]]]]]]}}" value="{{address}}" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['editAddress',['$0'],['id']]]]]}}" class="submit-btn font36 background-orange radius30 mar-s60 flex" bindtap="__e">确认保存</view><view data-event-opts="{{[['tap',[['closeEv',['$event']]]]]}}" class="close-btn" bindtap="__e"><image src="/static/icon/close-btn.png" mode="widthFix"></image></view></view></view></block></view></block>
<block wx:if="{{isLoading}}"><view class="pad-x170"><status-nav vue-id="85f8b75e-1" ifReturn="{{true}}" navBarTitle="地址管理" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="settlement-content pad-zy20 border-box"><block wx:for="{{addressList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="section background-white radius30 mar-x40 pad-all25 border-box font30"><view data-event-opts="{{[['tap',[['changeAddr',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="addr-info mar-s20" catchtap="__e"><view class="txt mar-x20"><view class="font30 mar-x10">{{item.name}}<text style="margin-left:30rpx;">{{item.phone}}</text></view><text class="font24 color-8c">{{item.addressMsg}}</text></view><view class="addr-bottom font28 flex"><label class="radio flex"><radio checked="{{item.is_default}}" color="#febf00" data-event-opts="{{[['tap',[['chooseEv',['$0'],[[['addressList','',index,'id']]]]]]]}}" catchtap="__e"></radio>设为默认地址</label><view class="btns flex"><view data-event-opts="{{[['tap',[['openEdit',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="btn" bindtap="__e">编辑</view><view data-event-opts="{{[['tap',[['delAddress',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="btn" bindtap="__e">删除</view></view></view></view></view></block></view><view class="pull-btn background-white border-box"><view data-event-opts="{{[['tap',[['openAdd',['$event']]]]]}}" class="btn background-orange font36 radius30 flex" bindtap="__e">新增地址</view></view><view hidden="{{!(isShow)}}" class="pull-bg" style="background-color:rgba(0,0,0,.3);"></view><block wx:if="{{isShow}}"><view class="vip-box-bg border-box"><view class="vip-box radius20 background-white font30"><view class="title">收件人地址</view><view class="vip-list"><view class="vip-item mar-s20"><view class="tips color-99">姓名</view><input class="input" type="text" placeholder="请输入姓名" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindinput="__e"/></view><view class="vip-item mar-s40"><view class="tips color-99">电话</view><input class="input" type="number" placeholder="请输入联系电话" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/></view><view class="vip-item mar-s40"><view class="tips color-99">地址</view><picker mode="region" data-event-opts="{{[['change',[['change',['$event']]]]]}}" bindchange="__e"><view class="addr-input flex"><view class="input-box flex"><input class="input-flex clips1" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','province','$event',[]]]]]]}}" value="{{province}}" bindinput="__e"/><image src="/static/icon/icon-shop.png" mode="widthFix"></image></view><view class="input-box flex"><input class="input-flex clips1" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','city','$event',[]]]]]]}}" value="{{city}}" bindinput="__e"/><image src="/static/icon/icon-shop.png" mode="widthFix"></image></view><view class="input-box flex"><input class="input-flex clips1" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','county','$event',[]]]]]]}}" value="{{county}}" bindinput="__e"/><image src="/static/icon/icon-shop.png" mode="widthFix"></image></view></view></picker></view><view class="vip-item mar-s40"><view class="tips color-99">详细地址</view><input class="input" type="text" placeholder="请输入详细地址" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','address','$event',[]]]]]]}}" value="{{address}}" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['editAddress',['$0'],['id']]]]]}}" class="submit-btn font36 background-orange radius30 mar-s60 flex" bindtap="__e">确认保存</view><view data-event-opts="{{[['tap',[['closeEv',['$event']]]]]}}" class="close-btn" bindtap="__e"><image src="/static/icon/close-btn.png" mode="widthFix"></image></view></view></view></block></view></block>

View File

@ -275,7 +275,7 @@ var _default = {
onShareAppMessage: function onShareAppMessage(res) {
var shareObj = {
title: this.shopDetail.name,
path: uni.getStorageSync('page-path-options') + '?invite_code=' + uni.getStorageSync('invite_code'),
path: uni.getStorageSync('page-path-options') + '&invite_code=' + uni.getStorageSync('invite_code'),
imageUrl: this.shopDetail.images[0] };
// 返回shareObj