Compare commits
23 Commits
xbx-new
...
6039328f54
| Author | SHA1 | Date | |
|---|---|---|---|
|
6039328f54
|
|||
|
e98ad66060
|
|||
|
97c9774cc4
|
|||
|
839b1728f0
|
|||
|
36f0675689
|
|||
|
18c99cd668
|
|||
| af612ef89e | |||
| 95c55de38b | |||
| d06394f6ad | |||
|
f4de9fe13b
|
|||
| 2512923891 | |||
| 4ab89711b2 | |||
| 4876ddb383 | |||
|
|
9b5fca48a2 | ||
| 81955085b5 | |||
| ffa18c92d2 | |||
| b63a84149e | |||
| 1aee3f3320 | |||
| 6d0c6a6b15 | |||
|
3e87a5aaf5
|
|||
|
52e6489a2c
|
|||
|
92771d8174
|
|||
|
60a619fa7b
|
5
App.vue
5
App.vue
@@ -28,7 +28,10 @@
|
|||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
this.getVersion();
|
// this.getVersion();
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
|
||||||
},
|
},
|
||||||
onHide(){
|
onHide(){
|
||||||
|
|
||||||
|
|||||||
@@ -86,11 +86,12 @@ export default {
|
|||||||
return vm.$u.post('Goods/getGoodsClassRecommend');
|
return vm.$u.post('Goods/getGoodsClassRecommend');
|
||||||
},
|
},
|
||||||
// goodsListByClassId
|
// goodsListByClassId
|
||||||
goodsListByClassId({ gc_id, page, order }) {
|
goodsListByClassId({ gc_id, page, order, keyword }) {
|
||||||
return vm.$u.post('goods/goodsListByClassId', {
|
return vm.$u.post('goods/goodsListByClassId', {
|
||||||
gc_id: gc_id,
|
gc_id: gc_id,
|
||||||
page: page,
|
page: page,
|
||||||
order: order,
|
order: order,
|
||||||
|
keyword:keyword
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 商品推荐
|
// 商品推荐
|
||||||
@@ -364,6 +365,14 @@ export default {
|
|||||||
addrefundall({order_id,reason_info}) {
|
addrefundall({order_id,reason_info}) {
|
||||||
return vm.$u.post('order/add_refund_all',{order_id,reason_info})
|
return vm.$u.post('order/add_refund_all',{order_id,reason_info})
|
||||||
},
|
},
|
||||||
|
//提示文字
|
||||||
|
tips(){
|
||||||
|
return vm.$u.post('Shop/tips')
|
||||||
|
},
|
||||||
|
//内容
|
||||||
|
tipsinfo({document_code}){
|
||||||
|
return vm.$u.post('Shop/tipInfo',{document_code})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="c-coupon" v-if="goodsClass.length">
|
<view class="c-coupon" v-if="goodsClass.length" @click="use">
|
||||||
<view :class="couponInfo.voucher_state != 1 ? 'coupon-unable' : 'coupon-usable'">
|
<view :class="couponInfo.voucher_state != 1 ? 'coupon-unable' : 'coupon-usable'" :style="{'width': type ? '650rpx' : '' }">
|
||||||
<view class="info-type" :style="{ backgroundImage: 'url(' + (couponInfo.voucher_state == 1 ? '/static/image/mine/30.png' : '/static/image/mine/31.png') + ')', backgroundSize:'contain', backgroundRepeat: 'no-repeat' }">
|
<view class="info-type" :style="{ backgroundImage: 'url(' + (couponInfo.voucher_state == 1 ? '/static/image/mine/30.png' : '/static/image/mine/31.png') + ')', backgroundSize:'contain', backgroundRepeat: 'no-repeat' }">
|
||||||
<div class="wrap_left_top" v-if="couponInfo.type == 1">{{ couponInfo.vouchertemplate_id == 1 ? '新人专享' : '平台优惠券' }}</div>
|
<div class="wrap_left_top" v-if="couponInfo.type == 1">{{ couponInfo.vouchertemplate_id == 1 ? '新人专享' : '平台优惠券' }}</div>
|
||||||
<div class="wrap_left_top" v-else-if="couponInfo.type == 2">店铺优惠券</div>
|
<div class="wrap_left_top" v-else-if="couponInfo.type == 2">店铺优惠券</div>
|
||||||
@@ -14,12 +14,13 @@
|
|||||||
<view class="info-integral">兑换积分:{{ couponInfo.voucher_points }}积分</view>
|
<view class="info-integral">兑换积分:{{ couponInfo.voucher_points }}积分</view>
|
||||||
<view class="info-date">有效期{{ couponInfo.voucher_startdate }}-{{ couponInfo.voucher_enddate }}</view>
|
<view class="info-date">有效期{{ couponInfo.voucher_startdate }}-{{ couponInfo.voucher_enddate }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon-btn">
|
<view class="coupon-btn" :style="{'right': type ? '110rpx' : '' }">
|
||||||
<text v-if="couponInfo.voucher_state == 1" @click="use">立即使用</text>
|
<text v-if="couponInfo.voucher_state == 1">立即使用</text>
|
||||||
<image v-if="couponInfo.voucher_state == 2" src="/static/image/mine/28.png"></image>
|
<image v-if="couponInfo.voucher_state == 2" src="/static/image/mine/28.png"></image>
|
||||||
<image v-if="couponInfo.voucher_state == 3" src="/static/image/mine/29.png"></image>
|
<image v-if="couponInfo.voucher_state == 3" src="/static/image/mine/29.png"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<image v-if="type" style="width:35rpx;height:35rpx;margin-left:14rpx;" :src="'/static/image/mine/' + (sel ? '41.png' : '42.png') "></image>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -37,6 +38,8 @@ export default {
|
|||||||
status: Number,
|
status: Number,
|
||||||
couponInfo: Object,
|
couponInfo: Object,
|
||||||
goodsClass: Array,
|
goodsClass: Array,
|
||||||
|
type:Boolean,
|
||||||
|
sel:Boolean
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// console.log(this.goodsClass);
|
// console.log(this.goodsClass);
|
||||||
@@ -53,6 +56,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
use() {
|
use() {
|
||||||
|
if(this.couponInfo.voucher_state != 1) return;
|
||||||
this.$emit('use', this.couponInfo);
|
this.$emit('use', this.couponInfo);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -63,6 +67,8 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
@mixin coupon-image($url) {
|
@mixin coupon-image($url) {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 194rpx;
|
height: 194rpx;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<view class="swiper-item uni-bg-red">
|
<view class="swiper-item uni-bg-red">
|
||||||
<image :src=" 'https://' + item.launch_path"></image>
|
<image :src=" 'https://' + item.launch_path"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-init" v-if="parseInt(index) == 2" @click="goNext">立即体验</view>
|
<view class="btn-init" v-if="parseInt(index) == list.length" @click="goNext">立即体验</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name" : "德铭阳光",
|
"name" : "德铭阳光",
|
||||||
"appid" : "__UNI__EBFF00A",
|
"appid" : "__UNI__EBFF00A",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.1",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
|
|||||||
@@ -37,6 +37,10 @@
|
|||||||
<text>{{ goodsInfo.is_collect == 1 ? '已收藏' : '收藏' }}</text>
|
<text>{{ goodsInfo.is_collect == 1 ? '已收藏' : '收藏' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="shuliang">
|
||||||
|
<text>历史销售数量:{{goodsInfo.goods_salenum}}</text>
|
||||||
|
<text>库存仅剩数量:{{goodsInfo.goods_storage}}</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="hr"></view>
|
<view class="hr"></view>
|
||||||
<!-- <navs :value="领券"></navs> -->
|
<!-- <navs :value="领券"></navs> -->
|
||||||
@@ -776,7 +780,15 @@ export default {
|
|||||||
.goods-name {
|
.goods-name {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.shuliang{
|
||||||
|
padding-top: 33rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color:#656565;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
.price-collect {
|
.price-collect {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -1252,6 +1264,7 @@ export default {
|
|||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #ff3131;
|
color: #ff3131;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.num {
|
.num {
|
||||||
|
|||||||
28
pageB/tipsinfo/index.vue
Normal file
28
pageB/tipsinfo/index.vue
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<template>
|
||||||
|
<view class="u-content">
|
||||||
|
<u-parse :html="info"></u-parse>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
info:""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(o){
|
||||||
|
console.log(o.id)
|
||||||
|
this.$u.api.tipsinfo({document_code:o.id}).then((res)=>{
|
||||||
|
console.log(JSON.stringify(res))
|
||||||
|
uni.setNavigationBarTitle({
|
||||||
|
title: res.data.document_title
|
||||||
|
});
|
||||||
|
this.info = res.data.document_content
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -70,13 +70,13 @@
|
|||||||
<scroll-view class="coupon-choose" scroll-y style="height: 50vh;" v-if="this.couponType.type == 1">
|
<scroll-view class="coupon-choose" scroll-y style="height: 50vh;" v-if="this.couponType.type == 1">
|
||||||
<view class="title">优惠券详情</view>
|
<view class="title">优惠券详情</view>
|
||||||
<view class="text">平台优惠券</view>
|
<view class="text">平台优惠券</view>
|
||||||
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_all_list" :key="index"></Coupon>
|
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_all_list" :key="index" :type="true" :sel="coupon.sel"></Coupon>
|
||||||
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_all_list.length" style="height: 200rpx"></u-empty>
|
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_all_list.length" style="height: 200rpx"></u-empty>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<scroll-view class="coupon-choose" scroll-y style="height: 50vh;" v-if="this.couponType.type == 2">
|
<scroll-view class="coupon-choose" scroll-y style="height: 50vh;" v-if="this.couponType.type == 2">
|
||||||
<view class="title">优惠券详情</view>
|
<view class="title">优惠券详情</view>
|
||||||
<view class="text">店铺优惠券</view>
|
<view class="text">店铺优惠券</view>
|
||||||
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_list[this.couponType.store_id]" :key="index"></Coupon>
|
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_list[this.couponType.store_id]" :key="index" :type="true" :sel="coupon.sel"></Coupon>
|
||||||
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_list[this.couponType.store_id].length" style="height: 200rpx"></u-empty>
|
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_list[this.couponType.store_id].length" style="height: 200rpx"></u-empty>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
@@ -282,15 +282,42 @@ export default {
|
|||||||
this.couponStatus = true;
|
this.couponStatus = true;
|
||||||
},
|
},
|
||||||
useCoupon(coupon) {
|
useCoupon(coupon) {
|
||||||
if(this.couponType.type == 1) this.choiceCoupon = coupon;
|
console.log(coupon)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if(this.couponType.type == 1){
|
||||||
|
|
||||||
|
this.choiceCoupon = {}
|
||||||
|
for(let i in this.orderInfo.store_voucher_all_list){
|
||||||
|
if(this.orderInfo.store_voucher_all_list[i].voucher_id == coupon.voucher_id && !this.orderInfo.store_voucher_all_list[i].sel){
|
||||||
|
this.orderInfo.store_voucher_all_list[i].sel = true
|
||||||
|
this.choiceCoupon = coupon;
|
||||||
|
}else{
|
||||||
|
this.orderInfo.store_voucher_all_list[i].sel = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$forceUpdate()
|
||||||
|
}
|
||||||
if(this.couponType.type == 2) {
|
if(this.couponType.type == 2) {
|
||||||
Object.assign(this.storeCoupon, {
|
this.storeCoupon = {}
|
||||||
[this.couponType.store_id]: coupon
|
for(let i in this.orderInfo.store_voucher_list[this.couponType.store_id]){
|
||||||
})
|
console.log(this.orderInfo.store_voucher_list[this.couponType.store_id][i])
|
||||||
|
if(this.orderInfo.store_voucher_list[this.couponType.store_id][i].voucher_id == coupon.voucher_id && !this.orderInfo.store_voucher_list[this.couponType.store_id][i].sel){
|
||||||
|
this.orderInfo.store_voucher_list[this.couponType.store_id][i].sel = true
|
||||||
|
Object.assign(this.storeCoupon, {
|
||||||
|
[this.couponType.store_id]: coupon
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
this.orderInfo.store_voucher_list[this.couponType.store_id][i].sel = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
// console.log(this.choiceCoupon);
|
// console.log(this.choiceCoupon);
|
||||||
// console.log(this.storeCoupon);
|
// console.log(this.storeCoupon);
|
||||||
this.couponStatus = false;
|
// this.couponStatus = false;
|
||||||
this.setTotalPrice(); // 计算总价
|
this.setTotalPrice(); // 计算总价
|
||||||
},
|
},
|
||||||
getFreight() {
|
getFreight() {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="classify-goods">
|
<view class="classify-goods">
|
||||||
|
<u-search style="padding: 0 30rpx" placeholder="日照香炉生紫烟" v-model="keyword" @search="select" @custom="select"></u-search>
|
||||||
<view class="tab-container">
|
<view class="tab-container">
|
||||||
<view class="salenum" :class="{ 'current' : current == 0 }" @click="switchCurrent(0)">销量</view>
|
<view class="salenum" :class="{ 'current' : current == 0 }" @click="switchCurrent(0)">销量</view>
|
||||||
<view class="price" :class="{ 'current' : current == 1 }" @click="switchCurrent(1)">
|
<view class="price" :class="{ 'current' : current == 1 }" @click="switchCurrent(1)">
|
||||||
@@ -42,6 +43,8 @@ export default {
|
|||||||
scrollHeight: '',
|
scrollHeight: '',
|
||||||
loadStatus: 'loadmore',
|
loadStatus: 'loadmore',
|
||||||
timer: true, // 防止上拉加载短时间内多次调用
|
timer: true, // 防止上拉加载短时间内多次调用
|
||||||
|
keyword:"",
|
||||||
|
sel:""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -80,6 +83,7 @@ export default {
|
|||||||
gc_id: this.cid,
|
gc_id: this.cid,
|
||||||
page: this.page,
|
page: this.page,
|
||||||
order: sort,
|
order: sort,
|
||||||
|
keyword:this.sel
|
||||||
})
|
})
|
||||||
this.timer = true;
|
this.timer = true;
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
@@ -123,6 +127,11 @@ export default {
|
|||||||
id: id,
|
id: id,
|
||||||
type: 1 // 商品详情 商品类型 1普通 2拼团 3秒杀 4优惠券
|
type: 1 // 商品详情 商品类型 1普通 2拼团 3秒杀 4优惠券
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
select(){
|
||||||
|
this.sel = this.keyword;
|
||||||
|
this.page = 1;
|
||||||
|
this.goodsListByClassId({ laod: 'reload' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss">
|
||||||
page {
|
page {
|
||||||
background-color: #ECECEC;
|
background-color: #ECECEC;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,6 +128,8 @@
|
|||||||
this.friend = JSON.parse(options.id);
|
this.friend = JSON.parse(options.id);
|
||||||
this.currentUser = this.imService.currentUser;
|
this.currentUser = this.imService.currentUser;
|
||||||
let privateMessages = this.imService.getPrivateMessages(this.friend.uuid);
|
let privateMessages = this.imService.getPrivateMessages(this.friend.uuid);
|
||||||
|
this.imService.uid = this.friend.uuid;
|
||||||
|
|
||||||
this.messages = privateMessages.sentMessages;
|
this.messages = privateMessages.sentMessages;
|
||||||
this.pendingMessages = privateMessages.pendingMessages;
|
this.pendingMessages = privateMessages.pendingMessages;
|
||||||
|
|
||||||
@@ -153,6 +155,7 @@
|
|||||||
this.imService.onPrivateHistoryLoad = (friendId, messages) =>{};
|
this.imService.onPrivateHistoryLoad = (friendId, messages) =>{};
|
||||||
//将未读消息数清零
|
//将未读消息数清零
|
||||||
this.imService.resetFriendUnReadMessage(this.friend);
|
this.imService.resetFriendUnReadMessage(this.friend);
|
||||||
|
this.imService.uid = 0;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
bindtapInput(){
|
bindtapInput(){
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
2. 新增Modal模态框组件<br>
|
2. 新增Modal模态框组件<br>
|
||||||
3. 新增压窗屏组件,可以在APP上以弹窗的形式遮盖导航栏和底部tabbar<br>
|
3. 新增压窗屏组件,可以在APP上以弹窗的形式遮盖导航栏和底部tabbar<br>
|
||||||
`,
|
`,
|
||||||
|
isAutoUpdate: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@@ -45,7 +46,13 @@
|
|||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
closeModal() {
|
closeModal() {
|
||||||
uni.navigateBack();
|
const pages = getCurrentPages();
|
||||||
|
// console.log(pages);
|
||||||
|
if(pages.length == 2) {
|
||||||
|
this.$u.route('/pageA/welcome/welcome');
|
||||||
|
} else {
|
||||||
|
uni.navigateBack();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export default {
|
|||||||
},
|
},
|
||||||
updateVersion() {
|
updateVersion() {
|
||||||
this.$u.route('/pageE/setting/updateVersion', {
|
this.$u.route('/pageE/setting/updateVersion', {
|
||||||
status: this.status
|
status: this.status,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
pages.json
11
pages.json
@@ -80,6 +80,17 @@
|
|||||||
{
|
{
|
||||||
"root": "pageB",
|
"root": "pageB",
|
||||||
"pages": [
|
"pages": [
|
||||||
|
{
|
||||||
|
"path": "tipsinfo/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"app-plus":{
|
||||||
|
"titleNView":{
|
||||||
|
"backgroundColor":"#ffffff"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "playVideo/index",
|
"path": "playVideo/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -262,7 +262,8 @@
|
|||||||
loading: '努力加载中',
|
loading: '努力加载中',
|
||||||
nomore: '实在没有了'
|
nomore: '实在没有了'
|
||||||
},
|
},
|
||||||
refresher:true
|
refresher:true,
|
||||||
|
zqie:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -354,7 +355,11 @@
|
|||||||
tabLiveList() {
|
tabLiveList() {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "loading..."
|
title: "loading..."
|
||||||
})
|
})
|
||||||
|
if(this.zqie){
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
this.zqie = true;
|
||||||
this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
|
this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
|
||||||
// uni.stopPullDownRefresh();
|
// uni.stopPullDownRefresh();
|
||||||
this.status_live = "loading";
|
this.status_live = "loading";
|
||||||
@@ -371,6 +376,7 @@
|
|||||||
} else if (res.data.data.length == 0 && this.live_page > 1) {
|
} else if (res.data.data.length == 0 && this.live_page > 1) {
|
||||||
this.status_live = "nomore";
|
this.status_live = "nomore";
|
||||||
} else {
|
} else {
|
||||||
|
console.log(this.live_page,1223)
|
||||||
this.tabLiveLists = this.tabLiveLists.concat(res.data.data);
|
this.tabLiveLists = this.tabLiveLists.concat(res.data.data);
|
||||||
console.log(this.tabLiveLists)
|
console.log(this.tabLiveLists)
|
||||||
}
|
}
|
||||||
@@ -381,6 +387,8 @@
|
|||||||
} else {
|
} else {
|
||||||
this.status_live = "nomore"
|
this.status_live = "nomore"
|
||||||
}
|
}
|
||||||
|
this.zqie = false;
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<u-swiper :list="list" mode="dot" @click="clickImage"></u-swiper>
|
<u-swiper :list="list" mode="dot" @click="clickImage"></u-swiper>
|
||||||
</view>
|
</view>
|
||||||
<view class="chengnuo">
|
<view class="chengnuo">
|
||||||
<view>
|
<!-- <view>
|
||||||
<image src="/static/image/shop/4.png"></image>
|
<image src="/static/image/shop/4.png"></image>
|
||||||
<text>免费洗衣</text>
|
<text>免费洗衣</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -32,6 +32,10 @@
|
|||||||
<view>
|
<view>
|
||||||
<image src="/static/image/shop/7.png"></image>
|
<image src="/static/image/shop/7.png"></image>
|
||||||
<text>上门取件</text>
|
<text>上门取件</text>
|
||||||
|
</view> -->
|
||||||
|
<view v-for="(item,index) in tips" :key="index" @click="totips(item.document_code)">
|
||||||
|
<image :src="item.file_name"></image>
|
||||||
|
<text>{{item.document_title}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="fenlei">
|
<view class="fenlei">
|
||||||
@@ -95,12 +99,14 @@
|
|||||||
pinTuanPush: {}, // 拼团推荐
|
pinTuanPush: {}, // 拼团推荐
|
||||||
activityInfo: {},
|
activityInfo: {},
|
||||||
areaList: [], // 位置信息
|
areaList: [], // 位置信息
|
||||||
|
tips:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.getShopTopList();
|
this.getShopTopList();
|
||||||
this.getLocation(); // 获取定位
|
this.getLocation(); // 获取定位
|
||||||
this.getStoreActivity();
|
this.getStoreActivity();
|
||||||
|
this.gettips()
|
||||||
// this.area = uni.getStorageSync("address") || "请选择";
|
// this.area = uni.getStorageSync("address") || "请选择";
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -110,6 +116,21 @@
|
|||||||
this.getAllLoaction(); // 获取位置
|
this.getAllLoaction(); // 获取位置
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
totips(id){
|
||||||
|
this.$u.route({
|
||||||
|
type:"to",
|
||||||
|
url:"/pageB/tipsinfo/index",
|
||||||
|
params:{
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
gettips(){
|
||||||
|
this.$u.api.tips().then((res)=>{
|
||||||
|
console.log(res)
|
||||||
|
this.tips = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
sousuo() {
|
sousuo() {
|
||||||
// console.log(123)
|
// console.log(123)
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<view class="hot" :style="{'top': top + 10 * rpx}">
|
<view class="hot" :style="{'top': top + 10 * rpx}">
|
||||||
<text class="hottext">{{room.onlineUsers.users.length}}</text>
|
<text class="hottext">{{room.onlineUsers.users.length}}</text>
|
||||||
</view>
|
</view>
|
||||||
<image class="cart" src="../../static/cart.png" @click="show = true">
|
<image v-if="list.length != 0" class="cart" src="../../static/cart.png" @click="show = true">
|
||||||
|
|
||||||
</image>
|
</image>
|
||||||
<view class="danmufasongbox" @click="danmu = $store.state.hasLogin">
|
<view class="danmufasongbox" @click="danmu = $store.state.hasLogin">
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
<!-- <image class="liketap" src="../../static/like.png" @click=""> -->
|
<!-- <image class="liketap" src="../../static/like.png" @click=""> -->
|
||||||
|
|
||||||
<view class="danmuinputbox" v-if="danmu">
|
<view class="danmuinputbox" v-if="danmu">
|
||||||
<input type="text" focus="true" style="width:600rpx;margin-left:30rpx;font-size:26rpx" maxlength="20" @blur="danmu=false" :focus="danmu" v-model="danmutext">
|
<input type="text" focus="true" style="width:600rpx;margin-left:30rpx;font-size:26rpx" maxlength="100" @blur="danmu=false" :focus="danmu" v-model="danmutext">
|
||||||
<view class="danmufasong" @click="sendMessage(room.MessageType.CHAT,danmutext)">
|
<view class="danmufasong" @click="sendMessage(room.MessageType.CHAT,danmutext)">
|
||||||
<text style="font-size:24rpx;color:#fff">发送</text>
|
<text style="font-size:24rpx;color:#fff">发送</text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1008 B After Width: | Height: | Size: 1.4 KiB |
BIN
static/image/mine/41.png
Normal file
BIN
static/image/mine/41.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
BIN
static/image/mine/42.png
Normal file
BIN
static/image/mine/42.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
@@ -8,6 +8,8 @@
|
|||||||
import GoEasyIM from './goeasy-im-1.0.9';
|
import GoEasyIM from './goeasy-im-1.0.9';
|
||||||
// import GoEasyIM from './goeasy-im-1.1.1';
|
// import GoEasyIM from './goeasy-im-1.1.1';
|
||||||
import restApi from './restapi';
|
import restApi from './restapi';
|
||||||
|
import music from './music.mp3'
|
||||||
|
|
||||||
|
|
||||||
function Friend(uuid, name, avatar,time = "", text = "",date = "",unReadMessage = 0) {
|
function Friend(uuid, name, avatar,time = "", text = "",date = "",unReadMessage = 0) {
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
@@ -52,6 +54,8 @@ function IMService() {
|
|||||||
|
|
||||||
//群聊消息记录,map格式,每个群对应一个数组
|
//群聊消息记录,map格式,每个群对应一个数组
|
||||||
this.groupMessages = {};
|
this.groupMessages = {};
|
||||||
|
|
||||||
|
this.uid = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 监听器们
|
* 监听器们
|
||||||
@@ -283,6 +287,14 @@ IMService.prototype.initialIMListeners = function () {
|
|||||||
friends.sort(paixu)
|
friends.sort(paixu)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(message.senderId != this.uid){
|
||||||
|
const innerAudioContext = uni.createInnerAudioContext();
|
||||||
|
innerAudioContext.autoplay = true;
|
||||||
|
innerAudioContext.src = music;
|
||||||
|
innerAudioContext.onPlay(() => {
|
||||||
|
console.log('开始播放');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
let that = this
|
let that = this
|
||||||
if(!friend && friend == undefined){
|
if(!friend && friend == undefined){
|
||||||
|
|||||||
BIN
static/music.mp3
Normal file
BIN
static/music.mp3
Normal file
Binary file not shown.
Reference in New Issue
Block a user