618活动修改
This commit is contained in:
142
common/commonJS.js
Normal file
142
common/commonJS.js
Normal file
@@ -0,0 +1,142 @@
|
|||||||
|
|
||||||
|
import uniCopy from '@/js_sdk/xb-copy/uni-copy.js'
|
||||||
|
import $http from '@/config/requestConfig'
|
||||||
|
import { mapState, mapMutations } from "vuex";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
...mapMutations(["setUserInfo"]),
|
||||||
|
|
||||||
|
showToast(title, icon) {
|
||||||
|
return uni.showToast({
|
||||||
|
title: title,
|
||||||
|
icon: icon ? icon : 'none'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//拨打电话
|
||||||
|
handleMakingPhoneCalls(value, title) {
|
||||||
|
uni.showModal({
|
||||||
|
title: title ? title : '联系我们',
|
||||||
|
content: value,
|
||||||
|
confirmText: '确认',
|
||||||
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: value, //电话号码
|
||||||
|
success: function (e) {
|
||||||
|
console.log(e);
|
||||||
|
},
|
||||||
|
fail: function (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//复制内容
|
||||||
|
handleCopy(value, title) {
|
||||||
|
uniCopy({
|
||||||
|
content: value,
|
||||||
|
success: (res) => {
|
||||||
|
uni.showToast({
|
||||||
|
title: title + '复制成功',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
error: (e) => {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
//用户协议
|
||||||
|
async getAgreement(id) {
|
||||||
|
console.log('id at line 56:', id)
|
||||||
|
var data = {
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
var result = {
|
||||||
|
title:'',
|
||||||
|
content:''
|
||||||
|
}
|
||||||
|
await $http
|
||||||
|
.request({
|
||||||
|
url: "sys/agreement/getAgreement",
|
||||||
|
method: "POST",
|
||||||
|
data: data,
|
||||||
|
header: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
}).then((res) => {
|
||||||
|
console.log('res at line 111:', res)
|
||||||
|
if (res.code == 0) {
|
||||||
|
result = res.agreement
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
return result
|
||||||
|
},
|
||||||
|
async getCheckCourseStatus(data) {
|
||||||
|
var result
|
||||||
|
await $http
|
||||||
|
.post('app/phone.do?getCheckCourseStatus', {
|
||||||
|
customerType
|
||||||
|
:
|
||||||
|
"D",
|
||||||
|
token
|
||||||
|
: uni.getStorageSync("token")
|
||||||
|
,
|
||||||
|
customerOid
|
||||||
|
: uni.getStorageSync("customerOid"),
|
||||||
|
oid: data.oid
|
||||||
|
})
|
||||||
|
.then(async res => {
|
||||||
|
result = res.obj
|
||||||
|
})
|
||||||
|
return result
|
||||||
|
},
|
||||||
|
// 退出登录
|
||||||
|
signOut() {
|
||||||
|
uni.showModal({
|
||||||
|
title: "提示",
|
||||||
|
content: "确定要退出当前账户吗?",
|
||||||
|
success: function (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
setUserInfo({ token: null });
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/user/login",
|
||||||
|
});
|
||||||
|
} else if (res.cancel) {
|
||||||
|
// 取消操作
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 注销账户
|
||||||
|
logout() {
|
||||||
|
let that = this;
|
||||||
|
uni.showModal({
|
||||||
|
title: "提示",
|
||||||
|
content: "确定要注销当前账户吗?",
|
||||||
|
success: function (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
uni.showModal({
|
||||||
|
title: "提示",
|
||||||
|
showCancel: false,
|
||||||
|
content: `注销申请已提交成功,请联系客服进行后续操作:022-24142321`,
|
||||||
|
success: function (res1) {
|
||||||
|
if (res1.confirm) {
|
||||||
|
that.signOut();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else if (res.cancel) {
|
||||||
|
// 取消操作
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -2,12 +2,12 @@ let baseUrl = "";
|
|||||||
let socketUrl = "";
|
let socketUrl = "";
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
//开发环境
|
//开发环境
|
||||||
//baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
||||||
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
//baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
||||||
} else if (process.env.NODE_ENV === 'production') {
|
} else if (process.env.NODE_ENV === 'production') {
|
||||||
//生产环境
|
//生产环境
|
||||||
//baseUrl = "https://api.nuttyreading.com/";
|
baseUrl = "https://api.nuttyreading.com/";
|
||||||
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
//baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
||||||
}
|
}
|
||||||
const courtConfig = {
|
const courtConfig = {
|
||||||
//微信公众号APPID
|
//微信公众号APPID
|
||||||
|
|||||||
10
main.js
10
main.js
@@ -16,8 +16,8 @@ import {
|
|||||||
Vue.prototype.$getHours = nowHour
|
Vue.prototype.$getHours = nowHour
|
||||||
|
|
||||||
// 地址
|
// 地址
|
||||||
Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
//Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
||||||
//Vue.prototype.$baseUrl = "https://api.nuttyreading.com/"
|
Vue.prototype.$baseUrl = "https://api.nuttyreading.com/"
|
||||||
|
|
||||||
// 安卓安卓包下载地址
|
// 安卓安卓包下载地址
|
||||||
// Vue.prototype.$apkUrl = "https://www.nuttyreading.com/nuttyreading.apk" // 本地地址
|
// Vue.prototype.$apkUrl = "https://www.nuttyreading.com/nuttyreading.apk" // 本地地址
|
||||||
@@ -59,6 +59,10 @@ Vue.prototype.$base = base;
|
|||||||
//挂载全局http请求
|
//挂载全局http请求
|
||||||
import $http from '@/config/requestConfig'
|
import $http from '@/config/requestConfig'
|
||||||
Vue.prototype.$http = $http;
|
Vue.prototype.$http = $http;
|
||||||
|
|
||||||
|
import commonJS from '@/common/commonJS.js'
|
||||||
|
Vue.prototype.$commonJS = commonJS
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
//挂载全局微信分享
|
//挂载全局微信分享
|
||||||
import {
|
import {
|
||||||
@@ -87,6 +91,8 @@ import commonCoupon from '@/pages/component/commonComponents/coupon/index.vue'
|
|||||||
Vue.component('common-coupon', commonCoupon);
|
Vue.component('common-coupon', commonCoupon);
|
||||||
import commonList from '@/pages/component/commonComponents/list.vue'
|
import commonList from '@/pages/component/commonComponents/list.vue'
|
||||||
Vue.component('common-list', commonList);
|
Vue.component('common-list', commonList);
|
||||||
|
import commonGoodsNav from '@/pages/component/commonComponents/goodsNav.vue'
|
||||||
|
Vue.component('common-goods-nav', commonGoodsNav);
|
||||||
import commonAdvertisement from '@/pages/component/commonComponents/advertisement.vue'
|
import commonAdvertisement from '@/pages/component/commonComponents/advertisement.vue'
|
||||||
Vue.component('common-advertisement', commonAdvertisement);
|
Vue.component('common-advertisement', commonAdvertisement);
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
"src" : "图片路径"
|
"src" : "图片路径"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versionName" : "1.2.71",
|
"versionName" : "1.2.72",
|
||||||
"versionCode" : 1271,
|
"versionCode" : 1272,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
"ignoreVersion" : true
|
"ignoreVersion" : true
|
||||||
|
|||||||
@@ -164,6 +164,13 @@
|
|||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/detail/orderLCont",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "订单详情",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/user/bindPhone",
|
"path": "pages/user/bindPhone",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
97
pages/component/commonComponents/goodsNav.vue
Normal file
97
pages/component/commonComponents/goodsNav.vue
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
<template>
|
||||||
|
<view class="goods_nav">
|
||||||
|
<view class="left">
|
||||||
|
<view v-for="(v,i) in iconList" class="icon_item" v-if="iconList.length>0">
|
||||||
|
<u-icon :name="v.icon" :color="v.infoColor" size="22" v-if="v.iconType" style="margin:0 auto"
|
||||||
|
@click="clickIcon(v)"></u-icon>
|
||||||
|
|
||||||
|
<uni-icons :type="v.icon" size="22" :color="v.infoColor" style="margin:0 auto" v-else> </uni-icons>
|
||||||
|
<view :style="`color:${v.infoColor};`">{{ v.text }}</view>
|
||||||
|
</view>
|
||||||
|
<slot name="leftSlot"></slot>
|
||||||
|
</view>
|
||||||
|
<view class="right">
|
||||||
|
<view class="button" v-for="(v,i) in customButton"
|
||||||
|
:style="`background:${v.backgroundColor} !important;color:${v.color};width:${v.width}`"
|
||||||
|
@click="submit(v)">
|
||||||
|
{{ v.text }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<slot name="bottomSlot"></slot>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import $http from '@/config/requestConfig.js';
|
||||||
|
import {
|
||||||
|
mapState
|
||||||
|
} from 'vuex';
|
||||||
|
export default {
|
||||||
|
props: ['iconList', 'customButton'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['userInfo']),
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submit(v) {
|
||||||
|
this.$emit('submit', v)
|
||||||
|
},
|
||||||
|
clickIcon(v) {
|
||||||
|
this.$emit('clickIcon', v)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
onBackPress() {
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
plus.key.hideSoftKeybord();
|
||||||
|
// #endif
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.goods_nav {
|
||||||
|
background-color: #fff;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.left {
|
||||||
|
height: 100%;
|
||||||
|
float: left;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.richDetail {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
float: right;
|
||||||
|
width: 240rpx;
|
||||||
|
border-radius: 100rpx;
|
||||||
|
line-height: 70rpx;
|
||||||
|
text-align: center;
|
||||||
|
background: linear-gradient(90deg, rgb(254, 96, 53), rgb(239, 18, 36));
|
||||||
|
color: rgb(255, 255, 255);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon_item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
1254
pages/detail/orderLCont.vue
Normal file
1254
pages/detail/orderLCont.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@
|
|||||||
<view v-if="tab_muJian==0">
|
<view v-if="tab_muJian==0">
|
||||||
<view class="AC_con">
|
<view class="AC_con">
|
||||||
<view class="AC_jilu PM_font">充值消费记录</view>
|
<view class="AC_jilu PM_font">充值消费记录</view>
|
||||||
<view v-for="(item,index) in MoneyRecord" class="AC_List">
|
<view v-for="(item,index) in MoneyRecord" class="AC_List" @click="goClick(item)">
|
||||||
<view class="AC_title">
|
<view class="AC_title">
|
||||||
{{item.orderType}}
|
{{item.orderType}}
|
||||||
<view>
|
<view>
|
||||||
@@ -225,6 +225,14 @@
|
|||||||
},
|
},
|
||||||
//方法
|
//方法
|
||||||
methods: {
|
methods: {
|
||||||
|
//列表跳转到详情
|
||||||
|
goClick(data){
|
||||||
|
if(data.relationId){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/detail/orderLCont?orderId=" + data.relationId
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
// 获取
|
// 获取
|
||||||
getData() {
|
getData() {
|
||||||
if(!this.iosHide){
|
if(!this.iosHide){
|
||||||
@@ -356,10 +364,9 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.AC_List:last-child{
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.couponList {
|
.couponList {
|
||||||
|
|||||||
BIN
static/icon/pay_3.png
Normal file
BIN
static/icon/pay_3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user