|
@@ -68,7 +68,7 @@
|
|
|
class="prize-img"></el-image>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
- <h3 :title="item.name" class="title" @click="handleClickGood(item.skuId)">{{ item.name }}</h3>
|
|
|
+ <h3 style="color: #1e80ff;" :title="item.name" class="title" @click="handleClickGood(item.skuId)">{{ item.name }}</h3>
|
|
|
<p class="desc"><span v-if="item.deliveryTypeName">{{ item.deliveryTypeName }}</span></p>
|
|
|
<p class="redeem-info">
|
|
|
<span title="积分" class="price">
|
|
@@ -162,16 +162,21 @@
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
+ <el-dialog title="物品详情" :visible.sync="dialogVisible" width="40%">
|
|
|
+ <div v-html="data.skuDesc"></div>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { integralList, festivalList, notice, welfareType, dictList } from "@/api/allApi";
|
|
|
+import { integralInfo,integralList, festivalList, notice, welfareType, dictList } from "@/api/allApi";
|
|
|
import { getTab } from '@/utils/auth'
|
|
|
import { debounce } from '@/utils/index'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogVisible: false,
|
|
|
+ data:{},
|
|
|
bannerList: [],
|
|
|
page: 1,
|
|
|
pages: 1,
|
|
@@ -240,18 +245,25 @@ export default {
|
|
|
this.getNotice(this.activeName);
|
|
|
},
|
|
|
methods: {
|
|
|
+ getDataInfo(id){
|
|
|
+ integralInfo({skuId:id}).then(response => {
|
|
|
+ this.data = response.data.data;
|
|
|
+ }).catch(() => {})
|
|
|
+ },
|
|
|
getBannerList(){
|
|
|
dictList({dictType:'index_lbt'}).then(response=>{
|
|
|
this.bannerList = response.data.data;
|
|
|
})
|
|
|
},
|
|
|
handleClickGood(id) {
|
|
|
- this.$router.push({
|
|
|
- path: '/home/pointsMall/goodDetail',
|
|
|
- query: {
|
|
|
- id: id,
|
|
|
- }
|
|
|
- });
|
|
|
+ this.getDataInfo(id);
|
|
|
+ this.dialogVisible = true;
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/home/pointsMall/goodDetail',
|
|
|
+ // query: {
|
|
|
+ // id: id,
|
|
|
+ // }
|
|
|
+ // });
|
|
|
},
|
|
|
handleFilter() {
|
|
|
this.page = 1;
|