Merge branch 'master' into xbx
This commit is contained in:
commit
20b1c0da43
2
App.vue
2
App.vue
@ -18,10 +18,10 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
/* #ifndef APP-PLUS-NVUE */
|
/* #ifndef APP-PLUS-NVUE */
|
||||||
@import "/static/css/normalize";
|
@import "/static/css/normalize";
|
||||||
/* #endif */
|
|
||||||
/* 顶部自定义导航留白 */
|
/* 顶部自定义导航留白 */
|
||||||
.status_bar {
|
.status_bar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: var(--status-bar-height);
|
height: var(--status-bar-height);
|
||||||
}
|
}
|
||||||
|
/* #endif */
|
||||||
</style>
|
</style>
|
||||||
|
@ -257,6 +257,15 @@ export default {
|
|||||||
if(msg) Object.assign(params, {msg: msg});
|
if(msg) Object.assign(params, {msg: msg});
|
||||||
return vm.$u.post('Order/buyer_cancel', params);
|
return vm.$u.post('Order/buyer_cancel', params);
|
||||||
},
|
},
|
||||||
|
// add_refund
|
||||||
|
refundOrder({ order_id, goods_id, refund_amount, refund_type = 1 } = {}) {
|
||||||
|
return vm.$u.post('order/add_refund', {
|
||||||
|
order_id: order_id,
|
||||||
|
goods_id: goods_id,
|
||||||
|
refund_amount: refund_amount,
|
||||||
|
refund_type: refund_type,
|
||||||
|
});
|
||||||
|
},
|
||||||
// 删除订单
|
// 删除订单
|
||||||
deleteOrder({ order_id }) {
|
deleteOrder({ order_id }) {
|
||||||
return vm.$u.post('order/order_delete', { order_id: order_id });
|
return vm.$u.post('order/order_delete', { order_id: order_id });
|
||||||
|
@ -105,12 +105,12 @@
|
|||||||
.action {
|
.action {
|
||||||
z-index: 19;
|
z-index: 19;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0rpx;
|
right: -10rpx;
|
||||||
bottom: 55rpx;
|
bottom: 60rpx;
|
||||||
// width: 234rpx;
|
// width: 234rpx;
|
||||||
|
border-radius: 6rpx;
|
||||||
background: rgba(255,255,255,1);
|
background: rgba(255,255,255,1);
|
||||||
box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(35,24,21,0.12);
|
box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(35,24,21,0.12);
|
||||||
border-radius: 6rpx;
|
|
||||||
.bubble {
|
.bubble {
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
@ -128,9 +128,10 @@
|
|||||||
box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(35,24,21,0.12);
|
box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(35,24,21,0.12);
|
||||||
}
|
}
|
||||||
> view {
|
> view {
|
||||||
padding: 9rpx 12rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
height: 52rpx;
|
||||||
|
padding: 10rpx 20rpx;
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
border-bottom: 2rpx #ECECEC solid;
|
border-bottom: 2rpx #ECECEC solid;
|
||||||
}
|
}
|
||||||
|
@ -3,22 +3,22 @@
|
|||||||
<u-empty mode="list" v-if="!list.length" color="#000" img-width="200" font-size="30" margin-top="300"></u-empty>
|
<u-empty mode="list" v-if="!list.length" color="#000" img-width="200" font-size="30" margin-top="300"></u-empty>
|
||||||
<u-swipe-action
|
<u-swipe-action
|
||||||
v-for="(item, index) in list" :key="index"
|
v-for="(item, index) in list" :key="index"
|
||||||
:index='index'
|
:index='item.fav_id'
|
||||||
:show="item.show"
|
:show="item.show"
|
||||||
:options="options"
|
:options="options"
|
||||||
@click="removeFavorite"
|
@click="removeFavorite"
|
||||||
@open="open"
|
@open="open"
|
||||||
>
|
>
|
||||||
<view class="item u-border-bottom">
|
<view class="item u-border-bottom">
|
||||||
<image src="@/pageE/static/mine/23.png"></image>
|
<image :src="item.goods_image"></image>
|
||||||
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
|
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
|
||||||
<view class="title-wrap">
|
<view class="title-wrap">
|
||||||
<view class="item-top u-line-2">木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子</view>
|
<view class="item-top u-line-2">{{ item.goods_name }}</view>
|
||||||
<view class="item-bottom">
|
<view class="item-bottom">
|
||||||
<view class="item-price">¥99</view>
|
<view class="item-price">¥{{ item.favlog_price }}</view>
|
||||||
<view class="item-date">
|
<view class="item-date">
|
||||||
<image src="@/pageE/static/mine/26.png"></image>
|
<image src="@/pageE/static/mine/26.png"></image>
|
||||||
<view>2020-05-17</view>
|
<view>{{ item.fav_time }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -30,20 +30,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: [
|
list: [],
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
show: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
show: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
show: false,
|
|
||||||
}
|
|
||||||
],
|
|
||||||
show: false,
|
show: false,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
@ -61,17 +48,18 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getGoodsFavoritesList() {
|
getGoodsFavoritesList() {
|
||||||
this.$u.api.getFavoritesList().then(res => {
|
this.$u.api.getFavoritesList().then(res => {
|
||||||
if(res.errCode == 0) {}
|
if(res.errCode == 0) {
|
||||||
|
this.list = res.data;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
removeFavorite(id) {
|
removeFavorite(id) {
|
||||||
this.$u.api.removeFavorite({
|
this.$u.api.removeFavorite({
|
||||||
id: id
|
id: id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
this.$u.toast(res.message);
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.getGoodsFavoritesList();
|
this.getGoodsFavoritesList();
|
||||||
} else {
|
|
||||||
this.$u.toast(res.message);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -82,7 +82,17 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
applyRefund() {
|
applyRefund() {
|
||||||
|
let params = {
|
||||||
|
order_id: this.order.order_id,
|
||||||
|
// goods_id: goods_id,
|
||||||
|
// refund_amount: refund_amount,
|
||||||
|
}
|
||||||
|
this.$u.api.refundOrder(params).then(res => {
|
||||||
|
this.$u.toast(res.message);
|
||||||
|
if(res.errCode == 0) {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
confirmReceive() {
|
confirmReceive() {
|
||||||
this.$u.api.confirmReceive({
|
this.$u.api.confirmReceive({
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<text>¥{{ info.goods_price }}</text>
|
<text>¥{{ info.goods_price }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<image class="img" :src="info.groupbuy_image1"></image>
|
<image class="img" :src="info.pintuan_image"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -38,7 +38,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- denglu QQ weixin -->
|
<!-- denglu QQ weixin -->
|
||||||
<view class="buttones">
|
<view class="buttones">
|
||||||
<view @click="loginOn">{{login}}</view>
|
<view @click="loginOn" class="btn">{{login}}</view>
|
||||||
|
<view class="a-go" @click="goIndex">暂不登录</view>
|
||||||
</view>
|
</view>
|
||||||
<u-mask :show="show" @click="show = false">
|
<u-mask :show="show" @click="show = false">
|
||||||
<view class="warp">
|
<view class="warp">
|
||||||
@ -302,6 +303,11 @@
|
|||||||
},
|
},
|
||||||
tochange() {
|
tochange() {
|
||||||
|
|
||||||
|
},
|
||||||
|
goIndex() {
|
||||||
|
uni.switchTab({
|
||||||
|
url: "/pages/index/index"
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -446,7 +452,8 @@
|
|||||||
height: 22rpx;
|
height: 22rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttones>view {
|
.buttones {
|
||||||
|
.btn {
|
||||||
width: 628rpx;
|
width: 628rpx;
|
||||||
height: 98rpx;
|
height: 98rpx;
|
||||||
background: rgba(255, 120, 15, 1) !important;
|
background: rgba(255, 120, 15, 1) !important;
|
||||||
@ -460,6 +467,13 @@
|
|||||||
border-color: rgba(255, 120, 15, 1) !important;
|
border-color: rgba(255, 120, 15, 1) !important;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.a-go {
|
||||||
|
margin-top: 24rpx;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #f2f2f2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.warp {
|
.warp {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -37,15 +37,21 @@
|
|||||||
<text>{{ item.member_nickname }}</text>
|
<text>{{ item.member_nickname }}</text>
|
||||||
<text class="time">{{ item.create_time }}</text>
|
<text class="time">{{ item.create_time }}</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="reply" @click="openKeyInput(item)">回复</text>
|
<text class="reply" @click="openKeyInput(item,index)">回复</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
{{ item.content }}
|
{{ item.content }}
|
||||||
</view>
|
</view>
|
||||||
|
<view class="child-content">
|
||||||
|
<view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view class="more-reply" v-if="item.reply_count">展开更多回复<u-icon name="arrow-down"></u-icon></view>
|
||||||
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<view class="no-data" v-else>111</view>
|
<view class="no-data" v-else>111</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view class="editing" @click="openKeyInput()">
|
<view class="editing" @click="openKeyInput">
|
||||||
<input type="text" value="" :placeholder="edit_text" disabled="disabled" />
|
<input type="text" value="" :placeholder="edit_text" disabled="disabled" />
|
||||||
<text>发送</text>
|
<text>发送</text>
|
||||||
</view>
|
</view>
|
||||||
@ -53,7 +59,7 @@
|
|||||||
<!-- 评论box -->
|
<!-- 评论box -->
|
||||||
<u-popup v-model="is_edit" mode="bottom" border-radius="10" height="100rpx">
|
<u-popup v-model="is_edit" mode="bottom" border-radius="10" height="100rpx">
|
||||||
<view class="edit-box">
|
<view class="edit-box">
|
||||||
<input type="text" :placeholder="edit_text" :focus="is_focus" @focus="focus" v-model="send_value">
|
<input type="text" :placeholder="edit_text_other" :focus="is_focus" @focus="focus" v-model="send_value">
|
||||||
<text @click="sendComment">发送</text>
|
<text @click="sendComment">发送</text>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
@ -218,7 +224,13 @@
|
|||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: 0 20rpx 10rpx 90rpx;
|
padding: 0 20rpx 10rpx 90rpx;
|
||||||
border-bottom: 1px solid #ececec;
|
}
|
||||||
|
.child-content {
|
||||||
|
margin: 6rpx 90rpx 6rpx;
|
||||||
|
.more-reply {
|
||||||
|
font-size: 22rpx;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.no-data {
|
.no-data {
|
||||||
@ -372,13 +384,28 @@ export default {
|
|||||||
cartList: [],
|
cartList: [],
|
||||||
cart_len: 0,
|
cart_len: 0,
|
||||||
edit_text: "有爱评论,说点好听的 ~",
|
edit_text: "有爱评论,说点好听的 ~",
|
||||||
|
edit_text_other: "有爱评论,说点好听的 ~",
|
||||||
commentList: [], // 评论
|
commentList: [], // 评论
|
||||||
|
allList: {}, // 全部子评论
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option){
|
onLoad(option){
|
||||||
this.article_id = option.id;
|
this.article_id = option.id;
|
||||||
this.articleInfo(this.article_id);
|
this.articleInfo(this.article_id);
|
||||||
},
|
},
|
||||||
|
// 监听返回按钮
|
||||||
|
onBackPress() {
|
||||||
|
if (this.cart_type) {
|
||||||
|
this.cart_type = !this.cart_type;
|
||||||
|
} else if (this.is_comment) {
|
||||||
|
this.is_comment = !this.is_comment;
|
||||||
|
} else if (this.is_edit) {
|
||||||
|
this.is_edit = !this.is_edit;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
methods:{
|
methods:{
|
||||||
// 发现详情
|
// 发现详情
|
||||||
articleInfo(article_id){
|
articleInfo(article_id){
|
||||||
@ -414,22 +441,39 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 打开评论输入
|
// 打开评论输入
|
||||||
openKeyInput(data) {
|
openKeyInput(data,index) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
this.is_edit = true;
|
this.is_edit = true;
|
||||||
this.is_focus = true;
|
this.is_focus = true;
|
||||||
|
this.comment_id = index;
|
||||||
|
if (data.id) {
|
||||||
|
this.edit_text_other = "回复@" + data.member_nickname;
|
||||||
|
this.pid = data.id;
|
||||||
|
this.reply_id = data.member_id;
|
||||||
|
} else {
|
||||||
|
this.edit_text_other = "有爱评论,说点好听的 ~";
|
||||||
|
this.pid = "";
|
||||||
|
this.reply_id = "";
|
||||||
|
}
|
||||||
|
// console.log(this.pid, this.edit_text_other);
|
||||||
},
|
},
|
||||||
// 发布评论
|
// 发布评论
|
||||||
sendComment(data) {
|
sendComment() {
|
||||||
this.$u.post("article/articleAddComment",{
|
this.$u.post("article/articleAddComment",{
|
||||||
article_id: this.article_id,
|
article_id: this.article_id,
|
||||||
content: this.send_value,
|
content: this.send_value,
|
||||||
pid: data.id,
|
pid: this.pid,
|
||||||
reply_id: data.member_id,
|
reply_id: this.reply_id,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
// console.log(res.data.data);
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
this.is_edit = false;
|
this.is_edit = false;
|
||||||
|
if (res.data.data.pid) {
|
||||||
|
this.commentList[this.comment_id].reply_count = true;
|
||||||
|
this.allList[this.comment_id].unshift(res.data.data);
|
||||||
|
} else {
|
||||||
|
this.commentList.unshift(res.data.data);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$u.toast(res.message);
|
this.$u.toast(res.message);
|
||||||
}
|
}
|
||||||
|
@ -372,7 +372,7 @@ export default {
|
|||||||
if(type == 'involvement') {
|
if(type == 'involvement') {
|
||||||
Object.assign(params, {
|
Object.assign(params, {
|
||||||
pintuan_id: this.id,
|
pintuan_id: this.id,
|
||||||
pintuangroup_id: this.involvemenGroupInfo[0].pintuangroup_id
|
pintuangroup_id: this.involvemenGroupInfo[0].pintuangroup_id,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const userId = uni.getStorageSync('user_info').member.member_id;
|
const userId = uni.getStorageSync('user_info').member.member_id;
|
||||||
|
@ -258,8 +258,10 @@ export default {
|
|||||||
type: 'redirect',
|
type: 'redirect',
|
||||||
url: '/pageC/cart/cashier',
|
url: '/pageC/cart/cashier',
|
||||||
params: {
|
params: {
|
||||||
|
ifcart: params.ifcart,
|
||||||
pay_sn: res.data.pay_sn,
|
pay_sn: res.data.pay_sn,
|
||||||
price: res.data.order_total_amount,
|
price: res.data.order_total_amount,
|
||||||
|
order_id: res.data.order_list[0].order_id,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
<image :src="item.icon"></image>
|
<image :src="item.icon"></image>
|
||||||
<text class="name">{{ item.pay_way }}</text>
|
<text class="name">{{ item.pay_way }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="radio-view" :class="pay_way == item.name ? 'active' : 'default'">
|
<view class="" :class="pay_way == item.name ? 'active' : 'default'">
|
||||||
<u-radio :name="item.name" active-color="#FF780F" :disabled="item.disabled"></u-radio>
|
<u-radio class="radio-view" shape="circle" :name="item.name" active-color="#FF780F" :disabled="item.disabled"></u-radio>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
@ -39,13 +39,18 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
pay_way: 'wxpay_app',
|
pay_way: 'wxpay_app',
|
||||||
pay_sn: '',
|
|
||||||
price: '',
|
price: '',
|
||||||
|
pay_sn: '',
|
||||||
|
ifcart: '',
|
||||||
|
order_id: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.pay_sn = option.pay_sn;
|
console.log(option);
|
||||||
|
this.ifcart = option.ifcart;
|
||||||
this.price = option.price;
|
this.price = option.price;
|
||||||
|
this.pay_sn = option.pay_sn;
|
||||||
|
this.order_id = option.order_id;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
radioGroupChange(e) {
|
radioGroupChange(e) {
|
||||||
@ -55,14 +60,43 @@ export default {
|
|||||||
// uni.getProvider({service: 'payment'})
|
// uni.getProvider({service: 'payment'})
|
||||||
// },
|
// },
|
||||||
payOrder(provider, orderInfo) {
|
payOrder(provider, orderInfo) {
|
||||||
|
let me = this;
|
||||||
uni.requestPayment({
|
uni.requestPayment({
|
||||||
provider: provider,
|
provider: provider,
|
||||||
orderInfo: orderInfo, //订单数据
|
orderInfo: orderInfo, //订单数据
|
||||||
success: function (res) {
|
success: (res) => {
|
||||||
console.log('success:' + JSON.stringify(res));
|
console.log('success:' + JSON.stringify(res));
|
||||||
|
this.$u.toast("支付成功!");
|
||||||
|
setTimeout(function(){
|
||||||
|
if (Boolean(parseInt(me.ifcart))) {
|
||||||
|
me.$u.route({
|
||||||
|
type: 'redirect',
|
||||||
|
url: '/pageE/order/Index',
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
me.$u.route({
|
||||||
|
type: 'redirect',
|
||||||
|
url: '/pageE/order/Details?oid=' + me.order_id,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},2000)
|
||||||
},
|
},
|
||||||
fail: function (err) {
|
fail: (err) => {
|
||||||
console.log('fail:' + JSON.stringify(err));
|
console.log('fail:' + JSON.stringify(err));
|
||||||
|
this.$u.toast("支付失败,支付已取消!");
|
||||||
|
setTimeout(function(){
|
||||||
|
if (Boolean(parseInt(me.ifcart))) {
|
||||||
|
me.$u.route({
|
||||||
|
type: 'redirect',
|
||||||
|
url: '/pageE/order/Index',
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
me.$u.route({
|
||||||
|
type: 'redirect',
|
||||||
|
url: '/pageE/order/Details?oid=' + me.order_id,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},2000)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -115,15 +149,18 @@ export default {
|
|||||||
/deep/ .u-radio-group {
|
/deep/ .u-radio-group {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.radio-view {
|
.u-radio__icon-wrap {
|
||||||
padding: 6rpx;
|
width: 30rpx !important;
|
||||||
border-radius: 50%;
|
height: 30rpx !important;
|
||||||
|
padding: 4rpx;
|
||||||
|
border: 1px solid #FF780F;
|
||||||
}
|
}
|
||||||
.active {
|
.active {
|
||||||
border: 2rpx solid rgba(255,120,15,1);
|
|
||||||
}
|
}
|
||||||
.default {
|
.default {
|
||||||
border: 2rpx solid rgba(219,219,219,1);
|
}
|
||||||
|
.radio-view {
|
||||||
|
|
||||||
}
|
}
|
||||||
.u-radio {
|
.u-radio {
|
||||||
.u-icon {
|
.u-icon {
|
||||||
@ -135,13 +172,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.pay-item {
|
.pay-item {
|
||||||
height: 98rpx;
|
|
||||||
background: rgba(255,255,255,1);
|
|
||||||
padding: 24rpx 30rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
height: 98rpx;
|
||||||
|
padding: 24rpx 30rpx;
|
||||||
margin-bottom: 2rpx;
|
margin-bottom: 2rpx;
|
||||||
|
background: rgba(255,255,255,1);
|
||||||
.pay-way {
|
.pay-way {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -156,7 +156,7 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.$u.toast(res.message);
|
// this.$u.toast(res.message);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="concerns">
|
<view class="concerns">
|
||||||
<view>
|
<view class="concerns-container">
|
||||||
<view v-for="(info, index) in list" :key="index">
|
<view v-for="(info, index) in list" :key="index">
|
||||||
<view class="daren-item" @click="toDetailsPage">
|
<view class="daren-item" @click="toDetailsPage">
|
||||||
<image class="head" :src="info.member_avatar"></image>
|
<image class="head" :src="info.friend_tomavatar"></image>
|
||||||
<text class="name">{{ info.member_nickname }}</text>
|
<text class="name">{{ info.friend_tomname }}</text>
|
||||||
<text class="zhuangtai">状态: {{ info.live_status == 1 ? '正在直播' : '未开播' }}</text>
|
<!-- <text class="zhuangtai">状态: {{ info.live_status == 1 ? '正在直播' : '未开播' }}</text> -->
|
||||||
<view class="guanzhu" @click="changeType(info.member_id)" v-if="info.is_attention == 1">关注</view>
|
<view class="guanzhu" @click="changeType(info.friend_frommid)" v-if="info.friend_followstate == 1">关注</view>
|
||||||
<view class="guanzhu action" @click="changeType(info.member_id)" v-else >未关注</view>
|
<view class="guanzhu action" @click="changeType(info.friend_frommid)" v-else>未关注</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<u-empty mode="list" v-if="!list.length" color="#000" img-width="200" font-size="30" margin-top="300"></u-empty>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -17,21 +18,32 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: [
|
list: []
|
||||||
{
|
|
||||||
member_avatar: '',
|
|
||||||
member_nickname: '111',
|
|
||||||
live_status: 0,
|
|
||||||
member_id: 1,
|
|
||||||
is_attention: 1,
|
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
|
onShow() {
|
||||||
|
this.attentionMemberList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
attentionMemberList() {
|
||||||
|
this.$u.api.attentionMemberList().then(res => {
|
||||||
|
if(res.errCode == 0) {
|
||||||
|
this.list = res.data;
|
||||||
|
} else {
|
||||||
|
this.list = [];
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.concerns {
|
.concerns {
|
||||||
|
.concerns-container {
|
||||||
|
padding: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
.daren-item{
|
.daren-item{
|
||||||
width: 215rpx;
|
width: 215rpx;
|
||||||
height: 282rpx;
|
height: 282rpx;
|
||||||
@ -74,5 +86,6 @@ export default {
|
|||||||
background: #f3f3f3;
|
background: #f3f3f3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -3,20 +3,20 @@
|
|||||||
<u-empty mode="list" v-if="!list.length" color="#000" img-width="200" font-size="30" margin-top="300"></u-empty>
|
<u-empty mode="list" v-if="!list.length" color="#000" img-width="200" font-size="30" margin-top="300"></u-empty>
|
||||||
<u-swipe-action
|
<u-swipe-action
|
||||||
v-for="(item, index) in list" :key="index"
|
v-for="(item, index) in list" :key="index"
|
||||||
:index='index'
|
:index='item.favlog_id'
|
||||||
:show="item.show"
|
:show="item.show"
|
||||||
:options="options"
|
:options="options"
|
||||||
@click="removeFavorite"
|
@click="removeFavorite"
|
||||||
@open="open"
|
@open="open"
|
||||||
>
|
>
|
||||||
<view class="item u-border-bottom">
|
<view class="item u-border-bottom">
|
||||||
<image src="@/pageE/static/mine/23.png"></image>
|
<image :src="item.store_avatar"></image>
|
||||||
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
|
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
|
||||||
<view class="title-wrap">
|
<view class="title-wrap">
|
||||||
<view class="item-name u-line-1">胖胖定制此层wrap在此为必写的,否则可能会出现标题定位错误</view>
|
<view class="item-name u-line-1">{{ item.store_name }}</view>
|
||||||
<view class="item-date">
|
<view class="item-date">
|
||||||
<image src="@/pageE/static/mine/26.png"></image>
|
<image src="@/pageE/static/mine/26.png"></image>
|
||||||
<view>2020-05-17</view>
|
<view>{{ item.fav_time | date }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -48,14 +48,14 @@ export default {
|
|||||||
type: 2 // 店铺 type: 2
|
type: 2 // 店铺 type: 2
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
removeFavorite(id = 18) {
|
removeFavorite(id) {
|
||||||
|
console.log(id);
|
||||||
this.$u.api.removeFavorite({
|
this.$u.api.removeFavorite({
|
||||||
id: id
|
id: id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
this.$u.toast(res.message);
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.getStoreFavoritesList();
|
this.getStoreFavoritesList();
|
||||||
} else {
|
|
||||||
this.$u.toast(res.message);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -235,9 +235,9 @@ export default {
|
|||||||
title = "订单详情"
|
title = "订单详情"
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
uni.setNavigationBarTitle({
|
// uni.setNavigationBarTitle({
|
||||||
title: title
|
// title: title
|
||||||
});
|
// });
|
||||||
},
|
},
|
||||||
payNow() {
|
payNow() {
|
||||||
this.$u.route('/pageC/cart/cashier', {
|
this.$u.route('/pageC/cart/cashier', {
|
||||||
|
@ -90,7 +90,7 @@ export default {
|
|||||||
},
|
},
|
||||||
chooseDate(e) {
|
chooseDate(e) {
|
||||||
// let time = e.year + '年' + e.month + '月' + e.day + '日' + e.hour + '时' + e.minute + '分'
|
// let time = e.year + '年' + e.month + '月' + e.day + '日' + e.hour + '时' + e.minute + '分'
|
||||||
let time = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute
|
let time = e.year + '/' + e.month + '/' + e.day + ' ' + e.hour + ':' + e.minute
|
||||||
this.time = time
|
this.time = time
|
||||||
},
|
},
|
||||||
showToast(message, type) {
|
showToast(message, type) {
|
||||||
|
@ -57,10 +57,10 @@
|
|||||||
<view class="order-view order-area" @click="showAddress=true">
|
<view class="order-view order-area" @click="showAddress=true">
|
||||||
<view class="title">省市区:</view>
|
<view class="title">省市区:</view>
|
||||||
<input type="text" v-model="area" disabled />
|
<input type="text" v-model="area" disabled />
|
||||||
<view class="location">
|
<!-- <view class="location">
|
||||||
<image src="../static/mine/28.png"></image>
|
<image src="../static/mine/28.png"></image>
|
||||||
<view>定位</view>
|
<view>定位</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="order-view order-address">
|
<view class="order-view order-address">
|
||||||
<view class="title">详细地址:</view>
|
<view class="title">详细地址:</view>
|
||||||
@ -113,10 +113,10 @@
|
|||||||
<view class="order-view order-area" @click="showAddress=true">
|
<view class="order-view order-area" @click="showAddress=true">
|
||||||
<view class="title">省市区:</view>
|
<view class="title">省市区:</view>
|
||||||
<input type="text" v-model="area" disabled />
|
<input type="text" v-model="area" disabled />
|
||||||
<view class="location">
|
<!-- <view class="location">
|
||||||
<image src="../static/mine/28.png"></image>
|
<image src="../static/mine/28.png"></image>
|
||||||
<view>定位</view>
|
<view>定位</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="order-view order-address">
|
<view class="order-view order-address">
|
||||||
<view class="title">详细地址:</view>
|
<view class="title">详细地址:</view>
|
||||||
@ -248,8 +248,8 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.debounce = true;
|
this.debounce = true;
|
||||||
this.current = 0;
|
// this.current = 0;
|
||||||
this.swiperCurrent = 0;
|
// this.swiperCurrent = 0;
|
||||||
this.showPopup = false;
|
this.showPopup = false;
|
||||||
this.choose = false;
|
this.choose = false;
|
||||||
},
|
},
|
||||||
@ -313,7 +313,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(this.current == 0) {
|
if(this.current == 0) {
|
||||||
if(JSON.stringify(this.checkedGoods) != '{}') {
|
if(JSON.stringify(this.checkedGoods) == '{}') {
|
||||||
this.showToast('订单不能为空', 'warning');
|
this.showToast('订单不能为空', 'warning');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -322,7 +322,7 @@ export default {
|
|||||||
this.showToast('衣服状况不能为空', 'warning');
|
this.showToast('衣服状况不能为空', 'warning');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(JSON.stringify(this.type) != '{}') {
|
if(JSON.stringify(this.type) == '{}') {
|
||||||
this.showToast('商品类型不能为空', 'warning');
|
this.showToast('商品类型不能为空', 'warning');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -349,7 +349,7 @@ export default {
|
|||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
confirmSend() {
|
confirmSend() {
|
||||||
if(!this.validationParams) return false;
|
if(!this.validationParams()) return false;
|
||||||
let params = {
|
let params = {
|
||||||
tid: this.type.value,
|
tid: this.type.value,
|
||||||
member_name: this.name,
|
member_name: this.name,
|
||||||
@ -655,6 +655,7 @@ export default {
|
|||||||
.radio-view {
|
.radio-view {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
.radio {
|
.radio {
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
<view>
|
<view>
|
||||||
<view class="status_bar"></view>
|
<view class="status_bar"></view>
|
||||||
<view class="index">
|
<view class="index">
|
||||||
<navigator url="/pageB/photo/index?id=28">bbb</navigator>
|
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<view class="sosuo"></view>
|
<view class="sosuo"></view>
|
||||||
<view class="tabs">
|
<view class="tabs">
|
||||||
@ -83,7 +82,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<view>店铺收藏</view>
|
<view>店铺收藏</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="toOtherPage('/mine/ImageTextCollection')">
|
<view @click="toOtherPage('/mine/ImageTextCollection')">
|
||||||
<view>9</view>
|
<view>{{ userInfo.member_fav_article_num || 0 }}</view>
|
||||||
<view>图文收藏</view>
|
<view>图文收藏</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="toOtherPage('/mine/Integral')">
|
<view @click="toOtherPage('/mine/Integral')">
|
||||||
|
Loading…
Reference in New Issue
Block a user