代码提交

feature/v-xuexi
wangdong 8 months ago
parent 9ef0ec86f2
commit 032d3160e1
  1. 2
      mixins/config.js
  2. 20
      pages/activity/event.vue
  3. 2
      pages/special/member_recharge.vue
  4. 2
      pages/store/goodsCate.vue
  5. 1
      pages/topic/question_sheet.vue

@ -5,7 +5,7 @@ const { IMAGE_ASSETS_URL } = config;
export default { export default {
methods: { methods: {
getImgPath(path) { getImgPath(path) {
return IMAGE_ASSETS_URL + path; return path.indexOf('http') > -1 ? path : IMAGE_ASSETS_URL + path;
} }
} }
} }

@ -4,7 +4,7 @@
<view class="form-section"> <view class="form-section">
<form> <form>
<label :class="{ required: item.is_required }" v-for="(item, index) in event" :key="item.id"> <label :class="{ required: item.is_required }" v-for="(item, index) in event" :key="item.id">
<view>{{ item.event_name }}</view> <view>{{ item.event_name }}</view>
<input v-if="item.event_type === 1" v-model.trim="item.event_value" <input v-if="item.event_type === 1" v-model.trim="item.event_value"
:placeholder="'请输入' + item.event_name" type="text"> :placeholder="'请输入' + item.event_name" type="text">
<input v-else-if="item.event_type === 4" v-model.trim="item.event_value" <input v-else-if="item.event_type === 4" v-model.trim="item.event_value"
@ -346,13 +346,29 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.active-event { .activity-event {
backrgound: #f5f5f5; backrgound: #f5f5f5;
.form-section { .form-section {
width: 690rpx; width: 690rpx;
background: #fff; background: #fff;
border-radius: 10rpx; border-radius: 10rpx;
margin: 20rpx auto; margin: 20rpx auto;
padding: 30rpx 40rpx;
uni-label {
padding: 0;
margin-bottom: 26rpx;
&:last-child {
margin-bottom: 0;
}
}
input {
// background: #f7f7f7;
height: 100%;
flex: 0 0 400rpx;
margin-left: auto;
border-radius: 10rpx;
padding: 0 20rpx;
}
} }
} }
.activity-event .form-section uni-label uni-label { .activity-event .form-section uni-label uni-label {

@ -3,7 +3,7 @@
<NavBar title="会员管理" backGround="#100C09" titleFontColor='#FFFFFF' backIcon='/static/icon/arrow-left-white.png' /> <NavBar title="会员管理" backGround="#100C09" titleFontColor='#FFFFFF' backIcon='/static/icon/arrow-left-white.png' />
<view class="member-recharge"> <view class="member-recharge">
<view v-if="userInfo" class=" boxs user-section flex flex-center-x"> <view v-if="userInfo" class=" boxs user-section flex flex-center-x">
<image :src="userInfo.avatar" /> <image :src="getImgPath(userInfo.avatar)" />
<view class="text"> <view class="text">
<view class="name">{{ userInfo.nickname }}</view> <view class="name">{{ userInfo.nickname }}</view>
<view v-if="userInfo.level && userInfo.is_permanent" class="info">永久会员</view> <view v-if="userInfo.level && userInfo.is_permanent" class="info">永久会员</view>

@ -94,7 +94,7 @@
case 'learning': case 'learning':
let pages = getCurrentPages(); let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]; let prevPage = pages[pages.length - 2];
prevPage.$vm.learningData.exam.examName = con.name; prevPage.$vm.learningData.exam.name = con.name;
prevPage.$vm.learningData.exam.grade_id = con.grade_id; prevPage.$vm.learningData.exam.grade_id = con.grade_id;
prevPage.$vm.learningData.exam.subject_id = con.id; prevPage.$vm.learningData.exam.subject_id = con.id;
uni.navigateBack(); uni.navigateBack();

@ -82,7 +82,6 @@ export default {
this.test_id = test_id; this.test_id = test_id;
this.record_id = record_id; this.record_id = record_id;
this.is_analysis = parseInt(is_analysis); this.is_analysis = parseInt(is_analysis);
console.log(this.is_analysis, 85);
if (index) { if (index) {
this.index = parseInt(index); this.index = parseInt(index);
} }

Loading…
Cancel
Save