Browse Source

2023-3-18

master
guoxing 2 years ago
parent
commit
75579ba418
  1. 7
      mallplusui-uniapp-app/App.vue
  2. 6
      mallplusui-uniapp-app/common/api.js
  3. 4
      mallplusui-uniapp-app/manifest.json
  4. 2
      mallplusui-uniapp-app/pages.json
  5. 4
      mallplusui-uniapp-app/pages/index/index.vue
  6. 2
      mallplusui-uniapp-app/pages/index/messageDetail.vue
  7. 34
      mallplusui-uniapp-app/pages/index/messageList.vue
  8. 9
      mallplusui-uniapp-app/pages/order/createOrder.vue
  9. 5
      mallplusui-uniapp-app/pages/order/createStoreOrder.vue

7
mallplusui-uniapp-app/App.vue

@ -97,7 +97,7 @@
} else { } else {
// //
if (that.hasLogin) { if (index.state.hasLogin) {
// //
console.log("登录状态>>>>>>>>>>", message.payload.code) console.log("登录状态>>>>>>>>>>", message.payload.code)
that.goToMessageDetail(message.payload) that.goToMessageDetail(message.payload)
@ -175,6 +175,11 @@
console.log('hasLogin>>>', index.state.hasLogin) console.log('hasLogin>>>', index.state.hasLogin)
} }
if(userInfo){
index.state.hasVip = userInfo.memberLevelId == 1 ? false : true;
}
let isWeiXin = this.$common.isWeiXinBrowser() let isWeiXin = this.$common.isWeiXinBrowser()
if (isWeiXin) { if (isWeiXin) {

6
mallplusui-uniapp-app/common/api.js

@ -1,8 +1,8 @@
import store from '../store/index'; import store from '../store/index';
export default { export default {
// qq 237524947 wx15d4269d3210863d // qq 237524947 wx15d4269d3210863d
BASEURI: 'http://192.168.3.9:8083/api/', // BASEURI: 'http://je4r5e.natappfree.cc/api/',
// BASEURI: 'http://mall.yyundong.com/portalapi/api/', BASEURI: 'http://mall.yyundong.com/portalapi/api/',
// BASEURI: 'http://192.168.3.116:8083/api/', // BASEURI: 'http://192.168.3.116:8083/api/',
ADMINURI: 'http://mall.yyundong.com/adminapi/', ADMINURI: 'http://mall.yyundong.com/adminapi/',
ESURI: 'http://www.yyundong.com:8081/', ESURI: 'http://www.yyundong.com:8081/',
@ -63,7 +63,7 @@ export default {
getInviteData: 'single/user/getInviteData', getInviteData: 'single/user/getInviteData',
inviteUser: 'single/user/inviteUser', inviteUser: 'single/user/inviteUser',
inviteMoney: 'single/user/inviteMoney', inviteMoney: 'single/user/inviteMoney',
currentMember: 'single/user/currentMember', currentMember: 'single/user/currentMember',
updateMember: 'single/user/updateMember', updateMember: 'single/user/updateMember',
resetPassword: 'single/user/resetPassword', resetPassword: 'single/user/resetPassword',
schoolList: 'single/user/school/list', // 查询学校列表 schoolList: 'single/user/school/list', // 查询学校列表

4
mallplusui-uniapp-app/manifest.json

@ -2,8 +2,8 @@
"name" : "汇融云链", "name" : "汇融云链",
"appid" : "__UNI__FB2C9C4", "appid" : "__UNI__FB2C9C4",
"description" : "", "description" : "",
"versionName" : "1.0.1.1", "versionName" : "1.0.1.2",
"versionCode" : 1011, "versionCode" : 1012,
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
"usingComponents" : true, "usingComponents" : true,

2
mallplusui-uniapp-app/pages.json

@ -42,7 +42,7 @@
}, { }, {
"path": "pages/index/messageList", "path": "pages/index/messageList",
"style": { "style": {
// "enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "消息列表" "navigationBarTitleText": "消息列表"
} }

4
mallplusui-uniapp-app/pages/index/index.vue

@ -326,7 +326,7 @@
setTimeout(function() { setTimeout(function() {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
}, 2000); }, 2000);
}, },
onShareAppMessage() {}, onShareAppMessage() {},
onLoad(ops) { onLoad(ops) {
@ -650,6 +650,8 @@
let list = await Api.apiCall('get', Api.goods.goodsList, params); let list = await Api.apiCall('get', Api.goods.goodsList, params);
console.log("list>>>>", list)
let goodsList = list.records; let goodsList = list.records;
if (type === 'refresh') { if (type === 'refresh') {

2
mallplusui-uniapp-app/pages/index/messageDetail.vue

@ -5,7 +5,7 @@
<view class="bot-row"> <view class="bot-row">
<text>{{ info.code }}</text> <text>{{ info.code }}</text>
<text>{{ info.ctime | formatCreateTime }}</text> <text>{{ info.cdate}}</text>
</view> </view>
</view> </view>

34
mallplusui-uniapp-app/pages/index/messageList.vue

@ -8,15 +8,15 @@
</view> </view>
<view class="listcard-content"> <view class="listcard-content">
<view class="listcard-content_title"> <view class="listcard-content_title">
<text>{{item.code}}</text> <text>{{item.params}}</text>
<text class="text2">{{item.ctime | formatCreateTime }}</text> <text class="text2">{{item.cdate}}</text>
</view> </view>
<text class="listcard-content_title_text">{{item.params}}</text> <text class="listcard-content_title_text">{{item.content}}</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- <uni-load-more :status="loadingType"></uni-load-more> --> <uni-load-more :status="loadingType"></uni-load-more>
</view> </view>
</template> </template>
@ -31,6 +31,7 @@
data() { data() {
return { return {
pageNum: 1, pageNum: 1,
loadingType: 'more', //
pic1: "http://mall.yyundong.com/wl.png", pic1: "http://mall.yyundong.com/wl.png",
pic2: "http://mall.yyundong.com/tx.png", pic2: "http://mall.yyundong.com/tx.png",
pic3: "http://mall.yyundong.com/tz.png", pic3: "http://mall.yyundong.com/tz.png",
@ -59,6 +60,8 @@
// this.loadData(); // this.loadData();
}, },
onShow() { onShow() {
this.pageNum = 1;
this.goodsList = [];
this.loadData(); this.loadData();
}, },
onPageScroll(e) { onPageScroll(e) {
@ -73,6 +76,10 @@
onPullDownRefresh() { onPullDownRefresh() {
this.pageNum = 1; this.pageNum = 1;
this.loadData('refresh'); this.loadData('refresh');
setTimeout(function() {
uni.stopPullDownRefresh();
}, 2000);
}, },
// //
onReachBottom() { onReachBottom() {
@ -105,21 +112,21 @@
} else { } else {
this.loadingType = 'more'; this.loadingType = 'more';
} }
let params = { let params = {
// pageNum: this.pageNum pageNum: this.pageNum
}; };
console.log("pageNum>>>>>", this.pageNum)
let list = await Api.apiCall('get', Api.member.mesList, params); let list = await Api.apiCall('get', Api.member.mesList, params);
console.log("消息列表", list) console.log("消息列表", list)
this.goodsList = list; // this.goodsList = list;
// let goodsList = await this.$api.json('goodsList'); // let goodsList = await this.$api.json('goodsList');
// if (type === 'refresh') { if (type === 'refresh') {
// this.goodsList = []; this.goodsList = [];
// } }
// this.goodsList = this.goodsList.concat(goodsList);
this.goodsList = this.goodsList.concat(list.records);
console.log("消息列表>>>>>", this.goodsList.length)
//more nomore(20) //more nomore(20)
this.loadingType = this.goodsList.length > list.total ? 'nomore' : 'more'; this.loadingType = this.goodsList.length > list.total ? 'nomore' : 'more';
if (type === 'refresh') { if (type === 'refresh') {
@ -208,6 +215,7 @@
.text2 { .text2 {
color: #999; color: #999;
margin-right: 10px;
font-size: 18px; font-size: 18px;
} }

9
mallplusui-uniapp-app/pages/order/createOrder.vue

@ -309,7 +309,11 @@
this.couponList = data.couponHistoryDetailList; this.couponList = data.couponHistoryDetailList;
if (this.couponList.length > 0) { if (this.couponList.length > 0) {
this.coupon = this.couponList[0].coupon this.coupon = this.couponList[0].coupon
this.couponId = this.couponList[0].couponId;
this.memberCouponId = this.couponList[0].id;
} }
this.memberReceiveAddressList = data.memberReceiveAddressListaddress; this.memberReceiveAddressList = data.memberReceiveAddressListaddress;
@ -357,7 +361,7 @@
this.payType = type; this.payType = type;
}, },
async submit() { async submit() {
console.log('dubmit') console.log('submit')
let data; let data;
if (!this.addressId) { if (!this.addressId) {
this.$api.msg('请选择收货地址'); this.$api.msg('请选择收货地址');
@ -414,6 +418,9 @@
}; };
} }
params.source = this.getSource(); params.source = this.getSource();
console.log('params',params)
data = await Api.apiCall('post', Api.order.bookOrder, params); data = await Api.apiCall('post', Api.order.bookOrder, params);
} }
// //

5
mallplusui-uniapp-app/pages/order/createStoreOrder.vue

@ -444,6 +444,7 @@
page { page {
background: $page-color-base; background: $page-color-base;
padding-bottom: 100upx; padding-bottom: 100upx;
height: auto;
} }
.address-section { .address-section {
@ -504,7 +505,8 @@
.goods-section { .goods-section {
margin-top: 16upx; margin-top: 16upx;
background: #fff; background: #fff;
padding-bottom: 150px; padding-bottom: 1px;
margin-bottom: 350px;
.g-header { .g-header {
display: flex; display: flex;
@ -546,6 +548,7 @@
} }
.title { .title {
margin-top: 10px;
font-size: 30upx; font-size: 30upx;
color: $font-color-dark; color: $font-color-dark;
} }

Loading…
Cancel
Save