| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <template>
- <view class="share_div">
- <uv-row>
- <uv-col span="10" class="text" align="center">
- 心脑血管早期筛查,简单易得,有利无害,分享给朋友家人。
- </uv-col>
- <uv-col span="2">
- <view class="" @click="dosharewechat" align="center">
- <uv-image class="img" src="/static/image/wxfriend.png" mode="aspectFill"
- shape="circle" :lazy-load="true" width="50" height="50">
- </uv-image>
- <!-- <uv-icon name="share" label="分享" size="50" labelPos="bottom" color="#648EB8" labelColor="#648EB8" labelSize="18"></uv-icon> -->
- </view>
- </uv-col>
- </uv-row>
- </view>
- </template>
- <script>
- import {addlog} from "@/common/api/system.js"
- export default{
- data(){
- return {
- shareimg:"https://backup-1306866048.cos.ap-nanjing.myqcloud.com/workercard/20231228/658d1042e1395.jpg",
- }
- },
- methods:{
- showshare(){
-
- },
- dosharewechat(){
- this.$emit('dosharewechat', {shareimg:this.shareimg})
- // uni.$emit('dosharewechat',{shareimg:this.shareimg})
- // uni.share({
- // provider: "weixin",
- // scene: "WXSceneSession",
- // type: 0,
- // href:"testapp://",
- // title: "uni-app分享",
- // summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
- // imageUrl: this.shareimg,
- // success: function (res) {
- // addlog({
- // json: JSON.stringify(res),
- // type: 'uniapp信息'
- // })
- // console.log("success:" + JSON.stringify(res));
- // },
- // fail: function (err) {
- // addlog({
- // json: JSON.stringify(res),
- // type: 'uniapp错误'
- // })
- // console.log("fail:" + JSON.stringify(err));
- // }
- // })
- }
- }
- }
- </script>
- <style scoped>
- .page{
- overflow-y: auto;
- }
- .share_div{
- width: 100%;
- border:1rpx dotted #797979;
- box-sizing: border-box;
- padding: 1em;
- }
- .page{
- overflow-y: auto;
- }
- .share_div .text{
- font-size: 15px;
- align-items:center;
-
- }
- </style>
|