Commit a6aa477a by 张卓

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents 88138320 d16a56fe
<!-- 文字上下滚动 --> <!-- 文字上下滚动 -->
<template> <template>
<div <div
class="marquee" class="marquee-wrap"
v-if="targetShow" v-if="targetShow"
:style="[this.render?{'pointer-events':'none'}:'',{'top':datas.componentData.yPosition+'em'}]" :style="{'top':(datas.componentData.yPosition * 16) +'px'}"
> >
<div class="marquee_box"> <div class="marquee_box">
<div class="evaluate" :class="animate?'animation_in':'animation_out'"> <div class="evaluate" :class="animate?'animation_in':'animation_out'">
<img :src="selectImg | DFSImg(300,300)" alt /> <img :src="selectImg" alt />
<span>{{subName}}刚刚购买了一单</span> <span>{{subName}}刚刚购买了一单</span>
</div> </div>
</div> </div>
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
</template> </template>
<script> <script>
import { DFSImg} from '../../../utils/index.js'
let api; let api;
const app = getApp() const app = getApp()
export default { export default {
name: "shop-popup", name: "shop-popup",
...@@ -106,6 +108,8 @@ export default { ...@@ -106,6 +108,8 @@ export default {
this.selectname = this.marqueeList[this.selectIndex].customerNickname; this.selectname = this.marqueeList[this.selectIndex].customerNickname;
this.selectImg = this.marqueeList[this.selectIndex].customerHeadImage; this.selectImg = this.marqueeList[this.selectIndex].customerHeadImage;
this.selectImg = DFSImg(this.selectImg,300,300)
if (this.selectname.length > 1) { if (this.selectname.length > 1) {
this.subName = `${this.selectname.substr(0, 1)}****${this.selectname.charAt( this.subName = `${this.selectname.substr(0, 1)}****${this.selectname.charAt(
this.selectname.length - 1 this.selectname.length - 1
...@@ -141,8 +145,7 @@ export default { ...@@ -141,8 +145,7 @@ export default {
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
/* @import url(); 引入css类 */ .marquee-wrap {
.marquee {
font-size: 16px; font-size: 16px;
width: 100%; width: 100%;
align-items: center; align-items: center;
...@@ -151,7 +154,6 @@ export default { ...@@ -151,7 +154,6 @@ export default {
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
position: fixed; position: fixed;
// top: 10%;
left: 0px; left: 0px;
z-index: 1999; z-index: 1999;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment